:root {
  color-scheme: light;
  --sp-bg: #f5f1e8;
  --sp-surface: #fffdf8;
  --sp-text: #183b32;
  --sp-muted: #5d6f65;
  --sp-border: #d8ded3;
  --sp-accent: #bc7358;
  --sp-accent-ink: #fffdf8;
  --sp-focus: #a45337;
  --sp-radius: 14px;
  --sp-deep: #234d40;
  --sp-soft: #e9eee6;
  --sp-line: #e9e9df;
  --sp-shadow: 0 14px 36px rgb(25 51 39 / 7%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--sp-focus); outline-offset: 3px; }
::selection { background: #d8b29b; color: #1b3027; }

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--sp-deep);
  color: white;
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(100% - 48px, 1700px);
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid #d9dfd3;
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}
.brand img { width: 179px; height: auto; }
.brand-kicker {
  padding-left: 18px;
  border-left: 1px solid #cdd6c9;
  color: var(--sp-muted);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-nav, .site-footer nav { display: flex; align-items: center; gap: 22px; }
.header-nav { margin-left: auto; }
.header-nav a, .site-footer a {
  color: var(--sp-muted);
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 4px;
}
.header-nav a:hover, .site-footer a:hover { color: var(--sp-deep); text-decoration: underline; }
.document-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
button, summary { -webkit-tap-highlight-color: transparent; }
.quiet-button, .solid-button, .tool-button, .mode-button, .export-menu summary, .sample-menu summary {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
}
.quiet-button { padding: 0 12px; background: transparent; color: var(--sp-deep); }
.quiet-button:hover { background: #e8ede5; }
.solid-button {
  padding: 0 17px;
  background: var(--sp-deep);
  color: #fffdf8;
  box-shadow: 0 2px 0 #15352b;
}
.solid-button:hover:not(:disabled) { background: #356653; }
.export-menu, .sample-menu { position: relative; }
.export-menu summary, .sample-menu summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  list-style: none;
  background: var(--sp-surface);
  border-color: var(--sp-border);
  color: var(--sp-deep);
  cursor: pointer;
}
.export-menu summary::-webkit-details-marker, .sample-menu summary::-webkit-details-marker { display: none; }
.export-menu[open] summary, .sample-menu[open] summary { border-color: var(--sp-deep); }
.export-options, .sample-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow);
}
.export-options button, .sample-options button {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sp-text);
  font-size: .85rem;
  text-align: left;
}
.export-options button:hover, .sample-options button:hover { background: var(--sp-soft); }
.export-options button:disabled, .sample-options button:disabled { background: transparent; }
.eyebrow {
  margin: 0;
  color: #9b5942;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sp-deep);
  font-size: .9rem;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link:hover { color: #9e563e; }
.site-footer {
  width: min(100% - 48px, 1700px);
  margin: 48px auto 0;
  padding: 23px 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #d9dfd3;
  color: var(--sp-muted);
  font-size: .82rem;
}
.site-footer-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.noscript-note {
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid #e3b9a4;
  border-radius: 8px;
  background: #fff7ef;
  color: #87452e;
}

/* Information pages share the same calm, readable shell. */
.info-main { width: min(100% - 48px, 980px); margin: 0 auto; }
.info-hero { padding: 70px 0 46px; border-bottom: 1px solid var(--sp-border); }
.info-hero h1 {
  max-width: 760px;
  margin: 12px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.info-hero p:last-child { max-width: 640px; margin: 0; color: var(--sp-muted); font-size: 1.08rem; }
.info-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 68px; padding: 43px 0 60px; }
.info-toc { position: sticky; top: 25px; align-self: start; }
.info-toc h2 { margin: 0 0 13px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.info-toc a { display: block; padding: 7px 0; color: var(--sp-muted); font-size: .88rem; text-decoration: none; }
.info-toc a:hover { color: var(--sp-deep); text-decoration: underline; }
.prose { max-width: 690px; color: #2a463b; }
.prose section { margin-bottom: 42px; scroll-margin-top: 24px; }
.prose h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; letter-spacing: -.02em; }
.prose h3 { margin: 22px 0 8px; font-size: 1rem; }
.prose p, .prose li { margin-top: 0; color: #465c50; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 23px; }
.prose li { padding-left: 3px; margin-bottom: 9px; }
.prose strong { color: var(--sp-text); }
.prose a { color: var(--sp-deep); text-underline-offset: 3px; }
.callout {
  margin: 18px 0 28px;
  padding: 18px 21px;
  border-left: 3px solid var(--sp-accent);
  border-radius: 0 8px 8px 0;
  background: #fffaf2;
}
.callout p:last-child { margin-bottom: 0; }
.page-back { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 25px; }

@media (max-width: 1080px) {
  .brand-kicker { display: none; }
  .site-header { gap: 14px; }
}
@media (max-width: 700px) {
  .site-header { width: min(100% - 32px, 1700px); padding: 8px 0; gap: 8px; flex-wrap: wrap; }
  .brand img { width: 152px; }
  .header-nav { margin-left: auto; gap: 15px; }
  .brand, .header-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .header-nav a { min-width: 44px; }
  .document-actions { width: 100%; gap: 2px; }
  .document-actions > button, .document-actions summary { min-width: 44px; min-height: 44px; }
  .export-options button, .sample-options button { min-height: 44px; }
  .document-actions .quiet-button { padding: 0 6px; }
  .document-actions .solid-button { padding: 0 8px; }
  .document-actions .export-menu { margin-left: auto; }
  .site-footer { width: min(100% - 32px, 1700px); align-items: center; margin-top: 35px; }
  .site-footer-bar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .info-main { width: min(100% - 32px, 980px); }
  .info-hero { padding: 50px 0 35px; }
  .info-layout { display: block; padding-top: 30px; }
  .info-toc { position: static; margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--sp-border); }
  .info-toc a { display: inline-block; margin-right: 18px; }
}
@media (max-width: 390px) {
  .document-actions > button, .document-actions summary { min-height: 44px; font-size: .8rem; }
  .document-actions .quiet-button { padding: 0 5px; }
  .document-actions .solid-button { padding: 0 7px; }
  .export-menu summary { padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
