/* ============================================================
   AWAKE theme tokens — shared by IzzyShop storefront + admin.
   Mirrors the portfolio / account chrome (style.css, account.css):
   paper / ink / mint sticker-OUTLINE / Anton display / grain.
   Client tint overrides paper/ink/mint via [data-brand] inline
   variables — never the type system or grain.
   ============================================================ */

:root {
  --paper: #ece7db;
  --paper-deep: #e0dac9;
  --ink: #141312;
  --mint: #d9e8cf;
  --muted: #6b675f;
  --line: 2px solid var(--ink);
  --line-soft: 1px solid rgba(20, 19, 18, 0.22);
  --pad: clamp(16px, 3vw, 32px);
  --max: 1120px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --display: "Anton", "Archivo", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* pavé glint — iced AWAKE seal (same as portfolio) */
.iced {
  filter:
    contrast(1.1) brightness(1.06) saturate(1.12)
    drop-shadow(-1px 0 0 rgba(76, 243, 255, 0.35))
    drop-shadow(1px 0 0 rgba(255, 61, 207, 0.28))
    drop-shadow(0 0 8px rgba(236, 231, 219, 0.35));
}

.seal {
  display: block;
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

.seal--sm { width: 28px; }
.seal--md { width: 48px; }
.seal--lg { width: clamp(56px, 8vw, 88px); }

.footer-seal {
  width: clamp(48px, 7vw, 72px);
  height: auto;
  margin: 0 auto 14px;
  mix-blend-mode: screen;
  opacity: 0.95;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--mint); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

/* ink chip wordmark — same move as portfolio header */
.brand-chip {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: 0.02em;
  padding: 6px 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--mint);
}

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1.5px solid var(--ink);
}

/* mint = sticker OUTLINE only, never fills */
.chip--mint { box-shadow: inset 0 0 0 2px var(--mint); }

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

input, select, textarea {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 0;
  width: 100%;
}

input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 1px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.panel {
  border: var(--line);
  background: var(--paper);
  padding: 18px;
}

.tape {
  position: absolute;
  width: 84px;
  height: 22px;
  background: rgba(196, 186, 158, 0.55);
  transform: rotate(-4deg);
  top: -11px;
  left: 18px;
}

.powered {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.powered a { color: inherit; }

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