@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-var-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  --sky-a: #f4efe6;
  --sky-b: #f6dfc9;
  --glow: #fff1d6;
  --bird: #2b2320;
  --ink: #231e1a;
  --ink-2: #6b6259;
  --ink-3: #978d82;
  --rule: rgba(35, 30, 26, .14);
  --ember: #c2562a;
  --gutter: clamp(20px, 4vw, 64px);
}
/* four light skies; the visit's seed picks one */
:root[data-sky="mist"] { --sky-a: #edf1ee; --sky-b: #f4ecdf; --glow: #ffffff; --bird: #232a2a; }
:root[data-sky="rose"] { --sky-a: #f2eaee; --sky-b: #f8ddd0; --glow: #ffe9dc; --bird: #2c2226; }
:root[data-sky="noon"] { --sky-a: #e8f0f4; --sky-b: #f6f1e6; --glow: #fffaf0; --bird: #1f2830; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; background: var(--sky-a); }
body {
  margin: 0; min-height: 100%; overflow: hidden;
  background:
    radial-gradient(62vmax 62vmax at var(--sunx, 72%) var(--suny, 26%), var(--glow), transparent 68%),
    linear-gradient(var(--sky-a), var(--sky-b)) fixed;
  background-color: var(--sky-a);
  color: var(--ink);
  font: 400 15px/1.5 "Schibsted Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity 1.6s ease; touch-action: none; }
.on #scene { opacity: 1; }
.still { display: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ember); }
a:focus-visible { outline: 1.5px solid var(--ember); outline-offset: 5px; border-radius: 1px; }

.top, .foot { position: fixed; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); z-index: 2; }
.top { top: 0; height: 88px; }
.word { font-weight: 700; font-size: 14px; letter-spacing: .16em; }
.side { color: var(--ink-2); font-size: 14px; }

.line { position: fixed; left: var(--gutter); bottom: clamp(112px, 18vh, 200px); z-index: 2; pointer-events: none; }
.line::before { content: ""; display: block; width: 40px; height: 1px; background: var(--ink); opacity: .7; margin-bottom: 26px; }
.kicker { margin: 0 0 22px; color: var(--ink-2); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }

.caps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.caps li { white-space: nowrap; }
.caps li:not(:last-child)::after { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 18px 0 22px; vertical-align: -1px; background: var(--ink); opacity: .35; }

.motto { position: fixed; right: var(--gutter); bottom: clamp(112px, 18vh, 200px); z-index: 2; margin: 0; text-align: right; color: var(--ink-3); font-size: 11px; letter-spacing: .14em; font-variant-numeric: tabular-nums; pointer-events: none; }
.motto .gr { display: block; margin-bottom: 6px; color: var(--ink); font: italic 400 19px/1 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.motto .gr::after { content: ""; display: block; width: 18px; height: 1px; margin: 12px 0 12px auto; background: var(--ember); opacity: .9; }

.foot { bottom: 0; height: 76px; color: var(--ink-2); font-size: 13px; }
.foot .rest { display: flex; gap: 24px; }

@media (max-width: 700px) {
  .top { height: 64px; }
  .line { bottom: 140px; right: var(--gutter); }
  .line::before { margin-bottom: 20px; }
  .kicker { margin-bottom: 16px; font-size: 11px; }
  .caps { gap: 8px 0; font-size: 12px; letter-spacing: .18em; }
  .caps li:not(:last-child)::after { margin: 0 14px 0 16px; }
  .motto { right: auto; left: var(--gutter); bottom: auto; top: 112px; text-align: left; }
  .motto .gr { font-size: 17px; }
  .motto .gr::after { margin-left: 0; }
  .foot { height: auto; padding-top: 12px; padding-bottom: max(20px, env(safe-area-inset-bottom)); flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot .rest { gap: 18px; }
}
@media (max-height: 560px) and (max-width: 700px) {
  .line { bottom: 120px; }
  .line::before { display: none; }
  .motto { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* privacy, terms, 404: the same light page, scrolling */
body.doc { overflow: auto; background-attachment: scroll, fixed; }
.doc .top, .doc .foot { position: static; }
.doc .top { height: 84px; }
.doc .foot { border-top: 1px solid var(--rule); margin-top: 72px; height: auto; padding-top: 24px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.docmain { position: relative; z-index: 1; max-width: 760px; padding: 32px var(--gutter) 0; }
.docmain::before { content: ""; display: block; width: 40px; height: 1px; background: var(--ink); opacity: .7; margin-bottom: 26px; }
.docmain h1 { margin: 0; font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; }
.lede { margin: 22px 0 44px; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 58ch; }
.items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.items li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.items .n { color: var(--ink-3); font-size: 12px; letter-spacing: .14em; padding-top: 4px; font-variant-numeric: tabular-nums; }
.items h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -.005em; }
.items p { margin: 0; color: #4d463f; font-size: 15px; line-height: 1.65; max-width: 62ch; }
.foot a[aria-current] { color: var(--ink); }
.docmain .back { display: inline-block; margin-top: 36px; padding-bottom: 3px; border-bottom: 1px solid var(--ink-2); color: var(--ink); font-size: 14px; letter-spacing: .04em; }
.docmain .back:hover { border-color: var(--ember); color: var(--ink); }
@media (max-width: 700px) {
  .doc .top { height: 64px; }
  .docmain { padding-top: 24px; }
  .items li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .doc .foot { margin-top: 56px; }
}

/* latin-ext glyphs (Polish, Czech, Romanian), loaded only when a page uses them */
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-var-latin-ext.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* language switcher: the code in the top bar, the twelve names under it */
.top { z-index: 3; }
.tools { display: flex; align-items: center; gap: 22px; }
.lang { position: relative; color: var(--ink-2); }
.lang summary { list-style: none; cursor: pointer; padding: 6px 0; font-size: 12px; letter-spacing: .14em; -webkit-user-select: none; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ember); }
.lang summary:focus-visible { outline: 1.5px solid var(--ember); outline-offset: 5px; border-radius: 1px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 16px 20px; list-style: none; display: grid; grid-template-columns: repeat(2, max-content); gap: 9px 28px; background: var(--sky-a); background: color-mix(in srgb, var(--sky-a) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--rule); border-radius: 2px; font-size: 13px; white-space: nowrap; }
.lang a[aria-current] { color: var(--ink); }
@media (max-width: 700px) {
  .tools { gap: 16px; }
  .foot .rest { flex-wrap: wrap; row-gap: 4px; }
}
