:root {
  color-scheme: light;
  --paper: #f8f3e9;
  --white: #fffbf4;
  --ink: #252b24;
  --body: #413e35;
  --sub: #5c5346;
  --clay: #89442c;
  --line: #d8cdbb;
  --green: #294237;
  --dark: #20372e;
  --peach: #f1e0d1;
  --serif: Georgia,serif;
  --sans: Arial,sans-serif;
}

*,*::before,*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none!important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  min-width: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: .23em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #a74722;
  outline-offset: 4px;
}

.decoder-feature :focus-visible,.footer :focus-visible {
  outline-color: #ffbd8c;
}

button,input,textarea,select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 48vh;
}

p,ul,ol {
  margin: 0 0 1rem;
}

h1,h2,h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.02em;
  margin: 0 0 .55em;
  text-wrap: pretty;
}

h1 {
  font-size: clamp(3.3rem,6.2vw,6.4rem);
}

h2 {
  font-size: clamp(2.45rem,4vw,4.2rem);
}

h3 {
  font-size: clamp(1.8rem,2.6vw,2.55rem);
}

.wrap {
  width: min(1160px,calc(100% - 96px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  transform: translateY(-200%);
  background: var(--white);
  padding: .7rem 1rem;
}

.skip:focus {
  transform: none;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 1.04rem;
  letter-spacing: -.035em;
  line-height: 1.05;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-weight: 760;
}

.brand-last {
  display: block;
  font-weight: 500;
}

.brand-mark {
  height: 34px;
  width: 34px;
  border-radius: 8px;
  background: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: none;
}

.brand-mark i {
  display: block;
  width: 3px;
  height: 14px;
  border-radius: 3px;
  background: #f0d4ba;
  transform: translateY(4px);
}

.brand-mark i:nth-child(2) {
  transform: translateY(0);
}

.brand-mark i:nth-child(3) {
  transform: translateY(-4px);
}

.header-inner nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px,2.4vw,36px);
}

