/* james-sykes.com — one hand-written stylesheet, served as is */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --ground: #E8E7E3;
  --ground-hover: #DFDEDA;
  --ink: #0A0A0A;
  --body: #2A2A27;
  --mute: #55554F;
  --line: #BDBCB8;
  --accent: #FF4A1C;
  --on-dark: #E8E7E3;
  --on-dark-body: #C9C9C4;
  --on-dark-mute: #A3A39C;
  --line-on-dark: #3A3A38;
  --display: "Space Grotesk", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
.nw { white-space: nowrap; }
ol, ul { list-style: none; }
a { color: inherit; }
section[id], footer[id] { scroll-margin-top: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; padding: 12px 16px; background: var(--ink); color: var(--on-dark); z-index: 10; }
.skip:focus { left: 0; }

.frame { max-width: 1440px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

.lbl { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.mute { color: var(--mute); }
.arr { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Header ─────────────────────────────────────────── */
.top { display: grid; grid-template-columns: 3fr 7fr 2fr; min-height: 72px; border-bottom: 1px solid var(--line); }
.top > * { display: flex; align-items: center; }
.top > .brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 8px var(--pad); border-right: 1px solid var(--line); }
.brand-name { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
/* sits under the name, lined up with its first letter (mark width + gap) */
.brand-mail { margin-left: 30px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--mute); text-decoration: none; white-space: nowrap; }
.brand-mail:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.mark { width: 18px; height: 18px; background: var(--ink); flex-shrink: 0; }
.nav { justify-content: space-evenly; gap: 8px; padding: 0 16px; border-right: 1px solid var(--line); font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; text-decoration: none; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.cta-top { justify-content: space-between; gap: 16px; padding: 0 24px; background: var(--ink); color: var(--on-dark); font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.cta-top:hover { background: #262624; }
.dot { width: 10px; height: 10px; background: var(--accent); flex-shrink: 0; }

/* ── Home hero ──────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 9fr 3fr; border-bottom: 1px solid var(--line); }
.hero-main { padding: 96px var(--pad) 72px; border-right: 1px solid var(--line); min-width: 0; }
.hero h1 { margin-top: 40px; font-family: var(--display); font-weight: 700; font-size: clamp(54px, 9vw, 128px); line-height: 0.9; letter-spacing: -0.045em; }
.lede { margin-top: 48px; max-width: 680px; font-size: 22px; line-height: 1.5; color: var(--body); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.btn { display: inline-flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 28px; font-family: var(--mono); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.btn-solid { background: var(--ink); color: var(--on-dark); }
.btn-solid:hover { background: #262624; }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-dark); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #FF6B45; }
.btn-accent:focus-visible { outline-color: var(--on-dark); }

.range { display: flex; flex-direction: column; font-family: var(--mono); font-size: 14px; }
.range-head { padding: 24px; border-bottom: 1px solid var(--line); }
.range-list { flex-grow: 1; display: flex; flex-direction: column; }
.range-list li { flex-grow: 1; min-height: 76px; display: flex; align-items: stretch; border-bottom: 1px solid var(--line); border-right: 6px solid var(--accent); }
.range-list li:last-child { border-bottom: 0; }
.lvl { width: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.what { flex-grow: 1; padding: 14px 20px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.what b { font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; }
.what small { font-size: 13px; color: var(--mute); }

/* ── Inner page hero ────────────────────────────────── */
.page-hero { padding: 96px var(--pad) 80px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 40px; max-width: 1180px; font-family: var(--display); font-weight: 700; font-size: clamp(42px, 7vw, 104px); line-height: 0.94; letter-spacing: -0.045em; }
.page-hero .lede { max-width: 760px; }

/* ── Section scaffolding ────────────────────────────── */
.band { border-bottom: 1px solid var(--line); }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 48px var(--pad); }
.band-head.ruled { border-bottom: 1px solid var(--line); }
.band-head h2 { margin-top: 24px; max-width: 900px; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.3vw, 44px); line-height: 1.02; letter-spacing: -0.03em; }
.aside-copy { max-width: 460px; color: var(--body); }
/* the heading takes the spare width, so a long heading never pushes the side text underneath on wide screens */
.band-head > div:first-child { flex: 1 1 480px; min-width: 0; }
.band-head > .aside-copy { flex: 0 1 460px; }

.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-underline-offset: 5px; }
.aside-copy .more { display: flex; margin-top: 4px; color: var(--ink); }
.more-row { display: flex; flex-wrap: wrap; gap: 4px 32px; }

/* Cells: 1px gaps over a line-coloured ground give hairlines at any column count */
.cells { display: grid; gap: 1px; background: var(--line); }
.cells > * { background: var(--ground); }
.cells-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cells-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cells-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Track record ───────────────────────────────────── */
.band-head.over-waves { padding-bottom: 40px; }
.waves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wave { padding: 0 var(--pad) 44px; display: flex; flex-direction: column; }
.fins { height: 200px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--ink); }
/* twelve bars: 12 × 6.0417% + 11 × 2.5% = 100% */
.fins i { display: block; width: 100%; background: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 6.0417%, transparent 6.0417%, transparent 8.5417%); }
.w1 .fins i { height: 40%; }
.w2 .fins i { height: 60%; }
.w3 .fins i { height: 80%; }
.w4 .fins i { height: 100%; }
.now .fins i { background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 6.0417%, transparent 6.0417%, transparent 8.5417%); }
.wave-meta { display: flex; justify-content: space-between; margin-top: 20px; }
.when { display: inline-flex; align-items: center; gap: 8px; }
.sq { width: 8px; height: 8px; background: #A9A8A4; }
.now .sq { background: var(--accent); }
.wave h3 { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -0.025em; }
.wave > p:last-child { margin-top: 10px; font-size: 17px; color: var(--body); }

/* ── Questions ──────────────────────────────────────── */
.q { padding: 36px var(--pad) 44px; min-height: 300px; display: flex; flex-direction: column; gap: 20px; }
.q h3 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.08; letter-spacing: -0.025em; }
.a { margin-top: auto; padding-left: 24px; position: relative; font-size: 17px; color: var(--body); }
.a::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; background: var(--accent); }
.q-long { min-height: 0; padding-bottom: 48px; }
.q-long .a { margin-top: 4px; max-width: 600px; font-size: 18px; }

