* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; position: relative; isolation: isolate;
  background: var(--night); color: var(--white); font: 1rem/1.6 var(--sans);
}
.winter {
  position: fixed; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 67% 35%, #244c75 0%, #142d50 31%, #091b34 66%, #07162b 93%);
}
.winter canvas { display: block; width: 100%; height: 100%; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, canvas:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 4px;
}
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.2; }
h1:focus, [tabindex="-1"]:focus { outline: none; }
.site-header, .site-footer {
  padding-inline: max(28px, calc((100% - var(--shell)) / 2));
  position: relative; display: flex; justify-content: space-between; align-items: center;
}
.site-header {
  min-height: 76px; gap: 12px; padding-top: env(safe-area-inset-top);
  background: rgba(5, 18, 38, .62); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 1rem; letter-spacing: .12em; white-space: nowrap; }
.brand small { display: block; color: var(--mist); font: 500 .62rem/1.2 var(--sans); letter-spacing: .15em; }
.site-header nav { display: flex; gap: 25px; align-items: center; color: var(--mist); white-space: nowrap; font-size: .875rem; }
.site-header nav a { padding: 12px 0; }
.site-header nav a[aria-current] { color: var(--ice); box-shadow: inset 0 -1px var(--ice); }
.site-footer {
  min-height: 62px; padding-block: 14px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: rgba(7, 22, 43, .82);
  gap: 12px; color: var(--mist); font-size: .75rem;
}
.shell { max-width: var(--shell); width: calc(100% - 56px); margin-inline: auto; }
.button {
  min-height: 48px; border: 1px solid transparent; border-radius: 8px;
  padding: 10px 20px; display: inline-flex; gap: 8px;
  align-items: center; justify-content: center; text-align: center;
  font-size: .9375rem; font-weight: 650; white-space: nowrap;
}
.primary { color: #0b243c; background: linear-gradient(135deg, #d4edff, #a8d8ff); border-color: #d2e9fb; }
.secondary { background: rgba(25, 49, 79, .73); border-color: var(--line); color: #daeafd; }
.button.compact { min-height: 40px; padding: 6px 12px; font-size: .875rem; }
.button img { width: 23px; height: 23px; }
.text-button { display: inline-block; padding: 4px; border: 0; background: none; color: var(--ice); text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--gold); font-size: .875rem; letter-spacing: .17em; }
.eyebrow span { width: 20px; height: 1px; background: var(--gold); }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; }
.error { color: #f6c9d8; }
.notice { margin-block: 12px; color: var(--mist); }
@media (hover: hover) {
  .button:hover, .choice:hover, .work-card:hover { border-color: var(--ice); }
  .site-header a:hover { color: var(--white); }
}
@media (max-width: 580px) {
  .shell { width: calc(100% - 32px); }
  .site-header, .site-footer { padding-inline: max(16px, env(safe-area-inset-left)); }
  .site-header { min-height: 63px; }
  .site-header nav { gap: 13px; }
  .site-footer { flex-wrap: wrap; }
}

