@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/DMSans-Regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/DMSans-SemiBold.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/DMSans-Bold.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4efdf;
  --paper-2: #ece5cf;
  --ink: #191b20;
  --ink-2: #2a2d33;
  --muted: #5f5d52;
  --rule: #ddd3b4;
  --teal: #0d857e;
  --teal-h: #0a6c66;
  --on-teal: #ffffff;
  --gold: #b8912b;
  --gold-ink: #7a5f14;
  --card: #fbf8ee;
  --focus: #0d857e;
  --max: 42rem;
  --wide: 64rem;
  --shadow: 0 1px 2px rgba(60, 50, 10, 0.08), 0 8px 24px rgba(60, 50, 10, 0.08);
}

* { box-sizing: border-box; }

html { font-size: 106.25%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; display: block; height: auto; }

a {
  color: var(--teal);
  text-underline-offset: 0.15em;
}

a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  background: #fff;
  padding: 0.4rem 0.7rem;
  color: var(--ink);
}

.site-header {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 2px 0 0 var(--gold);
}

.site-header a { color: var(--ink); }

.header-inner, .footer-inner, .wrap, .home-hero {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: nowrap;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.wordmark:hover { text-decoration: none; }

.wordmark-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  font-size: 1.15rem;
}

.eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
  margin-bottom: 0.08rem;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.12rem;
}

.nav a:hover { text-decoration: none; }

.nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.wrap { padding: 1.8rem 0 3rem; }

.prose { width: min(var(--max), 100%); }

h1, h2, h3, .wordmark {
  font-family: "DM Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1, h2, h3 { margin: 0 0 0.7rem; }

h1 { font-size: 2.4rem; text-wrap: balance; }

h2 { font-size: 1.4rem; margin-top: 2.2rem; }

h3 { font-size: 1.12rem; margin-top: 1.6rem; }

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

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

li { margin-bottom: 0.35rem; }

.lede {
  font-size: 1.12rem;
  max-width: 40rem;
  color: var(--ink-2);
}

.muted, .fine { color: var(--muted); }

.fine { font-size: 0.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--on-teal);
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  min-height: 2.75rem;
  border-radius: 8px;
  border: 1px solid var(--teal);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  font-family: inherit;
  cursor: pointer;
}

.btn:hover {
  background: var(--teal-h);
  border-color: var(--teal-h);
  color: var(--on-teal);
  text-decoration: none;
  filter: none;
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--gold);
}

.btn-secondary:hover {
  background: var(--card);
  color: var(--teal);
  border-color: var(--gold);
}

.btn-header {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  min-height: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.25rem 0 0.6rem;
}

.actions-more {
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Home hero */
.home-hero {
  padding: 1.8rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.home-preview {
  display: block;
  max-width: 22rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-preview img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 16rem;
  object-fit: cover;
  object-position: top;
}

.home-preview:hover { text-decoration: none; }

.guide-card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.2rem;
  border-radius: 8px;
  max-width: var(--max);
}

.guide-card h2 { margin-top: 0; font-size: 1.2rem; }

.guide-card p:last-child { margin-bottom: 0; }

/* Guide sheet still */
.sheet-preview { margin: 0 0 1.6rem; }

.sheet-preview img {
  width: 100%;
  max-width: 40rem;
  height: auto;
  display: block;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.sheet-preview figcaption { margin-top: 0.6rem; }

.table-wrap { overflow-x: auto; margin-bottom: 1rem; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.65rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

th { font-weight: 600; width: 34%; }

.example {
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem 0.5rem;
  margin: 0 0 1.2rem;
}

.example h3 { margin-top: 0; }

.example .lbl {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 600;
  margin: 0.9rem 0 0.15rem;
}

.example p { margin: 0 0 0.15rem; }

.example p + .lbl, .example .block { margin-top: 0.2rem; }

.cd-panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.35rem 1.4rem 1.1rem;
  margin: 2.2rem 0 1rem;
  max-width: var(--max);
}

.cd-panel h2 { margin-top: 0.6rem; }

.cd-panel-logo { height: 28px; width: auto; }

.cd-panel .btn { margin: 0.4rem 0 0.6rem; }

.site-footer {
  border-top: 1px solid var(--gold);
  background: var(--paper-2);
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem 2rem;
  padding: 1.5rem 0 2rem;
}

.footer-brand img {
  height: 24px;
  width: auto;
  margin-bottom: 0.55rem;
}

.footer-brand p { margin: 0; max-width: 36rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.page-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

@media (min-width: 840px) {
  .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    grid-template-areas:
      "copy preview"
      "actions preview"
      "card preview"
      "panel panel";
    gap: 0.4rem 3rem;
    align-items: start;
  }
  .home-copy { grid-area: copy; }
  .home-actions { grid-area: actions; margin-top: 0.6rem; }
  .home-preview {
    grid-area: preview;
    margin-top: 0.2rem;
  }
  .home-preview img { max-height: none; object-fit: contain; }
  .guide-card { grid-area: card; margin-top: 1.4rem; }
  .home-hero > .cd-panel { grid-area: panel; margin-top: 1.6rem; }
}

@media (max-width: 560px) {
  html { font-size: 100%; }
  h1 { font-size: 1.85rem; }
  .btn-header { display: none; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .home-actions .btn { width: 100%; }
  .sheet-preview img {
    max-height: 20rem;
    object-fit: cover;
    object-position: top;
  }
  .header-inner { gap: 0.7rem; }
  .wordmark-text { font-size: 1.05rem; }
  .cd-panel .btn { width: 100%; }
}

@media (min-width: 561px) and (max-width: 839px) {
  .home-preview img { max-height: 16rem; }
}
