/* GPT Chat: shared tokens for the landing page and the hub app.
   A real post shows itself: its own image, or its title. Amber is the Join
   button (and the roof's colour in the building): the single primary action,
   never a stand-in for content. Everything structural is cool and quiet. */

@font-face {
  font-family: "Archivo GC";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo GC";
  src: url("../fonts/archivo-var-ext.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist GC";
  src: url("../fonts/geist-var.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono GC";
  src: url("../fonts/geist-mono-var.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --sc-canvas:     #090b0e;
  --sc-surface:    #10141a;
  --sc-ink:        #eceef1;
  --sc-ink-soft:   #96a0ae;
  --sc-accent:     #ffb547;
  --sc-accent-ink: #1b1206;

  --sc-font-display: "Archivo GC", "Archivo", system-ui, sans-serif;
  --sc-font-text:    "Geist GC", "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono GC", "Geist Mono", ui-monospace, monospace;

  --sc-shadow-color: 214 40% 2%;

  /* page-specific roles, derived */
  --gc-raised:   #141922;
  --gc-sunk:     #07090c;
  --gc-line:     color-mix(in oklab, var(--sc-ink) 11%, transparent);
  --gc-line-2:   color-mix(in oklab, var(--sc-ink) 20%, transparent);
  --gc-cool:     #cfe0f2;          /* structural light: soffits, rails. Never content. */
  --gc-dim:      #5d6878;          /* tertiary text on dark, large only */
  --gc-danger:   #ff7a66;
  --gc-ok:       #8fd6a6;
  --gc-amber-wash: color-mix(in oklab, var(--sc-accent) 12%, transparent);
  /* Neon: the building's own light. Signs, wayfinding, "you are here".
     Amber is the one action. */
  --gc-neon:      #ff4fa3;
  --gc-neon-soft: #ff8cc4;
  --gc-neon-wash: color-mix(in oklab, var(--gc-neon) 12%, transparent);
  --gc-neon-glow: 0 0 0 1px color-mix(in oklab, var(--gc-neon) 35%, transparent), 0 0 12px -1px color-mix(in oklab, var(--gc-neon) 55%, transparent), inset 0 0 8px -2px color-mix(in oklab, var(--gc-neon) 45%, transparent);
  --gc-stretch:  118%;             /* the signage width */

  --sc-r-sm: 4px; --sc-r-md: 8px; --sc-r-lg: 12px;
}

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

/* Light text on dark: a touch more leading and weight than light-mode metrics. */
body { font-weight: 420; line-height: 1.64; }

/* Display: an expanded grotesque, like building signage. */
.sc-display, .gc-display {
  font-family: var(--sc-font-display);
  font-stretch: var(--gc-stretch);
  font-weight: 640;
  letter-spacing: -0.032em;
}

/* The one primary button. Amber, because it is the main action (on the front page: join). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.7em 1.15em;
  border: 1px solid transparent; border-radius: var(--sc-r-sm);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-family: var(--sc-font-text); font-weight: 600; font-size: var(--sc-t-sm);
  letter-spacing: 0; line-height: 1.1; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sc-e1), inset 0 1px 0 rgb(255 255 255 / 0.28);
  cursor: pointer;
  transition: transform 120ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #ffc266; box-shadow: var(--sc-e2), inset 0 1px 0 rgb(255 255 255 / 0.3); }
}
/* a sign-lit key: neon outline, for "go to this floor" actions */
.btn--sign {
  background: transparent; color: var(--sc-ink);
  border-color: color-mix(in oklab, var(--gc-neon) 75%, transparent);
  box-shadow: 0 0 10px -3px color-mix(in oklab, var(--gc-neon) 60%, transparent), inset 0 0 8px -4px color-mix(in oklab, var(--gc-neon) 60%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .btn--sign:hover { background: var(--gc-neon-wash); border-color: var(--gc-neon); box-shadow: 0 0 16px -3px color-mix(in oklab, var(--gc-neon) 70%, transparent), inset 0 0 10px -4px color-mix(in oklab, var(--gc-neon) 70%, transparent); }
}
/* secondary: a quiet outlined key */
.btn--ghost {
  background: transparent; color: var(--sc-ink);
  border-color: var(--gc-line-2); box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: color-mix(in oklab, var(--sc-ink) 6%, transparent); border-color: color-mix(in oklab, var(--sc-ink) 34%, transparent); box-shadow: none; }
}
.btn--sm { min-height: 36px; padding: 0.5em 0.85em; font-size: var(--sc-t-xs); }

.gc-label {
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-ink-soft);
  font-weight: 450;
}
.gc-mono { font-family: var(--sc-font-mono); font-size: 0.92em; letter-spacing: -0.01em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  transform: translateY(-200%); background: var(--sc-ink); color: #0b0e12;
  padding: 0.6rem 0.9rem; border-radius: var(--sc-r-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { transform: none; }
