/* RÅK Journal — coming soon. Tokens from the RÅK Journal design system. */

@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-opsz.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --ground: #ffffff;
  --paper: #f4f3f0;
  --frost: #e4e9ed;
  --ink: #101820;
  --ink-muted: #5c636b;
  --hairline: #e2e2df;
  --on-ink: #ffffff;
  --signal: #e94e22;
  --signal-ink: #b5360f;
  --danger: #a11d18;

  /* Headline font is still being chosen: swap this one line. */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "Courier Prime", "Courier New", Courier, monospace;

  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-24: 96px;
  --ring-top: -.14em;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b131c;
    --paper: #131e29;
    --frost: #1a2733;
    --ink: #f1f0ec;
    --ink-muted: #9ba7b3;
    --hairline: #24313d;
    --on-ink: #0b131c;
    --signal: #ff5c2e;
    --signal-ink: #ff8a5c;
    --danger: #ff8f87;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { text-decoration-color: var(--signal); } }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Wordmark: the ring of the Å in signal orange */
.wordmark { display: inline-flex; align-items: baseline; gap: .28em; font-size: 28px; line-height: 1; text-decoration: none; color: var(--ink); }
.wordmark__name { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; display: inline-flex; }
.wordmark__a { position: relative; display: inline-block; }
.wordmark__a::before { content: ""; position: absolute; left: 50%; top: var(--ring-top); width: .2em; height: .2em; transform: translateX(-50%); border: .05em solid var(--signal); border-radius: 50%; }
.wordmark__sub { font-family: var(--font-mono); font-size: .45em; color: var(--ink); }

/* Layout */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--space-12); }
.site-header__note { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0; }

main { flex: 1; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--space-12);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-12) var(--space-24);
}
.hero__text { display: grid; gap: var(--space-6); max-width: 34rem; }
.label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.display { font-family: var(--font-display); font-size: clamp(44px, 6.2vw, 88px); line-height: .98; font-weight: 600; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.dek { font-family: var(--font-serif); font-size: 22px; line-height: 1.4; margin: 0; text-wrap: pretty; }

.photo { margin: 0; display: grid; gap: var(--space-2); }
.photo__frame { background: var(--ground); padding: var(--space-6); outline: 1px solid var(--hairline); outline-offset: -1px; }
.photo__frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--frost); }
.photo figcaption { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* Signup */
.signup { display: grid; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--ink); }
.signup__title { font-family: var(--font-display); font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.signup__text { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: 0; }
.field-label { font-size: 13px; line-height: 18px; font-weight: 700; }
.signup__row { display: flex; gap: var(--space-2); }
.input {
  flex: 1; min-width: 0; min-height: 48px; padding: 12px var(--space-4);
  border: 1.5px solid var(--ink); border-radius: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-mono); font-size: 16px; line-height: 20px;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--ink-muted); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1.5px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--on-ink);
  font-family: var(--font-mono); font-size: 15px; line-height: 20px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background-color 120ms ease-out, color 120ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }
@media (hover: hover) { .btn:hover { background: transparent; color: var(--ink); } }
.btn:active { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.signup__consent { font-size: 12px; line-height: 17px; color: var(--ink-muted); margin: 0; }
.signup__status { font-size: 14px; line-height: 20px; margin: 0; min-height: 20px; }
.signup__status[data-state="error"] { color: var(--danger); }
.signup__status[data-state="ok"] { color: var(--ink); }
.signup__status[data-state="ok"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 8px; vertical-align: 1px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The word */
.word { border-top: 1px solid var(--hairline); }
.word__inner { max-width: 1280px; margin: 0 auto; padding: var(--space-12); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-12); align-items: baseline; }
.word__term { font-family: var(--font-display); font-size: 44px; line-height: 1.04; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.word__term i { font-weight: 400; }
.word__pron { font-family: var(--font-mono); font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-muted); margin-left: .4em; }
.word__def { font-family: var(--font-serif); font-size: 19px; line-height: 1.6; margin: 0; max-width: 36rem; }

.site-footer { border-top: 1px solid var(--hairline); }
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: var(--space-6) var(--space-12); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); justify-content: space-between; align-items: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }

/* Phones */
@media (max-width: 719px) {
  .site-header { padding: var(--space-4) var(--space-5); }
  .site-header__note { display: none; }
  .hero { grid-template-columns: 1fr; gap: var(--space-6); padding: 0 0 var(--space-12); }
  .hero__media { order: -1; }
  .hero__media .photo__frame { padding: 0; outline: 0; }
  .hero__media .photo__frame img { aspect-ratio: 1 / 1; }
  .hero__media figcaption { padding: 0 var(--space-5); }
  .hero__text { padding: 0 var(--space-5); gap: var(--space-5); }
  .dek { font-size: 19px; }
  .signup__row { flex-direction: column; }
  .btn { width: 100%; }
  .word__inner { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-12) var(--space-5); }
  .word__term { font-size: 32px; }
  .word__def { font-size: 17px; }
  .site-footer__inner { padding: var(--space-4) var(--space-5) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Privacy page */
.prose { max-width: 40rem; margin: 0 auto; padding: var(--space-12) var(--space-5) var(--space-24); font-family: var(--font-serif); font-size: 18px; line-height: 1.6; }
.prose h1 { font-family: var(--font-display); font-size: 44px; line-height: 1.04; font-weight: 600; letter-spacing: -.02em; margin: var(--space-4) 0 var(--space-6); }
.prose h2 { font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 600; margin: var(--space-8) 0 var(--space-2); }
.prose p, .prose ul { margin: 0 0 var(--space-4); }
