:root {
  --bg: #eef1ef;
  --bg-alt: #e4e9e5;
  --surface: #fafbfa;
  --ink: #1a1f1c;
  --ink-soft: #3d4540;
  --muted: #6a736d;
  --line: #c8d0ca;
  --accent: #8a6f45;
  --accent-dark: #6e5836;
  --accent-soft: #ddd4c4;
  --ok: #2f5d45;
  --shadow: 0 1px 0 rgba(26, 31, 28, 0.06);
  --radius: 4px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(138, 111, 69, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(47, 93, 69, 0.06), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo img,
.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: #fafbfa;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--surface);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Hero */
.hero {
  padding: 0 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: min(52vh, 420px);
  max-height: 520px;
  overflow: hidden;
  background: #1a1f1c;
}

.hero-visual img {
  width: 100%;
  height: min(52vh, 420px);
  max-height: 520px;
  object-fit: cover;
  object-position: center 40%;
}

.hero-copy {
  padding-top: 2rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 36rem;
  margin-bottom: 0;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Media */
.media-frame {
  margin: 0 0 1.25rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #1a1f1c;
}

.media-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.media-frame--wide {
  margin: 0 0 1.5rem;
}

.media-frame--wide img {
  aspect-ratio: 16 / 9;
  max-height: 320px;
}

.tab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.tab-layout .media-frame {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
}

.page-visual {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #1a1f1c;
}

.page-visual img {
  width: 100%;
  height: clamp(160px, 28vw, 280px);
  object-fit: cover;
  display: block;
}

/* Sections */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: var(--radius);
  cursor: pointer;
}

.tab-btn[aria-selected="true"] {
  background: var(--ink);
  color: #fafbfa;
  border-color: var(--ink);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.tab-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

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

.feature-list li {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-list strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.feature-list p {
  margin: 0;
  font-size: 0.95rem;
}

/* Accordion */
.accordion {
  display: grid;
  gap: 0.5rem;
}

.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.acc-trigger::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.acc-item.is-open .acc-trigger::after {
  content: "−";
}

.acc-panel {
  display: none;
  padding: 0 1.1rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.acc-item.is-open .acc-panel {
  display: block;
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.contact-block {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-block h3 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.contact-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-block li {
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.contact-block a {
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 400;
}

.hours-table th {
  color: var(--ink);
  width: 45%;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(47, 93, 69, 0.1);
  border: 1px solid var(--ok);
  border-radius: var(--radius);
  color: var(--ok);
}

.form-success.is-visible {
  display: block;
}

/* Job list */
.job-list {
  display: grid;
  gap: 0.75rem;
}

.job-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.job-item summary {
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.job-item summary::-webkit-details-marker {
  display: none;
}

.job-meta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.job-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.job-body {
  padding: 1rem 1.1rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Legal / prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.4rem;
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 36rem;
  margin: 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 28, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: min(100%, 440px);
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(26, 31, 28, 0.18);
  animation: fadeIn 0.2s ease;
}

.modal h3 {
  margin-bottom: 0.5rem;
}

.modal p {
  margin-bottom: 1.25rem;
}

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

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--ink);
  color: #e8ebe9;
  padding: 1rem;
  display: none;
  border-top: 1px solid rgba(184, 149, 108, 0.35);
}

.cookie-bar.is-visible {
  display: block;
}

.cookie-inner {
  width: min(100% - 0rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-bar p {
  margin: 0;
  color: #c8d0ca;
  font-size: 0.9rem;
  flex: 1 1 260px;
}

.cookie-bar a {
  color: #ddd4c4;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-bar .btn-primary {
  background: var(--accent);
  color: #1a1f1c;
}

.cookie-bar .btn-secondary {
  border-color: #6a736d;
  color: #e8ebe9;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: var(--ink);
  color: #c8d0ca;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: #fafbfa;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: #c8d0ca;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #ddd4c4;
}

.footer-bottom {
  border-top: 1px solid #3d4540;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #6a736d;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.age-note {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.quick-links a {
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
}

.quick-links a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem;
    display: none;
  }

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

  .nav a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 0 0 2rem;
  }

  .hero-visual,
  .hero-visual img {
    height: min(38vh, 280px);
    min-height: 200px;
  }

  .hero-copy {
    padding-top: 1.5rem;
  }

  .tab-layout {
    grid-template-columns: 1fr;
  }

  .tab-layout .media-frame {
    position: static;
  }

  .section {
    padding: 2.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tab-panel,
  .modal {
    animation: none;
  }
}
