/* Sojourn & Cradle — site styles. Plain CSS, no build step.
   Brand palette (brand_guide.md): deep teal #1F4E5A, terracotta #C46A4A,
   sage #8A9A7B, warm cream #F5EFE6, muted gold #C9A24D (thin lines only).
   Text-bearing terracotta is deepened to #A65236 so white text passes WCAG AA (5.4:1). */

:root {
  --teal: #1F4E5A;
  --teal-dark: #173C46;
  --terracotta: #C46A4A;
  --terracotta-text: #A65236;
  --terracotta-dark: #8E4530;
  --sage: #8A9A7B;
  --sage-text: #5F6E52;
  --cream: #F5EFE6;
  --cream-deep: #EDE4D6;
  --paper: #FBF8F3;
  --gold: #C9A24D;
  --ink: #3D3A35;
  --ink-soft: #5E5A52;
  --radius: 14px;
  --max: 72rem;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

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

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta-dark); }

:focus-visible { outline: 3px solid var(--terracotta-text); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--teal); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; z-index: 10;
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--teal);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
.caps { text-transform: uppercase; letter-spacing: 0.12em; }
h1.caps, h2.caps { letter-spacing: 0.08em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--ink); }
.eyebrow {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta-text); margin: 0 0 0.8rem;
}
.signature { font-family: var(--font-head); font-style: italic; font-size: 1.35rem; color: var(--teal); }
small, .small { font-size: 0.9rem; }
.muted { color: var(--ink-soft); }

/* Layout */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--cream-deep); border-bottom: 1px solid var(--cream-deep); }
.section-teal { background: var(--teal); color: var(--cream); }
.section-teal h2, .section-teal h3 { color: var(--cream); }
.section-teal a { color: var(--cream); }
.gold-rule { border: 0; height: 1px; background: var(--gold); width: 4.5rem; margin: 0 0 1.4rem; }
.center { text-align: center; }
.center .gold-rule { margin-left: auto; margin-right: auto; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--cream-deep); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 0.9rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--teal); }
.brand picture { display: block; flex: none; line-height: 0; }
.brand-mark { display: block; width: auto; height: 44px; }
@media (min-width: 700px) { .brand-mark { height: 52px; } }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.site-nav a { text-decoration: none; font-size: 0.95rem; letter-spacing: 0.06em; color: var(--ink); padding: 0.35rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--teal); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--terracotta); font-weight: 700; }

