:root {
  color-scheme: dark;
  --ink: #11110f;
  --night: #070a08;
  --aubergine: #311622;
  --mineral: #0f5e4b;
  --pool: #75d6c4;
  --copper: #c66f3c;
  --coral: #ed7c68;
  --mist: #f2f6ee;
  --paper: #e8efe4;
  --line: rgba(242, 246, 238, 0.2);
  --shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--mist);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

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

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--mist);
  color: var(--night);
  padding: 10px 14px;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(7, 10, 8, 0.72);
  border-bottom: 1px solid rgba(242, 246, 238, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.filter-tabs,
.ritual-tabs,
.card-meta,
.ritual-metrics {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--pool);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}

.brand-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 8px -5px 0 var(--pool), -6px 7px 0 var(--coral);
}

.nav-links {
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.header-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  color: rgba(242, 246, 238, 0.82);
}

.nav-links a:hover,
.header-action:hover {
  color: var(--mist);
  background: rgba(242, 246, 238, 0.08);
}

.header-action {
  border: 1px solid rgba(117, 214, 196, 0.44);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 112px 32px 0;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 10, 8, 0.92) 0%, rgba(7, 10, 8, 0.58) 44%, rgba(7, 10, 8, 0.14) 100%),
    linear-gradient(180deg, rgba(7, 10, 8, 0.12) 0%, rgba(7, 10, 8, 0.2) 55%, rgba(7, 10, 8, 0.86) 100%);
}

.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  align-self: center;
  padding: 36px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pool);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 760px;
  font-size: 5.6rem;
}

h2 {
  font-size: 3.3rem;
}

h3 {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(242, 246, 238, 0.9);
  font-size: 1.2rem;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
.strip-submit {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 800;
}

.button-primary,
.strip-submit {
  background: var(--pool);
  color: #06241f;
}

.button-primary:hover,
.strip-submit:hover {
  background: #a0eadc;
}

.button-secondary {
  background: rgba(242, 246, 238, 0.1);
  border-color: rgba(242, 246, 238, 0.24);
  color: var(--mist);
}

.button-secondary:hover {
  background: rgba(242, 246, 238, 0.18);
}

.visit-strip {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(130px, 0.42fr) minmax(160px, 0.55fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(242, 246, 238, 0.2);
}

.strip-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.strip-group legend,
.field span,
.reserve-form span {
  display: block;
  margin-bottom: 8px;
  color: rgba(242, 246, 238, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
}

.segmented {
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(7, 10, 8, 0.62);
  border: 1px solid rgba(242, 246, 238, 0.18);
  border-radius: 4px;
  overflow: hidden;
}

.segmented label {
  min-width: 0;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  color: rgba(242, 246, 238, 0.82);
  font-weight: 800;
}

.segmented input:checked + span {
  background: var(--pool);
  color: #06241f;
}

.field select,
.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(242, 246, 238, 0.18);
  border-radius: 4px;
  background: rgba(7, 10, 8, 0.72);
  color: var(--mist);
  padding: 11px 12px;
}

.strip-result {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(242, 246, 238, 0.76);
  min-height: 24px;
}

.ritual-section,
.treatments-section,
.rooms-section,
.membership-section,
.reserve-section {
  padding: 88px 32px;
}

.ritual-section {
  background: var(--paper);
  color: var(--ink);
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 40px;
  align-items: end;
}

.section-heading .eyebrow,
.ritual-output .eyebrow,
.rooms-copy .eyebrow,
.reserve-copy .eyebrow,
.membership-section .eyebrow {
  color: var(--mineral);
}

.section-heading p:last-child {
  margin: 0;
  color: rgba(17, 17, 15, 0.72);
}

.ritual-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ritual-tabs {
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.ritual-tab,
.filter-tab {
  min-height: 48px;
  border: 1px solid rgba(17, 17, 15, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  font-weight: 900;
}

.ritual-tab:hover,
.filter-tab:hover {
  background: rgba(15, 94, 75, 0.12);
}

.ritual-tab.is-active,
.filter-tab.is-active {
  background: var(--aubergine);
  color: var(--mist);
  border-color: var(--aubergine);
}

.ritual-image {
  margin: 0;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(7, 10, 8, 0.18);
}

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

.ritual-output {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: 34px;
  border: 1px solid rgba(17, 17, 15, 0.15);
  border-radius: 8px;
  background: #f8fbf4;
}

.ritual-output h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  color: var(--aubergine);
}

.ritual-output p {
  color: rgba(17, 17, 15, 0.72);
}

.ritual-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding-left: 22px;
  color: rgba(17, 17, 15, 0.78);
}

.ritual-metrics {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.ritual-metrics span {
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(15, 94, 75, 0.1);
  color: rgba(17, 17, 15, 0.78);
}

.ritual-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.treatments-section {
  background: #10110f;
}

.treatments-section .section-heading p:last-child {
  color: rgba(242, 246, 238, 0.72);
}

.filter-tabs {
  width: min(1120px, 100%);
  margin: 0 auto 22px;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  color: var(--mist);
  border-color: rgba(242, 246, 238, 0.18);
  background: rgba(242, 246, 238, 0.08);
  padding: 0 16px;
}

.filter-tab.is-active {
  background: var(--copper);
  border-color: var(--copper);
  color: #120905;
}

.treatment-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.treatment-card {
  min-height: 272px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(242, 246, 238, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(15, 94, 75, 0.22), rgba(49, 22, 34, 0.2)),
    rgba(242, 246, 238, 0.05);
}

.treatment-card[hidden] {
  display: none;
}

.card-index {
  color: var(--copper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.treatment-card p {
  margin: 0;
  color: rgba(242, 246, 238, 0.72);
}

.card-meta {
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 246, 238, 0.12);
  color: var(--pool);
  font-weight: 900;
}

.rooms-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr);
  gap: 36px;
  background: #f5f1ea;
  color: var(--ink);
}

.rooms-copy {
  max-width: 420px;
  align-self: start;
  position: sticky;
  top: 108px;
}

.rooms-copy p:last-child {
  color: rgba(17, 17, 15, 0.72);
}

.room-grid {
  display: grid;
  gap: 16px;
}

.room-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  overflow: hidden;
  padding: 26px;
  color: var(--mist);
  background: var(--aubergine);
  position: relative;
}

.room-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 8, 0.1), rgba(7, 10, 8, 0.72));
  z-index: 0;
}

