/* HG-311: hubgopher.com's Coming Soon page. The rules below are the approved look's own, unchanged
   (prototypes/hg311-s248-landing.css, shared by hg311-s248-idea-a, -b and -c). The scene is a Blender
   render (prototypes/hg311-s248-scenes.py), one per idea in four cuts - desktop and phone, light and
   dark ground - and the page shows the cut that fits the reader's width and theme. Every colour is a
   token the app's own src/theme/tokens.ts carries, light and dark. The faces ship in fonts/ under the
   SIL Open Font License, whose text sits beside each: Archivo 800 for the wordmark and headline, Hanken
   Grotesk for the body, IBM Plex Mono 600 for the eyebrow. The page follows the reader's light/dark
   setting; ?theme=light or ?theme=dark pins one. */

@font-face { font-family: 'Archivo_800ExtraBold'; src: url('fonts/Archivo_800ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'HankenGrotesk_400Regular'; src: url('fonts/HankenGrotesk_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'IBMPlexMono_600SemiBold'; src: url('fonts/IBMPlexMono_600SemiBold.ttf') format('truetype'); }

:root {
  /* light, tokens.ts `light` */
  --ground: #E6E3DB;
  --line: #CFC8BB;
  --ink: #1A1712;
  --ink-soft: #4A4239;
  --muted: #5A5045;
  --eyebrow: #9C4419;
  --link: #006C88;
  --disc: #F2E8DA;
  --disc-ring: #CCB49C;
  --shadow-lifted: 0 14px 40px rgba(26,23,18,0.14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #14100C;
    --line: #3A2F24;
    --ink: #E8E2D8;
    --ink-soft: #B8AA98;
    --muted: #A89A86;
    --eyebrow: #5DC9E2;
    --link: #E0CDB4;
    --shadow-lifted: 0 14px 40px rgba(0,0,0,0.32);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #14100C;
  --line: #3A2F24;
  --ink: #E8E2D8;
  --ink-soft: #B8AA98;
  --muted: #A89A86;
  --eyebrow: #5DC9E2;
  --link: #E0CDB4;
  --shadow-lifted: 0 14px 40px rgba(0,0,0,0.32);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'HankenGrotesk_400Regular', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

/* The header: the app's Lockup, disc and wordmark (src/components/Lockup.tsx: a 62px disc in a 3px ring,
   the 51px cyan gopher, Archivo 800 at 30px, -0.025em). */
.top { display: flex; align-items: center; gap: 14px; padding: 22px 0 0; max-width: 1080px; width: 100%; margin: 0 auto; }
.disc { width: 62px; height: 62px; box-sizing: content-box; border-radius: 50%; background: var(--disc); border: 3px solid var(--disc-ring); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.disc img { width: 51px; height: 51px; }
.wordmark { font-family: 'Archivo_800ExtraBold', sans-serif; font-size: 30px; letter-spacing: -0.75px; line-height: 1; }

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 0 8px; }

/* The scene: the render for this width and theme. Each cut is its own image, and only one shows. */
.stage { width: 100%; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lifted); border: 1px solid var(--line); line-height: 0; }
.stage img { display: none; width: 100%; height: auto; }
.stage img.desk.light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stage img.desk.light { display: none; }
  :root:not([data-theme="light"]) .stage img.desk.dark { display: block; }
}
:root[data-theme="dark"] .stage img.desk.light { display: none; }
:root[data-theme="dark"] .stage img.desk.dark { display: block; }
/* At desktop width the whole page fits one screen: the scene gives up height first, never the words.
   The desktop cut is 1600 x 842. */
@media (min-width: 601px) {
  .stage { max-width: min(1080px, calc((100vh - 380px) * 1.9)); }
}

.eyebrow { font-family: 'IBMPlexMono_600SemiBold', monospace; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--eyebrow); margin: 34px 0 10px; }
h1 { font-family: 'Archivo_800ExtraBold', sans-serif; font-weight: normal; font-size: 44px; letter-spacing: -1.1px; line-height: 1.05; margin: 0; text-align: center; }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-soft); margin: 12px 0 0; text-align: center; max-width: 34em; }

/* The footer carries the artwork credit on this surface, as every surface showing the gopher does in the
   app (the Credits page's footer lines, src/components/credits/copy.ts). The name is spelled without the
   accent, as the asset folder's own notice spells it, so the page stays ASCII. */
footer { width: 100%; max-width: 1080px; margin: 0 auto; padding: 26px 0 26px; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
footer a { color: var(--link); }

/* Phone width: the phone cut (1000 x 750), framed closer on the crew and the sign. */
@media (max-width: 600px) {
  body { padding: 0 16px; }
  .top { padding-top: 16px; gap: 10px; }
  .disc { width: 42px; height: 42px; border-width: 2px; }
  .disc img { width: 35px; height: 35px; }
  .wordmark { font-size: 22px; letter-spacing: -0.55px; }
  main { padding-top: 22px; justify-content: flex-start; }
  .stage { border-radius: 11px; }
  .stage img.desk.light, .stage img.desk.dark { display: none !important; }
  .stage img.phone.light { display: block; }
  .eyebrow { font-size: 12px; letter-spacing: 2.4px; margin-top: 24px; }
  h1 { font-size: 30px; letter-spacing: -0.75px; }
  .lede { font-size: 16px; }
  footer { font-size: 12px; }
}
@media (max-width: 600px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stage img.phone.light { display: none; }
  :root:not([data-theme="light"]) .stage img.phone.dark { display: block; }
}
@media (max-width: 600px) {
  :root[data-theme="dark"] .stage img.phone.light { display: none; }
  :root[data-theme="dark"] .stage img.phone.dark { display: block; }
}
