/*
  Jackstay site styles.
  Token values are copied from ../Jackstay/design/tokens.json, Claude Design export of 2026-11-13.
  The wordmark font and tracking come from the design system (../Jackstay/design/jackstay-design-system/tokens/typography.css).
  Do not invent values here. When the app gets a new export, copy the changed values and update this date.
  The site is day mode only, by John's choice (2026-11-13): it does not follow the visitor's dark setting.
*/

:root {
  color-scheme: light;

  /* mode: day */
  --surface: #F4F1EA;
  --surface-raised: #FDFCF9;
  --surface-sunken: #E9E6DE;
  --ink: #141A21;
  --ink-muted: #3B424B;
  --ink-faint: #646B73;
  --hairline: rgba(20, 26, 33, 0.12);

  /* accent: tether, day */
  --accent: #0462D3;
  --accent-deep: #004CAD;
  --accent-dim: rgba(4, 98, 211, 0.16);
  --on-accent: #FFFFFF;

  /* night values, used only over the hero photo */
  --night-ink: #F4F1EA;
  --night-ink-muted: #CFCBC2;
  --night-ink-faint: #9BA1A8;
  --night-surface-raised: #1C242B;
  --night-accent: #59AAF8;
  --night-on-accent: #141A21;

  /* the ink, see through: darkens the hero photo so cream text reads over white foam */
  --wash-night: rgba(20, 26, 33, 0.72);
  /* lighter, for the About sunset: 72% turns the sun muddy, and the text sits over open water */
  --wash-night-light: rgba(20, 26, 33, 0.56);

  /* fonts */
  --font-display: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-wordmark: "Jost", system-ui, sans-serif;
  --tracking-wordmark: -0.025em;

  /* text sizes */
  --size-figure: 76px;
  --size-figure-md: 48px;
  --size-title: 28px;
  --size-subtitle: 20px;
  --size-action: 17px;
  --size-body: 16px;
  --size-body-sm: 14px;

  /* space: 4pt grid */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --space-xxxl: 32px;
  --space-huge: 40px;
  --space-giant: 56px;

  /* radius */
  --radius-md: 6px;
  --radius-lg: 12px;

  /* motion */
  --duration-fast: 140ms;
  --duration-taut: 900ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-taut: cubic-bezier(0.5, 0, 0.1, 1);
}

/* base */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--size-body);
  line-height: 1.45;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

p,
h1,
h2,
ul {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--accent-deep);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

strong {
  font-weight: 600;
}

/* top bar, shared by every page: the logo on the left, the site links on the right */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xxl);
  font-size: var(--size-body);
}

.site-nav a {
  color: var(--ink-muted);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Over a darkened photo the links use the night values, like the logo. */
.over-photo .site-nav a {
  color: var(--night-ink);
}

.over-photo .site-nav a:hover {
  color: var(--night-accent);
}

.over-photo .site-nav a[aria-current="page"] {
  text-decoration-color: var(--night-accent);
}

/* home */

/*
  header: the logo left, the links centered on the page (John, 2026-11-16).
  Three columns with equal sides keep the links on the true center whatever the logo's width.
  Over a photo hero it floats, so the hero starts at the very top.
*/
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-md) var(--space-xxl);
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg) 0;
}

/* The logo hugs its own width, so only the logo itself is a link. */
.site-header .wordmark {
  justify-self: start;
}

.site-header.over-photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

main {
  flex: 1;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xxl);
  padding: calc(var(--space-giant) * 2) var(--space-lg) var(--space-giant);
  text-align: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle var(--duration-taut) var(--ease-taut) both;
}

/* On load, once: the photo settles from a slight zoom while the words rise into place and the line draws taut. */
.hero h1,
.hero-lead,
.hero-action {
  animation: rise var(--duration-taut) var(--ease-taut) both;
}

@keyframes settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(var(--space-md));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--wash-night);
}

/* The hero sits on the darkened photo, so its text uses the theme kit's night values. */
.hero h1,
.over-photo .wordmark {
  color: var(--night-ink);
}

.over-photo .wordmark:hover {
  color: var(--night-accent);
}

.over-photo .glyph path {
  stroke: var(--night-accent);
}

.hero .hero-lead,
.hero .status {
  color: var(--night-ink-muted);
}

/*
  The waitlist is not open yet, so the button is disabled, but John wants it seen (2026-11-16):
  it keeps the full accent fill instead of greying out. Clicking does nothing until the waitlist exists.
*/
.hero .button,
.hero .button:disabled {
  background: var(--night-accent);
  color: var(--night-on-accent);
  cursor: default;
}

.hero h1 {
  font-size: var(--size-figure);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-wrap: balance;
}

.hero-lead {
  max-width: 560px;
  font-size: var(--size-subtitle);
  line-height: 1.4;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.hero-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.button {
  font: inherit;
  font-size: var(--size-action);
  font-weight: 600;
  line-height: 1.2;
  padding: var(--space-md) var(--space-xxl);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  white-space: nowrap;
}

.button:disabled {
  background: var(--surface-sunken);
  color: var(--ink-faint);
  cursor: not-allowed;
}

.status {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: var(--size-body-sm);
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.statements {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-giant) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-huge);
}

.statements p {
  font-size: var(--size-title);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-faint);
  text-wrap: pretty;
}

