/* ICEFOG one-pager. Night, steel, ice. Keep motion quiet. */

:root {
  --night: #0b0e10;
  --night-2: #10151a;
  --panel: #14191e;
  --steel: #c5cdd1;
  --fog: #9aa4aa;
  --ice: #a8d4de;
  --bone: #e8e2d6;
  --ember: #c45c2a;
  --line: rgba(197, 205, 209, 0.14);
  --line-strong: rgba(197, 205, 209, 0.28);
  --glow: rgba(168, 212, 222, 0.22);
  --font-display: "Oswald", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --header-h: 4rem;
  --wrap: 72rem;
  --narrow: 42rem;
  --space: clamp(4rem, 10vw, 8rem);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  background: var(--night);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--steel);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(168, 212, 222, 0.08), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(168, 212, 222, 0.04), transparent 50%),
    var(--night);
  min-height: 100svh;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("assets/noise.png");
  background-size: 128px 128px;
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ice);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--bone); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bone);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(4.5rem, 18vw, 10rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 0.85;
  margin: 0 0 1rem;
}

h2 { font-size: clamp(2rem, 5.5vw, 3.35rem); }

h3 {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--bone);
  color: var(--night);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.narrow { width: min(100% - 2rem, var(--narrow)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 16, 0.78);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--bone);
  text-decoration: none;
  font-size: 1rem;
}

.wordmark:hover { color: var(--ice); }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--fog);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible { color: var(--bone); }

.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 2.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.kicker,
.section-kicker {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.85rem;
}

.tagline {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--bone);
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 1.1rem;
}

.lede {
  color: var(--fog);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--night);
  background: var(--bone);
  border-color: var(--bone);
}

.btn-primary {
  background: var(--bone);
  color: var(--night);
  border-color: var(--bone);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--ice);
  border-color: var(--ice);
  color: var(--night);
}

.btn-ghost { background: transparent; }

.btn-small {
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  flex: none;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent;
  color: var(--fog);
  border-color: var(--line);
}

.btn:disabled:hover {
  background: transparent;
  color: var(--fog);
  border-color: var(--line);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.coin-glow {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, rgba(168, 212, 222, 0.06) 42%, transparent 70%);
  filter: blur(18px);
  animation: pulse 8s ease-in-out infinite;
}

.coin-img,
.coin-figure img {
  position: relative;
  width: min(100%, 34rem);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.4));
}

.coin-figure {
  margin: 0;
  display: grid;
  place-items: center;
}

.coin-figure img {
  width: min(100%, 28rem);
  margin-inline: auto;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

.section {
  padding: var(--space) 0;
  border-top: 1px solid var(--line);
}

.section-panel {
  background: linear-gradient(180deg, rgba(20, 25, 30, 0.65), rgba(11, 14, 16, 0.2));
}

.section-head {
  max-width: var(--narrow);
  margin-bottom: 2.5rem;
}

.coin-grid,
.field-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.coin-figure figcaption {
  margin-top: 0.75rem;
  color: var(--fog);
  font-size: 0.92rem;
}

.status-line {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--ice);
}

.countdown {
  margin: 2rem 0 1.5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.countdown-label {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--ice);
  margin-bottom: 1.25rem;
}

.countdown-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.countdown-grid li {
  border: 1px solid var(--line);
  background: var(--night-2);
  padding: 1rem 0.4rem 0.85rem;
  text-align: center;
}

.countdown-grid .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bone);
  line-height: 1;
}

.countdown-grid .unit {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}

.fine {
  color: var(--fog);
  font-size: 1rem;
}

.facts {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.facts li {
  border: 1px solid var(--line);
  padding: 1.25rem 1.2rem 1.3rem;
  background: rgba(11, 14, 16, 0.45);
}

.facts p { color: var(--fog); }

.field {
  border: 1px solid var(--line);
  padding: 1rem 1rem 1.05rem;
  background: rgba(11, 14, 16, 0.45);
}

.field-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 0.65rem;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.field code {
  flex: 1;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--bone);
  word-break: break-all;
}

.socials {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0.95rem 1rem;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.social span {
  color: var(--fog);
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.social:hover { border-color: var(--ice); color: var(--ice); }

.social.is-disabled,
.social[aria-disabled="true"] {
  color: var(--fog);
  pointer-events: none;
  opacity: 0.7;
}

.disclaimer p {
  color: var(--fog);
  font-size: 1.02rem;
}

.disclaimer p + p { margin-top: 1rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
}

.site-footer p {
  margin: 0;
  color: var(--fog);
  font-size: 0.95rem;
}

@media (min-width: 800px) {
  .hero-grid,
  .coin-grid,
  .field-grid,
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .facts { gap: 1.1rem; }
}

@media (max-width: 640px) {
  body { font-size: 1.05rem; }

  .nav { gap: 0.3rem 0.7rem; }
  .nav a { font-size: 0.78rem; }

  .countdown-grid { gap: 0.4rem; }
  .countdown-grid li { padding: 0.8rem 0.2rem 0.7rem; }

  .field-row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coin-glow { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--night);
    backdrop-filter: none;
  }
}
