:root {
  --paper: #f3eee4;
  --paper-deep: #e7dfd0;
  --ink: #1d1914;
  --ink-soft: #4a433a;
  --accent: #b4532a;
  --accent-deep: #8c3d1e;
  --sage: #3f5346;
  --card: #fffdf8;
  --line: #d4cbb8;
  --error: #8b1e1e;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(29, 25, 20, 0.08);
  --header-h: 4.25rem;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(180, 83, 42, 0.08), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, #efe8db 100%);
}

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

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

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

h1,
h2,
h3,
.header__name,
.footer__name {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.main {
  min-height: 60vh;
}

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

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

.header__inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.header__mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--sage);
  color: var(--card);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.header__name {
  font-size: 1.15rem;
}

.header__toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.header__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}

.header__link--current,
.header__link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.header__error,
.cookie__error,
.js-error {
  color: var(--error);
  background: #f8e4dc;
  border: 1px solid #e3b8aa;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: end;
  padding: 3.5rem 0 2.5rem;
}

.hero__kicker {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 1rem;
}

.hero__lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.hero__figure {
  margin: 0;
  position: relative;
}

.hero__figure img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--card);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--accent);
  font-weight: 600;
}

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

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

.button--veve {
  background: var(--sage);
  border-color: var(--sage);
}

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

.section {
  padding: 2.75rem 0;
}

.section__head {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card__body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.quote {
  background: var(--paper-deep);
  border-left: 4px solid var(--accent);
  padding: 1.1rem 1.2rem;
  margin: 0 0 1rem;
}

.quote p {
  margin: 0 0 0.6rem;
  font-style: italic;
}

.quote footer {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.prose {
  max-width: 44rem;
}

.prose h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}

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

th {
  background: var(--paper-deep);
  font-family: var(--font-display);
}

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.team img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.footer {
  background: #241f1a;
  color: #efe8db;
  margin-top: 3rem;
  padding: 2.8rem 0 2rem;
}

.footer a {
  color: #f3c9b0;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer__name {
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}

.footer__heading {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.35rem;
}

.footer__notices {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid #3c342c;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #d9d0c3;
}

.footer__notices p {
  margin: 0 0 0.85rem;
}

.cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 40;
}

.cookie__inner {
  max-width: 720px;
  margin-left: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cookie__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1rem 0 1.5rem;
}

.error-page {
  padding: 5rem 0;
  text-align: center;
}

@media (max-width: 900px) {
  .hero,
  .split,
  .card-grid,
  .team,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__figure img,
  .cover {
    height: 240px;
  }

  .header__toggle {
    display: inline-flex;
  }

  .header__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1rem 1.1rem;
  }

  .header__nav.is-open {
    display: block;
  }

  .header__list {
    flex-direction: column;
  }

  .cookie__inner {
    flex-direction: column;
    align-items: stretch;
  }
}