.statements strong {
  color: var(--ink);
}

/* The one signature detail: the jackstay line under the headline, drawn taut once on load. */
.line {
  width: 120px;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  animation: taut var(--duration-taut) var(--ease-taut) both;
}

.hero .line {
  background: var(--night-accent);
}

@keyframes taut {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.home p {
  font-size: var(--size-subtitle);
  color: var(--ink-muted);
}

/* reading pages: privacy, support, 404 */

.page {
  flex: 1;
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  padding: var(--space-huge) var(--space-lg) var(--space-giant);
  display: flex;
  flex-direction: column;
  gap: var(--space-xxxl);
}

/* The logo: the Hook glyph plus the Jost 500 wordmark, as in the design system's Wordmark lockup. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  font-family: var(--font-wordmark);
  font-size: var(--size-subtitle);
  font-weight: 500;
  letter-spacing: var(--tracking-wordmark);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.glyph {
  display: block;
  flex: none;
  width: 1em;
  height: 1em;
}

.glyph line {
  stroke: currentColor;
  stroke-width: 1.75;
}

.glyph path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.9;
}

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

.page header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-xxl);
}

.page h1 {
  font-size: var(--size-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.meta {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: var(--size-body-sm);
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.lead {
  font-size: var(--size-subtitle);
  line-height: 1.4;
  color: var(--ink-muted);
}

.page section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.page h2 {
  font-size: var(--size-subtitle);
  font-weight: 600;
  line-height: 1.25;
}

.page ul {
  padding-left: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.summary {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xxl);
}

.closing {
  color: var(--ink-muted);
}

/* about */

/* The About hero: the same photo hero as home, shorter and lighter, words left-aligned on the logo's edge. */
.hero.hero-left {
  min-height: 78vh;
  min-height: 78svh;
  align-items: stretch;
  padding: calc(var(--space-giant) * 2) 0 var(--space-giant);
  text-align: left;
}

.hero-left::before {
  background: var(--wash-night-light);
}

.hero-left .hero-photo {
  object-position: center 70%;
}

.hero-left .hero-lead {
  color: var(--night-ink);
}

/* One grid: every About section starts on the same left edge as the logo. */
.hero-copy,
.about-grid {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xxl);
}

.about-idea {
  padding-top: calc(var(--space-giant) * 2);
  padding-bottom: calc(var(--space-giant) * 2);
}

.about-idea p,
.closing-line {
  max-width: 900px;
  font-size: var(--size-figure-md);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* The two statements stay pinned on the left while the photos scroll past on the right. */
.about-who {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: var(--space-giant);
  padding-bottom: calc(var(--space-giant) * 3);
}

.about-who .statements {
  position: sticky;
  top: calc(var(--space-giant) * 2);
  max-width: none;
  margin: 0;
  padding: 0;
}

.activities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

/* Photos are shown as they are: full frame, no wash, no rounded corners. */
.tile {
  overflow: hidden;
}

.tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--duration-taut) var(--ease-standard);
}

@media (hover: hover) {
  .tile:hover img {
    transform: scale(1.04);
  }
}

/* The right column sits lower, so the four read as one staggered set rather than a row. */
.tile:nth-child(even) {
  transform: translateY(calc(var(--space-giant) + var(--space-huge)));
}

.about-close {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xxl);
  padding-bottom: calc(var(--space-giant) * 2);
}

/* The closing line is far below the fold, so it is drawn already taut. */
.about-close .line {
  animation: none;
}

/* phones */

@media (max-width: 600px) {
  /* No room for centered links beside the logo, so they get their own centered row under it. */
  .site-header {
    grid-template-columns: minmax(0, 1fr);
  }

  /* A taller tap target without moving the text. */
  .site-nav a {
    padding: var(--space-sm) 0;
  }

  .hero {
    min-height: 80svh;
    padding-top: calc(var(--space-giant) * 2);
  }

  /* Scales down with the screen so the headline always keeps its two lines; never larger than the token. */
  .hero h1 {
    font-size: min(var(--size-figure-md), 11vw);
  }

  .hero-lead {
    font-size: var(--size-body);
  }

  .statements {
    gap: var(--space-xxxl);
  }

  .statements p {
    font-size: var(--size-subtitle);
  }

  .line {
    width: 80px;
  }

  .hero.hero-left {
    min-height: 74svh;
    justify-content: flex-end;
  }

  .hero-left .hero-photo {
    object-position: 30% 70%;
  }

  .about-idea {
    padding-top: var(--space-giant);
    padding-bottom: var(--space-giant);
  }

  .about-idea p,
  .closing-line {
    font-size: var(--size-title);
  }

  .about-who {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-huge);
    padding-bottom: calc(var(--space-giant) * 1.5);
  }

  .about-who .statements {
    position: static;
  }

  .activities {
    gap: var(--space-sm);
  }

  .tile:nth-child(even) {
    transform: none;
  }

  .about-close {
    padding-bottom: var(--space-giant);
  }

  .page {
    padding-top: var(--space-xxl);
  }

  .summary {
    padding: var(--space-lg) var(--space-xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .line,
  .hero-photo,
  .hero h1,
  .hero-lead,
  .hero-action {
    animation: none;
  }

  .tile img {
    transition: none;
  }

  a {
    transition: none;
  }
}
