@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4efe6;
  --surface: #fbf8f3;
  --elev: #ffffff;
  --primary: #1b3a32;
  --primary-deep: #122821;
  --secondary: #8a5a32;
  --accent: #c45c3e;
  --text: #1a1814;
  --muted: #5c564c;
  --border: #ddd4c6;
  --ok: #2f6f4e;
  --err: #a33b36;
  --warn: #9a7428;
  --radius: 6px;
  --shadow: 0 10px 28px rgba(27, 58, 50, 0.08);
  --ease: 240ms cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --read: 64ch;
  --btn-h: 2.9rem;
  --input-h: 2.9rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }

h1, h2, h3, .serif {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); margin: 0 0 0.7rem; }
h3 { font-size: 1.18rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; color: var(--muted); }
.lede { font-size: 1.18rem; max-width: var(--read); color: var(--text); }
.kicker {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.topbar {
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0 42%, var(--accent) 42% 58%, var(--secondary) 58% 100%);
}
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.8rem;
  gap: 1rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.mark { width: 34px; height: 34px; color: var(--primary); }
.wordmark em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
}
.wordmark strong {
  display: block;
  font-family: Fraunces, serif;
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--primary);
}
.nav-menu {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--ease), color var(--ease);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: var(--primary); margin: 6px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: 0 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.94rem;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #a84b32; color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.hero { padding: 3.4rem 0 2.6rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 2px 48px 2px 2px;
}
.hero-photo span {
  position: absolute;
  left: 0;
  bottom: 1.2rem;
  background: var(--primary);
  color: #f4efe6;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
}

.section { padding: 3.4rem 0; }
.section-rule { border-top: 1px solid var(--border); }
.band { background: var(--surface); border-block: 1px solid var(--border); }

.work { display: grid; gap: 0; margin-top: 1.8rem; }
.work article {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 1.2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}
.work .num {
  font-family: Fraunces, serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}
.work p { margin: 0; }

.steps {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.steps li {
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}
.steps strong {
  display: block;
  font-family: Fraunces, serif;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.cta-bar {
  background: var(--primary);
  color: #eadfce;
  padding: 3.2rem 0;
}
.cta-bar h2 { color: #fff; }
.cta-bar p { color: #c9bda8; max-width: 38rem; }
.cta-bar .btn-solid { background: var(--accent); }

.page-head { padding: 2.8rem 0 1.2rem; }
.prose { max-width: var(--read); }
.prose h2 { margin-top: 2rem; }
.wide-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin: 0 0 2rem;
  border-radius: 2px 36px 2px 2px;
}

.note-list { display: grid; gap: 0; margin-top: 1.4rem; }
.note {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform var(--ease);
}
.note:hover { transform: translateX(4px); }
.note time { font-size: 0.8rem; color: var(--muted); }
.note h3 { color: var(--primary); margin: 0 0 0.25rem; }
.note p { margin: 0; }
.note .go { color: var(--accent); font-weight: 700; }

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.people figure {
  margin: 0;
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.people img { width: 100%; height: 230px; object-fit: cover; }
.people figcaption { padding: 0.9rem 1rem 1.1rem; }
.people strong { display: block; font-family: Fraunces, serif; color: var(--primary); }

.form { display: grid; gap: 0.9rem; }
label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 0.28rem; }
input, select, textarea {
  width: 100%;
  min-height: var(--input-h);
  border: 1px solid var(--border);
  background: var(--elev);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--text);
}
textarea { min-height: 8.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 58, 50, 0.12);
}
.check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.92rem; }
.check input { width: auto; min-height: 0; margin-top: 0.3rem; }
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}
.panel {
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.aside-card {
  background: var(--primary);
  color: #eadfce;
  padding: 1.4rem;
  border-radius: var(--radius);
}
.aside-card h2, .aside-card p { color: inherit; }
.status {
  display: none;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.status.show { display: block; }
.status.ok { border-color: var(--ok); color: var(--ok); }
.status.err { border-color: var(--err); color: var(--err); }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 10, 0.45);
  display: none;
  place-items: center;
  z-index: 60;
  padding: 1rem;
}
.modal.show { display: grid; }
.modal-card {
  background: var(--elev);
  max-width: 28rem;
  padding: 1.6rem;
  border-radius: var(--radius);
}

.site-foot {
  background: var(--primary-deep);
  color: #cbbfaa;
  padding: 2.8rem 0 1.2rem;
  border-top: 6px solid var(--accent);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.8rem;
}
.site-foot h3 { color: #fff; font-size: 1.05rem; }
.site-foot a { color: #cbbfaa; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0.32rem 0; }
.legal-line {
  margin-top: 1.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid #2a4038;
  font-size: 0.82rem;
  color: #8f8678;
}

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  background: var(--elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
  display: none;
  max-width: 640px;
  border-radius: var(--radius);
}
.cookie.show { display: block; }
.cookie-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.cookie button {
  min-height: 2.4rem;
  padding: 0 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.cookie button.ghost { background: transparent; color: var(--primary); }

.article { padding: 2.2rem 0 3rem; }
.article .wrap { max-width: 740px; }
.article h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.article p { color: var(--text); }
.pull {
  border-left: 3px solid var(--accent);
  padding: 0.15rem 0 0.15rem 1rem;
  margin: 1.4rem 0;
  font-family: Fraunces, serif;
  font-size: 1.28rem;
  color: var(--primary);
}
.meta-line {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .hero-grid, .split, .steps, .people, .foot-grid, .work article, .note {
    grid-template-columns: 1fr;
  }
  .hero-photo img, .people img { height: 240px; }
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 4.8rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1.2rem 1.2rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-menu.active { display: flex; }
  .mast { position: relative; }
  .note .go { display: none; }
}
