:root {
  --plum: #12080e;
  --plum-deep: #0b0609;
  --navy: #0c1424;
  --burgundy: #7a2c40;
  --burgundy-deep: #4c1a28;
  --copper: #c4894a;
  --copper-deep: #8a5a2e;
  --brass: #e0c09a;
  --ivory: #f4ead8;
  --ivory-dim: #cbbfa8;
  --smoke: rgba(244, 234, 216, 0.06);
  --line: rgba(196, 137, 74, 0.42);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --mark: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --measure: 68ch;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.55;
  background:
    radial-gradient(ellipse at 8% -10%, rgba(122, 44, 64, 0.45), transparent 46%),
    radial-gradient(ellipse at 100% 100%, rgba(12, 20, 36, 0.85), transparent 42%),
    var(--plum);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(244, 234, 216, 0.85) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 28% 70%, rgba(224, 192, 154, 0.7) 50%, transparent 52%),
    radial-gradient(1px 1px at 72% 18%, rgba(244, 234, 216, 0.75) 50%, transparent 52%),
    radial-gradient(1px 1px at 84% 62%, rgba(196, 137, 74, 0.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 46% 40%, rgba(244, 234, 216, 0.45) 50%, transparent 52%),
    radial-gradient(1px 1px at 60% 86%, rgba(244, 234, 216, 0.55) 50%, transparent 52%),
    radial-gradient(1px 1px at 90% 34%, rgba(244, 234, 216, 0.4) 50%, transparent 52%);
}

.frame {
  pointer-events: none;
  position: fixed;
  inset: 10px;
  border: 1px solid rgba(196, 137, 74, 0.28);
  z-index: 40;
}

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

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

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--ivory);
  color: var(--plum);
  padding: 0.4rem 0.8rem;
}

.skip:focus {
  top: 0.6rem;
}

.site-header,
main,
.site-footer,
.cookie-banner {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem 1.5rem;
  background: rgba(18, 8, 14, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ivory);
  line-height: 1;
}

.wordmark strong {
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
}

.wordmark span {
  margin-top: 0.28rem;
  font-family: var(--mark);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 400;
}

.nav-toggle {
  display: none;
  font-family: var(--mark);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ivory-dim);
  text-decoration: none;
  font-size: 1.12rem;
}

.site-nav a[aria-current="page"] {
  color: var(--brass);
  box-shadow: inset 0 -1px 0 var(--copper);
}

.inline-error {
  color: #f0c2b4;
  font-size: 1rem;
  margin: 0.4rem 0 0;
}

main {
  padding: 0 1.25rem 4rem;
}

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.wrap-narrow {
  width: min(74ch, 100%);
  margin: 0 auto;
}

.coords {
  font-family: var(--mark);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin: 0 0 0.8rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1.55rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.hero {
  width: min(1180px, calc(100% - 0px));
  margin: 1.25rem auto 3rem;
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  min-height: 78vh;
  background: var(--plum-deep);
  border: 1px solid var(--line);
}

.hero-figure {
  margin: 0;
  min-height: 420px;
  position: relative;
}

.hero-figure img,
.frame-img img,
.portrait img,
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-plaque {
  align-self: end;
  margin: 1.25rem;
  padding: 1.4rem 1.35rem 1.5rem;
  background: rgba(18, 8, 14, 0.72);
  border: 1px solid rgba(196, 137, 74, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.lede {
  font-size: 1.28rem;
  color: var(--ivory-dim);
}

.btn,
button.btn {
  --slide: 0rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.15rem 0.55rem 0.65rem;
  border: 1px solid var(--copper);
  background:
    linear-gradient(90deg, transparent 2.6rem, rgba(196, 137, 74, 0.16) 2.6rem),
    linear-gradient(180deg, #3a2218, #24140f);
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  line-height: 1.2;
}

.btn-rail {
  position: relative;
  width: 2.5rem;
  height: 1.15rem;
  flex: 0 0 auto;
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
}

.btn-ring {
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: -0.52rem;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(224, 192, 154, 0.85) 0 8deg, transparent 8deg 24deg);
  box-shadow: inset 0 0 0 3px #2a1812;
  transition: transform 0.55s ease;
}

.btn:hover .btn-ring,
.btn:focus-visible .btn-ring {
  transform: translateX(1.35rem) rotate(160deg);
}

.btn-ghost {
  background: transparent;
}

.section {
  width: min(1120px, 100%);
  margin: 0 auto 4rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
  padding-bottom: 0.4rem;
}

.section-head .coords {
  margin: 0;
}

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

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.mark {
  font-family: var(--mark);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--copper);
  border: 1px solid var(--line);
  padding: 0.35rem 0.4rem;
  min-width: 3.2rem;
  text-align: center;
}

.frame-img {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--navy);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.frame-img figcaption,
.cover figcaption {
  font-family: var(--mark);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 0.45rem 0.6rem 0.55rem;
}

.plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.plate {
  background: var(--smoke);
  border: 1px solid var(--line);
  padding: 1rem 1rem 1.1rem;
  position: relative;
}

.plate::before,
.plate::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--copper);
  border-style: solid;
}

