/*
  Palette (Deep Forest & Brass) — every text/background pair below meets WCAG 2.2 AAA (7:1) or better.
  Meaning is never carried by color alone (labels, icons, underlines, badges back it up).

  --linen  #F6F5F0  page background
  --moss   #E8E6DC  alternate section background
  --ink    #1A1F1C  body text, dark sections (15.3:1 on linen, 13.4:1 on moss)
  --ink-2  #3A413C  secondary text          ( 9.6:1 on linen,  8.4:1 on moss)
  --forest #22392F  primary buttons/links   (11.4:1 on linen, white text on it 12.4:1)
  --brass  #5C4018  small accent labels     ( 8.7:1 on linen,  7.6:1 on moss)
  --gold   #D8C99C  accent on dark ink      (10.1:1 on ink)
  --mist   #D5D6CF  secondary text on ink   (11.4:1 on ink)
*/
:root {
  --linen: #f6f5f0;
  --moss: #e8e6dc;
  --ink: #1a1f1c;
  --ink-2: #3a413c;
  --forest: #22392f;
  --forest-deep: #172a22;
  --brass: #5c4018;
  --gold: #d8c99c;
  --mist: #d5d6cf;
  --line: #6c726c; /* 4.5:1 on linen, 3.9:1 on moss — meets 3:1 for non-text UI boundaries */
  --white: #ffffff;

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --radius: 4px;
  --wrap: 1180px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

/* Double-ring focus indicator: visible on both light and dark backgrounds */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
  border-radius: 6px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  min-height: 56px;
  padding: 0.9rem 1.75rem;
  font-size: 1.0625rem;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.btn-primary:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}

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

.btn-secondary:hover {
  background: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--linen) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-name {
  font-weight: 500;
}

.brand-cred {
  color: var(--ink-2);
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.5rem 0;
}

.site-nav ul a:hover {
  text-decoration: underline;
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font: 600 1rem var(--font-body);
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

@media (max-width: 1080px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.75rem;
    background: var(--linen);
    border-bottom: 2px solid var(--ink);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.125rem;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  }

  .nav-actions {
    flex-direction: column;
  }
}

/* ---------- Shared section bits ---------- */
section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}

.eyebrow-light {
  color: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.section-intro {
  font-size: 1.1875rem;
  color: var(--ink-2);
  max-width: 38rem;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 9vw, 7.5rem);
}

.hero::before {
  /* quiet background panel, decorative only */
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 34%;
  background: var(--moss);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 400;
  line-height: 1.04;
  margin-bottom: 1.5rem;
}

.hero-title em {
  display: block;
  font-style: italic;
  color: var(--forest);
}

.lede {
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  color: var(--ink-2);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

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

.lede strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-card {
  background: var(--ink);
  color: var(--linen);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 24px 50px -28px rgba(26, 31, 28, 0.55);
}

.facts {
  margin: 0;
}

.facts div {
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(246, 245, 240, 0.28);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.facts dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

}

/* ---------- Recognize ---------- */
.recognize {
  background: var(--moss);
}

.recognize-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.recognize-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.recognize-list li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  line-height: 1.45;
}

.recognize-art {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  background: var(--linen);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  color: var(--forest);
}

.recognize-art .icon {
  width: 2rem;
  height: 2rem;
  stroke-width: 1.5;
}

.recognize-more {
  margin: 1.75rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.recognize-more a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

@media (max-width: 860px) {
  .recognize-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.portrait {
  margin: 0;
  position: relative;
  isolation: isolate;
}

.portrait::after {
  content: '';
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--brass);
  z-index: -1;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 868 / 1158;
  object-fit: cover;
  border-radius: 2px;
  background: var(--moss);
  box-shadow: 0 18px 40px -24px rgba(26, 31, 28, 0.45);
}

.about-copy p {
  max-width: 38rem;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 380px;
  }
}

/* ---------- Services ---------- */
.services {
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.service {
  padding: 2rem clamp(1.25rem, 2.5vw, 2.25rem);
}

.service + .service {
  border-left: 1px solid var(--line);
}

.service:first-child {
  padding-left: 0;
}

.service:last-child {
  padding-right: 0;
}

.service h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  margin-bottom: 0.3rem;
}

