/* Fælles stil til "under opbygning"-siderne. Deler tokens med forsiden. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

:root {
  --paper:   #E9E7E1;
  --paper-2: #F2F1EC;
  --ink:     #191B1E;
  --muted:   #5D5C55;
  --line:    #CDCAC1;
  --accent:  #2C5474;
  --accent-2:#3E6E93;
  --on-accent:#F3F2EE;
  --grid:    color-mix(in srgb, var(--accent) 16%, transparent);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #141518;
    --paper-2: #1C1E22;
    --ink:     #EBE9E3;
    --muted:   #98968C;
    --line:    #303237;
    --accent:  #78ABCE;
    --accent-2:#96C2DF;
    --on-accent:#101216;
    --grid:    color-mix(in srgb, var(--accent) 20%, transparent);
  }
}

body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  line-height: 1.6; min-height: 100svh; display: flex; flex-direction: column;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* header */
header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 0.55rem; }
.brand .mark { align-self: center; flex: none; color: var(--accent); margin-right: 0.15rem; }
.brand b { font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand span {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}
.back {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem;
  transition: color .2s;
}
.back:hover { color: var(--ink); }
.back svg { transition: transform .25s ease; }
.back:hover svg { transform: translateX(-4px); }
.back__short { display: none; }
@media (max-width: 560px) {
  .back__long { display: none; }
  .back__short { display: inline; }
}

/* indhold */
main { flex: 1; display: grid; place-items: center; padding-block: clamp(2.5rem, 7vw, 5rem); }
.wip { text-align: center; max-width: 34rem; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem; color: var(--accent);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.wip h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.08;
  margin: 1.1rem 0 0; font-weight: 800;
}
.wip p { color: var(--muted); margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.5rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--accent); transition: background .2s, color .2s, transform .2s;
}
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--ghost { color: var(--accent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* byggeanimation */
.site {
  width: 100%; max-width: 30rem; margin: 0 auto clamp(1.5rem, 4vw, 2.5rem); display: block; height: auto;
  border: 1px solid var(--line);
  background-color: color-mix(in srgb, var(--accent) 7%, var(--paper-2));
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.site .blk { animation: blkUp 5.4s cubic-bezier(.2,.7,.2,1) infinite; }
.site .blk:nth-of-type(1) { animation-delay: .1s }
.site .blk:nth-of-type(2) { animation-delay: .7s }
.site .blk:nth-of-type(3) { animation-delay: 1.3s }
.site .blk:nth-of-type(4) { animation-delay: 1.9s }
.site .blk:nth-of-type(5) { animation-delay: 2.5s }
.site .blk:nth-of-type(6) { animation-delay: 3.1s }
.site .cable { transform-box: fill-box; transform-origin: 50% 0; animation: wireDrop 5.4s ease-in-out infinite; }
.site .load  { animation: loadDrop 5.4s ease-in-out infinite; }
@keyframes blkUp {
  0%, 4%   { opacity: 0; transform: translateY(-16px); }
  12%, 88% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(0); }
}
/* wire og last hænger sammen: samme timing, modsat retning */
@keyframes wireDrop {
  0%, 8%   { transform: scaleY(.30); }
  38%, 52% { transform: scaleY(1); }
  82%,100% { transform: scaleY(.30); }
}
@keyframes loadDrop {
  0%, 8%   { transform: translateY(-27px); }
  38%, 52% { transform: translateY(0); }
  82%,100% { transform: translateY(-27px); }
}

/* footer */
footer { border-top: 1px solid var(--line); }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.8rem;
}
.foot small {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .site * { animation: none !important; }
  .btn:hover { transform: none; }
}
