:root {
  color-scheme: light dark;
  --paper: #f7f8f1;
  --ink: #173434;
  --muted: #496160;
  --teal: #08656a;
  --button-ink: #fff;
  --line: #ccdcd5;
  --panel: #e8f0e9;
  --selection: #d7ebe4;
  --footer: #173535;
  --footer-text: #eef6ef;
  --footer-muted: #c7dbd1;
  --round: 1rem;
  --intro-top: clamp(1.25rem, 3.2vw, 3rem);
  --gutter: clamp(1.125rem, 4.2vw, 3.25rem);
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, dl, dd, ol { margin: 0; }
a { color: var(--teal); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .12em; }
::selection { color: var(--ink); background: var(--selection); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

.wrap { width: min(75rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.masthead-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .2rem clamp(1rem, 3vw, 2.6rem); min-height: 4.4rem; }
.wordmark { display: inline-flex; align-items: center; gap: .72rem; min-height: 44px; width: fit-content; color: inherit; text-decoration: none; font-size: 1.12rem; font-weight: 700; }
.wordmark img { width: 2.375rem; height: 2.375rem; border-radius: .65rem; }
.wordmark-with-subtitle { padding-block: .3rem; }
.wordmark-with-subtitle img { flex: none; }
.wordmark-label { display: grid; gap: .16rem; min-width: 0; line-height: 1.2; }
.wordmark-subtitle { color: var(--muted); font-size: .77rem; font-weight: 550; }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem clamp(.9rem, 2.8vw, 2.1rem); }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; font-size: .94rem; text-decoration: none; }
.primary-nav a:hover, .primary-nav [aria-current="page"] { color: var(--teal); text-decoration: underline; }
.language-menu { position: relative; z-index: 2; }
.language-menu summary {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  width: max-content;
  padding-inline: .55rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  cursor: pointer;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 650;
  list-style: none;
}
.language-menu summary:hover, .language-menu[open] summary { color: var(--teal); background: var(--selection); }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu nav { position: absolute; inset-inline-end: 0; min-width: 8rem; padding: .3rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); }
.language-menu nav a { display: flex; align-items: center; min-height: 44px; padding: .35rem .65rem; border-radius: .46rem; text-decoration: none; white-space: nowrap; }
.language-menu nav a:hover, .language-menu nav [aria-current] { background: var(--selection); }

h1, h2 { line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }

.reader-page { background: var(--panel); }
.reader-heading {
  padding-block: var(--intro-top);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.reader-heading h1 {
  font-size: clamp(2.2rem, 5vw, 3.95rem);
  font-weight: 750;
}
.reader-intro {
  margin-top: .8rem;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.45vw, 1.2rem);
  text-wrap: pretty;
}
.reader-date { margin-top: .85rem; color: var(--muted); font-size: .9rem; }
.reader-article { padding-bottom: clamp(2.2rem, 5vw, 4.5rem); }
.reader-article section { padding-block: clamp(1.45rem, 4vw, 2.35rem); }
.reader-article section + section, .reader-contact { border-top: 1px solid var(--line); }
.reader-article h2 { font-size: clamp(1.24rem, 2.5vw, 1.65rem); font-weight: 720; }
.reader-article section p { margin-top: .62rem; line-height: 1.75; overflow-wrap: anywhere; }
.reader-contact { padding-top: 1.25rem; color: var(--muted); }
.reader-contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.4rem; }
.reader-contact-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; overflow-wrap: anywhere; }


.policy-section > div > p:first-child { margin-top: 0; }

