/* stashie.box — shared site styles.
   Same bench palette and type as the Stavewright Workshop. Dark by design. */
:root {
  --bench: #1a1613;
  --rack: #221d19;
  --rack-2: #2a241f;
  --line: #3b332c;
  --ink: #ede4d6;
  --muted: #a6978a;
  --brass: #d4ab5c;
  --brass-hi: #f1d58f;
  --brass-dim: #8f733f;
  --on-brass: #1a1613;
  --well-hi: #2e2620;
  --well-lo: #120f0d;
  --ok: #8fc48a;
  --f-display: "IM Fell English SC", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bench);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brass); }
a:hover { color: var(--brass-hi); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brass); color: var(--on-brass); padding: 8px 12px; border-radius: 6px; z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; margin-right: auto;
  font-family: var(--f-display); font-size: 24px; letter-spacing: 0.02em;
}
.logo img { width: 30px; height: 30px; }
.logo .dot { color: var(--brass); }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.nav a:hover { color: var(--ink); }

/* ---------- buttons, labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 15px/1 var(--f-body);
  border: 1px solid var(--line);
  background: var(--rack-2);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--brass-dim); color: var(--ink); }
.btn.primary { background: var(--brass); color: var(--on-brass); border-color: var(--brass); font-weight: 700; }
.btn.primary:hover { filter: brightness(1.08); color: var(--on-brass); }

.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 10px;
}
.tag {
  display: inline-block;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted);
  white-space: nowrap;
}
.tag.live { color: var(--on-brass); background: var(--brass); border-color: var(--brass); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 38px); }
.section { padding-block: 64px; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 12px 0 0; }

/* ---------- hero ---------- */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { font-size: clamp(40px, 7vw, 72px); }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 20px 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 1 / 1; width: 100%; max-width: 420px; justify-self: center;
  border-radius: 14px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 42%, var(--well-hi), var(--well-lo) 75%);
  display: grid; place-items: center; padding: 8%;
}
.hero-art svg { width: 100%; height: auto; }

/* ---------- tools grid ---------- */
.tools { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tool {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px;
  background: var(--rack); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); text-decoration: none;
}
.tool .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tool .icon { width: 52px; height: 52px; color: var(--muted); }
.tool h3 { font-size: 24px; }
.tool p { margin: 0; color: var(--muted); font-size: 16px; }
.tool .more { margin-top: auto; padding-top: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tool.is-live { border-color: var(--brass-dim); background: linear-gradient(180deg, var(--rack-2), var(--rack)); }
.tool.is-live .icon { color: var(--brass); }
.tool.is-live .more { color: var(--brass); }
a.tool.is-live:hover { border-color: var(--brass); }
a.tool.is-live:hover .more { color: var(--brass-hi); }
.tool.is-soon { opacity: 0.88; }
/* Closed for now (assets/js/launch.js): shown, but not a link. */
.closed { cursor: default; }
.tool.closed { opacity: 0.72; }

/* ---------- tiers ---------- */
.tiers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tier { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--rack); display: flex; flex-direction: column; gap: 10px; }
.tier.featured { border-color: var(--brass-dim); }
.tier .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tier h3 { font-size: 26px; }
.tier .price { font-family: var(--f-mono); font-size: 13px; color: var(--brass); }
.tier p { margin: 0; color: var(--muted); font-size: 16px; }
.tier ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.tier li { padding-left: 22px; position: relative; }
.tier li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--brass-dim); font-size: 13px; line-height: 1.9; }
.extras { margin-top: 20px; color: var(--muted); font-size: 16px; }

/* ---------- about strip ---------- */
.about { display: grid; gap: 24px; }
@media (min-width: 820px) { .about { grid-template-columns: repeat(3, 1fr); } }
.about h3 { font-size: 22px; margin-bottom: 6px; }
.about p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 32px 40px; color: var(--muted); font-size: 15px; }
.footer .wrap { display: flex; gap: 16px 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - 160px); display: grid; place-items: center; text-align: center; padding-block: 48px; }
.lost h1 { font-size: clamp(36px, 6vw, 56px); margin: 18px 0 12px; }
.lost p { color: var(--muted); max-width: 30em; margin: 0 auto 28px; }
.lost .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lost svg { width: 120px; height: 120px; margin-inline: auto; color: var(--brass); }

@media (prefers-reduced-motion: no-preference) {
  .twinkle { transform-origin: center; transform-box: fill-box; animation: twinkle 3.6s ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.82); } }
}
