:root {
  --midnight: #0b1020;
  --plum: #140910;
  --velvet: #2a1220;
  --burgundy: #7a2e42;
  --burgundy-deep: #4c1b2a;
  --copper: #c4844a;
  --copper-deep: #8c5a32;
  --brass: #e0b37a;
  --ivory: #f4ead8;
  --ivory-dim: #d9cbb3;
  --rose: #e7b2b8;
  --ink: #1a1014;
  --line: rgba(196, 132, 74, 0.42);
  --glass: rgba(16, 8, 14, 0.78);
  --measure: 40rem;
  --header: 5.4rem;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Literata", "Palatino Linotype", Palatino, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(122, 46, 66, 0.38), transparent 36%),
    radial-gradient(ellipse at 100% 8%, rgba(20, 32, 64, 0.85), transparent 42%),
    linear-gradient(180deg, #120910 0%, #0b1020 46%, #160d12 100%);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 8% 14%, rgba(244, 234, 216, 0.85) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 22% 38%, rgba(196, 132, 74, 0.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 71% 12%, rgba(244, 234, 216, 0.7) 50%, transparent 52%),
    radial-gradient(1px 1px at 84% 46%, rgba(224, 179, 122, 0.75) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 46% 72%, rgba(244, 234, 216, 0.55) 50%, transparent 52%),
    radial-gradient(1px 1px at 15% 88%, rgba(196, 132, 74, 0.7) 50%, transparent 52%),
    radial-gradient(1px 1px at 93% 78%, rgba(244, 234, 216, 0.6) 50%, transparent 52%);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

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

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

p,
ul,
ol,
dl,
blockquote,
table {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

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

.skip:focus {
  top: 0.6rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(28, 14, 12, 0.96), rgba(14, 8, 12, 0.94));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.header-rail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0.95rem;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--copper), var(--brass), var(--copper), transparent) 1;
}

.wordmark {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.wordmark strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wordmark span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 0.28rem;
}

.coord {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
}

.nav-toggle {
  justify-self: end;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--copper);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.site-nav {
  display: none;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding-bottom: 0.4rem;
}

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

.site-nav a {
  text-decoration: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

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

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

.narrow {
  width: min(46rem, 100%);
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
}

.hero-copy {
  padding: 1.4rem 1.2rem 1.6rem;
  background:
    linear-gradient(160deg, rgba(42, 18, 32, 0.92), rgba(11, 16, 32, 0.88));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(244, 234, 216, 0.08);
}

.hero-copy h1 {
  max-width: 11ch;
}

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

.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.7rem;
}

.rail {
  display: inline-flex;
  padding: 0.45rem 0.2rem;
  border-top: 1px solid var(--copper);
  border-bottom: 1px solid var(--copper-deep);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  text-decoration: none;
  background: linear-gradient(180deg, #3a1c28, #1c0e14);
  border: 1px solid var(--copper);
  border-radius: 999px;
  padding: 0.45rem 1.15rem 0.45rem 0.45rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.45s ease, background 0.45s ease;
}

.btn .lens {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 50%;
  border: 2px solid var(--brass);
  box-shadow: inset 0 0 0 5px #1a0d12, 0 0 0 1px #6a4328;
  background:
    conic-gradient(from 20deg, transparent 0 78%, var(--copper) 0 86%, transparent 0 100%);
  transition: transform 0.55s ease;
}

.btn::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  transform: translateX(-30%);
  transition: transform 0.5s ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--ivory);
  transform: translateX(10px);
  background: linear-gradient(180deg, #4c2432, #241018);
}

.btn:hover .lens,
.btn:focus-visible .lens {
  transform: rotate(48deg);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(30%);
}

.btn.secondary {
  background: transparent;
}

button.btn {
  font: inherit;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.frame {
  position: relative;
  padding: 0.55rem;
  background: #10080c;
  border: 1px solid rgba(196, 132, 74, 0.38);
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--copper);
  border-style: solid;
  z-index: 1;
}

.frame::before {
  top: 4px;
  left: 4px;
  border-width: 2px 0 0 2px;
}

.frame::after {
  right: 4px;
  bottom: 4px;
  border-width: 0 2px 2px 0;
}

.frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #1a1016;
}

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

