/* PARAMA site. Warm paper ground, wine for Max2Draw, cobalt for AI Studio, ink for account. */
:root {
  --bg: #F6F1EA;
  --paper: #FFFDF9;
  --sheet: #FBF8F4;
  --grid: #EFE5DF;
  --ink: #1C1517;
  --text: #3B3133;
  --muted: #5E5153;
  --line: #E4DAD0;
  --line-2: #DCCFC8;
  --wine: #7B1630;
  --wine-soft: #F3E7E6;
  --blue: #1D35D8;
  --blue-soft: #E7EAFB;
  --ok: #2E7A47;
  --ok-soft: #E6EFE8;
  --err: #A3231B;
  --err-soft: #FBE9E7;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1680px;
  --gut: clamp(18px, 4vw, 80px);
  --sec: clamp(56px, 7vw, 112px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.sec { padding-bottom: var(--sec); }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow.wine { color: var(--wine); } .eyebrow.blue { color: var(--blue); }
.h2 { margin: 0 0 12px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.lead { margin: 0; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: var(--muted); max-width: 640px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(246,241,234,.93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 28px; width: auto; }
.brand span { font-size: 16px; font-weight: 800; letter-spacing: .32em; }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-links a.m2d[aria-current="page"] { color: var(--wine); }
.nav-links a.ai[aria-current="page"] { color: var(--blue); }
.nav-spacer { flex: 1; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid #D9CCC2; background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; box-shadow: 0 12px 32px rgba(28,21,23,.12); }
.menu-panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.menu-panel a:hover { background: var(--bg); }
.who { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .who .who-name { display: none; }
  .nav { gap: 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font: 600 14px/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.sm { height: 40px; padding: 0 18px; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ink-o { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.wine { background: var(--wine); color: #fff; }
.btn.wine-o { border-color: var(--wine); color: var(--wine); background: transparent; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.blue-o { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn.white { background: #fff; color: var(--wine); }
.btn.white.b { color: var(--blue); }
.btn.white-o { border-color: rgba(255,255,255,.85); color: #fff; background: transparent; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill.wine { background: var(--wine); color: #fff; }
.pill.white { background: #fff; color: var(--blue); }
.pill.ok { background: var(--ok-soft); color: #1F4D2E; }
.pill.muted { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; display: inline-block; }

/* Surfaces */
.grid-paper { background-color: var(--sheet); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #20252D; box-shadow: 0 18px 40px -18px rgba(28,21,23,.35); }
.shot img { width: 100%; height: auto; }
.soon { border: 1.5px dashed #9BA6EE; border-radius: 14px; background: var(--blue-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center; color: #2A3170; }
.soon b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 40px); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer .brand img { height: 20px; }
.site-footer .brand span { font-size: 14px; letter-spacing: .3em; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.input { height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; font: 500 16px var(--font); color: var(--ink); width: 100%; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28,21,23,.08); }
.input.code { font-size: 26px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; padding-left: calc(16px + .5em); }
.msg { border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.msg.err { background: var(--err-soft); color: var(--err); }
.msg.ok { background: var(--ok-soft); color: #1F4D2E; }
.msg.info { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.tabs { display: flex; padding: 4px; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { flex: 1; height: 42px; border-radius: 999px; border: 0; background: transparent; font: 600 15px var(--font); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: 600 15px var(--font); color: var(--wine); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

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