:root {
  --bg: #f7f5f1;
  --surface: #fffcf8;
  --ink: #2f2c28;
  --muted: #6b6560;
  --line: #e4dfd6;
  --accent: #8a6a4f;
  --accent-hover: #735841;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(47, 44, 40, 0.06);
  --font: "Source Serif 4", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.nav a {
  color: var(--ink);
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.hero {
  padding: 4.5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  font-family: var(--font);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin: 0 0 1rem;
  font-weight: 500;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero-media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  cursor: pointer;
  font: inherit;
}

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

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

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

section {
  padding: 3.2rem 0;
}

.section-title {
  font-size: 2rem;
  margin: 0 0 0.6rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body,
.prose,
.pad {
  padding: 1.2rem 1.3rem 1.4rem;
}

.quote {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.4rem;
  margin: 0 0 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 5.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}

label {
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.error {
  color: #8a3a2a;
  font-size: 0.85rem;
}

.ok {
  color: #2d5a3d;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  display: none;
  z-index: 40;
  max-width: 720px;
  margin-inline: auto;
}

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

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.7rem;
  vertical-align: top;
}

.portrait {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
}

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

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem 1.2rem 1.4rem;
    border-bottom: 1px solid var(--line);
  }

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

  .hero,
  .cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
