/* alexsimonbrown.com — framework and look. One blue accent. No web fonts, no network. */

:root {
  --bg: #050709;
  --bg-2: #0a0e14;
  --ink: #e6edf5;
  --ink-2: #98a6b8;
  --ink-3: #5c6a7c;
  --line: rgba(230, 237, 245, 0.09);
  --line-2: rgba(230, 237, 245, 0.18);
  --accent: #4d8dff;
  --accent-2: #8ab8ff;
  --accent-dim: rgba(77, 141, 255, 0.16);
  --font: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --bar-h: 64px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  z-index: 100;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  height: 40px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-main {
  background: var(--accent);
  color: var(--bg);
}
.btn-main:hover {
  background: var(--accent-2);
  box-shadow: 0 0 28px rgba(77, 141, 255, 0.28);
  transform: translateY(-1px);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-quiet:hover { border-color: var(--accent); color: var(--accent-2); }

.btn-big {
  flex-direction: column;
  gap: 4px;
  height: auto;
  padding: 26px 56px 22px;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: 14px;
  line-height: 1.05;
  background: var(--accent);
  color: var(--bg);
}
.btn-big:hover {
  background: var(--accent-2);
  box-shadow: 0 0 60px rgba(77, 141, 255, 0.32);
  transform: translateY(-2px);
}
.btn-big-sub {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.72;
}
.btn-tall {
  height: auto;
  align-self: stretch;
  padding: 0 34px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* ---------- 1. Bar ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(5, 7, 9, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

.bar-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.bar-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(77, 141, 255, 0.65);
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bar-mail {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-right: 10px;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.bar-mail:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------- 2. Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: calc(var(--bar-h) + 40px) var(--gutter) 40px;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}

/* The light is off-frame left. Its spill sits between the name and the figure. */
.hero-glow {
  position: absolute;
  z-index: -1;
  left: 24%;
  top: 18%;
  width: 60vw;
  height: 60vw;
  max-width: 860px;
  max-height: 860px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(77, 141, 255, 0.14) 0%,
    rgba(77, 141, 255, 0.09) 24%,
    rgba(77, 141, 255, 0.05) 44%,
    rgba(77, 141, 255, 0.02) 60%,
    rgba(77, 141, 255, 0.006) 74%,
    rgba(77, 141, 255, 0) 88%);
  filter: blur(36px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  will-change: transform, opacity;
}
.hero-name {
  font-size: clamp(3.6rem, 10.5vw, 8.4rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.hero-name .dot { color: var(--accent); }
.hero-line {
  margin-top: 30px;
  max-width: 30ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero-cue {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-cue-line {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
}

/* The shadow. Alex as a standing shadow, head turned left toward a screen
   that is off the page, with the screen's blue bloom in the air to his left.
   The asset fades at every edge, so the box can overlap the copy column while
   the figure itself stands just right of the name, large, feet running out below. */
.hero-figure {
  position: absolute;
  z-index: 1;
  margin: 0;
  left: 31%;
  bottom: -4%;
  height: min(104svh, 980px);
  aspect-ratio: 2 / 3;
  pointer-events: none;
}
.hero-shadow {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- 3. Centre ---------- */

.centre {
  padding: clamp(56px, 9vw, 120px) var(--gutter);
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
}
.centre-inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
}

.message {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(230, 237, 245, 0.025), rgba(230, 237, 245, 0));
}
.message[hidden] { display: none; }
.message-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.message-head { grid-column: 1 / -1; margin-bottom: 6px; }
.message-head h2 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 700; }
.message-head p { margin-top: 6px; color: var(--ink-2); font-size: 0.94rem; }
.message-head a { color: var(--accent-2); border-bottom: 1px solid rgba(138, 184, 255, 0.35); }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: rgba(5, 7, 9, 0.6);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.message-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.message-status { color: var(--ink-2); font-size: 0.92rem; }
.message-status a { color: var(--accent-2); border-bottom: 1px solid rgba(138, 184, 255, 0.35); }
.message-status.is-error { color: #ffb4a2; }

/* ---------- shared section bits ---------- */

.section-label {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- 4. Story ---------- */

.story {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}
.story-lead {
  margin-top: 28px;
  max-width: 52ch;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-2);
  display: grid;
  gap: 14px;
}
.story-text {
  margin-top: 40px;
  max-width: 24ch;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
}

.yt {
  position: relative;
  display: inline-block;
  color: var(--accent-2);
  cursor: pointer;
}
.yt-word {
  position: relative;
  display: inline-block;
  padding: 0 0.06em;
  border-radius: 6px;
  transition: color 160ms ease, background-color 160ms ease;
}
.yt-word::after {
  content: "";
  position: absolute;
  left: 0.06em;
  right: 0.06em;
  bottom: 0.02em;
  height: 0.08em;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 220ms ease, background-color 160ms ease;
}
.yt-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 6px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 200ms ease;
}
.yt-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: translate(-50%, -55%) rotate(45deg);
  border-radius: 2px;
}
.yt-play {
  width: 0;
  height: 0;
  border-left: 9px solid var(--bg);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.yt:hover .yt-word, .yt:focus-visible .yt-word {
  color: var(--bg);
  background: var(--accent);
}
.yt:hover .yt-word::after, .yt:focus-visible .yt-word::after { transform: scaleX(0); }
.yt:hover .yt-card, .yt:focus-visible .yt-card {
  opacity: 1;
  transform: translate(-50%, 0);
}
.yt:focus-visible { outline: none; }

/* ---------- 5. Proof ---------- */

.proof {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(64px, 8vw, 120px);
}
.proof-space {
  margin-top: 36px;
  min-height: 220px;
  border: 1px dashed var(--line-2);
  border-radius: 16px;
}

/* ---------- 6. Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}
.footer-main {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) 40px;
}
.footer-mail {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 3.2vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}
.footer-mail:hover { color: var(--accent-2); }
.footer-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }

.footer-small {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.footer-others {
  display: flex;
  gap: 6px 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}
.footer-others a:hover { color: var(--ink-2); }
.footer-links {
  font-size: 0.8rem;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.footer-links a:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------- /book shell ---------- */

.book-page {
  padding: calc(var(--bar-h) + 56px) var(--gutter) 96px;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(230, 237, 245, 0.04);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.back:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: rgba(77, 141, 255, 0.08);
}
.back-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(77, 141, 255, 0.45);
  position: relative;
}
.back-arrow::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-left: 2px solid #04101f;
  border-bottom: 2px solid #04101f;
  transform: rotate(45deg);
}
.book-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.04em; line-height: 0.95; font-weight: 800; }
.book-head p { margin-top: 18px; max-width: 56ch; color: var(--ink-2); font-size: 1.05rem; }
.book-head p a { color: var(--accent-2); border-bottom: 1px solid rgba(138, 184, 255, 0.35); }
.book-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 180, 162, 0.35);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb4a2;
}
.book-notice::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffb4a2; }
.book-shell {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  opacity: 0.85;
}
.book-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(230, 237, 245, 0.025), rgba(230, 237, 245, 0));
}
.book-panel .section-label { margin-bottom: 20px; }
.book-month { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 600; }
.book-month span:last-child { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); }
.book-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.book-grid .dow { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3); text-align: center; padding-bottom: 6px; }
.book-grid .day {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-3);
}
.book-grid .day.on { color: var(--ink); border-color: var(--line-2); }
.book-grid .day.blank { border-color: transparent; }
.book-tier { margin-top: 18px; }
.book-tier + .book-tier { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.book-tier h2 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.book-tier h2 small { font-weight: 400; color: var(--ink-3); margin-left: 8px; font-size: 0.82rem; }
.book-slots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.book-slots span {
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.book-slots.ideal span { border-color: rgba(77, 141, 255, 0.4); color: var(--accent-2); }
.book-rank { margin-top: 12px; display: grid; gap: 8px; }
.book-rank li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-3);
}
.book-rank li b { color: var(--ink-2); font-weight: 600; min-width: 1.6em; }
.book-foot { margin-top: 26px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero { align-content: end; padding-bottom: 48px; }
  .hero-figure {
    left: 34%;
    bottom: -3%;
    height: min(82svh, 700px);
    opacity: 0.92;
  }
  .hero-copy { padding-top: 8px; }
  .hero-glow { left: 22%; top: auto; bottom: -10%; width: 110vw; height: 110vw; max-width: 720px; max-height: 720px; }
  .book-shell { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --bar-h: 96px; }
  .bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 10px;
    column-gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .bar-name { grid-column: 1; grid-row: 1; font-size: 0.98rem; }
  .bar-actions { display: contents; }
  .bar-mail { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; font-size: 0.7rem; }
  .bar-actions .btn { height: 36px; padding: 0 14px; font-size: 0.86rem; }
  .bar-actions .btn-quiet { grid-column: 1; grid-row: 2; justify-self: start; }
  .bar-actions .btn-main { grid-column: 2; grid-row: 2; justify-self: end; }
  .hero-name { font-size: clamp(3.4rem, 17vw, 5rem); }
  .hero-cue { margin-top: 36px; }
  .btn-big { width: 100%; padding: 22px 24px 18px; }
  .btn-tall { width: 100%; height: 56px; }
  .message { padding: 22px; margin-top: 32px; }
  .message-form { grid-template-columns: 1fr; }
  .story-text { max-width: none; }
  .footer-small { flex-direction: column; align-items: flex-start; }
  .footer-others { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy { transform: none !important; opacity: 1 !important; }
  .btn, .yt-card, .yt-word, .yt-word::after { transition: none; }
}
