@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --porcelain: #F3F3F0;
  --ink: #0B0D10;
  --ink-muted: #4A4D52;
  --oxblood: #5A1A22;
  --rule: rgba(11, 13, 16, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--porcelain);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--oxblood); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; border-radius: 2px; }

.lang {
  position: absolute;
  top: 24px;
  right: 28px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.lang a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 4px;
}
.lang a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--oxblood);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 48px;
}

.brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: inherit;
  font-weight: inherit;
}
.mark {
  display: block;
  width: 144px;
  height: 144px;
}
.wordmark {
  display: block;
  width: 172px;
  height: auto;
  margin-top: 36px; /* one quarter of the mark height: the book's clear space */
}

.line {
  margin: 48px 0 0;
  max-width: 30ch;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.contact {
  margin: 40px 0 0;
  font-size: 16px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.4em;
}
.contact a { font-weight: 600; }

footer {
  padding: 24px 24px 28px;
  border-top: 1px solid var(--rule);
  margin: 0 28px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}
footer p { margin: 0; }
footer .privacy { margin-top: 4px; }

/* Chinese: the brand faces have no CJK glyphs, so use the reader's own system fonts (no download). */
html:lang(zh-Hans) .line { font-family: "Newsreader", "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", serif; letter-spacing: 0.02em; line-height: 1.45; max-width: 22em; word-break: keep-all; line-break: strict; }
html:lang(zh-Hans) body { font-family: "Schibsted Grotesk", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }

@media (max-width: 600px) {
  .lang { top: 16px; right: 16px; }
  main { padding: 80px 20px 40px; }
  .mark { width: 120px; height: 120px; } /* faded logo is 120 px and up */
  .wordmark { width: 150px; margin-top: 30px; }
  .line { font-size: 24px; margin-top: 36px; }
  .contact { margin-top: 32px; font-size: 15px; }
  footer { margin: 0 16px; padding: 20px 4px 24px; font-size: 12px; }
}
