/* Walnut website: shared tokens, nav, footer and the reading layout (privacy, terms, support).
   Graphite palette from docs/design/prototype/Website.dc.html. No web fonts: SF Pro Rounded on
   Apple devices, system-ui elsewhere. No mono, no ALL CAPS. */

:root {
  --bg: #141415;
  --el: #1C1C1D;
  --tx: #F5F5F2;
  --line: rgba(245, 245, 242, .08);
  --am: #FFA620;
  --rd: #FF6A55;
  --dim: .62;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }

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

.wn-sec { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: var(--tx); color: var(--bg); padding: 8px 14px; border-radius: 12px; text-decoration: none; }

/* ---------- nav ---------- */
.wn-nav { display: flex; align-items: center; justify-content: space-between; height: 72px; position: relative; z-index: 5; }
.wn-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.3px; text-decoration: none; }
.wn-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--el); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; justify-content: center; }
.wn-mark::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--am); }
.wn-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.wn-links a { text-decoration: none; opacity: var(--dim); transition: opacity 150ms; }
.wn-links a:hover, .wn-links a[aria-current="page"] { opacity: 1; }
.wn-cta { height: 38px; padding: 0 16px; border-radius: 19px; background: var(--tx); color: var(--bg) !important; opacity: 1 !important; display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 640px) { .wn-links .wn-navlink { display: none; } }

/* ---------- footer ---------- */
.wn-foot { padding-top: 64px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 15px; position: relative; z-index: 5; }
.wn-foot-brand { display: flex; flex-direction: column; gap: 6px; }
.wn-foot-brand b { font-size: 18px; font-weight: 500; }
.wn-foot-brand span { opacity: .55; }
.wn-foot-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.wn-foot-links a { text-decoration: none; opacity: var(--dim); }
.wn-foot-links a:hover { opacity: 1; }
.wn-foot-links .copy { opacity: .4; }

/* ---------- reading pages ---------- */
.doc { width: 100%; max-width: 680px; margin: 0 auto; padding: 48px 24px 24px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(36px, 6vw, 52px); line-height: 1.04; letter-spacing: -1.2px; font-weight: 600; }
.doc .meta { margin: 0 0 40px; font-size: 15px; opacity: .55; }
.doc .lede { font-size: 19px; line-height: 1.55; opacity: .8; margin: 0 0 32px; }
.doc h2 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -.4px; font-weight: 600; line-height: 1.25; }
.doc h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 600; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: rgba(245, 245, 242, .45); }
.doc .dim { opacity: var(--dim); }
.doc a { text-decoration: underline; text-decoration-color: rgba(245, 245, 242, .35); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--tx); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.doc th { font-weight: 600; }
.doc .table-wrap { overflow-x: auto; }
.doc .card { border-radius: 22px; background: var(--el); box-shadow: inset 0 0 0 1px var(--line); padding: 20px 22px; margin: 0 0 24px; }
.doc .card p:last-child { margin-bottom: 0; }
.doc .mail { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 24px; background: var(--tx); color: var(--bg); text-decoration: none; font-size: 17px; margin: 4px 0 8px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 15px; }
.doc .toc li { margin: 0; font-size: 15px; }
.doc .toc a { opacity: var(--dim); text-decoration: none; }
.doc .toc a:hover { opacity: 1; }

/* FAQ: native details, one line closed */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; opacity: .5; font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-top: 10px; }
.faq details p, .faq details li { font-size: 16px; opacity: .75; }

@media (max-width: 480px) {
  .doc { padding-top: 28px; }
  .doc p, .doc li { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
