:root {
  --paper: #f3eee4;
  --paper-2: #e8e0d1;
  --ink: #1e1913;
  --ink-2: #3a3228;
  --muted: #6a6056;
  --line: #d3c7b4;
  --accent: #b24c28;
  --accent-2: #8a391c;
  --on-accent: #fff8f1;
  --footer: #221b15;
  --footer-text: #e7dccb;
  --danger: #8f2d22;
  --ok: #2f5d3a;
  --display: "Fraunces", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(30, 25, 19, 0.08);
  --header-h: 4.4rem;
  --wide: 70rem;
  --gutter: clamp(1.15rem, 4vw, 2.4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--accent-2);
  text-underline-offset: 0.18em;
}

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

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

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  background: var(--ink);
  color: var(--on-accent);
  padding: 0.6rem 0.9rem;
  z-index: 80;
}

.skip-link:focus {
  top: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 1px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-2);
  color: var(--on-accent);
}

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

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

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

.header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.header__mark {
  width: 1.35rem;
  height: 1.35rem;
  background:
    linear-gradient(var(--paper), var(--paper)) 0 0 / 46% 38% no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 0 / 46% 38% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 100% / 46% 54% no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 100% / 46% 54% no-repeat,
    var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.header__name {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
}

.header__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  min-height: 2.5rem;
  padding: 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.header__list {
  display: flex;
  list-style: none;
  gap: 0.15rem 1.15rem;
  align-items: center;
}

.header__link {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.header__link:hover,
.header__link[aria-current="page"] {
  color: var(--accent);
}

.header__link--visit {
  border: 1px solid var(--ink);
  padding: 0.35rem 0.7rem;
  color: var(--ink);
}

.header__link--visit:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 860px) {
  .header__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }

  .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.5rem var(--gutter) 1.1rem;
  }

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

  .header__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
}

.footer {
  background: var(--footer);
  color: var(--footer-text);
  margin-top: 4rem;
  padding: 3.2rem var(--gutter) 1.5rem;
}

.footer a {
  color: var(--footer-text);
}

.footer a:hover {
  color: #fff;
}

.footer__inner {
  max-width: var(--wide);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr 0.7fr;
  gap: 2rem;
}

.footer__name {
  font-family: var(--display);
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
  color: #f7efe4;
}

.footer__tag,
.footer__text {
  color: #cbbda8;
  font-size: 0.95rem;
}

.footer__label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a89882;
  margin-bottom: 0.7rem;
}

.footer__list {
  list-style: none;
}

.footer__list li + li {
  margin-top: 0.35rem;
}

.footer__copy {
  max-width: var(--wide);
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #9d8e7a;
}

@media (max-width: 800px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

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

.cookie__inner {
  max-width: 42rem;
  margin-left: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie__text {
  margin: 0;
  font-size: 0.9rem;
  color: #e8dccb;
}

.cookie__text a {
  color: #fff;
}

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

.cookie .btn--ghost {
  color: var(--paper);
  border-color: #6b5c4c;
}

@media (max-width: 640px) {
  .cookie__inner {
    flex-direction: column;
    align-items: stretch;
  }
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 0.55rem;
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-2);
  max-width: 40rem;
}

.section {
  padding: 4.2rem 0;
}

.section--tight {
  padding: 2.6rem 0;
}

.section--paper2 {
  background: var(--paper-2);
}

.section__head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: calc(100vh - var(--header-h));
  max-height: 52rem;
}

.hero__copy {
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, transparent 0%, rgba(243, 238, 228, 0.3) 40%, var(--paper) 100%);
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 0 0 1.1rem;
  max-width: 11ch;
}

.hero__aside {
  font-size: 1.02rem;
  color: var(--ink-2);
  max-width: 28rem;
  margin-bottom: 1.6rem;
}

.hero__media {
  position: relative;
  min-height: 22rem;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(30, 25, 19, 0.78);
  color: var(--paper);
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
  }

  .hero__media {
    min-height: 18rem;
    order: -1;
  }

  .hero__media img {
    position: relative;
    height: 18rem;
  }
}

.page-hero {
  padding: 3.4rem 0 2.2rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 0.8rem;
  max-width: 16ch;
}

.figure-pair {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.figure-pair img,
.frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.frame {
  position: relative;
}

.frame--portrait img {
  aspect-ratio: 3 / 4;
}

.frame figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .figure-pair {
    grid-template-columns: 1fr;
  }
}

.study-list {
  display: grid;
  gap: 0;
}

.study-row {
  display: grid;
  grid-template-columns: 10rem 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.study-row:hover .study-row__title {
  color: var(--accent);
}

.study-row__kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.study-row__title {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0 0 0.25rem;
}

.study-row__summary {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.study-row__go {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 700px) {
  .study-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.card__title {
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}

.card a.card__title-link {
  color: inherit;
  text-decoration: none;
}

.card__meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.quote-block {
  max-width: 44rem;
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.35;
  font-weight: 500;
}

.quote-block cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.person img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  margin-bottom: 0.85rem;
}

.person h3 {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
}

.person__role {
  color: var(--accent);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 800px) {
  .people {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.7rem;
  margin: 2.1rem 0 0.7rem;
}

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

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.detail-hero__copy {
  padding: 3rem var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 800px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero img {
    min-height: 16rem;
  }
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.fact-grid h2 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.fact-grid p,
.fact-grid li {
  color: var(--ink-2);
}

.steps {
  counter-reset: step;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  color: var(--accent);
  font-size: 1.2rem;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

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

.rate-table th {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

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

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__row label {
  font-size: 0.88rem;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: #fffcf7;
  color: var(--ink);
  border-radius: 1px;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

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

.form__error {
  color: var(--danger);
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form__banner {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  display: none;
}

.form__banner.is-ok {
  display: block;
  border-color: var(--ok);
  color: var(--ok);
}

.form__banner.is-bad {
  display: block;
  border-color: var(--danger);
  color: var(--danger);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }
}

.address-block {
  background: var(--paper-2);
  padding: 1.4rem;
  border: 1px solid var(--line);
}

.notes {
  display: grid;
  gap: 1.6rem;
}

.note {
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.note blockquote {
  margin: 0 0 0.7rem;
  font-size: 1.12rem;
}

.note__who {
  color: var(--muted);
  font-size: 0.9rem;
}

.story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  padding: 2rem 0;
}

@media (max-width: 800px) {
  .story {
    grid-template-columns: 1fr;
  }
}

.legal {
  padding-bottom: 3rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
}

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

.cookie-table th {
  background: var(--paper-2);
  font-weight: 500;
}

.method-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.method-strip article {
  border-top: 2px solid var(--accent);
  padding-top: 0.9rem;
}

.method-strip h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

@media (max-width: 800px) {
  .method-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--gutter);
}

.error-page h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 0.6rem;
}

.inline-error {
  color: var(--danger);
  font-size: 0.9rem;
}
