:root {
  color-scheme: light;
  --cream: #fffcf6;
  --shell: #fbf3e6;
  --teal: #17403f;
  --teal-soft: #e3eeec;
  --orange: #e2672f;
  --red: #c8432a;
  --gold: #c9a24a;
  --text: #4c5b5a;
  --serif: 'Assistant', sans-serif;
  --sans: 'Assistant', sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--teal);
  background:
    radial-gradient(ellipse at 90% 8%, rgba(201, 162, 74, .10), transparent 29rem),
    var(--cream);
  font: 400 17px/1.68 var(--sans);
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--red); }
a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  z-index: 10;
  top: -5rem;
  left: 1rem;
  padding: .65rem 1rem;
  border-radius: 6px;
  color: var(--cream);
  background: var(--teal);
}
.skip-link:focus { top: 1rem; }
.page-shell { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(23, 64, 63, .12);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  color: var(--teal);
  font: 700 1.35rem/1 var(--serif);
  letter-spacing: -.025em;
  text-decoration: none;
}
.brand img { width: 35px; height: 35px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav a[aria-current="page"]::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-left: .45rem;
  border-radius: 50%;
  background: var(--orange);
}
main { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem); }
.page-intro { max-width: 760px; margin-bottom: 2.25rem; }
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--orange);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--teal);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.035em;
}
h1 { max-width: 800px; font-size: clamp(2.6rem, 7vw, 5.1rem); line-height: 1.02; }
h1 em { color: var(--red); font-weight: 500; }
h2 { margin-top: 2rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; }
p { margin: 1rem 0 0; color: var(--text); }
.lead { max-width: 620px; margin-top: 1.2rem; font-size: clamp(1.05rem, 2vw, 1.2rem); }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 6.5rem);
}
.side-note {
  position: relative;
  padding: 1.5rem 1.5rem 1.65rem;
  border: 1px solid rgba(201, 162, 74, .46);
  border-radius: 6px 24px 6px 24px;
  background: var(--shell);
}
.side-note::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  width: 42px;
  height: 14px;
  border-radius: 2px;
  background: #e9d5a8;
  transform: rotate(-4deg);
}
.side-note h2 { margin-top: 0; font-size: 1.5rem; }
.form-card {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid rgba(23, 64, 63, .12);
  border-radius: 20px 6px 20px 6px;
  background: #fffaf0;
  box-shadow: 0 20px 50px -42px rgba(23, 64, 63, .55);
}
.form-card h2 { margin: 0 0 1.4rem; font-size: 1.8rem; }
.field { margin-top: 1.15rem; }
.field label { display: block; margin-bottom: .45rem; color: var(--teal); font-size: .9rem; font-weight: 700; }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .75rem .85rem;
  border: 1px solid #c8c1b2;
  border-radius: 6px;
  color: var(--teal);
  background: var(--cream);
  font: inherit;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #77807b; opacity: 1; }
