/* Guide pages (/guides/). Same tokens, type and components as landing.css,
   so the whole site reads as one product. */
/* Self-hosted fonts (latin + latin-ext), bundled for offline use.
   Replaces the Google Fonts CDN link — no network needed. Files in fonts/. */
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/noto-serif-400-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: "Noto Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/noto-serif-400-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: "Noto Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/noto-serif-600-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: "Noto Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/noto-serif-600-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;
}
/* Fraunces — variable serif (wght 400–600), display face for the
   wordmark, headings and sentence text. Same self-hosted pattern. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  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: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  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: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/fraunces-italic-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: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/fraunces-italic-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-400-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-400-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-500-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-500-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-600-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-600-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-700-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-700-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;
}
/* ── Tokens: the /learn palette ─────────────────────────────── */
:root {
  --paper: #fbf9f4;
  --white: #ffffff;
  --sand: #f3efe6;
  --green: #1a4a2a;
  --green-l: #e7ecd9;
  --text: #29231a;
  --text-2: #56503e;
  --text-3: #736a55;
  --border: #ece6d8;
  --on-art: #fffdf4;
  --font-serif: "Fraunces", "Noto Serif", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
img {
  max-width: 100%;
  height: auto;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On the painting a green ring vanishes into the dark scrim. */
.closing a:focus-visible {
  outline-color: var(--on-art);
}
.wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 10;
  padding: 12px;
  background: var(--white);
}
.skip:focus {
  top: 10px;
}

/* Header — same geometry as the landing page, so it doesn't jump between them */
.site-header {
  max-width: 1408px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  line-height: normal;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 21px/1.1 var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--green);
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
}
.site-header nav {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 15px;
  color: var(--text-2);
}
.site-header nav a {
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.nav-download {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.nav-download:active {
  transform: scale(0.97);
}

/* Type */
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1,
h2 {
  color: var(--green);
}
h1 {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.12;
  margin-bottom: 18px;
}
h3 {
  font-size: 22px;
  line-height: 1.25;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  max-width: 58ch;
  color: var(--text-2);
}
.fine {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-3);
  margin: 16px 0 0;
}

/* Buttons and links */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.button:active {
  transform: scale(0.97);
}
.text-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
}
@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .nav-download:hover {
    background: #22593a;
  }
  .site-header nav a:hover {
    background: var(--white);
    color: var(--text);
  }
  a:hover {
    text-decoration-thickness: 2px;
  }
}

.section {
  padding-block: 64px 100px;
}

/* Guides index */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  margin-top: 36px;
}
/* Guide rows — the landing page's guide list: title + a chevron that nudges on hover.
   Also used by "Keep practising" under each article. */
.guide-card,
.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
}
.guide-card h3 {
  margin: 0;
  font-size: 22px;
}
.guide-card svg,
.related a svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .guide-card:hover,
  .related a:hover {
    color: var(--green);
  }
  .guide-card:hover svg,
  .related a:hover svg {
    transform: translateX(3px);
  }
}

/* Closing: a painted scene, like the landing page */
.closing {
  max-width: 1408px;
  margin: 0 auto;
  padding-inline: 16px;
}
.closing .wrap {
  width: auto;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 72px);
  border-radius: 28px;
  background: linear-gradient(to right, rgba(28, 20, 10, 0.64), rgba(28, 20, 10, 0.28) 55%, rgba(28, 20, 10, 0)),
    #c9b48c url("/assets/focus/all-categories.webp") center / cover;
  color: var(--on-art);
}
.closing h2 {
  color: var(--on-art);
  font-size: clamp(36px, 4.4vw, 56px);
}
.closing p {
  font-size: 18px;
  opacity: 0.92;
}
.closing .button {
  margin-top: 10px;
  background: var(--paper);
  color: var(--green);
}
.closing .fine {
  color: var(--on-art);
  opacity: 0.85;
}

/* Footer — one quiet row */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
  padding-block: 48px 56px;
  font-size: 15px;
  color: var(--text-3);
}
.footer > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
}
.footer .brand {
  font-size: 19px;
}
.footer p {
  margin: 0;
}
.footer small {
  width: 100%;
  font-size: 14px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer nav a {
  text-decoration: none;
}

/* Article */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 280px;
  gap: clamp(48px, 7vw, 100px);
  padding-block: 40px 100px;
}
.article-layout h1 {
  margin-top: 20px;
}
.article-layout article > section {
  margin-top: 48px;
  scroll-margin-top: 35px;
}
.article-layout article p,
.article-layout article li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
}
.article-layout li {
  margin-block: 10px;
}
.article-intro {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-2);
}
.byline,
.breadcrumbs {
  font-size: 14px;
  color: var(--text-3);
}
.breadcrumbs {
  margin-bottom: 20px;
}
.contents {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 22px 0;
  border-block: 1px solid var(--border);
  font-size: 15px;
}
.contents strong {
  font-weight: 600;
}
.contents a {
  color: var(--text-2);
}
.article-sidebar {
  align-self: start;
  position: sticky;
  top: 30px;
}
.article-sidebar img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
}
.article-sidebar h2 {
  font-size: 26px;
  margin: 22px 0 10px;
}
.article-sidebar p {
  font-size: 15px;
  color: var(--text-2);
}
.article-next {
  margin-top: 56px;
  padding: 32px;
  border-radius: 24px;
  background: var(--sand);
}
/* The sticky sidebar already shows the App Store button on desktop. */
.article-next .button {
  display: none;
}
.article-next .text-link {
  display: inline-block;
  margin-top: 6px;
}
.related {
  margin-top: 48px;
}
.related h2 {
  font-size: 26px;
}
.related a {
  padding: 14px 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
}
.article-layout article section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}
@media (max-width: 860px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header nav,
  .header-link {
    display: none;
  }
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
  }
  .lead {
    font-size: 17px;
  }
  .section {
    padding-block: 32px 64px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .closing {
    padding-inline: 12px;
  }
  .closing .wrap {
    border-radius: 24px;
    padding: 140px 22px 32px;
    background: linear-gradient(to top, rgba(28, 20, 10, 0.78), rgba(28, 20, 10, 0.1) 75%),
      #c9b48c url("/assets/focus/all-categories.webp") 40% center / cover;
  }
  .article-layout {
    display: block;
    padding-top: 20px;
  }
  .article-intro {
    font-size: 18px;
  }
  .article-sidebar {
    display: none;
  }
  .article-next {
    padding: 24px;
  }
  .article-next .button {
    display: inline-flex;
  }
  .article-next .text-link {
    display: block;
    margin-top: 18px;
  }
  .article-layout ol,
  .article-layout ul {
    padding-left: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button,
  .nav-download,
  .guide-card svg,
  .related a svg {
    transition: none;
  }
}
