/* shoproutecedar.com - subpages (same header, footer and tokens as home.css) */
:root {
  --pine: #4A1A00;
  --pine-deep: #2E1000;
  --cedar: #A35C00;
  --cedar-deep: #7E4500;
  --cedar-soft: #F7E6D2;
  --amber: #D8914A;
  --orange: #C07A00;
  --paper: #FCF8F2;
  --white: #FFFFFF;
  --sage: #F6EEE2;
  --ink: #2A1708;
  --muted: #63503F;
  --line: #E8DCCB;
  --clay: #E3A979;
  --font-head: "Bona Nova", Georgia, "Times New Roman", serif;
  --font-body: "Gantari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--cedar-deep); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  background: var(--pine);
  border: 1.5px solid var(--pine);
  border-radius: var(--radius);
  transition: background-color .2s;
}
.btn:hover { background: var(--pine-deep); }
.btn-head { min-height: 44px; padding: 0 20px; font-size: .95rem; }

/* ---------- Header: logo, words, one CTA on the far right ---------- */
.site-head { position: static; background: var(--paper); }
.head-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { flex: none; }
.brand img { width: auto; height: 54px; }
.head-nav { display: flex; gap: 28px; }
.head-nav a {
  font-size: .98rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
}
.head-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.head-row .btn-head { margin-left: auto; }

/* ---------- Footer ---------- */
.site-foot { background: var(--cedar-soft); color: var(--ink); margin-top: 0; }
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 32px;
}
.foot-brand { max-width: 380px; }
.foot-brand .brand img { height: 60px; }
.foot-brand p { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.foot-brand a { color: var(--cedar-deep); }
.foot-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 40px;
}
.foot-links a { color: var(--ink); text-decoration: none; font-size: .97rem; }
.foot-links a:hover { text-decoration: underline; }
.foot-bar { padding-top: 16px; padding-bottom: 22px; border-top: 1px solid #E6CDB1; }
.foot-bar p { margin: 0; font-size: .88rem; color: var(--muted); }

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .head-nav { gap: 0; }
  .head-nav a:not(.nav-blog) { display: none; }
  .head-nav .nav-blog { font-weight: 600; padding: 10px 0; }
  .head-row { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .brand img { height: 44px; }
  .btn-head { padding: 0 16px; }
  .foot-row { flex-direction: column; gap: 28px; padding-top: 36px; }
  .foot-links { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
}

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.crumb { margin: 0 0 12px; font-size: .92rem; color: var(--muted); }
.crumb a { color: var(--cedar-deep); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); color: var(--pine-deep); }
.page-lead { max-width: 640px; margin: 0; font-size: 1.12rem; color: var(--muted); }
/* ---------- Prose ---------- */
.prose-wrap { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(48px, 7vw, 80px); }

.prose { max-width: 740px; min-width: 0; }

.prose-wrap .prose { margin: 0 auto; }

.prose h2 {
  margin-top: 1.6em;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  color: var(--pine-deep);
}

.prose section:first-of-type h2,
.prose > h2:first-child { margin-top: 0; }

.prose p,
.prose ul { margin: 0 0 1.1em; }

.prose ul { padding-left: 1.2em; }

.prose li { margin-bottom: .4em; }

.updated {
  font-size: .92rem;
  font-style: italic;
  color: var(--muted);
}

.check-list { list-style: none; padding-left: 0 !important; }

.check-list li {
  position: relative;
  padding: 12px 14px 12px 46px;
  background: var(--paper);
  border-radius: var(--radius);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 20px;
  height: 20px;
  background: var(--cedar);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--paper);
}

/* ---------- Legal layout ---------- */
.legal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(48px, 7vw, 80px);
  align-items: start;
}

.legal section { scroll-margin-top: 24px; }

.toc {
  position: sticky;
  top: 24px;
  padding: 22px 22px 16px;
  background: var(--paper);
  border-top: 4px solid var(--pine);
  border-radius: 0 0 var(--radius) var(--radius);
}

.toc-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--pine-deep);
}

.toc ol { margin: 0; padding-left: 1.2em; }

.toc li { margin-bottom: 8px; font-size: .96rem; }

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

.toc a:hover { color: var(--cedar-deep); text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

.contact-card {
  padding: 28px;
  background: var(--paper);
  border-radius: var(--radius);
}

.contact-card h2 { font-size: 1.6rem; color: var(--pine-deep); }

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

.contact-mail a {
  font-family: var(--font-head);
  font-size: clamp(1rem, 4.4vw, 1.25rem);
  font-weight: 700;
  overflow-wrap: anywhere;
  color: var(--cedar-deep);
}

/* ---------- Contact form (adapted from shared cform) ---------- */
.cform {
  --cf-accent: var(--cedar);
  --cf-on: #FFFFFF;
  margin: 0;
  min-width: 0;
}

.cform-inner {
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cf-accent);
  border-radius: 0 0 var(--radius) var(--radius);
}

.cform-inner h2 { margin: 0 0 8px; font-size: 1.7rem; color: var(--pine-deep); }

.cform-intro { margin: 0 0 22px; color: var(--muted); }

.cform-form { display: grid; gap: 18px; }

.cform-row { display: grid; gap: 6px; min-width: 0; }

.cform-row label { font-weight: 600; font-size: .95rem; }

.cform input[type="text"],
.cform input[type="email"],
.cform select,
.cform textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #C9B49C;
  border-radius: var(--radius);
}

.cform textarea { resize: vertical; min-height: 150px; }

.cform option { color: #111111; background: #FFFFFF; }

.cform input:focus,
.cform select:focus,
.cform textarea:focus,
.cform-btn:focus-visible {
  outline: 3px solid var(--cf-accent);
  outline-offset: 2px;
}

.cform-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }

.cform-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cf-accent);
}

.cform-consent a { color: inherit; text-decoration: underline; }

.cform-btn {
  justify-self: start;
  min-height: 50px;
  padding: 0 28px;
  font: inherit;
  font-weight: 700;
  color: var(--cf-on);
  background: var(--cf-accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.cform-btn:hover { background: var(--cedar-deep); }

.cform-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform-status {
  display: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}

.cform-status:target { display: block; }

.cform-ok { background: #F3E6D3; border: 1px solid var(--pine); color: var(--pine-deep); }

.cform-err { background: #F8E3DC; border: 1px solid #A23A1E; color: #6E2512; }

@media (min-width: 720px) {
  .cform-form { grid-template-columns: 1fr 1fr; }
  .cform-wide,
  .cform-btn { grid-column: 1 / -1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .legal, .contact-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .cform-btn { width: 100%; }
}
