/* Tutortle site styles. Fonts are self-hosted so no visitor data goes to a font CDN. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations");
  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: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2-variations");
  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: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  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+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: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/atkinson-hyperlegible-next-latin-ext-400-normal.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: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/atkinson-hyperlegible-next-latin-400-italic.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: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/atkinson-hyperlegible-next-latin-ext-400-italic.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: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  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+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: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("fonts/atkinson-hyperlegible-next-latin-ext-700-normal.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;
}

/* Pond palette */
:root {
  --lily: #eef3e8;        /* page */
  --reed: #d3e1cc;        /* rules, quiet surfaces */
  --ink: #13342c;         /* text */
  --ink-soft: #3f5d54;    /* secondary text */
  --moss: #2c6a4e;        /* links, buttons, turtle body */
  --moss-strong: #1f5139; /* button hover */
  --shell: #e3a43a;       /* mastered topics */
  --shell-base: #cfdfc6;  /* topics not yet mastered */
  --deep: #173d33;        /* safety band */
  --on-deep: #eef3e8;
  --on-deep-soft: #bcd2c4;
  --focus: #e3a43a;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Verdana", sans-serif;

  --measure: 66ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --page: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lily: #0f2620;
    --reed: #24463b;
    --ink: #e4ede0;
    --ink-soft: #b2c6ba;
    --moss: #7cc39c;
    --moss-strong: #a3d8b9;
    --shell: #efb24c;
    --shell-base: #2b5045;
    --deep: #0a1c17;
    --on-deep: #e4ede0;
    --on-deep-soft: #a9c0b3;
  }
}

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

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

body {
  margin: 0;
  background: var(--lily);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--moss); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--moss-strong); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--lily);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand svg { width: 2.1rem; height: 2.1rem; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--moss); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--moss); text-decoration: underline; }

/* Type */
h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}
p { margin: 0; max-width: var(--measure); }

.lede {
  font-size: clamp(1.2rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid var(--moss);
}
.button-primary { background: var(--moss); color: var(--lily); }
.button-primary:hover { background: var(--moss-strong); border-color: var(--moss-strong); color: var(--lily); }
.button-quiet { color: var(--moss); background: transparent; }
.button-quiet:hover { background: var(--reed); }

/* Hero */
.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero-copy { display: grid; gap: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.hero-turtle { margin: 0; justify-self: center; width: min(100%, 26rem); }
.hero-turtle figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-align: center;
  text-wrap: balance;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}

/* Turtle drawing */
.turtle .limb, .turtle .head { fill: var(--moss); }
.turtle .eye { fill: var(--lily); }
.turtle .shell-base { fill: var(--shell-base); }
.turtle .rim { fill: none; stroke: var(--moss); stroke-width: 9; }
.turtle .hex { fill: var(--shell-base); stroke: var(--moss); stroke-opacity: 0.45; stroke-width: 2; }
.turtle .hex.mastered {
  animation: master 0.55s ease-out both;
  animation-delay: var(--d, 0s);
}
@keyframes master {
  from { fill: var(--shell-base); }
  to { fill: var(--shell); }
}
@media (prefers-reduced-motion: reduce) {
  .turtle .hex.mastered { animation: none; fill: var(--shell); }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section + .section { border-top: 1.5px solid var(--reed); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; }

.problem-list {
  display: grid;
  gap: 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
.problem-list li { display: grid; gap: 0.5rem; align-content: start; }
.problem-list p { color: var(--ink-soft); }
@media (min-width: 760px) {
  .problem-list { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.team .wrap { display: grid; gap: 3rem; }
@media (min-width: 880px) {
  .team .wrap { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: start; }
}
.team-intro { display: grid; gap: 1rem; }
.team-intro p { color: var(--ink-soft); }

.roles { margin: 0; display: grid; }
.role {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.35rem 0;
  border-top: 1.5px solid var(--reed);
}
.role:last-child { border-bottom: 1.5px solid var(--reed); }
.role svg { grid-row: span 2; width: 2.25rem; height: 2.25rem; margin-top: 0.1rem; }
.role svg path { fill: var(--shell); stroke: var(--moss); stroke-width: 2.5; }
.role dt { font-family: var(--display); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.01em; }
.role dd { margin: 0; color: var(--ink-soft); }

/* Safety band */
.safety-band {
  background: var(--deep);
  color: var(--on-deep);
}
.safety-band h2, .safety-band h3 { color: var(--on-deep); }
.safety-band .lede { color: var(--on-deep-soft); }
.safety-band a { color: var(--shell); }
.safety-band a:hover { color: var(--on-deep); }

.promises {
  display: grid;
  gap: 2rem 3rem;
  margin: 3rem 0 2.5rem;
  padding: 0;
  list-style: none;
}
.promises li { display: grid; gap: 0.4rem; align-content: start; }
.promises p { color: var(--on-deep-soft); }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .promises { grid-template-columns: repeat(3, 1fr); } }

/* Beta */
.beta .wrap { display: grid; gap: 1.25rem; justify-items: start; }
.beta p { color: var(--ink-soft); }
.beta .button { margin-top: 0.75rem; }

/* Footer */
.site-footer { border-top: 1.5px solid var(--reed); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }

/* Long-form page */
.doc .wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.doc-head {
  display: grid;
  gap: 1.25rem;
  padding: clamp(2rem, 6vw, 4.5rem) 0 2.5rem;
  border-bottom: 1.5px solid var(--reed);
}
.doc-head h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.updated { font-size: 0.9375rem; color: var(--ink-soft); }

.doc-body { padding: 1rem 0 5rem; }
.doc-body section { padding-top: 2.5rem; }
.doc-body h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 0.9rem; }
.doc-body p + p { margin-top: 1rem; }
.doc-body ul, .doc-body ol { margin: 1rem 0 0; padding-left: 1.4rem; max-width: var(--measure); }
.doc-body li + li { margin-top: 0.6rem; }
.doc-body li::marker { color: var(--moss); }
.doc-body strong { font-weight: 700; }
.note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--shell);
  background: color-mix(in srgb, var(--shell) 12%, transparent);
  border-radius: 0 8px 8px 0;
  max-width: var(--measure);
}
