:root {
  --ink: #161514;
  --soft-ink: #4e4b46;
  --muted: #807970;
  --line: #ded8cf;
  --paper: #ffffff;
  --warm-paper: #f7f4ee;
  --clay: #8b4a35;
  --red: #6b1f1b;
  --shadow: rgba(22, 21, 20, 0.12);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.45;
}

body.drawer-open,
body.search-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 46px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(222, 216, 207, 0.78);
  backdrop-filter: blur(18px);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.nav-right {
  justify-content: flex-end;
}

.brand,
.hero-brand {
  font-weight: 650;
  letter-spacing: 0.12em;
}

.brand {
  font-size: 27px;
  white-space: nowrap;
}

.nav-control,
.nav-link-button,
.text-button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
}

.nav-right a,
.nav-link-button {
  font-size: 14px;
  white-space: nowrap;
}

.nav-icon,
.nav-icon::before,
.nav-icon::after {
  display: block;
  width: 19px;
  height: 1px;
  background: currentColor;
}

.nav-icon {
  position: relative;
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-icon::before {
  top: -6px;
}

.nav-icon::after {
  top: 6px;
}

.search-icon {
  width: 17px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background 220ms ease;
}

.drawer-backdrop.is-open {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.48);
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: -520px;
  bottom: 0;
  z-index: 50;
  width: min(520px, 92vw);
  padding: 34px 42px;
  background: #fff;
  transition: left 260ms ease;
  box-shadow: 18px 0 60px var(--shadow);
}

.menu-drawer.is-open {
  left: 0;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.12em;
  font-weight: 650;
}

.drawer-nav {
  display: grid;
  gap: 24px;
  padding-top: 36px;
}

.drawer-nav a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1.05;
}

.page-section {
  scroll-margin-top: var(--header-height);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ebe6dd;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 30%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.hero-media,
.hero-media .media-slot,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-slot {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(139, 74, 53, 0.08), rgba(22, 21, 20, 0.04)),
    var(--warm-paper);
}

.media-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-slot.is-empty::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(22, 21, 20, 0.12);
}

.hero-brand {
  position: absolute;
  top: calc(var(--header-height) + 32px);
  left: 50%;
  z-index: 2;
  color: #fff;
  font-size: 19px;
  transform: translateX(-50%);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.32);
}

.hero-copy {
  position: absolute;
  left: 50%;
  bottom: 8.5vh;
  z-index: 2;
  width: min(720px, calc(100vw - 40px));
  color: #fff;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.45);
}

.hero-copy p,
.section-title p,
.section-kicker {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 30px;
}

.line-action {
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
}

.section {
  padding: 96px 56px;
  background: #fff;
}

.section-title {
  margin: 0 auto 46px;
  max-width: 920px;
}

.section-title.centered {
  text-align: center;
}

.section-title h2,
.archive-copy h2,
.craft-copy h2,
.maison-section h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.collection-card figure {
  margin: 0;
}

.collection-image {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, #f2f0ec, #e4ded5);
}

.collection-card img {
  transition: transform 420ms ease;
}

.collection-card:hover img {
  transform: scale(1.035);
}

.collection-card figcaption {
  padding-top: 18px;
  color: var(--ink);
  font-size: 17px;
  text-align: center;
}

.archive-section {
  background: var(--warm-paper);
}

.archive-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 72px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.archive-copy p,
.craft-copy p,
.contact-lines p,
.fine-print,
.sample-codes,
.form-note {
  color: var(--soft-ink);
}

.fine-print,
.sample-codes,
.form-note {
  font-size: 13px;
}

.archive-form {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
}

.archive-form label,
.commission-form label {
  display: grid;
  gap: 10px;
  color: var(--soft-ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
}

.code-row button,
.submit-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
}

.archive-result {
  margin-top: 24px;
}

.archive-record {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.archive-image {
  aspect-ratio: 1;
}

.archive-record span {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.archive-record h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.archive-record p,
.archive-empty {
  margin: 4px 0;
  color: var(--soft-ink);
}

.craft-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 56px;
  align-items: center;
}

.craft-media {
  min-height: 620px;
}

.craft-image {
  width: 100%;
  min-height: 620px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
}

.evidence-grid span {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #fff;
  color: var(--soft-ink);
  text-align: center;
}

.commission-section {
  background: #fff;
}

.commission-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
}

.commission-form .wide,
.submit-button,
.form-note {
  grid-column: 1 / -1;
}

.submit-button {
  width: fit-content;
  min-width: 190px;
}

.form-note.is-active {
  color: var(--clay);
}

.payment-section {
  background: var(--warm-paper);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.policy-grid p {
  min-height: 156px;
  margin: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: #fff;
}

.payment-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.payment-flow li {
  position: relative;
  min-height: 118px;
  padding: 24px 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--soft-ink);
  counter-increment: flow;
}

.payment-flow li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.maison-section {
  min-height: 52vh;
  display: grid;
  align-content: center;
  background: #fff;
  border-top: 1px solid var(--line);
}

.maison-section h2 {
  max-width: 900px;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  background: var(--ink);
  color: #fff;
}

.contact-section .section-title {
  margin: 0;
}

.contact-lines {
  color: rgba(255, 255, 255, 0.72);
}

.contact-lines a {
  border-bottom: 1px solid currentColor;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 46px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.search-panel {
  position: fixed;
  inset: var(--header-height) 0 auto;
  z-index: 35;
  padding: 30px 46px 36px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 44px var(--shadow);
}

.search-shell {
  max-width: 980px;
  margin: 0 auto;
}

.search-shell label {
  display: block;
  margin-bottom: 12px;
  color: var(--soft-ink);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.search-results {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.search-results p,
.search-results a {
  margin: 0;
  padding: 16px 18px;
  background: #fff;
}

.search-results a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.search-results small {
  color: var(--muted);
}

@media (max-width: 1020px) {
  .site-header {
    padding: 0 22px;
  }

  .nav-right {
    gap: 16px;
  }

  .nav-right a:nth-child(1),
  .nav-link-button {
    display: none;
  }

  .collection-grid,
  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-layout,
  .craft-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .payment-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 16px;
  }

  .brand {
    justify-self: center;
    font-size: 21px;
  }

  .nav-control span:last-child,
  .nav-right a:not(:last-child) {
    display: none;
  }

  .nav-left,
  .nav-right {
    gap: 14px;
  }

  .hero-brand {
    top: calc(var(--header-height) + 22px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .section {
    padding: 70px 20px;
  }

  .collection-grid,
  .policy-grid,
  .commission-form,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .archive-form {
    padding: 24px;
  }

  .code-row,
  .archive-record {
    grid-template-columns: 1fr;
  }

  .craft-media,
  .craft-image {
    min-height: 420px;
  }

  .search-panel {
    padding: 22px 18px 26px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}
