/* wallhang.app shared styles: tokens, top bar, footer, buttons, page shells and motion.
   Page-specific layout lives in each page (index.html, press.html) or guides/guides.css. */

:root {
  color-scheme: light;
  --bg: #F8F5EF; --card: #FFFDFA; --card-2: #EFEBE2; --line: #DEDCD3;
  --ink: #292E29; --text: #4A4F48; --soft: #62675E;
  --accent: #9F503A; --accent-2: #364C3C; --tint: #E5E9DE;
  --pill: #292E29; --pill-ink: #F8F5EF; --nav: rgba(248, 245, 239, 0.82);
  --stage: linear-gradient(180deg, #EFEBE2 0%, #F8F5EF 100%);
  --shadow: 0 0 0 1px rgba(41, 46, 41, 0.06), 0 30px 60px -30px rgba(41, 46, 41, 0.35);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, monospace;
  --radius: 28px;
  /* Older names still used by the press page and the guides. */
  --paper: var(--bg); --muted: var(--soft); --clay: var(--accent); --sage: var(--tint);
}
/* Dark: chosen with the switch in the top bar and remembered. The site opens light. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171916; --card: #21241F; --card-2: #2A2E28; --line: #343832;
  --ink: #F2EFE7; --text: #D3D0C7; --soft: #A3A79D;
  --accent: #D98A6F; --accent-2: #9DB8A3; --tint: #262B24;
  --pill: #F2EFE7; --pill-ink: #171916; --nav: rgba(23, 25, 22, 0.82);
  --stage: linear-gradient(180deg, #21241F 0%, #171916 100%);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
.col { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }

/* Top bar */
.site-nav { position: sticky; top: 0; z-index: 20; background: var(--nav); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.site-nav .col { display: flex; align-items: center; gap: 22px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; font: 400 23px/1 var(--serif); letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.site-nav a.link { color: var(--soft); text-decoration: none; font-size: 14px; white-space: nowrap; }
.site-nav a.link:hover, .site-nav a.link[aria-current="page"] { color: var(--ink); }
.theme { background: none; border: 0; padding: 6px; margin: 0 -6px; color: var(--soft); cursor: pointer; display: grid; place-items: center; }
.theme:hover { color: var(--ink); }
.theme svg { width: 18px; height: 18px; }
.theme .sun, :root[data-theme="dark"] .theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
@media (max-width: 760px) { .site-nav a.link { display: none; } .site-nav .col { gap: 16px; } }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--pill); color: var(--pill-ink); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; border: 0; }
.pill:hover { opacity: 0.88; }
.pill.big { padding: 12px 22px; font-size: 16px; }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 50px; width: auto; display: block; }
.tag { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: var(--soft); text-decoration: none; }
.tag:hover { border-color: var(--accent); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.tag b { color: var(--ink); font-weight: 500; }

/* Simple pages: support, privacy, 404 */
.page-head { text-align: center; padding: 64px 0 36px; }
.page-head h1 { font: 400 clamp(40px, 6vw, 64px)/1.05 var(--serif); letter-spacing: -0.025em; margin: 12px 0 12px; }
.page-head p { color: var(--soft); font-size: 19px; margin: 0 auto; max-width: 46ch; }
.sheet { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); }
.sheet h2 { font: 400 26px/1.2 var(--serif); letter-spacing: -0.02em; margin: 34px 0 8px; }
.sheet h2:first-child { margin-top: 0; }
.sheet h3 { font-size: 17px; margin: 26px 0 6px; }
.sheet p, .sheet li { margin: 0 0 12px; color: var(--text); }
.sheet hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.muted { color: var(--soft); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 28px 0 64px; font-size: 13px; color: var(--soft); }
.site-foot .col { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--soft); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* Motion: sections rise into place as they scroll in. */
.rise { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.1, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1); }
.rise.in, .no-js .rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
}