/* ── Focus and fit blocks ───────────────────────────── */
.focus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.focus-block { padding: 56px var(--pad) 48px; display: flex; flex-direction: column; gap: 24px; }
.focus-block h2 { margin-top: 40px; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.2vw, 60px); line-height: 0.95; letter-spacing: -0.04em; }
.focus-copy { max-width: 520px; }
.focus-ai { background: var(--accent); color: var(--ink); --rule: rgba(10, 10, 10, 0.45); }
.focus-sec { background: var(--ink); color: var(--on-dark); --rule: var(--line-on-dark); }
.focus-sec .lbl { color: var(--on-dark-mute); }
.focus-sec .focus-copy { color: var(--on-dark-body); }
.focus-sec .arr { color: var(--on-dark-mute); }
.focus-ai :focus-visible { outline-color: var(--ink); }
.ticks { margin-top: 8px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 15px; letter-spacing: 0.02em; }
.ticks li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.focus-block .more-row { margin-top: auto; padding-top: 8px; }

.fit .focus-block h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.03em; }
.fit .ticks { font-family: var(--text); font-size: 18px; letter-spacing: 0; }
.fit .ticks li { align-items: flex-start; padding: 16px 0; }
.fit .ticks .arr { margin-top: 5px; }

/* ── Points and modes ───────────────────────────────── */
.mode, .point { padding: 36px var(--pad) 48px; display: flex; flex-direction: column; gap: 14px; }
.mode h3 { margin-top: 40px; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.035em; }
.point h3 { margin-top: 32px; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.06; letter-spacing: -0.025em; }
.mode > p:last-child, .point > p:last-child { font-size: 17px; color: var(--body); }

