:root {
  --green: #1f5c34;
  --green-bar: #367a40;
  --ink: #2b2a28;
  --muted: #605e5e;
  --line: #d8d6d0;
  --paper: #ffffff;
  --stone: #f5f3ee;
  --gold: #a88a4a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Nunito Sans', 'Avenir Next', Avenir, system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.7 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--gold); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--green); line-height: 1.2; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: 0.02em; margin: 0 0 0.6em; }
h3 { font-size: 24px; margin: 1.4em 0 0.4em; }
h4 { font: 600 14px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; margin: 1.6em 0 0.4em; color: var(--ink); }

.draft-bar { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 14px; padding: 6px 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.logo img { width: 200px; }
#site-nav ul { list-style: none; margin: 0; padding: 0; }
#site-nav > ul { display: flex; gap: 4px; }
#site-nav a {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--ink);
  font-size: 13px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  border-top: 2px solid transparent;
}
#site-nav > ul > li > a[aria-current='page'] { border-top-color: var(--ink); }
#site-nav a:hover { color: var(--green); }
.has-sub { position: relative; }
.has-sub .sub {
  position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff;
  border: 1px solid var(--line); padding: 8px 0; display: none; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { letter-spacing: 0.06em; text-transform: none; font-size: 15px; border: 0; padding: 7px 18px; }
.sub a[aria-current='page'] { color: var(--green); font-weight: 600; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-header .bar { min-height: 72px; }
  .logo img { width: 160px; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--ink); padding: 8px 14px;
    font: 400 13px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  }
  #site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  #site-nav.open { display: block; }
  #site-nav > ul { flex-direction: column; padding: 8px 16px 16px; }
  #site-nav a { border-top: 0; padding: 12px 0; }
  .has-sub .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  #site-nav .sub { padding: 0 0 8px 16px; border-left: 1px solid var(--line); margin-left: 2px; }
  #site-nav .sub a { padding: 9px 0; text-transform: none; letter-spacing: 0.02em; font-size: 16px; color: var(--muted); }
  #site-nav .sub a[aria-current='page'] { color: var(--green); font-weight: 600; }
}

main { min-height: 50vh; padding-bottom: 64px; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }

.block { margin-top: 56px; }
.block:first-child, .crumbs + .block { margin-top: 40px; }
.block.hero { margin-top: 0; }

/* Slideshow */
.hero { position: relative; margin: 0; aspect-ratio: 16 / 6; background: var(--stone); overflow: hidden; }
.hero .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.hero .slide.is-active { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-prev, .slide-next {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0;
  color: #fff; font-size: 56px; line-height: 1; padding: 8px 16px; cursor: pointer; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.slide-prev { left: 8px; } .slide-next { right: 8px; }
.slide-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.slide-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slide-dots button[aria-current='true'] { background: #fff; }
@media (max-width: 640px) { .hero { aspect-ratio: 4 / 3; } }

/* Text */
.text { max-width: 820px; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.text h2 { text-align: center; text-transform: uppercase; }
.page-home .text h2 { text-transform: none; }

/* Grids */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(min(var(--cols), 3), 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; line-height: 1.4; }

.card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; text-decoration: none; background: var(--stone); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card span {
  position: absolute; inset: auto 0 0 0; padding: 28px 16px 14px; color: #fff;
  font: 600 22px/1.2 var(--serif); letter-spacing: 0.02em;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}
.card:hover img { transform: scale(1.05); }
.card:hover span { color: #fff; }

/* Testimonial */
.testimonial { max-width: 820px; text-align: center; }
.testimonial blockquote { margin: 0; font: 500 22px/1.5 var(--serif); color: var(--ink); }
.testimonial blockquote p::before { content: ''; }
.testimonial blockquote footer { font: 400 15px var(--sans); color: var(--muted); margin-top: 16px; }

/* Profile */
.profile { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.profile h2 { margin-top: 0; }
.profile .role { color: var(--muted); margin-top: -12px; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; } .portrait { max-width: 260px; } }

/* Video */
.video .frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .caption { font-size: 14px; color: var(--muted); }

/* Buttons */
.button { text-align: center; }
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none; border: 0;
  padding: 13px 28px; font: 400 14px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.btn:hover { background: var(--gold); color: #fff; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact dl { margin: 24px 0 0; }
.contact dt { font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 16px; }
.contact dd { margin: 0; }
.contact-form { display: grid; gap: 16px; align-content: start; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; letter-spacing: 0.06em; }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); background: #fff; border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; margin: 0; }
.notice.ok { background: #e7f2e9; color: var(--green); }
.notice.err { background: #fbeaea; color: #8a1f1f; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; gap: 32px; } }

/* Footer */
.site-footer { border-top: 6px solid var(--green-bar); background: var(--stone); padding: 48px 0 24px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 40px; }
.site-footer h3 { font: 600 13px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 4px; }
.site-footer h4 { margin: 12px 0 4px; font-size: 12px; }
.site-footer p { margin: 0 0 16px; }
.site-footer ul { margin: 0; padding-left: 1.1em; }
.site-footer li a { color: inherit; }
.site-footer li a:hover { color: var(--green); }
.site-footer .cols > div:nth-child(2) h3 { font: 600 22px var(--serif); letter-spacing: 0.02em; text-transform: none; color: var(--green); }
.badges { display: grid; gap: 16px; justify-items: end; align-content: start; }
.legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; } .badges { justify-items: start; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15, 15, 12, 0.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 92vw); text-align: center; }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #ddd; font-size: 15px; padding-top: 12px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; cursor: pointer; padding: 8px 16px; line-height: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

.notfound { padding: 120px 0; text-align: center; }

/* Comfortable tap targets for footer and contact links (at least 44px tall on touch screens). */
.site-footer li a, .site-footer p a, .contact dd a { display: inline-block; padding: 4px 0; }
@media (max-width: 900px), (pointer: coarse) {
  .site-footer li a, .site-footer p a, .contact dd a { padding: 11px 0; }
  .site-footer ul { padding-left: 0; list-style: none; }
  .site-footer p { margin-bottom: 8px; }
}