/* Hero */
.hero { padding: 3rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .signature { margin-bottom: 1.4rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.04em;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 2px solid var(--terracotta-text);
  background: var(--terracotta-text); color: #fff; text-align: center; cursor: pointer; font-family: var(--font-body);
}
.btn:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-soon { background: var(--cream-deep); color: var(--ink-soft); border-color: var(--cream-deep); cursor: default; }
.btn-soon:hover { background: var(--cream-deep); color: var(--ink-soft); border-color: var(--cream-deep); }
.btn[disabled] { opacity: 1; }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.card {
  background: var(--paper); border: 1px solid var(--cream-deep); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 0.35em; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.9rem; align-self: flex-start; }
.tag-peru { background: #F3DDD3; color: var(--terracotta-dark); }
.tag-brazil { background: #D6E3E6; color: var(--teal-dark); }
.tag-print { background: #E1E6DA; color: #46523B; }
.card-peru { border-top: 4px solid var(--terracotta); }
.card-brazil { border-top: 4px solid var(--teal); }
.card-print { border-top: 4px solid var(--sage); }
.price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--teal); margin: 0.4rem 0 0.2rem; }
.price-note { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.card ul { padding-left: 1.15rem; margin: 0 0 1.2rem; }
.card li { margin-bottom: 0.35rem; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: 0.6rem; }
.check-list li::before { content: ""; position: absolute; left: 0.15rem; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 2px solid var(--sage); background: var(--cream); }
.section-teal .check-list li::before { border-color: var(--gold); background: transparent; }

/* Founder note */
.note {
  background: var(--paper); border: 1px solid var(--cream-deep); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
}
.note p:last-child { margin-bottom: 0; }
.sign-off { font-family: var(--font-head); font-style: italic; font-size: 1.25rem; color: var(--teal); }

/* Signup */
.signup { background: var(--teal); color: var(--cream); border-radius: var(--radius); padding: 2rem 1.6rem; }
.signup h2 { color: var(--cream); }
.signup fieldset { border: 0; margin: 0; padding: 0; }
.signup label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.signup .field-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.signup input[type="email"] {
  flex: 1 1 16rem; min-height: 3rem; padding: 0.7rem 1rem; border-radius: 999px; border: 2px solid var(--cream);
  font: inherit; color: var(--ink); background: #fff;
}
.signup input:disabled { background: var(--cream-deep); }
.signup .btn-soon { border-color: var(--cream); }
.signup a { color: #F5EFE6; }
.signup .small { color: #E4DACB; margin-top: 0.9rem; margin-bottom: 0; }

/* Prose pages */
.page-head { padding: 3rem 0 1.5rem; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.5rem, 3.6vw, 2rem); }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose .updated { color: var(--ink-soft); font-size: 0.95rem; }

.callout { background: var(--paper); border: 1px solid var(--cream-deep); border-left: 4px solid var(--terracotta); border-radius: 10px; padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.callout-teal { border-left-color: var(--teal); }
.callout-sage { border-left-color: var(--sage); }
.callout p:last-child { margin-bottom: 0; }
.disclosure { background: var(--cream-deep); border-radius: 10px; padding: 1rem 1.2rem; font-size: 0.95rem; margin: 1.25rem 0; }
.disclosure p:last-child { margin-bottom: 0; }

/* Gear page */
.gear-section { padding: 2.2rem 0; border-top: 1px solid var(--cream-deep); }
.gear-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.gear-item { background: var(--paper); border: 1px solid var(--cream-deep); border-radius: 12px; padding: 1.1rem 1.25rem; }
.gear-item h4 { margin-bottom: 0.3rem; font-size: 1.25rem; }
.gear-item p { margin-bottom: 0.7rem; }
.gear-link { display: inline-block; font-weight: 700; font-size: 0.92rem; text-decoration: none; padding: 0.5rem 1rem; border-radius: 999px; border: 2px solid var(--teal); color: var(--teal); }
.gear-link:hover { background: var(--teal); color: #fff; }
.toc { columns: 2 14rem; padding-left: 1.2rem; }

/* Footer */
.site-footer { background: var(--teal-dark); color: #E9E2D6; padding: 3rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: #F5EFE6; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); margin-bottom: 0.3rem; }
.footer-sig { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--cream); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-disclaimer { border-top: 1px solid rgba(201, 162, 77, 0.6); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.88rem; color: #D9D0C1; }
.footer-disclaimer p { margin-bottom: 0.6rem; }

/* Breakpoints (mobile-first) */
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .section { padding: 4.5rem 0; }
  .hero { padding: 4.5rem 0 5rem; }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
  .gear-list { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header nav, .signup, .skip-link { display: none; }
  body { background: #fff; }
}

/* Utilities (no inline styles, so the CSP can stay strict) */
.eyebrow-light { color: #E4DACB; }
.btn-row-center { justify-content: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0 !important; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.section.pt-0 { padding-top: 0; }
.section.pt-1 { padding-top: 1rem; }
.gear-products { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.7rem; }
.gear-products li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; border-top: 1px dashed var(--cream-deep); padding-top: 0.7rem; }
.gear-products li br { display: none; }

/* Logo in footer */
.footer-brand picture { display: block; flex: none; line-height: 0; }
.footer-mark { display: block; width: auto; height: 44px; }
/* Postal address blocks */
address { font-style: normal; margin: 0 0 1rem; line-height: 1.6; }

/* Hero arch feature (photo from Canva guide template DAHW4Vbq4bo) */
.hero-feature { position: relative; width: 100%; max-width: 15rem; margin: 1.25rem auto 2.25rem; }
@media (min-width: 700px) { .hero-feature { max-width: 18rem; } }
.hf-frame { position: relative; padding: 9px; border: 1px solid var(--gold); border-bottom: 0;
  border-radius: 999px 999px 0 0; }
.hf-frame::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -10px;
  border-top: 1px solid var(--gold); }
.hf-arch { overflow: hidden; border-radius: 999px 999px 0 0; aspect-ratio: 990 / 1600;
  background: var(--cream-deep); }
.hf-arch picture, .hf-arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hf-arch img { transform: scale(1.04); transform-origin: 50% 100%; }
.hf-star { position: absolute; z-index: 2; width: 26px; height: 26px; left: 50%; top: -13px;
  transform: translateX(-50%); background: var(--cream); border-radius: 50%; padding: 2px; }
.hf-sprig { position: absolute; z-index: 2; width: 34%; left: -16%; bottom: 8%; opacity: 0.9;
  pointer-events: none; }
.hf-tab { position: absolute; z-index: 3; left: 50%; bottom: -1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 0.7rem 0.9rem 0.55rem; background: var(--teal); color: var(--cream);
  border-radius: 999px 999px 6px 6px; box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px var(--gold); }
.hf-tab picture { display: block; line-height: 0; }
.hf-tab img { display: block; height: 32px; width: auto; }
.hf-tab span { font-family: var(--font-head); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; white-space: nowrap; line-height: 1.2; }
@media (min-width: 700px) { .hf-tab { padding: 0.9rem 1.1rem 0.75rem; } .hf-tab img { height: 42px; } .hf-tab span { font-size: 0.78rem; } }
@media (min-width: 960px) { .hf-tab img { height: 50px; } .hf-tab span { font-size: 0.85rem; } }
@media (min-width: 960px) { .hero-feature { max-width: 24rem; margin-top: 0.5rem; } }
