/* Tech Conference Speaker — site styles. Same design as zerotoaccessible.com.
   Type: Atkinson Hyperlegible Next (Braille Institute; made for low-vision readers), self-hosted.
   Sizes in rem so the whole page follows the reader's browser text size. */

@font-face { font-family: "Atkinson Next"; font-weight: 400; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Next"; font-weight: 700; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Next"; font-weight: 400; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Atkinson Next"; font-weight: 700; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --ink: #14213d;        /* text, 15.9:1 on paper */
  --paper: #ffffff;
  --mist: #edf1f7;       /* panels and cards */
  --line: #8a96ab;       /* borders, 3.1:1 on paper */
  --muted: #475569;      /* secondary text, 7.6:1 on paper, 6.7:1 on mist */
  --accent: #2f3fcf;     /* links and the main button, 7.1:1; white on it 7.1:1 */
  --accent-ink: #ffffff;
  --font: "Atkinson Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f8; --paper: #0f1626; --mist: #1a2438; --line: #6f7d96; --muted: #b8c2d3;
    --accent: #9fb0ff; --accent-ink: #0f1626;
  }
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 1rem; top: -10rem; background: var(--paper); color: var(--accent); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 0.95rem; }

/* Header and tabs. The current tab is marked with aria-current="page" and a bar. */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center; justify-content: space-between; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; }
/* The logo is white on transparent; used as a mask it takes the text colour in light and dark mode. */
.brand::before {
  content: ""; flex: none; width: 2.25rem; height: 2.25rem; background-color: currentColor;
  -webkit-mask: url("/assets/mic.svg") center / contain no-repeat;
          mask: url("/assets/mic.svg") center / contain no-repeat;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; display: inline-block; padding-block: 0.55rem 0.4rem; border-bottom: 3px solid transparent; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 700; text-decoration: none; }

/* Type scale (1.25) */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.44rem); scroll-margin-top: 1rem; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.32rem; line-height: 1.5; color: var(--muted); max-width: 44ch; }

section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
section + section { border-top: 1px solid var(--line); }
section .wrap > p, section .wrap > h3, section .wrap > ul.plain-list { max-width: var(--measure); }
.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.page-head + section { border-top: 0; }
.tinted { background: var(--mist); }

/* Buttons: links or buttons, at least 44 px tall */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.7rem 1.35rem; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none;
  border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--accent); }
.button.small { min-height: 2.75rem; padding: 0.45rem 1.05rem; font-size: 1rem; }

/* Home hero */
.home-hero { --hero-mark: var(--ink); background: var(--mist); border-bottom: 1px solid var(--line); padding-block: 0; overflow: hidden; }
@media (prefers-color-scheme: dark) { .home-hero { --hero-mark: var(--accent); } }
.home-hero .wrap { display: grid; gap: 0 3rem; align-items: center; }
.hero-text { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) 1rem; }
.home-hero h1 { max-width: 17ch; }
.home-hero .lede { max-width: 48ch; }
/* The big logo, drawn in the text colour (decorative) */
.hero-mark { justify-self: center; width: min(13rem, 60vw); aspect-ratio: 1; margin-bottom: 2.5rem; background-color: var(--hero-mark);
  -webkit-mask: url("/assets/mic.svg") center / contain no-repeat; mask: url("/assets/mic.svg") center / contain no-repeat; }
@media (min-width: 60rem) {
  .home-hero .wrap { grid-template-columns: 1.4fr 1fr; min-height: clamp(26rem, 36vw, 34rem); }
  .hero-text { padding-block: 4rem; }
  .hero-mark { width: min(20rem, 100%); margin: 3rem 0; }
}

/* Cards */
.cards { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 60rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--mist); border-radius: 20px; padding: 1.25rem 1.4rem; display: flex; flex-direction: column; }
.tinted .card { background: var(--paper); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); }
.card .button { align-self: flex-start; margin-top: auto; }
.card-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 0.9rem;
  border-radius: 14px; background: var(--paper); color: var(--accent); border: 1px solid var(--line); }

/* Lists */
.plain-list { padding-left: 1.2rem; margin: 0 0 1em; }
.plain-list li { margin-bottom: 0.55rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: var(--measure); }
.steps > li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.5rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-weight: 700; display: grid; place-items: center; font-size: 1rem;
}
.steps strong { display: block; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding-block: 0.4rem; max-width: var(--measure); }
summary { cursor: pointer; font-weight: 700; padding-block: 0.7rem; min-height: 2.75rem; }
details p { margin-top: 0.25rem; }

/* Forms. Each form builds an email; nothing is stored on this site. */
.form { max-width: 38rem; margin-top: 1.5rem; }
.field { margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; padding: 0; margin-bottom: 0.25rem; }
.hint { display: block; color: var(--muted); font-size: 1rem; margin: 0 0 0.4rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="url"], .field textarea {
  display: block; width: 100%; min-height: 3rem; padding: 0.6rem 0.9rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px;
}
.field textarea { min-height: 7rem; resize: vertical; }
.choice { display: flex; gap: 0.75rem; align-items: center; min-height: 2.75rem; }
.choice input { width: 1.5rem; height: 1.5rem; margin: 0; flex: none; accent-color: var(--accent); }
.form-result { margin-top: 2rem; padding: 1.25rem 1.4rem; border: 2px solid var(--accent); border-radius: 20px; background: var(--mist); }
.form-result h3 { margin-top: 0; }
.form-result textarea { display: block; width: 100%; min-height: 12rem; padding: 0.6rem 0.9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; }

/* About: photo beside the text */
.about-split { display: grid; gap: 1.5rem 2.5rem; align-items: start; }
@media (min-width: 48rem) { .about-split { grid-template-columns: auto 1fr; } }
.portrait { width: 12rem; height: 12rem; max-width: 100%; border-radius: 50%; object-fit: cover; background: var(--mist); }
.book-split { display: grid; gap: 1.5rem 2.5rem; align-items: center; }
@media (min-width: 36rem) { .book-split { grid-template-columns: auto 1fr; } }
.book-split h2 { margin-top: 0; }
.book-cover { width: 10rem; height: auto; max-width: 100%; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgb(20 33 61 / 0.18); }
details .book-split { margin-top: 0.75rem; }
details .book-cover { width: 7rem; }
.connect-links { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.connect-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1.1rem;
  border: 2px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.connect-links a:hover { border-color: var(--accent); color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--muted); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer a { color: var(--ink); display: inline-block; padding-block: 0.5rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-contrast: more) { :root { --muted: var(--ink); --line: var(--ink); } }
@media (forced-colors: active) {
  .button { border: 2px solid ButtonText; }
  .brand::before, .hero-mark { background-color: CanvasText; }
  .card, .form-result { border: 1px solid CanvasText; }
  .card-icon { color: CanvasText; border-color: CanvasText; }
  .steps > li::before { border: 1px solid CanvasText; }
}