.plate::before {
  top: 6px;
  left: 6px;
  border-width: 1px 0 0 1px;
}

.plate::after {
  right: 6px;
  bottom: 6px;
  border-width: 0 1px 1px 0;
}

.plate img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  margin-bottom: 0.8rem;
}

.plate .price {
  font-family: var(--mark);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.account {
  border-left: 1px solid var(--copper);
  padding: 0.2rem 0 0.2rem 1.2rem;
}

.account footer {
  font-family: var(--mark);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.mast {
  width: min(1120px, 100%);
  margin: 2rem auto 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.mast h1 {
  max-width: 18ch;
}

.prose {
  width: min(72ch, 100%);
}

.prose h2 {
  margin-top: 2rem;
  font-size: 2rem;
}

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

.prose li {
  margin-bottom: 0.4rem;
}

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

.portrait {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(12, 20, 36, 0.35);
}

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

.portrait figcaption {
  padding: 0.75rem 0.8rem 1rem;
}

.portrait h3 {
  margin-bottom: 0.15rem;
}

.portrait .role {
  font-family: var(--mark);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.45rem;
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
}

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

.sheet th {
  font-family: var(--mark);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 400;
}

.quotes {
  display: grid;
  gap: 1.2rem;
}

.quote {
  margin: 0;
  padding: 1rem 1rem 0.4rem;
  background: rgba(12, 20, 36, 0.28);
  border-top: 1px solid var(--line);
}

.quote p {
  font-size: 1.28rem;
}

.quote footer {
  font-family: var(--mark);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.8rem;
}

.story {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 1.2rem;
}

.story .kicker {
  font-family: var(--mark);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

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

.note {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
  text-decoration: none;
  color: inherit;
}

.note img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.note h2 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  color: var(--ivory);
}

.cover {
  margin: 0 0 1.4rem;
  border: 1px solid var(--line);
}

.cover img {
  aspect-ratio: 16 / 8;
  max-height: 460px;
}

.room {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.room .frame-img {
  aspect-ratio: auto;
  min-height: 100%;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 1.05rem;
}

input,
select,
textarea {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ivory);
  background: rgba(11, 6, 9, 0.55);
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  width: 100%;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error {
  color: #f0c2b4;
  font-size: 0.98rem;
  min-height: 0;
}

.success-panel {
  border: 1px solid var(--copper);
  padding: 1rem 1.1rem;
  background: rgba(122, 44, 64, 0.25);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

address {
  font-style: normal;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 2.6rem;
  background: rgba(11, 6, 9, 0.72);
}

.footer-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 1.4rem;
}

.site-footer a {
  display: block;
  text-decoration: none;
  margin: 0.15rem 0;
}

.fine {
  font-family: var(--mark);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ivory-dim);
}

.cookie-banner {
  position: fixed;
  z-index: 60;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 1rem 0.9rem;
  background: rgba(18, 8, 14, 0.94);
  border: 1px solid var(--copper);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.6rem;
}

.cookie-banner .btn {
  min-width: 8.5rem;
  justify-content: center;
}

.missing-figure {
  display: grid;
  place-items: center;
  min-height: 12rem;
  background:
    linear-gradient(160deg, rgba(122, 44, 64, 0.35), rgba(12, 20, 36, 0.5)),
    var(--plum-deep);
  color: var(--brass);
  font-family: var(--mark);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.lost {
  min-height: 60vh;
  display: grid;
  align-content: center;
  width: min(40rem, 100%);
  margin: 0 auto;
  padding: 3rem 0;
}

@media (max-width: 860px) {
  .frame {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.8rem 1.2rem 1rem;
    background: rgba(18, 8, 14, 0.96);
    border-bottom: 1px solid var(--line);
  }

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

  .hero,
  .split,
  .plates,
  .people,
  .story,
  .note,
  .room,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-plaque {
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .story .kicker {
    margin-bottom: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-ring {
    transition: none;
  }

  .btn:hover .btn-ring,
  .btn:focus-visible .btn-ring {
    transform: none;
  }
}