.support-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(.95rem, 2.7vw, 2rem);
  margin-top: clamp(.45rem, 1vw, .9rem);
}
.support-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
}
.reader-article .support-tutorials { padding-top: 0; }
.support-lesson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.25rem, 3vw, 2.1rem);
}
.support-lesson:not(:last-child) { border-bottom: 1px solid var(--line); }
.support-lesson h2, .support-faq > h2, .policy-section > h2 {
  font-size: clamp(1.25rem, 2.15vw, 1.65rem);
  line-height: 1.35;
}
.support-lesson ol {
  max-width: 46rem;
  margin-top: .95rem;
  padding-inline-start: 1.6rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.45vw, 1.22rem);
  line-height: 1.75;
}
.support-lesson li + li { margin-top: clamp(.75rem, 1.25vw, 1.05rem); }
.support-lesson li::marker { color: var(--teal); font-weight: 700; }
.support-device {
  position: relative;
  width: min(100%, 14rem);
  margin-inline: auto;
  padding: .37rem;
  border: 1px solid #58706f;
  border-radius: 1.65rem;
  background: #152d2e;
  box-shadow: 0 10px 24px #0002;
}
.support-device::before, .support-device::after {
  position: absolute;
  width: 2px;
  border-radius: 2px;
  background: #58706f;
  content: "";
}
.support-device::before {
  inset-inline-start: -3px;
  top: 17%;
  height: 5%;
  box-shadow: 0 1.75rem #58706f;
}
.support-device::after {
  inset-inline-end: -3px;
  top: 22%;
  height: 8%;
}
.support-recording {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  background: #101e1e;
}
.support-faq {
  --faq-row-height: 3.35rem;
  --faq-question-size: clamp(1.02rem, 1.55vw, 1.2rem);
}

.support-faq, .policy-section, .privacy-page .reader-contact {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(.85rem, 4.2vw, 3.5rem);
}
.privacy-page .reader-contact { align-items: center; }
.support-answer + .support-answer { border-top: 1px solid var(--line); }
.support-answer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--faq-row-height);
  padding: .55rem 0;
  font-size: var(--faq-question-size);
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.support-answer summary::-webkit-details-marker { display: none; }
.support-answer summary:hover, .support-answer[open] summary { color: var(--teal); }
.support-answer-icon {
  position: relative;
  flex: 0 0 1rem;
  height: 1rem;
  color: var(--teal);
}
.support-answer-icon::before, .support-answer-icon::after {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  content: "";
}
.support-answer-icon::before { width: .8rem; height: 2px; }
.support-answer-icon::after { width: 2px; height: .8rem; }
.support-answer[open] .support-answer-icon::after { display: none; }
.support-answer-content { padding-bottom: 1rem; color: var(--muted); font-size: .95rem; }
.support-answer-content p:first-child { margin-top: 0; }
@media (width > 44rem) {
  .support-faq > h2 {
    margin-block-start: calc((var(--faq-row-height) - 1.4 * var(--faq-question-size)) / 2);
  }
}
@media (max-width: 44rem) {
  .support-lesson, .support-faq, .policy-section, .privacy-page .reader-contact { grid-template-columns: 1fr; }
  .support-faq, .policy-section, .privacy-page .reader-contact { gap: .65rem; }
}

footer { background: var(--footer); color: var(--footer-text); }
.footer-layout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem 1.9rem; padding-block: 1.8rem; }
.footer-layout .wordmark-subtitle { color: var(--footer-muted); }
.footer-layout nav { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1.35rem; }
.footer-layout nav a { display: flex; min-height: 44px; align-items: center; color: inherit; font-size: .93rem; }
.footer-layout :focus-visible { outline-color: var(--footer-text); }

@media (max-width: 37rem) {
  .masthead-inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: .35rem .08rem; }
  .primary-nav { grid-row: 2; grid-column: 1 / -1; gap: .2rem clamp(.55rem, 3vw, 1.2rem); }
}

@media (max-width: 23rem) {
  html[lang="en"] .wordmark-with-subtitle { gap: .45rem; font-size: .94rem; }
  html[lang="en"] .wordmark-subtitle { font-size: .7rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101e1e;
    --ink: #ecf6ee;
    --muted: #b6cec4;
    --teal: #86d4ce;
    --button-ink: #102e2d;
    --line: #37524e;
    --panel: #1b302e;
    --selection: #294943;
    --footer: #0c1717;
    --footer-muted: #b6cec4;
  }
}
