/*
 * Concertmaster holding page styles.
 * Tokens: the Concertmaster design system (tokens.json, version 7).
 * Layout: phone first; the desktop layout starts at bp-listing (900px).
 */

/* Fonts, self-hosted (no request to Google). Fraunces is variable: weight and optical size. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/archivo-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/archivo-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/archivo-latin-500.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/archivo-latin-ext-500.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/archivo-latin-600.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/archivo-latin-ext-600.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* Colour */
  --surface: #ffffff;
  --surface-raised: #fafafa;
  --surface-sunk: #f0f0f0;
  --ink: #1b1b1b;
  --ink-muted: #565656;
  --ink-disabled: #767676;
  --chilli: #b32820;
  --chilli-hover: #96201a;
  --chilli-pressed: #7f1a15;
  --on-chilli: #fff5f3;
  --line: #bdbdbd;
  --line-strong: #8a8a8a;
  --scrim: rgba(27, 27, 27, 0.6);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, sans-serif;

  /* Space, radius, borders */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --radius-control: 2px;
  --border-1: 1px;
  --border-2: 2px;
  --focus-offset: 2px;

  /* Layout */
  --gutter: var(--space-5);
  --header-offset: 96px;
}

@media (min-width: 900px) {
  :root { --gutter: 80px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/26px var(--sans);
  overflow-wrap: anywhere;
  font-size-adjust: from-font; /* keeps the fallback font the same size while the web font loads */
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
img { display: block; }

h1, .headline, .display {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}
h1 { font-size: 32px; line-height: 36px; letter-spacing: -0.01em; }
.headline { font-size: 24px; line-height: 30px; }
@media (min-width: 900px) {
  h1 { font-size: 44px; line-height: 46px; }
}

.meta { font-size: 14px; line-height: 20px; font-weight: 500; }
.note { font-size: 13px; line-height: 18px; }
.muted { color: var(--ink-muted); }
.measure { max-width: 34em; }

/* Links: always underlined in chilli */
a {
  color: var(--chilli);
  text-decoration: underline;
  text-decoration-thickness: var(--border-1);
  text-underline-offset: 3px;
}
a:hover { color: var(--chilli-hover); text-decoration-thickness: var(--border-2); }
a:active { color: var(--chilli-pressed); }

:focus-visible {
  outline: var(--border-2) solid var(--chilli);
  outline-offset: var(--focus-offset);
}

/* Text link action: a 44px row, meta size */
.action {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.action-strong { font-size: 16px; line-height: 20px; font-weight: 600; }

/* Buttons */
.button, .button-outline {
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 16px/20px var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button { background: var(--chilli); color: var(--on-chilli); border: 0; }
.button:hover { background: var(--chilli-hover); color: var(--on-chilli); }
.button:active { background: var(--chilli-pressed); color: var(--on-chilli); }
.button-outline { background: var(--surface); color: var(--ink); border: var(--border-1) solid var(--ink); }
.button-outline:hover { background: var(--surface-sunk); }

/* Page shell: at least the window's height; the footer sits at the bottom of short pages */
.site { min-height: 100vh; display: flex; flex-direction: column; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  padding: 0 var(--gutter);
  background: var(--surface);
  border-bottom: var(--border-1) solid var(--line);
  display: flex;
  align-items: center;
}

.lockup {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.lockup:hover, .lockup:active { color: var(--ink); }
.lockup img { flex-shrink: 0; }
.lockup-header { padding: var(--space-3) 0; gap: 10px; font-size: 28px; line-height: 34px; }
.lockup-footer { align-self: flex-start; gap: var(--space-2); font-size: 20px; line-height: 26px; }

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 32px var(--gutter) var(--space-5);
  background: var(--surface-raised);
  border-top: var(--border-1) solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.footer-top { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-brand { display: flex; flex-direction: column; gap: var(--space-1); }
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-5);
}
.footer-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.footer-legal { padding-top: var(--space-4); border-top: var(--border-1) solid var(--line); }

@media (min-width: 900px) {
  .site-footer { padding-top: var(--space-6); }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: var(--space-6); }
  .footer-links { flex-wrap: nowrap; gap: 32px; }
}

/* Stacks */
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-tight { display: flex; flex-direction: column; gap: var(--space-2); }

/* Home */
main.home {
  padding: var(--space-6) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.home-presenters { padding-top: var(--space-5); border-top: var(--border-1) solid var(--line); }
@media (min-width: 900px) {
  main.home {
    padding: 64px var(--gutter) var(--space-6);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    grid-template-areas: "hero peek" "presenters peek";
    column-gap: 80px;
    row-gap: 0;
    align-items: start;
  }
  .home-hero { grid-area: hero; gap: var(--space-5); }
  .home-peek { grid-area: peek; }
  .home-presenters { grid-area: presenters; margin-top: var(--space-5); }
}

/* Privacy */
main.privacy {
  padding: var(--space-5) var(--gutter) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.privacy-grid { display: flex; flex-direction: column; gap: 32px; }
.privacy-body { display: flex; flex-direction: column; gap: 32px; }
.privacy-body section {
  scroll-margin-top: var(--header-offset);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.privacy-body h2 { font: 600 24px/30px var(--display); }
.privacy-body strong { font-weight: 600; }
.services { padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }

.toc {
  padding: var(--space-4);
  background: var(--surface-raised);
  border: var(--border-1) solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.toc h2 { font: 600 14px/20px var(--sans); }
.toc ol { list-style: none; padding: 0; }
.toc a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
}

@media (min-width: 900px) {
  main.privacy { padding: var(--space-6) var(--gutter) 64px; gap: var(--space-6); }
  .privacy-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 680px);
    grid-template-rows: auto 1fr;
    grid-template-areas: "toc intro" "toc body";
    column-gap: 80px;
    row-gap: var(--space-6);
    align-items: start;
  }
  .privacy-intro { grid-area: intro; }
  .privacy-body { grid-area: body; gap: var(--space-6); }
  .toc {
    grid-area: toc;
    position: sticky;
    top: var(--header-offset);
    padding: 0 0 0 var(--space-4);
    background: none;
    border: 0;
    border-left: var(--border-2) solid var(--chilli);
  }
  .toc a { min-height: 36px; font-size: 14px; }
}

/* 404 */
main.not-found {
  padding: var(--space-6) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.eyebrow {
  font-size: 12px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.actions { display: flex; flex-direction: column; }
@media (min-width: 900px) {
  main.not-found { padding: 64px var(--gutter); gap: var(--space-5); }
}

/* Leaving notice: a native modal dialog */
dialog.leave {
  width: calc(100% - 48px);
  max-width: 440px;
  padding: var(--space-5);
  border: var(--border-1) solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
}
dialog.leave::backdrop { background: var(--scrim); }
dialog.leave[open] { display: flex; flex-direction: column; gap: var(--space-4); }
dialog.leave h2 { font: 600 24px/30px var(--display); }
.leave-note { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.leave-note[hidden] { display: none; }
.leave-actions { display: flex; flex-direction: column; gap: var(--space-2); }
@media (min-width: 900px) {
  dialog.leave { width: 480px; max-width: calc(100% - 48px); }
}

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