/* ==========================================================================
   Object Muse — Informative sulla privacy / Privacy policy / 隐私政策
   Design system inspired by the app: warm paper, Baskerville, clay accents.
   No webfonts, no scripts, no external requests, no cookies.
   ========================================================================== */

:root {
  --paper: #f7f4ed;
  --paper-deep: #f1ede3;
  --white: #fffcf6;
  --ink: #2b2a24;
  --ink-2: #4b483f;
  --muted: #5f5a4f;
  --faint: #6b665a;
  --clay: #a6503b;
  --clay-deep: #8a3f2c;
  --olive: #5f6349;
  --line: #e1dcce;
  --line-2: #cfc9b9;
  --inset: #ece7db;

  --serif: "Baskerville", "Baskerville Old Face", "Iowan Old Style",
    "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --wrap: 1160px;
  --measure: 71ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(166, 80, 59, 0.18);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(166, 80, 59, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--clay);
  text-decoration-color: var(--clay);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 28px;
}

/* Utilities ---------------------------------------------------------------- */

.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--paper);
}

/* Masthead ---------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 237, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--clay);
  text-decoration: none;
}

.brand:hover {
  color: var(--clay-deep);
}

.brand .mark {
  width: 25px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

.brand span {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.15em;
  color: var(--ink);
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.navlink {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
}

.navlink:hover {
  color: var(--clay);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  padding-top: 76px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6.5vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--clay);
}

.hero__lede {
  max-width: 46ch;
  margin: 26px 0 0;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 30px 0 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero__meta span + span::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--line-2);
}

.plate {
  margin: 0;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 42%;
}

.plate figcaption {
  margin-top: 13px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Key facts --------------------------------------------------------------- */

.facts {
  padding-top: 66px;
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.fact {
  padding: 24px 24px 0 0;
  border-right: 1px solid var(--line);
}

.fact + .fact {
  padding-left: 26px;
}

.fact:last-child {
  border-right: 0;
}

.fact__n {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--clay);
}

.fact h2 {
  margin: 7px 0 8px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.fact p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* Layout ------------------------------------------------------------------ */

.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding-top: 80px;
}

.toc {
  position: sticky;
  top: 94px;
}

.toc ol {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc li {
  break-inside: avoid;
}

.toc a {
  display: flex;
  gap: 11px;
  padding: 6px 0 6px 16px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--clay);
}

.toc .toc__n {
  font-family: var(--serif);
  font-style: italic;
  color: var(--faint);
  min-width: 16px;
}

.article {
  min-width: 0;
  max-width: var(--measure);
}

/* In short callout -------------------------------------------------------- */

.note {
  padding: 22px 26px;
  border-left: 2px solid var(--clay);
  background: rgba(166, 80, 59, 0.055);
}

.note p {
  margin: 0;
  color: var(--ink-2);
}

.note p + p {
  margin-top: 12px;
}

.note .eyebrow {
  margin-bottom: 10px;
  color: var(--clay);
}

.quiet {
  margin: 26px 0;
  padding: 22px 26px;
  background: var(--inset);
}

.quiet p {
  margin: 0;
  font-size: 15px;
}

.quiet p + p {
  margin-top: 10px;
}

/* Article ----------------------------------------------------------------- */

.doc section {
  padding-top: 46px;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.doc .note + section {
  margin-top: 46px;
}

.doc h2 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: clamp(27px, 3.1vw, 34px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 30px 0 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
}

.doc p {
  margin: 0 0 16px;
  color: var(--ink-2);
}

.doc p:last-child {
  margin-bottom: 0;
}

.doc .eyebrow .num {
  margin-right: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--clay);
}

.doc ul,
.doc ol {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.doc ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
  color: var(--ink-2);
}

.doc ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--clay);
  opacity: 0.6;
}

.doc ul li strong,
.doc ol li strong {
  color: var(--ink);
  font-weight: 600;
}

.doc ul li:last-child,
.doc ol li:last-child {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 44px;
  counter-increment: step;
  color: var(--ink-2);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.75;
  color: var(--clay);
}

.steps li::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--line-2);
}

/* Data table -------------------------------------------------------------- */

.table-wrap {
  margin: 26px 0 20px;
  overflow-x: auto;
  outline-offset: 2px;
  border: 1px solid var(--line);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.55;
  text-align: left;
}