figcaption {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ivory-dim);
  padding: 0.55rem 0.2rem 0.1rem;
}

.band {
  padding: 2.5rem 0;
}

.band + .band {
  border-top: 1px solid rgba(196, 132, 74, 0.18);
}

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

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 1.2rem 1.15rem 1.3rem;
  box-shadow: inset 0 1px 0 rgba(244, 234, 216, 0.06);
}

.measure p:last-child,
.glass p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

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

.index-list li {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(196, 132, 74, 0.25);
}

.index-list li:last-child {
  border-bottom: 1px solid rgba(196, 132, 74, 0.25);
}

.index-list a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  text-decoration: none;
  line-height: 1.1;
}

.index-list span,
.meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ivory-dim);
}

.quote {
  margin: 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid var(--copper);
}

.quote p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.25;
  font-style: italic;
}

.quote footer {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--brass);
  letter-spacing: 0.08em;
}

.note-grid,
.story-list,
.card-stack {
  display: grid;
  gap: 1.2rem;
}

.note-card h3 {
  margin-bottom: 0.35rem;
}

.note-card a {
  text-decoration: none;
}

.sitting {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid rgba(196, 132, 74, 0.25);
}

.sitting:last-child {
  border-bottom: 1px solid rgba(196, 132, 74, 0.25);
}

.page-head {
  padding: 2.2rem 0 1.2rem;
}

.page-head h1 {
  max-width: 14ch;
}

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

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

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

.people {
  display: grid;
  gap: 1.5rem;
}

.person img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.fee {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(196, 132, 74, 0.28);
}

.fee:last-of-type {
  border-bottom: 1px solid rgba(196, 132, 74, 0.28);
}

.fee h3 {
  margin: 0;
}

.fee .amount {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  color: var(--brass);
}

.review {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(196, 132, 74, 0.22);
}

.review:last-child {
  border-bottom: 1px solid rgba(196, 132, 74, 0.22);
}

.review p {
  margin-bottom: 0.45rem;
}

.review cite {
  font-style: normal;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--brass);
  letter-spacing: 0.06em;
}

.story {
  display: grid;
  gap: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid rgba(196, 132, 74, 0.28);
}

th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}

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

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

label {
  display: grid;
  gap: 0.35rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

input,
select,
textarea {
  font: inherit;
  color: var(--ivory);
  background: rgba(8, 6, 12, 0.72);
  border: 1px solid rgba(196, 132, 74, 0.45);
  padding: 0.7rem 0.75rem;
  border-radius: 2px;
  width: 100%;
}

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

.field-error {
  min-height: 1.1em;
  color: var(--rose);
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: "Literata", serif;
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
}

.form-status.is-success {
  color: var(--brass);
}

.form-status.is-error,
.island-error {
  color: var(--rose);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.address-block p {
  margin: 0 0 0.4rem;
}

.site-footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, rgba(12, 8, 12, 0.2), #0c070b 30%);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
  padding: 2.2rem 0 1.4rem;
}

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

.footer-nav a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.legal-line {
  color: var(--ivory-dim);
  font-size: 0.92rem;
  padding-bottom: 1.6rem;
}

.cookie-banner {
  position: fixed;
  z-index: 8;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1rem 1.05rem;
  background: rgba(18, 8, 14, 0.94);
  border: 1px solid var(--copper);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.article-body {
  padding: 1.5rem 0 2rem;
}

.lost {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: 3rem 0 4rem;
}

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

::selection {
  background: var(--burgundy);
  color: var(--ivory);
}

@media (min-width: 860px) {
  .header-rail {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    grid-column: auto;
    justify-content: flex-end;
    padding: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
    padding-top: 2.2rem;
    min-height: calc(100vh - var(--header));
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.8rem 2.2rem;
  }

  .split.room,
  .split.flagship,
  .contact-grid,
  .story,
  .people {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .sitting {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.6rem;
    align-items: center;
  }

  .sitting:nth-child(even) .frame {
    order: 2;
  }

  .note-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner {
    left: auto;
    width: min(38rem, calc(100% - 2rem));
    right: 1rem;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

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

  .btn,
  .btn .lens,
  .btn::after {
    transition: none;
  }

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