.header-inner nav a,.header-help {
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.2;
  padding-block: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.header-inner nav a:hover,.header-inner nav a[aria-current],.header-help:hover {
  text-decoration: underline;
}

.header-help {
  color: var(--clay);
}

.hero {
  padding-block: 45px 52px;
  display: grid;
  grid-template-columns: 1.17fr 1fr;
  gap: clamp(38px,7vw,110px);
  align-items: center;
}

.hero-portrait {
  position: relative;
  border-radius: 47% 47% 3px 3px / 34% 34% 3px 3px;
  background: #bd9375;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1/1.06;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.hero h1 {
  line-height: .86;
  letter-spacing: -.045em;
  margin: 0 0 24px;
  font-size: clamp(3.7rem,6.2vw,5.8rem);
}

.eyebrow {
  display: block;
  font: 700 .73rem/1.35 var(--sans);
  text-transform: uppercase;
  letter-spacing: .145em;
  color: var(--clay);
  margin: 0 0 15px;
}

.hero-lead,.lead {
  font-size: clamp(1.12rem,1.8vw,1.42rem);
  line-height: 1.48;
  color: var(--body);
  max-width: 42ch;
}

.hero-promise {
  font-size: 1rem;
  font-weight: 650;
  color: var(--green);
  max-width: 39ch;
  margin-top: 20px;
}

.actions {
  display: flex;
  gap: 12px 21px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button,.text-link {
  font-weight: 700;
  font-size: .91rem;
  line-height: 1.35;
  display: inline-flex;
  gap: .65rem;
  align-items: center;
}

.button {
  min-height: 48px;
  padding: .7rem 1.08rem;
  background: var(--green);
  color: var(--white);
  border: 1px solid var(--green);
  border-radius: 5px;
  text-decoration: none;
  justify-content: center;
}

.button:hover {
  background: var(--dark);
}

.button-secondary {
  background: var(--white);
  color: var(--dark);
  border-color: var(--line);
}

.button-secondary:hover {
  background: var(--peach);
}

.text-link {
  color: var(--green);
  text-decoration: underline;
}

.pathbar {
  background: #eee7d9;
  border-block: 1px solid var(--line);
}

.pathbar nav {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.pathbar a {
  min-height: 66px;
  justify-content: space-between;
  padding-inline: 24px;
  border-inline-start: 1px solid var(--line);
}

.pathbar a:last-child {
  border-inline-end: 1px solid var(--line);
}

.section {
  padding-block: clamp(45px,6.5vw,94px);
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-top h2,.split-intro h2 {
  margin-bottom: 0;
}

.section-top > a {
  padding-bottom: .25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px;
}

.card {
  position: relative;
  display: block;
  min-height: 155px;
  padding: 24px 24px 42px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.card:hover {
  border-color: var(--clay);
  background: #fdf1e4;
}

.card h3 {
  margin-bottom: 9px;
}

.card p {
  font-size: .92rem;
  color: var(--sub);
  margin-bottom: 0;
}

.card .eyebrow {
  font-size: .67rem;
  letter-spacing: .11em;
}

.card-arrow {
  position: absolute;
  right: 20px;
  bottom: 12px;
  color: var(--clay);
  font-weight: 800;
}

.decoder-zone {
  padding-top: 0;
}

.decoder-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(24px,6vw,90px);
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
  padding: clamp(25px,5.5vw,70px);
}

.decoder-feature .eyebrow {
  color: #f3cbb0;
}

.decoder-feature h2 {
  font-size: clamp(3rem,5.5vw,6rem);
  line-height: .93;
}

.decoder-feature p {
  max-width: 42ch;
}

.decoder-feature .button {
  margin-top: 10px;
}

.decoder-preview {
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  padding: clamp(16px,3vw,32px);
}

.preview-label {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
}

.preview-options {
  display: grid;
  gap: 7px;
}

.preview-options a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: .64rem .78rem;
  min-height: 44px;
  background: #f4ebdd;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--green);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.preview-options a:hover {
  background: var(--peach);
  text-decoration: underline;
}

.preview-privacy {
  font-size: .82rem;
  color: var(--sub);
  margin: 13px 0 0;
}

.split-intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(20px,5vw,65px);
  align-items: start;
}

.split-intro + .cards {
  margin-top: 28px;
}

.tint {
  background: var(--peach);
}

.page-head {
  padding-block: clamp(40px,7vw,88px) 30px;
  max-width: 930px;
}

.page-head h1 {
  margin-bottom: .3em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.page-head .lead {
  max-width: 65ch;
  margin-bottom: .7rem;
}

.crumbs {
  font-size: .84rem;
  color: var(--sub);
  padding-top: 14px;
}

.crumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.crumbs li+li::before {
  content: "/";
  padding-right: 10px;
  color: var(--clay);
}

.prose {
  max-width: 760px;
  margin: 0 0 64px;
  overflow-wrap: break-word;
}

.prose section {
  margin: 0 0 30px;
}

.prose h2,.tool-panel h2 {
  font-size: clamp(2rem,3.1vw,3rem);
  margin-bottom: .35em;
}

.prose p,.prose li {
  color: var(--body);
  font-size: 1.075rem;
  line-height: 1.7;
}

.prose li+li {
  margin-top: .4rem;
}

.prose .review-note {
  font-size: .88rem;
  background: #efe3d5;
  border-radius: 4px;
  padding: 11px 14px;
  margin-bottom: 30px;
}

.prose .refs {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.article-cta {
  background: var(--peach);
  border-radius: 6px;
  padding: 22px 25px;
  margin-top: 28px;
}

.footer {
  margin-top: 45px;
  background: var(--dark);
  color: var(--white);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 25px;
}

.footer .brand-mark {
  background: #425c4e;
}

.footer p {
  margin: .85rem 0 0;
  font-size: .9rem;
}

.footer nav {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: .91rem;
}

.footer nav a {
  padding-block: 6px;
}

.search-label, label.field {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin: .65rem 0 .35rem;
}

.search,textarea,select {
  display: block;
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid #827460;
  background: var(--white);
  border-radius: 5px;
}

.search {
  max-width: 560px;
  margin-bottom: .65rem;
}

#search-status {
  min-height: .8em;
}

.tool-page {
  max-width: 910px;
}

.tool-small {
  font-size: .91rem;
  color: var(--sub);
  margin-block: 12px;
}

.tool-panel {
  background: var(--white);
  padding: clamp(16px,4vw,48px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-panel:empty {
  display: none;
}

.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.tool-header p {
  margin: 0;
  font-weight: 700;
  font-size: .88rem;
  color: var(--clay);
}

progress {
  display: block;
  appearance: none;
  height: 7px;
  width: 100%;
  border: none;
  border-radius: 7px;
  margin-bottom: 24px;
  overflow: hidden;
  background: #e8dacc;
  color: var(--green);
}

progress::-webkit-progress-bar {
  background: #e8dacc;
}

progress::-webkit-progress-value {
  background: var(--green);
}

progress::-moz-progress-bar {
  background: var(--green);
}

.choice-list {
  padding: 0;
  margin: .8rem 0 1rem;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  list-style: none;
}

.choice {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  width: 100%;
  padding: 10px 12px;
  min-height: 47px;
  text-align: left;
  font-weight: 620;
}

.choice :is([type=checkbox],[type=radio]) {
  width: 18px;
  height: 18px;
  margin: .21rem 0 0;
  accent-color: var(--green);
  flex: none;
}

.choice:has(input:checked),.choice[aria-pressed=true] {
  border-color: var(--green);
  background: #e2e9dc;
}

.control-link {
  padding: .5rem 0;
  background: transparent;
  border: none;
  text-decoration: underline;
  text-underline-offset: .2em;
  font-weight: 660;
}

.control-link:hover {
  color: var(--clay);
}

.tool-actions {
  display: flex;
  gap: 7px 15px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0 0;
}

.tool-panel textarea {
  resize: vertical;
  min-height: 85px;
}

.tool-panel .long-note {
  min-height: 245px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.result-grid section,.tool-output {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  padding: 14px 16px;
  overflow-wrap: anywhere;
}

.result-grid h3 {
  font-size: 1.68rem;
  line-height: 1.03;
}

.result-grid p,.tool-output p {
  margin: 0;
}

.result-grid section:focus {
  outline: 3px solid var(--clay);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[tabindex="-1"]:focus {
  outline: none;
}

.tool-panel [tabindex="-1"]:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

.feedback {
  background: #eee5d8;
  border-radius: 5px;
  padding: 12px 15px;
  margin: 18px 0;
}

.feedback p {
  margin: 0;
}

.feedback .tool-actions {
  margin-top: .45rem;
}

.tool-output {
  margin-top: 18px;
}

blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.15;
}

@media(max-width:850px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .header-inner {
    gap: 8px 18px;
    flex-wrap: wrap;
    padding-block: 12px 3px;
  }
  .header-inner nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 6px 24px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
  }
  .hero {
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(3.3rem,6.8vw,4.9rem);
  }
  .hero {
    padding-block: 38px;
  }
  .card {
    padding: 19px 17px 38px;
  }
  .card-arrow {
    right: 16px;
  }
  .pathbar a {
    padding-inline: 13px;
  }
}

@media(max-width:650px) {
  .wrap {
    width: calc(100% - 34px);
  }
  .header-inner nav {
    display: grid;
    grid-template-columns: minmax(0,1.3fr) minmax(0,1.15fr) auto auto;
    gap: 7px 9px;
  }
  .header-inner nav a {
    font-size: .75rem;
    white-space: normal;
  }
  .header-help {
    font-size: .8rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 35px;
    gap: 25px;
  }
  .hero h1 {
    font-size: clamp(2.85rem,10.2vw,4.65rem);
  }
  .hero-lead {
    max-width: 35ch;
  }
  .hero-portrait {
    aspect-ratio: 1.23;
    max-width: 460px;
  }
  .hero-portrait img {
    object-position: center 38%;
  }
  .pathbar nav,.cards,.split-intro,.decoder-feature,.footer-grid {
    grid-template-columns: 1fr;
  }
  .pathbar a,.pathbar a:last-child {
    min-height: 47px;
    border-inline: 0;
    padding-inline: 1px;
  }
  .pathbar a+a {
    border-top: 1px solid var(--line);
  }
  .section-top {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .section {
    padding-block: 45px;
  }
  .decoder-zone {
    padding-top: 0;
  }
  .card {
    min-height: 130px;
  }
  .choice-list,.result-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    margin-top: 35px;
  }
  .crumbs {
    font-size: .78rem;
  }
  .page-head h1 {
    font-size: clamp(3.25rem,12vw,4.7rem);
  }
}

@media(max-width:340px) {
  .header-inner nav {
    grid-template-columns: 1.3fr 1fr;
  }
  .hero h1 {
    font-size: 2.58rem;
  }
  .page-head h1 {
    font-size: 2.72rem;
  }
}

.home-tool {
  margin-top: 18px;
}

@media(prefers-reduced-motion:no-preference) {
  .card,.button,.preview-options a {
    transition: background-color .16s ease,border-color .16s ease;
  }
}
