/* ==========================================================================
   style.css: "coming soon" page for Gilbert Carr
   Layout: one screen, left-aligned, the name set large with the surname
   offset to the right; details sit in two columns underneath.
   ========================================================================== */

:root {
  /* Colour: steel blue accent on cool graphite */
  --ink: #0E1114;          /* background */
  --line: #262C33;         /* hairlines */
  --bone: #E6EAEE;         /* main text */
  --stone: #8E979F;        /* secondary text */
  --accent: #8FB4D8;       /* the one accent colour */
  --accent-line: rgba(143, 180, 216, 0.45);

  /* Fonts */
  --f-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", Georgia, serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: dark;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Fine film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--ink); }

.label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

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


/* Page ------------------------------------------------------------------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(40px, 7vh, 96px) clamp(32px, 4vh, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status { margin: 0 0 clamp(24px, 4vw, 40px); display: inline-flex; align-items: center; gap: 12px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.6s infinite;
}

.name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(4rem, 17vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.04em; }
.line > span { display: inline-block; animation: rise 1.25s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: .12s; }
.line--offset { padding-left: clamp(40px, 16vw, 260px); }
.name em { font-style: italic; }
.stop { color: var(--accent); }

.rule {
  position: relative; height: 1px; background: var(--line);
  margin-block: clamp(36px, 6vw, 64px) clamp(28px, 4vw, 40px);
  transform-origin: left; animation: draw 1.6s .45s var(--ease) both;
}
.rule::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 72px; background: var(--accent); }

.foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px clamp(16px, 2.5vw, 32px);
  align-items: start;
}

.lede {
  grid-column: 1 / span 6;
  margin: 0;
  max-width: 32em;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  min-width: 0;
}

/* Rotating interest in the intro */
.rotator { display: inline-block; color: var(--accent); }
.rotator .word {
  display: inline-block;
  transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease);
}
.rotator .word.is-out { opacity: 0; transform: translateY(-0.4em); filter: blur(4px); }

.facts { grid-column: 8 / -1; margin: 0; min-width: 0; }
.facts > div {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px;
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.facts > div:first-child { padding-top: 0; }
.facts dt { padding-top: 3px; }
.facts dd { margin: 0; font-size: 0.9375rem; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .06em;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
  transition: border-color .35s, color .35s, transform .45s var(--ease);
}
.tags li:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }

.bottom {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-variant-numeric: tabular-nums;
}


/* Animation -------------------------------------------------------------- */

.rise-in { animation: fadeUp 1s .55s var(--ease) both; }
.rise-in[data-delay="1"] { animation-delay: .7s; }

@keyframes rise   { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes draw   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-line); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Small screens ---------------------------------------------------------- */

@media (max-width: 860px) {
  .lede, .facts { grid-column: 1 / -1; }
  .facts { max-width: 34rem; }
}