.service-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--brass);
  margin-bottom: 1rem;
}

.service p:not(.service-tag) {
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 860px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .service,
  .service:first-child,
  .service:last-child {
    padding-inline: 0;
    padding-block: 1.75rem;
  }

  .service + .service {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Approach (dark) ---------- */
.approach {
  background: var(--ink);
  color: var(--linen);
}

.approach .section-intro {
  color: var(--mist);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.steps li {
  grid-column: span 5;
  padding: 2rem;
  border: 1px solid rgba(246, 245, 240, 0.35);
  border-radius: var(--radius);
}

.steps li:nth-child(2) {
  grid-column: 6 / span 5;
  margin-top: 3rem;
}

.steps li:nth-child(3) {
  grid-column: 3 / span 6;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 1rem;
}

.steps h3 {
  font-size: 1.6rem;
}

.steps p {
  color: var(--mist);
  margin: 0;
}

@media (max-width: 860px) {
  .steps li,
  .steps li:nth-child(2),
  .steps li:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

/* ---------- Booking ---------- */
.book {
  background: var(--moss);
}

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.book-head {
  margin-bottom: 0;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.notice {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--linen);
  border-left: 6px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.notice-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--brass);
  margin-top: 0.1rem;
}

.notice h3 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.notice p {
  margin: 0;
}

.notice + .notice {
  margin-top: 1rem;
}

.notice-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 0.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .book-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Connect ---------- */
.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 84px;
  padding: 1.1rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background: var(--linen);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

a.link-card:hover {
  background: var(--white);
  transform: translateX(4px);
}

a.link-card:hover .link-card-title {
  text-decoration: underline;
}

.link-card .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--forest);
}

.link-card-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.link-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
}

.link-card-sub {
  color: var(--ink-2);
  font-size: 1rem;
}

.link-card.is-pending {
  border-style: dashed;
  cursor: not-allowed;
}

.badge {
  padding: 0.3rem 0.75rem;
  border: 2px solid var(--brass);
  border-radius: var(--radius);
  color: var(--brass);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Contact form: 2px ink borders (15.3:1) keep field boundaries well above 3:1 */
.contact-form {
  margin-top: 2rem;
  padding: 1.75rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field-hint {
  margin: 0.4rem 0 0;
  color: var(--ink-2);
  font-size: 1rem;
}

@media (max-width: 860px) {
  .connect-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--linen);
  padding-block: 3.5rem 2.5rem;
  font-size: 1rem;
}

.site-footer a {
  color: var(--gold);
  font-weight: 600;
}

.site-footer :focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 6px var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.crisis {
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}

.crisis p {
  margin: 0;
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 245, 240, 0.3);
  color: var(--mist);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark sections: flip the focus ring so it stays visible */
.approach :focus-visible,
.hero-card :focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 6px var(--ink);
}

/* ---------- Motion ---------- */
.reveal {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy .reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy .reveal:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy .reveal:nth-child(4) {
  animation-delay: 0.24s;
}

.hero-card.reveal {
  animation-delay: 0.32s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- User contrast preferences ---------- */
@media (prefers-contrast: more) {
  :root {
    --ink-2: var(--ink);
    --line: var(--ink);
    --linen: #ffffff;
    --moss: #ffffff;
  }

  .hero::before {
    display: none;
  }

  .recognize-art {
    border-color: currentColor;
  }

  .steps li {
    border: 2px solid currentColor;
  }
}

/* Windows High Contrast / forced colors: let the system palette take over */
@media (forced-colors: active) {
  .btn,
  .link-card,
  .menu-toggle,
  .crisis,
  .notice,
  .contact-form,
  .field input,
  .field textarea,
  .recognize-art {
    border: 2px solid CanvasText;
  }

  .hero::before,
  .portrait::after {
    display: none;
  }

  .menu-toggle-bars,
  .menu-toggle-bars::before,
  .menu-toggle-bars::after {
    background: CanvasText;
  }

  :focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }
}

/* ---------- Thank-you page ---------- */
.thank-you {
  padding-block: clamp(3rem, 10vw, 7rem);
}

.thank-you .notice {
  max-width: 40rem;
}

.thank-you .notice-title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.thank-you-back {
  margin-top: 2rem;
}
