/* Baydion Hive holding page. Values come from the Baydion Hive design system (tokens.json). */

@font-face { font-family: "IBM Plex Serif"; src: url("fonts/IBMPlexSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("fonts/IBMPlexSerif-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Baydion Pixel"; src: url("fonts/BaydionPixel-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: block; }

:root {
  --paper: #faf7f1; --paper-sunk: #f1ebe0; --line: #ddd3c3;
  --ink: #13292f; --ink-muted: #4b5e62;
  --terracotta: #b8532f; --terracotta-text: #9e4526; --on-terracotta: #faf7f1; --clay: #dc8b68;
  --highlight: #f3dfae; --dialogue: #13292f; --on-dialogue: #faf7f1; --dialogue-edge: #faf7f1;
  --sprite-line: #13292f; --focus: #13292f;
  --notch: 0 -2px 0 0 #13292f, 0 2px 0 0 #13292f, -2px 0 0 0 #13292f, 2px 0 0 0 #13292f;
  --notch-sprite: 0 -2px 0 0 #13292f, 0 2px 0 0 #13292f, -2px 0 0 0 #13292f, 2px 0 0 0 #13292f, 6px 6px 0 0 #13292f;
  --bevel: inset -2px -2px 0 0 #13292f40;
  --serif: "IBM Plex Serif", Georgia, serif;
  --pixel: "Baydion Pixel", ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #13292f; --paper-sunk: #0e2125; --line: #3a5960;
  --ink: #faf7f1; --ink-muted: #b4c0bf;
  --terracotta: #dc8b68; --terracotta-text: #e9a184; --on-terracotta: #13292f; --clay: #f0b597;
  --highlight: #4d3d17; --dialogue: #0b1c20; --on-dialogue: #faf7f1; --dialogue-edge: #dc8b68;
  --sprite-line: #0b1c20; --focus: #faf7f1;
  --notch: 0 -2px 0 0 #faf7f1, 0 2px 0 0 #faf7f1, -2px 0 0 0 #faf7f1, 2px 0 0 0 #faf7f1;
  --notch-sprite: 0 -2px 0 0 #faf7f1, 0 2px 0 0 #faf7f1, -2px 0 0 0 #faf7f1, 2px 0 0 0 #faf7f1, 6px 6px 0 0 #050f11;
  --bevel: inset -2px -2px 0 0 #13292f59;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 30px; }
::selection { background: var(--highlight); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
a { color: inherit; }

.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* the system's voice: Baydion Pixel, only at 16px */
.px { font-family: var(--pixel); font-weight: 400; font-size: 16px; line-height: 16px; letter-spacing: 0.125em; text-transform: uppercase; }

/* header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.theme-toggle { appearance: none; border: 0; border-radius: 0; background: none; margin: 0; padding: 8px 0; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.theme-toggle::before { content: "\25B8"; width: 0.75em; letter-spacing: 0; color: var(--terracotta); opacity: 0; }
.theme-toggle:hover::before, .theme-toggle:focus-visible::before { opacity: 1; }
.theme-toggle .box { display: inline-block; width: 10px; height: 10px; margin-right: 8px; box-shadow: inset 0 0 0 2px currentColor; }
.theme-toggle[aria-pressed="true"] .box { background: currentColor; box-shadow: inset 0 0 0 2px currentColor, inset 0 0 0 4px var(--paper); }
.theme-toggle[hidden] { display: none; }
.home { display: inline-flex; text-decoration: none; }
.lockup { display: block; height: 48px; width: auto; }
.lockup .mark { fill: none; stroke: var(--terracotta); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.lockup .word { fill: var(--ink); }

/* main */
main { flex: 1; padding-block: clamp(48px, 9vh, 96px) 96px; }
h1 { margin: 0 0 48px; font-weight: 600; font-size: clamp(44px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }

/* the dialogue box */
.dlg { position: relative; max-width: 760px; margin: 2px 2px 0; padding: 28px 44px 32px 28px; background: var(--dialogue); color: var(--on-dialogue);
  box-shadow: inset 0 0 0 4px var(--dialogue), inset 0 0 0 6px var(--dialogue-edge),
    0 -2px 0 0 var(--dialogue), 0 2px 0 0 var(--dialogue), -2px 0 0 0 var(--dialogue), 2px 0 0 0 var(--dialogue); }
.dlg-speaker { display: block; margin: 0 0 12px; color: var(--clay); }
.dlg-text { position: relative; margin: 0; font-size: 22px; line-height: 34px; }
.dlg-ghost { visibility: hidden; }
.dlg-typed { position: absolute; top: 0; left: 0; right: 0; }
.dlg-more { position: absolute; right: 18px; bottom: 14px; color: var(--clay); visibility: hidden; animation: bob 1.2s steps(1) infinite; }
.dlg.is-done .dlg-more { visibility: visible; }
.dlg.is-typing { cursor: pointer; }
@keyframes bob { 0%, 49% { transform: translateY(0); } 50%, 100% { transform: translateY(4px); } }

/* contact */
.contact { margin-top: 96px; }
.eyebrow { margin: 0 0 20px; color: var(--terracotta-text); }
.btn { display: inline-flex; align-items: center; gap: 8px; margin: 2px 6px 6px 2px; padding: 16px 22px 16px 18px; text-decoration: none;
  background: var(--terracotta); color: var(--on-terracotta); box-shadow: var(--bevel), var(--notch-sprite); }
.btn::before { content: "\25B8"; font: 400 16px/16px var(--pixel); width: 12px; margin-left: -2px; letter-spacing: 0; opacity: 0; }
.btn:hover::before, .btn:focus-visible::before { opacity: 1; }
.btn:active { transform: translate(4px, 4px); box-shadow: var(--bevel), var(--notch); }

/* footer */
.site-foot { padding-block: 24px 32px; }
.site-foot .wrap-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.foot-mail { margin-left: auto; }
.sprite { display: block; width: 32px; height: 32px; }
.sprite .s-line { fill: var(--sprite-line); }
.sprite .s-body { fill: var(--terracotta); }
.sprite .s-light { fill: var(--clay); }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .lockup { height: 40px; }
  h1 { margin-bottom: 36px; }
  .dlg { padding: 22px 36px 28px 22px; }
  .dlg-text { font-size: 19px; line-height: 30px; }
  .contact { margin-top: 64px; }
  .site-foot .wrap-inner { row-gap: 0; }
  .foot-mail { flex-basis: 100%; margin-left: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .dlg-more { animation: none; }
  .btn:active { transform: none; }
}
