:root {
  --ink: #1b1914;
  --muted: #5c564c;
  --paper: #f3efe6;
  --paper-2: #fffdf8;
  --line: #e3dac8;
  --green: #1a5c40;
  --deep: #13241c;
  --soft: #e7f2ec;
  --max: 1120px;
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(19, 36, 28, 0.08);
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(26, 92, 64, 0.08), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--deep);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  transform: translateY(-150%);
  background: var(--deep);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  min-height: 76px;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}

.brand img {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-toggle {
  display: none;
  appearance: none;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.brand { order: 1; }
.nav { order: 2; }
.header-end { order: 3; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.05rem;
  margin-left: auto;
}

.nav > a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
}

.nav > a[aria-current="page"] {
  color: var(--green);
  box-shadow: inset 0 -2px 0 var(--green);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-2);
}

.lang a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.lang a[aria-current="page"] {
  background: var(--deep);
  color: var(--paper);
}

.mast {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
  padding: 0.45rem 0 0.55rem;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 4.15rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  margin: 2.2rem 0 0.7rem;
}

h3 {
  font-size: 1.25rem;
  margin: 1.4rem 0 0.4rem;
}

.lede {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  line-height: 1.5;
  max-width: 38rem;
  margin: 1rem 0 0;
}

.page-head {
  padding: 1.4rem 0 0.4rem;
}

.page-head h1 {
  max-width: 18ch;
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  padding-bottom: 0.5rem;
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: #f4f0e6;
}

.btn-primary:hover {
  background: var(--deep);
  color: #f4f0e6;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.device {
  width: min(100%, 300px);
  margin-inline: auto;
  filter: drop-shadow(0 22px 30px rgba(19, 36, 28, 0.16));
}

.device img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  margin-top: 3rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-weight: 600;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 100%;
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  background: #efeae0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-media img {
  position: absolute;
  inset: 0.8rem;
  width: calc(100% - 1.6rem);
  height: calc(100% - 1.6rem);
  object-fit: contain;
  object-position: center;
}

.card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.card h3 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.layout {
  display: grid;
  gap: 1.5rem;
}

.prose {
  max-width: 68ch;
  hyphens: manual;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.pull {
  margin: 1.5rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--green);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.note,
figcaption,
.caption {
  color: var(--muted);
  font-size: 0.92rem;
}

figure {
  margin: 1.4rem 0 1.6rem;
}

.shot {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.shot img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.crumbs {
  margin-top: 1rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.crumbs li + li::before {
  content: "/";
  color: #b3aa9a;
}

.crumbs a {
  color: var(--muted);
}

.toc,
.worked,
.callout,
.read-next {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem 1rem;
  margin: 1.2rem 0 1.5rem;
}

.toc p,
.worked .kicker,
.read-next h2 {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.read-next ul {
  margin: 0;
  padding-left: 1.15rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.worked p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.formula {
  font-variant-numeric: tabular-nums;
  background: var(--soft);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
}

.sessions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.sessions li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem 1rem;
}

.when {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.sessions h3 {
  margin: 0 0 0.35rem;
}

.sessions p {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  background: var(--paper-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-variant-numeric: tabular-nums;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.4;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  min-height: 44px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--green);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p:last-child {
  margin-bottom: 0;
}

.glossary dt {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  margin-top: 1.3rem;
}

.glossary dd {
  margin: 0.3rem 0 0;
}

.refuse {
  display: grid;
  gap: 0.8rem;
}

.refuse article {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.refuse h3 {
  margin-top: 0;
}

.sources {
  padding-left: 1.2rem;
}

.site-footer {
  margin-top: 4rem;
  background: var(--deep);
  color: #e7e1d4;
  padding: 2.6rem 0 1.4rem;
}

.site-footer a {
  color: #f3efe6;
}

.site-footer a:focus-visible {
  outline-color: #f3efe6;
}

.foot-grid {
  display: grid;
  gap: 1.4rem;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.foot-grid h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: #c9c0b0;
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-grid li + li {
  margin-top: 0.3rem;
}

.legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 239, 230, 0.16);
  color: #cfc6b6;
  font-size: 0.92rem;
}

.legal p {
  margin: 0 0 0.7rem;
}

.updated {
  color: #c9c0b0;
  font-size: 0.85rem;
}

.plain-list {
  padding-left: 1.15rem;
}

@media (max-width: 899px) {
  .layout-side {
    display: flex;
    flex-direction: column;
  }

  .layout-side .toc {
    order: -1;
  }
}

@media (max-width: 820px) {
  .header-end {
    margin-left: auto;
    order: 2;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav {
    display: none;
    order: 3;
    margin-left: 0;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.2rem 0 0.8rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav > a {
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
    min-height: 44px;
  }

  .lang a {
    min-height: 44px;
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tr {
    display: block;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
  }

  tr:last-child {
    border-bottom: 0;
  }

  td {
    display: block;
    border: 0;
    padding: 0.35rem 0.85rem;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0.1rem;
  }
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .sessions {
    grid-template-columns: 1fr 1fr;
  }

  .refuse {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
  }

  .refuse article {
    border-top: 0;
    padding-top: 0;
  }

  .foot-grid {
    grid-template-columns: 1.4fr 0.7fr 0.8fr;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.7fr);
    gap: 2.5rem;
    padding-top: 0.6rem;
  }

  .layout-side {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }

  .layout-side .toc {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 720px) {
  .brand-sub {
    display: none;
  }

  .prose {
    hyphens: auto;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.25rem));
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .actions,
  .lang {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card,
  .shot,
  .toc {
    box-shadow: none;
  }
}
