/* ==========================================================================
   Hardway Eight — base styles (loaded on every page)
   Edit the TOKENS below to restyle the whole site at once.
   ========================================================================== */

/* ---------- tokens ---------- */
:root{
  --black:   #000000;                  /* page background */
  --black-2: #151412;                  /* raised panels / placeholders */
  --cream:   #e6e6e6;                  /* the ONE text color (headings, body, nav) */
  --dim:     rgba(230,230,230,0.72);   /* secondary text: same color, softer */
  --faint:   rgba(230,230,230,0.45);   /* fine print, placeholders */
  --hover:   rgba(230,230,230,0.5);    /* text-only buttons go this much darker on hover */
  --ease:    .25s ease;                /* the one button animation */
  --line:    rgba(118,118,118,0.14);   /* borders and dividers */
  --error:   #a23b3b;                  /* checkout error */
  --font-display: 'Anton', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ---------- reset + page ---------- */
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; background:var(--black); }
body{
  background:var(--black);
  color:var(--cream);
  font-family:var(--font-body);
  overflow-x:hidden;
}
a{ color:inherit; }
[hidden]{ display:none !important; }

.eyebrow{
  font-size:11px;
  letter-spacing:0.24em;
  text-transform:uppercase;
  color:var(--dim);
}

/* ---------- header: back arrow (left) · wordmark (center) · cart (right) ---------- */
header{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:20px 6vw;
  background:none;
}
.header-spacer, .header-back{ grid-column:1; justify-self:start; }
.header-back{
  display:flex;
  align-items:center;
  padding:8px;
  margin-left:-8px;
  color:var(--cream);
  text-decoration:none;
  transition:color var(--ease);
}
.header-back svg{ width:22px; height:22px; }
.header-back:hover{ color:var(--hover); }
.brand-wordmark{
  grid-column:2;
  justify-self:center;
  font-family:var(--font-display);
  font-weight:400;
  letter-spacing:0.12em;
  text-transform:uppercase;
  font-size:20px;
  text-decoration:none;
  color:var(--cream);
}
.header-actions{
  grid-column:3;
  justify-self:end;
  display:flex;
  align-items:center;
  gap:14px;
}
header .cart-toggle{ color:var(--cream); transition:color var(--ease); }
header .cart-toggle:hover{ color:var(--hover); }

/* ---------- buttons ----------
   One look for every button: starts light, goes dark on hover.
   One animation (--ease) shared by all of them. */
.btn{
  font-family:var(--font-display);
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:16px 32px;
  text-decoration:none;
  display:inline-block;
  border:1px solid var(--cream);
  cursor:pointer;
  background:var(--cream);
  color:var(--black);
  transition:background-color var(--ease), border-color var(--ease), color var(--ease);
}
.btn:hover:not(:disabled){ background:var(--black-2); border-color:var(--black-2); color:var(--cream); }
.btn:disabled{ opacity:0.35; cursor:not-allowed; }

/* text-only buttons (landing nav, form submit, cart close) fade darker instead */
.landing-nav a, form.signup button, .cart-close{ transition:color var(--ease); }
.landing-nav a:hover, form.signup button:hover, .cart-close:hover{ color:var(--hover); }

/* ---------- footer (socials + legal) ---------- */
footer{
  padding:44px 6vw;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
}
footer .fine{
  font-size:10px;
  letter-spacing:0.04em;
  color:var(--faint);
}
footer .fine a{ color:inherit; text-decoration:underline; }
.social-row{ display:flex; gap:26px; }
.social-icon{ color:var(--dim); transition:color .2s ease; }
.social-icon svg{ width:24px; height:24px; }
.social-icon:hover{ color:var(--cream); }

/* ---------- admin-editable text (About, News, legal pages) ----------
   The text stays invisible until assets/cms.js has loaded the admin's version,
   then fades in, so the built-in text never flashes first. The page heading stays put.
   Safety net: if the script never runs, the text shows anyway after 2s. */
@keyframes hw8-show{ to{ opacity:1; } }
[data-cms]:not(.is-ready) > :not(h1),
[data-news]:not(.is-ready){ opacity:0; animation:hw8-show 0s 2s forwards; }
[data-cms].is-ready > *, [data-news].is-ready{ opacity:1; transition:opacity .25s ease; }

/* ---------- page height ---------- */
body{ position:relative; z-index:0; min-height:100vh; min-height:100svh; }
footer .fine{ margin-top:8px; }
footer .social-row + .fine{ margin-top:22px; }
