/* =============================================================================
 * Generative Cafe — base styles
 * Design language is deliberately thin for now: warm paper, espresso ink, one
 * accent. Everything routes through the tokens below, so restyling the site
 * later means editing this block and nothing else.
 * ========================================================================== */
:root {
  --paper:      #FAF6EF;
  --paper-warm: #F3ECE0;
  --ink:        #2B211B;
  --ink-soft:   #6F6157;
  --rule:       #E2D8C9;
  --accent:     #C4653C;

  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  /* swap this one line when the real wordmark face is picked */
  --font-display: var(--font-ui);

  --header-h: 4.5rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #1A1614;
    --paper-warm: #221C19;
    --ink:        #F2E9DC;
    --ink-soft:   #A29384;
    --rule:       #362D27;
    --accent:     #E4885C;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================ header ===== */
.gc-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.gc-header__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  /* tall enough that the steam overflowing the lockup never meets the top of
     the bar — the drawn square is a little over 1.5x the vessel's height */
  min-height: max(var(--header-h), calc(var(--gc-cup-size, 44px) * 1.5));
  padding: 0 var(--gutter);
  margin: 0 auto;
  max-width: 72rem;
}

/* -- the lockup ------------------------------------------------------------ */
.gc-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}

.gc-logo__cup {
  display: block;
  flex: none;
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  color: inherit;
  /* the box is the vessel only: the steam band is cropped off the top and
     allowed to overflow, so flex centring lines the wordmark up with the cup */
  width: var(--gc-cup-size, 44px);
  height: calc(var(--gc-cup-size, 44px) * var(--gc-vessel-frac, 0.648));
  overflow: visible;
}

button.gc-logo__cup { cursor: pointer; border-radius: 0.5rem; }

button.gc-logo__cup:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gc-cup {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;                       /* sit the ground line on the box's floor */
  width: 100%;
  height: var(--gc-cup-size, 44px);
  overflow: visible;
}

/* a small settle when a new cup is poured */
@keyframes gc-pour {
  from { transform: translateY(-6%) scale(0.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.gc-logo__cup.is-pouring .gc-cup { animation: gc-pour 320ms cubic-bezier(.2,.8,.3,1); }

@media (prefers-reduced-motion: reduce) {
  .gc-logo__cup.is-pouring .gc-cup { animation: none; }
}

.gc-logo__mark {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

/* -- nav (unused today, ready for the real site) --------------------------- */
.gc-header__nav { display: flex; gap: 1.25rem; }

.gc-header__link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
}
.gc-header__link:hover { color: var(--ink); }

/* ============================================================== main ===== */
.gc-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 12vh, 8rem) var(--gutter);
  text-align: center;
}

.gc-notice h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gc-notice p {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
}

.gc-rule {
  width: 3.5rem;
  height: 2px;
  margin: 1.6rem auto 0;
  border: 0;
  background: var(--accent);
  opacity: 0.85;
}