/* ── Prose (About) ──────────────────────────────────── */
.prose { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 48px; padding: 64px var(--pad) 72px; }
.prose h2 { margin-top: 24px; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.3vw, 44px); line-height: 1.02; letter-spacing: -0.03em; }
.prose-body { max-width: 720px; display: flex; flex-direction: column; gap: 20px; font-size: 20px; line-height: 1.55; color: var(--body); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags li { padding: 8px 14px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }

/* ── Related links ──────────────────────────────────── */
.next { padding: 36px var(--pad) 44px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.next:hover { background: var(--ground-hover); }
.next-title { display: inline-flex; align-items: center; gap: 14px; margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -0.03em; }
.next-title .arr { width: 22px; height: 22px; }
.next-copy { max-width: 500px; font-size: 17px; color: var(--body); }

/* ── Contact ────────────────────────────────────────── */
.contact { background: var(--ink); color: var(--on-dark); }
.contact-main { padding: 96px var(--pad) 72px; }
.contact .lbl { color: var(--on-dark-mute); }
.contact h2 { margin-top: 32px; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 7.8vw, 112px); line-height: 0.9; letter-spacing: -0.045em; }
.mail { display: inline-block; margin-top: 56px; padding-bottom: 6px; border-bottom: 4px solid var(--accent); font-family: var(--display); font-weight: 500; font-size: clamp(22px, 3.4vw, 48px); letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.mail:hover { color: var(--accent); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 56px; }
.or { margin-top: 40px; }
.or + .mail { margin-top: 10px; }
.contact-copy { margin-top: 32px; max-width: 600px; font-size: 19px; color: var(--on-dark-mute); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 28px; padding: 12px var(--pad); border-top: 1px solid var(--line-on-dark); letter-spacing: 0.06em; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-nav a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 5px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px var(--pad); border-top: 1px solid var(--line-on-dark); letter-spacing: 0.06em; }

/* ── Tablet ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .top { grid-template-columns: auto 1fr auto; }
  .nav { font-size: 13px; letter-spacing: 0.04em; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-main { border-right: 0; padding: 72px var(--pad) 56px; }
  .range { border-top: 1px solid var(--line); }
  .range-list li { min-height: 64px; }
  .page-hero { padding: 72px var(--pad) 64px; }
  .waves { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .fins { height: 140px; }
  .cells-3, .cells-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q { min-height: 260px; }
  .q-long { min-height: 0; }
  .prose { grid-template-columns: minmax(0, 1fr); }
}

/* ── Narrow: the page links become a strip under the header that scrolls sideways ── */
@media (max-width: 1000px) {
  .top { grid-template-columns: 1fr auto; min-height: 0; }
  .top > .brand { min-height: 64px; border-right: 0; }
  .cta-top { min-height: 64px; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 24px; padding: 0 var(--pad); border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 0; }
}

/* ── Phone ──────────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  body { font-size: 17px; }
  .frame { border: 0; }
  .top > .brand { min-height: 64px; }
  .brand-name { font-size: 18px; }
  .mark { width: 14px; height: 14px; }
  .brand-mail { margin-left: 26px; }
  .cta-top { min-height: 60px; }
  .hero-main { padding: 48px var(--pad) 40px; }
  .hero h1, .page-hero h1 { margin-top: 28px; }
  .page-hero { padding: 48px var(--pad) 44px; }
  .lede { margin-top: 32px; font-size: 19px; }
  .actions { margin-top: 32px; flex-direction: column; align-items: stretch; }
  .btn { justify-content: space-between; padding: 0 20px; font-size: 14px; }
  .band-head { padding: 40px var(--pad) 32px; }
  .waves { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .wave { padding-bottom: 36px; }
  .fins { height: 88px; }
  .wave h3 { font-size: 26px; }
  .cells-2, .cells-3, .cells-4 { grid-template-columns: minmax(0, 1fr); }
  .q { min-height: 0; padding: 28px var(--pad) 32px; }
  .a { margin-top: 0; }
  .focus { grid-template-columns: minmax(0, 1fr); }
  .focus-block { padding: 40px var(--pad); gap: 20px; }
  .focus-block h2 { margin-top: 24px; }
  .mode, .point { padding: 28px var(--pad) 32px; }
  .mode h3, .point h3 { margin-top: 16px; }
  .prose { padding: 40px var(--pad) 48px; }
  .prose-body { font-size: 18px; }
  .next { padding: 28px var(--pad) 32px; }
  .contact-main { padding: 64px var(--pad) 48px; }
  .mail { margin-top: 40px; border-bottom-width: 3px; }
  .contact-actions { margin-top: 40px; }
  .contact-actions .btn { flex-grow: 1; }
  .cta-top { gap: 10px; padding: 0 14px; font-size: 13px; }
}

/* ── Very narrow phones: the header keeps the name and the booking button only ── */
@media (max-width: 370px) {
  .brand-mail { display: none; }
}
