:root {
  --paper: #e4ece8;
  --paper-deep: #d5e1dc;
  --ink: #12302a;
  --verdigris: #2f7f6d;
  --slate: #5b7871;
  --copper: #a8642e;
  --term-bg: #12302a;
  --term-ink: #d9ebe5;
  --term-dim: #7f9e96;
  --term-accent: #7fc4b2;
  --measure: 66ch;
  --text: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f2722;
    --paper-deep: #15322b;
    --ink: #dbe9e4;
    --verdigris: #7fc4b2;
    --slate: #93aea7;
    --copper: #d38b55;
    --term-bg: #081a16;
  }
  .terminal { border: 1px solid rgba(127, 196, 178, 0.18); }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}

a { color: var(--verdigris); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--verdigris); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.wordmark {
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--copper);
  padding-bottom: 1px;
}

nav a { margin-left: 1.25rem; color: var(--slate); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* Hero: what you read, then the thing itself. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}

.hero p.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--slate);
  max-width: 34ch;
  margin: 0 0 1.75rem;
}

/* Not a button: there's nothing to tap yet. */
.status {
  margin: 0;
  font-weight: 700;
  color: var(--verdigris);
}

/* The terminal: real oxsh output. */
.terminal {
  background: var(--term-bg);
  color: var(--term-ink);
  border-radius: 18px;
  padding: 1.25rem 1.4rem 1.4rem;
  font: 400 0.9rem/1.7 var(--mono);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 60px -30px rgba(18, 48, 42, 0.55);
  overflow-x: auto;
}
.terminal .bar {
  display: flex;
  justify-content: space-between;
  color: var(--term-dim);
  font-size: 0.78rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(217, 235, 229, 0.12);
}
.terminal pre { margin: 0; white-space: pre; }
.terminal .dim { color: var(--term-dim); }
.terminal .ok { color: var(--term-accent); }
.terminal .face {
  display: inline-block;
  padding: 0 0.45em;
  border-radius: 6px;
  background: rgba(127, 196, 178, 0.16);
  color: var(--term-accent);
}
.terminal .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  vertical-align: text-bottom;
  background: var(--term-accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .terminal .cursor { animation: none; } }

/* Features: a definition list, read top to bottom. */
section.features { padding: 1rem 0 4rem; }
section.features h2, .prose h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  font-weight: 750;
  margin: 0 0 1.5rem;
}

dl.features-list {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, var(--measure));
  column-gap: 3rem;
  margin: 0;
}
dl.features-list dt {
  font-weight: 700;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--paper-deep);
}
dl.features-list dd {
  margin: 0;
  padding: 1.1rem 0 1.3rem;
  border-top: 1px solid var(--paper-deep);
  color: var(--slate);
}

section.under-the-hood {
  background: var(--paper-deep);
  padding: 3.5rem 0;
}
section.under-the-hood p { max-width: var(--measure); margin: 0 0 1rem; }

footer.site {
  padding: 2.5rem 0 3rem;
  color: var(--slate);
  font-size: 0.95rem;
}

/* Privacy policy */
.prose { max-width: var(--measure); padding: 2rem 0 4rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.03em; margin: 0 0 0.5rem; line-height: 1.1; }
.prose .updated { color: var(--slate); margin: 0 0 2.5rem; }
.prose h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose strong { font-weight: 700; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2.25rem; padding: 2rem 0 3rem; }
  dl.features-list { grid-template-columns: 1fr; }
  dl.features-list dd { border-top: 0; padding-top: 0.3rem; }
  .terminal { font-size: 0.8rem; }
}