th {
  padding: 13px 16px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: bottom;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td strong {
  color: var(--ink);
  font-weight: 600;
}

tbody th {
  padding: 14px 16px;
  background: none;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  vertical-align: top;
  white-space: nowrap;
}

tbody th strong {
  font-weight: 600;
}

.table-wrap:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* Contact ----------------------------------------------------------------- */

.contact-card {
  margin: 26px 0 0;
  padding: 30px 32px;
  background: var(--white);
  border: 1px solid var(--line-2);
}

.contact-card .eyebrow {
  color: var(--clay);
}

.contact-card__mail {
  display: inline-block;
  margin: 10px 0 6px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}

.contact-card__mail:hover {
  color: var(--clay);
}

.contact-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 0 22px;
  min-height: 48px;
  background: var(--clay);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
}

.btn:hover {
  background: var(--clay-deep);
  color: #fff;
}

.btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.to-top {
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.to-top a {
  color: var(--muted);
  text-decoration: none;
}

.to-top a:hover {
  color: var(--clay);
}

/* Footer ------------------------------------------------------------------ */

.footer {
  margin-top: 100px;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: 46px;
  padding-bottom: 38px;
}

.footer .brand span {
  font-size: 17px;
}

.footer p {
  margin: 12px 0 0;
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.footer h2 {
  margin: 0 0 14px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 7px;
}

.footer li a {
  font-size: 12.5px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer li a:hover {
  color: var(--clay);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--faint);
}

.footer__base a {
  color: var(--faint);
}

.footer__base a:hover {
  color: var(--clay);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1020px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .plate {
    max-width: 440px;
    margin-inline: auto;
  }

  .facts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact:nth-child(2) {
    border-right: 0;
  }

  .fact:nth-child(n + 3) {
    margin-top: 24px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .fact:nth-child(4) {
    border-right: 0;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 62px;
  }

  .toc {
    position: static;
  }

  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 14px;
  }

  .toc a {
    padding-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding-inline: 20px;
  }

  .masthead__inner {
    height: 60px;
  }

  .brand span {
    font-size: 16px;
  }

  .masthead nav {
    gap: 0;
  }

  .navlink {
    display: none;
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1 {
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .hero__lede {
    font-size: 16.5px;
  }

  .facts__grid {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact + .fact,
  .fact:nth-child(n + 3) {
    margin-top: 0;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .fact + .fact {
    padding-left: 0;
  }

  .fact:first-child {
    border-top: 0;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .note,
  .quiet {
    padding: 18px 20px;
  }

  .contact-card {
    padding: 24px 22px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .doc section {
    padding-top: 34px;
    margin-top: 34px;
  }
}

/* Print ------------------------------------------------------------------- */

@media print {
  :root {
    --paper: #fff;
    --paper-deep: #fff;
    --white: #fff;
    --ink: #000;
    --ink-2: #1a1a1a;
    --muted: #333;
    --faint: #444;
    --line: #bbb;
    --line-2: #bbb;
  }

  body {
    font-size: 11pt;
    line-height: 1.55;
    background: #fff;
  }

  .masthead,
  .toc,
  .facts,
  .hero__meta,
  .btn,
  .to-top,
  .skip-link,
  .footer__grid {
    display: none !important;
  }

  .hero {
    padding-top: 0;
  }

  .hero__grid {
    display: block;
  }

  .plate {
    display: none;
  }

  .hero h1 {
    font-size: 30pt;
  }

  .layout {
    display: block;
    padding-top: 20pt;
  }

  .article {
    max-width: none;
  }

  .doc section {
    break-inside: avoid;
    page-break-inside: avoid;
    border-top: 0;
    padding-top: 14pt;
    margin-top: 14pt;
  }

  .doc h2 {
    font-size: 16pt;
  }

  .doc h3 {
    font-size: 12.5pt;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .contact-card {
    border: 1px solid #999;
  }

  .footer {
    margin-top: 24pt;
    border-top: 1px solid #999;
    background: #fff;
  }

  .footer__base {
    padding-top: 8pt;
    border-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Inline technical terms and spacing helpers ------------------------------- */

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  color: var(--ink);
  word-break: break-word;
}

.after-card {
  margin-top: 26px;
}