.room-card > * {
  position: relative;
  z-index: 1;
}

.room-card p,
.room-card span {
  margin: 0;
  color: rgba(242, 246, 238, 0.74);
  font-weight: 800;
}

.room-card-photo {
  background-image: url("assets/mineral-bathhouse.webp");
  background-size: cover;
  background-position: center;
}

.room-card-copper {
  background:
    linear-gradient(120deg, rgba(49, 22, 34, 0.16), rgba(7, 10, 8, 0.78)),
    url("assets/apothecary-ritual.webp");
  background-size: cover;
  background-position: center;
}

.room-card-dark {
  background:
    linear-gradient(120deg, rgba(15, 94, 75, 0.48), rgba(7, 10, 8, 0.92)),
    radial-gradient(circle at 24% 28%, rgba(117, 214, 196, 0.2), transparent 34%),
    var(--aubergine);
}

.membership-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--aubergine);
}

.membership-section .eyebrow {
  color: var(--coral);
}

.pass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pass-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(242, 246, 238, 0.16);
  border-radius: 8px;
  background: rgba(242, 246, 238, 0.06);
}

.pass-card p {
  margin: 0;
  color: rgba(242, 246, 238, 0.72);
}

.pass-card span {
  margin-top: auto;
  color: var(--pool);
  font-weight: 900;
}

.reserve-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(320px, 0.8fr);
  gap: 44px;
  background: var(--paper);
  color: var(--ink);
}

.reserve-copy {
  max-width: 520px;
}

.reserve-copy p {
  color: rgba(17, 17, 15, 0.72);
}

.hours-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.hours-list div {
  padding-top: 14px;
  border-top: 1px solid rgba(17, 17, 15, 0.16);
}

.hours-list dt {
  font-weight: 900;
}

.hours-list dd {
  margin: 2px 0 0;
  color: rgba(17, 17, 15, 0.72);
}

.reserve-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(17, 17, 15, 0.14);
  border-radius: 8px;
  background: #f9fbf5;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(17, 17, 15, 0.18);
}

.reserve-form textarea {
  resize: vertical;
}

.form-message {
  min-height: 26px;
  margin: 0;
  color: var(--mineral);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  background: var(--night);
  color: rgba(242, 246, 238, 0.72);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .visit-strip,
  .section-heading,
  .ritual-layout,
  .rooms-section,
  .membership-section,
  .reserve-section {
    grid-template-columns: 1fr;
  }

  .visit-strip {
    background: rgba(7, 10, 8, 0.78);
    padding: 18px;
    border: 1px solid rgba(242, 246, 238, 0.16);
    border-bottom: 0;
  }

  .ritual-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ritual-tab {
    flex: 1 1 140px;
  }

  .ritual-image,
  .ritual-output {
    min-height: auto;
  }

  .ritual-image {
    height: 420px;
  }

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

  .rooms-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
    min-height: 64px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .header-action {
    min-height: 38px;
  }

  .hero {
    min-height: 86svh;
    padding: 84px 16px 0;
  }

  .hero-inner {
    padding: 14px 0 22px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
  }

  .filter-tabs {
    align-items: stretch;
  }

  .button,
  .strip-submit {
    width: 100%;
  }

  .hero-actions .button {
    width: auto;
    padding-inline: 10px;
  }

  .visit-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
  }

  .visit-strip .strip-group,
  .visit-strip .strip-submit,
  .visit-strip .strip-result {
    grid-column: 1 / -1;
  }

  .visit-strip .segmented {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .visit-strip .segmented span {
    min-height: 44px;
    padding: 0 4px;
  }

  .ritual-section,
  .treatments-section,
  .rooms-section,
  .membership-section,
  .reserve-section {
    padding: 64px 16px;
  }

  .ritual-output,
  .reserve-form,
  .pass-card,
  .treatment-card,
  .room-card {
    padding: 20px;
  }

  .ritual-output h3 {
    font-size: 1.95rem;
  }

  .treatment-grid,
  .pass-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .room-card {
    min-height: 260px;
  }

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

@media (max-width: 360px) {
  .hero {
    padding-top: 72px;
  }

  .hero-inner {
    padding-bottom: 16px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-copy {
    font-size: 0.96rem;
    line-height: 1.38;
    margin-top: 16px;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .button,
  .strip-submit {
    min-height: 42px;
  }

  .visit-strip {
    gap: 8px;
    padding: 10px 14px;
  }

  .visit-strip .segmented span,
  .field select {
    min-height: 42px;
  }

  .strip-result {
    display: none;
  }

  .ritual-section,
  .treatments-section,
  .rooms-section,
  .membership-section,
  .reserve-section {
    padding-top: 44px;
  }
}
