/* BRAND: palette, type, and spacing. Swap the custom properties to retheme. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-roman.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit.woff2") format("woff2");
}

:root {
  --paper: #f4efe8;
  --paper-deep: #ebe3d8;
  --card: #fffaf6;
  --ink: #2a2420;
  --ink-soft: #5c534c;
  --muted: #6e655d;
  --line: rgba(42, 36, 32, 0.12);
  --blush: #f0ddd6;
  --blush-deep: #c48984;
  --rose: #8d4d4a;
  --sage: #d7e2d6;
  --sage-deep: #2f4a38;
  --sage-mid: #4e6756;
  --danger: #7a2e2a;
  --shadow: 0 22px 50px rgba(74, 52, 40, 0.08);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header: 4.5rem;
  --max: 72rem;
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(196, 137, 132, 0.2), transparent 55%),
    radial-gradient(800px 480px at -15% 18%, rgba(78, 103, 86, 0.12), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}

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

a {
  color: var(--sage-deep);
}

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

p {
  margin: 0 0 0.9rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  font-optical-sizing: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.concept-banner {
  background: #eadfd6;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.concept-banner p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem max(1.1rem, env(safe-area-inset-left));
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: #f7f2ec;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header);
  padding: 0.65rem max(1.1rem, env(safe-area-inset-right)) 0.65rem max(1.1rem, env(safe-area-inset-left));
  background: rgba(244, 239, 232, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.wordmark:hover {
  color: inherit;
}

.mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  color: var(--sage-deep);
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.wordmark-name em {
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
}

.wordmark-sub {
  margin-top: 0.18rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a[aria-current="true"] {
  color: var(--ink);
  background: rgba(255, 250, 246, 0.9);
}

.site-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  margin-left: auto;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 0.95rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--sage-deep);
  color: #f7f3ee;
}

.btn-primary:hover {
  background: #24392c;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(42, 36, 32, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 250, 246, 0.7);
  color: var(--ink);
}

.btn-full {
  width: 100%;
}

.hero,
.band {
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 1.75rem;
  padding: 1.75rem 0 2.5rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.75rem;
  color: var(--sage-mid);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  max-width: 11ch;
}

h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--rose);
}

.lede {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.3rem 0 1rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.72);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.fine {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.hero-float {
  margin: -3.2rem 0.8rem 0 auto;
  width: min(58%, 250px);
  position: relative;
}

.hero-float img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 1.1rem;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow);
}

.hero-float figcaption {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.35;
}

.band {
  padding: 2.5rem 0 1rem;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.section-intro h2,
.book-intro h2,
.visit-card h3 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 0.75rem;
}

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

.service-card {
  display: grid;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(42, 36, 32, 0.06);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card:nth-child(1) img { object-position: 45% 35%; }
.service-card:nth-child(2) img { object-position: 70% 40%; }
.service-card:nth-child(3) img { object-position: 72% 42%; }
.service-card:nth-child(4) img { object-position: 60% 45%; }

.service-copy {
  padding: 1.1rem 1.15rem 1.25rem;
}

.service-copy h3 {
  font-size: 1.7rem;
  margin-bottom: 0.45rem;
}

.service-copy p:last-child,
.visit-card p:last-child,
.book-intro p:last-child {
  margin-bottom: 0;
}

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

.shot {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #e7d9cf;
  cursor: zoom-in;
  text-align: left;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shot:nth-child(1) img { object-position: center 60%; }
.shot:nth-child(2) img { object-position: center 42%; }
.shot:nth-child(3) img { object-position: 62% 45%; }
.shot:nth-child(5) img { object-position: center 40%; }

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

.visit-card,
.book-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid rgba(42, 36, 32, 0.06);
  box-shadow: var(--shadow);
}

.visit-card address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
  margin-bottom: 0.9rem;
}

.phone-line {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 1rem 0;
}

.phone-line .label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.phone-link {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}

.phone-link:hover {
  color: var(--rose);
}

.hours-head {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.pill[data-state="open"] {
  background: #e5f0e4;
  color: #1f5a34;
}

.pill[data-state="closed"] {
  background: #f6e6df;
  color: #7a3e32;
}

.pill[data-state="unknown"] {
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.hours {
  margin: 0.4rem 0 0.8rem;
}

.hours-row {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.2rem;
  border-top: 1px solid var(--line);
}

.hours-row:last-child {
  border-bottom: 1px solid var(--line);
}

.hours-row dt {
  font-weight: 550;
}

.hours-row dd {
  margin: 0;
  color: var(--ink-soft);
}

.hours-row.is-today {
  background: linear-gradient(90deg, var(--sage), transparent 80%);
  border-radius: 0.6rem;
  border-top-color: transparent;
  padding-inline: 0.55rem;
}

.hours-row.is-today + .hours-row {
  border-top-color: transparent;
}

.band-book {
  padding-bottom: 3.5rem;
}

.book-layout {
  display: grid;
  gap: 1.25rem;
  padding: 1.2rem;
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(215, 226, 214, 0.65), rgba(240, 221, 214, 0.45));
}

.book-aside a {
  font-weight: 600;
}

.field-row {
  display: grid;
  gap: 0.8rem;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 550;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(42, 36, 32, 0.18);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

input::placeholder,
textarea::placeholder {
  color: #6d645c;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error,
.field-hint {
  min-height: 0;
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
}

.field-error {
  color: var(--danger);
}

.field-hint {
  color: var(--ink-soft);
}

.form-alert {
  margin-bottom: 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: #f8ece8;
  color: var(--danger);
}

.form-success {
  padding: 0.4rem 0.1rem 0.2rem;
}

.form-success h3 {
  font-size: 2rem;
  margin-bottom: 0.7rem;
}

.form-success h3:focus {
  outline: none;
}

.form-success p {
  font-size: 1.05rem;
}

.site-footer {
  padding: 1.6rem max(1.1rem, env(safe-area-inset-left)) calc(1.8rem + env(safe-area-inset-bottom));
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.lightbox {
  width: min(960px, calc(100% - 1.5rem));
  margin: auto;
  padding: 0.85rem;
  border: 0;
  border-radius: 1.2rem;
  background: #1d1916;
  color: #f6f1ea;
}

.lightbox::backdrop {
  background: rgba(28, 23, 20, 0.78);
}

.lightbox-bar,
.lightbox-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.lightbox-bar p {
  margin: 0;
  color: #eadfd4;
  font-size: 0.92rem;
}

.lightbox button {
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 234, 0.3);
  background: transparent;
  color: #f6f1ea;
  font: inherit;
  cursor: pointer;
}

.lightbox button:hover {
  background: rgba(246, 241, 234, 0.08);
}

.lightbox-figure {
  margin: 0.75rem 0;
}

.lightbox-figure img {
  display: block;
  width: 100%;
  max-height: min(70vh, 760px);
  object-fit: contain;
  border-radius: 0.8rem;
  background: #2a2420;
}

.lightbox-figure figcaption {
  margin-top: 0.65rem;
  color: #eadfd4;
  font-size: 0.98rem;
}

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

.lightbox :focus-visible {
  outline-color: #f3d2cb;
}

@media (max-width: 1120px) {
  .header-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (max-width: 859px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: calc(100% + 0.4rem);
    margin: 0;
    padding: 0.45rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a {
    width: 100%;
  }
}

@media (max-width: 430px) {
  :target,
  section,
  [id] {
    scroll-margin-top: 7.5rem;
  }

  .site-header {
    flex-wrap: wrap;
    row-gap: 0.15rem;
    padding-top: 0.5rem;
    padding-bottom: 0.55rem;
  }

  .wordmark {
    flex: 1 0 100%;
  }

  .menu-toggle {
    margin-left: 0;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot img {
    aspect-ratio: 1;
  }
}

@media (min-width: 720px) {
  .field-row,
  .visit-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

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

  .hero-float {
    position: absolute;
    right: 4%;
    bottom: 1.2rem;
    margin: 0;
    width: min(42%, 230px);
  }

  .hero-float figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.45rem;
    margin: 0;
    padding: 1.6rem 0.75rem 0.55rem;
    background: linear-gradient(transparent, rgba(32, 24, 20, 0.72));
    color: #f8f3ee;
    border-radius: 0 0 1rem 1rem;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
    padding-top: 2.5rem;
    min-height: calc(100vh - 8rem);
  }

  .hero-portrait {
    aspect-ratio: 5 / 6;
    max-height: 760px;
  }

  .service-card {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .service-card img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr 0.82fr;
    grid-template-rows: 230px 230px 250px;
  }

  .shot-wide,
  .shot-tall {
    grid-column: auto;
  }

  .gallery-grid .shot:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
  .gallery-grid .shot:nth-child(2) { grid-column: 3; grid-row: 1 / span 2; }
  .gallery-grid .shot:nth-child(3) { grid-column: 1; grid-row: 2; }
  .gallery-grid .shot:nth-child(4) { grid-column: 2; grid-row: 2; }
  .gallery-grid .shot:nth-child(5) { grid-column: 1 / span 2; grid-row: 3; }
  .gallery-grid .shot:nth-child(6) { grid-column: 3; grid-row: 3; }

  .shot,
  .shot img,
  .shot-wide img,
  .shot-tall img {
    height: 100%;
    aspect-ratio: auto;
  }

  .book-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    padding: 1.6rem;
    align-items: start;
  }

  .hours-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .badge,
  .btn,
  .pill,
  .shot {
    border: 1px solid ButtonText;
  }
}

::selection {
  background: #e7cfc8;
  color: var(--ink);
}