.hint { margin-top: .4rem; font-size: .8rem; }
.trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.4rem;
  padding: 0 1.35rem;
  border: 1px solid var(--teal);
  border-radius: 6px;
  color: var(--cream);
  background: var(--teal);
  font: 700 .95rem var(--sans);
  cursor: pointer;
}
.submit-button:hover { border-color: #1f5553; background: #1f5553; }
.form-footnote { margin-top: 1rem; font-size: .82rem; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.2rem; }
.prose p { margin-top: .8rem; }
.prose ul { padding-left: 1.25rem; color: var(--text); }
.prose li + li { margin-top: .45rem; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-group-title { margin: 2.5rem 0 1rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.guide-card {
  display: flex; flex-direction: column; min-height: 190px; padding: 1.2rem;
  border: 1px solid rgba(23, 64, 63, .13); border-radius: 18px 6px 18px 6px;
  background: #fffaf0; box-shadow: 0 16px 34px -30px rgba(23, 64, 63, .55);
  text-decoration: none;
}
.guide-card .eyebrow { margin-bottom: .5rem; }
.guide-card h2 { margin: 0; font-size: 1.45rem; }
.guide-card p { margin-top: .55rem; font-size: .95rem; }
.guide-card span:last-child { margin-top: auto; padding-top: 1rem; color: var(--red); font-size: .88rem; font-weight: 800; }
.guide-article { max-width: 790px; }
.guide-article .page-intro { margin-bottom: 1.5rem; }
.guide-article h2 { margin-top: 2rem; }
.guide-article h3 { margin-top: 1.25rem; font-size: 1.2rem; }
.guide-article ul, .guide-article ol { padding-left: 1.3rem; color: var(--text); }
.guide-article li + li { margin-top: .5rem; }
.guide-byline { margin-top: .8rem; color: var(--text); font-size: .9rem; }
.guide-callout { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border-left: 4px solid var(--orange); border-radius: 4px 14px 14px 4px; background: var(--shell); }
.guide-callout p { margin: 0; }
.guide-share { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 1.6rem 0; }
.guide-share a, .guide-share button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: .55rem .9rem; border: 1px solid rgba(23, 64, 63, .25); border-radius: 999px;
  color: var(--teal); background: #fffaf0; font: 700 .9rem var(--sans); text-decoration: none; cursor: pointer;
}
.guide-share a:first-child { color: white; border-color: #1d6f52; background: #1d6f52; }
.guide-feedback { min-height: 1.5em; margin: 0; font-size: .85rem; }
.guide-related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(23, 64, 63, .14); }
.guide-related h2 { margin-top: 0; }
.guide-related ul { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding-left: 1.2rem; }
.related-tools { margin-top: 2rem; }
.related-tools > h2 { margin: 0 0 .8rem; font-size: 1.35rem; }
.related-tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .75rem; }
.related-tool-card {
  display: flex; flex-direction: column; gap: .45rem; min-height: 132px; padding: 1rem;
  border: 1px solid rgba(23, 64, 63, .13); border-radius: 16px 6px 16px 6px;
  color: var(--teal); background: #fffaf0; box-shadow: 0 16px 34px -30px rgba(23, 64, 63, .55);
  text-decoration: none;
}
.related-tool-card strong { font-size: 1rem; line-height: 1.35; }
.related-tool-action { margin-top: auto; color: var(--red); font-size: .85rem; font-weight: 800; }
.footer-tools { flex-basis: 100%; width: 100%; padding-top: 1.1rem; border-top: 1px solid rgba(23, 64, 63, .12); }
.footer-tools h2 { margin: 0 0 .65rem; color: var(--teal); font: 800 .92rem var(--sans); }
.footer-tools ul { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.footer-tools a { display: inline-flex; align-items: center; min-height: 36px; font-size: .82rem; font-weight: 600; }
.guide-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 2rem; padding: 1.25rem; border-radius: 18px 6px 18px 6px; color: #fffaf0; background: var(--teal);
}
.guide-cta h2 { margin: 0; color: #fffaf0; font-size: 1.5rem; }
.guide-cta p { margin: .35rem 0 0; color: #e3eeec; }
.guide-cta-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.guide-cta-links a { display: inline-flex; align-items: center; min-height: 42px; padding: .5rem .8rem; border-radius: 6px; color: var(--teal); background: #fffaf0; font-weight: 800; text-decoration: none; }
.guide-cta-links a:last-child { color: #fffaf0; border: 1px solid rgba(255, 250, 240, .65); background: transparent; }
.not-found {
  max-width: 790px;
  padding: clamp(1.5rem, 6vw, 4rem);
  border-radius: 28px 6px 28px 6px;
  background: var(--shell);
}
.not-found h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
.not-found .lead { max-width: 590px; }
.home-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 1.6rem;
  padding: 0 1.3rem;
  border-radius: 6px;
  color: var(--cream);
  background: var(--teal);
  font-weight: 700;
  text-decoration: none;
}
.home-button:hover { color: var(--cream); background: #1f5553; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid rgba(23, 64, 63, .14);
  color: var(--text);
  font-size: .85rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }

@media (max-width: 700px) {
  .page-shell { width: min(100% - 1.5rem, 1120px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: .25rem; min-height: 68px; padding-block: .55rem; }
  .brand { font-size: 1.15rem; gap: .45rem; }
  .brand img { width: 30px; height: 30px; }
  .site-nav { width: 100%; justify-content: flex-start; gap: .35rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; padding-inline: .5rem; font-size: .9rem; white-space: nowrap; }
  .content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .guide-list { grid-template-columns: 1fr; }
  .related-tools-grid { grid-template-columns: 1fr; }
  .side-note { order: 2; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 390px) {
  .site-nav { gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
