/* Honsey Web Co. site template
   Presets set the palette and fonts; --accent comes from site.config.json. */

/* ---------- presets ---------- */

:root,
[data-preset="hometown"] {
  --paper: #f5efe4;
  --paper-2: #ebe2d1;
  --card: #fffaf2;
  --ink: #1d1915;
  --muted: #6c6258;
  --line: rgba(29, 25, 21, 0.14);
  --on-accent: #fff;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-weight: 560;
  --radius: 18px;
  --grain: 0.06;
  color-scheme: light;
}

[data-preset="modern"] {
  --paper: #f7f7f4;
  --paper-2: #ecece7;
  --card: #ffffff;
  --ink: #111316;
  --muted: #5d636b;
  --line: rgba(17, 19, 22, 0.12);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --display-weight: 700;
  --radius: 14px;
  --grain: 0;
}

[data-preset="bold"] {
  --paper: #121212;
  --paper-2: #1a1a1a;
  --card: #1f1f1f;
  --ink: #f2eee7;
  --muted: #a59e94;
  --line: rgba(242, 238, 231, 0.13);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --display-weight: 700;
  --radius: 10px;
  --grain: 0.04;
  color-scheme: dark;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

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

em {
  font-style: italic;
  color: var(--accent);
}

[data-preset="modern"] h1 em,
[data-preset="modern"] h2 em,
[data-preset="bold"] h1 em,
[data-preset="bold"] h2 em {
  font-style: normal;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.demo-banner {
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.demo-banner a {
  color: inherit;
  font-weight: 600;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn span {
  transition: transform 0.2s ease;
}

.btn:hover span {
  transform: translateX(3px);
}

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 22px -10px var(--accent);
}

.btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 28px -12px var(--accent);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--small {
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font: italic var(--display-weight) 1.15rem/1 var(--font-display);
}

.brand__name {
  font: var(--display-weight) 1.15rem/1 var(--font-display);
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 1.6rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}

/* faint drafting grid behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 35%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 35%, #000 10%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1.5px;
  background: var(--accent);
}

.hero__title {
  font-size: clamp(2.6rem, 5.2vw + 1rem, 5.6rem);
  line-height: 0.98;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero__sub {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__side {
  position: relative;
}

.hero__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

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

/* with a photo: wider photo column, and a compact visit card tucked over the bottom-left corner */
.hero--photo .hero__grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.hero--photo .hero__side {
  padding: 0 0 3.5rem 2.5rem;
}

.hero--photo .ticket {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(290px, 80%);
  padding: 1.15rem 1.3rem 1.1rem;
}

.hero--photo .ticket__rows {
  margin-bottom: 0.8rem;
}

.hero--photo .ticket__head::before {
  left: calc(-1.3rem - var(--notch) - 1px);
}

.hero--photo .ticket__head::after {
  right: calc(-1.3rem - var(--notch) - 1px);
}

.hero--photo .ticket__rows div:nth-child(3) {
  display: none;
}

/* the "visit" ticket card */
.ticket {
  --notch: 13px;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.4rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 2px 4px rgba(0, 0, 0, 0.04), 0 30px 60px -30px rgba(40, 25, 10, 0.35);
  transform: rotate(-1.6deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ticket:hover {
  transform: rotate(0deg) translateY(-2px);
}

/* accent stripe on the top edge */
.ticket::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.6rem;
  width: 3.2rem;
  height: 5px;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
}

.ticket__head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1.5px dashed var(--line);
}

/* punched notches on each side of the dashed line */
.ticket__head::before,
.ticket__head::after {
  content: "";
  position: absolute;
  bottom: calc(var(--notch) * -1);
  width: calc(var(--notch) * 2);
  height: calc(var(--notch) * 2);
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}

.ticket__head::before {
  left: calc(-1.6rem - var(--notch) - 1px);
  clip-path: inset(0 0 0 50%);
}

.ticket__head::after {
  right: calc(-1.6rem - var(--notch) - 1px);
  clip-path: inset(0 50% 0 0);
}

.ticket__label {
  font: var(--display-weight) 1.35rem/1 var(--font-display);
}

.ticket__no {
  font: 500 0.78rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.8rem 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.status__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted);
}

.status[data-state="open"] {
  background: rgba(46, 125, 72, 0.12);
  color: #23683b;
}

.status[data-state="open"] .status__dot {
  background: #2e9d55;
  animation: pulse 2s infinite;
}

.status[data-state="soon"] {
  background: rgba(196, 128, 18, 0.14);
  color: #8a5a07;
}

.status[data-state="soon"] .status__dot {
  background: #d18b12;
}

.status[data-state="closed"] .status__dot {
  background: #b4461f;
}

[data-preset="bold"] .status[data-state="open"] {
  color: #6fd08f;
}

[data-preset="bold"] .status[data-state="soon"] {
  color: #f0b54c;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 157, 85, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(46, 157, 85, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 157, 85, 0);
  }
}

.ticket__rows {
  margin: 0 0 1.2rem;
}

.ticket__rows div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.ticket__rows div:last-child {
  border-bottom: 0;
}

.ticket__rows dt {
  font: 500 0.75rem/1.9 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticket__rows dd {
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
}

.ticket__rows a {
  text-decoration: none;
}

.ticket__rows a:hover {
  color: var(--accent);
}

.ticket__link {
  display: inline-flex;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.ticket__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- highlights strip ---------- */

.strip {
  border-block: 1px solid var(--line);
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip__item {
  padding: 1.8rem 1.5rem;
  border-left: 1px solid var(--line);
}

.strip__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.strip__item strong {
  display: block;
  font: var(--display-weight) clamp(1.7rem, 2.4vw, 2.4rem)/1.1 var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

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

/* ---------- sections ---------- */

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section--alt {
  background: var(--paper-2);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  font: 500 0.78rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.label span {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
}

.section__title {
  font-size: clamp(2.1rem, 3.4vw + 0.8rem, 3.6rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section__intro {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}

/* ---------- services ---------- */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.service {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.7rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, padding 0.25s ease;
}

.service:hover {
  background: var(--card);
  padding-left: 1.5rem;
}

.service__num {
  font: 500 0.85rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: var(--muted);
  transition: color 0.25s ease;
}

.service:hover .service__num {
  color: var(--accent);
}

.service h3 {
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.85rem);
  margin-bottom: 0.4rem;
}

.service p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

.service__price {
  font: var(--display-weight) 1.15rem/1 var(--font-display);
  white-space: nowrap;
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.about__text > p {
  font-size: 1.12rem;
  max-width: 36rem;
}

.about__text .section__head {
  margin-bottom: 1.5rem;
}

.about__quote {
  margin: 0;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
}

.about__quote img {
  border-radius: calc(var(--radius) - 6px);
  margin-bottom: 1.5rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.about__quote blockquote {
  margin: 0 0 1.2rem;
  font: italic var(--display-weight) clamp(1.5rem, 1.6vw + 1rem, 2.2rem)/1.2 var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

[data-preset="modern"] .about__quote blockquote,
[data-preset="bold"] .about__quote blockquote {
  font-style: normal;
}

.about__quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.about__quote figcaption::before {
  content: "";
  width: 1.8rem;
  height: 1.5px;
  background: var(--accent);
}

/* ---------- reviews ---------- */

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

.review {
  margin: 0;
  padding: 1.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -28px rgba(40, 25, 10, 0.4);
}

.review__stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.review blockquote {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  line-height: 1.55;
  flex: 1;
}

.review figcaption {
  font-weight: 600;
  font-size: 0.95rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- visit ---------- */

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}

.hours th,
.hours td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px dashed var(--line);
  text-align: left;
}

.hours th {
  font-weight: 500;
}

.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.hours tr.is-today {
  background: color-mix(in srgb, var(--accent) 11%, transparent);
}

.hours tr.is-today th,
.hours tr.is-today td {
  color: var(--ink);
  font-weight: 650;
}

.hours tr.is-today th::after {
  content: "Today";
  margin-left: 0.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 0.68rem/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

.hours__note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.visit__side {
  display: grid;
  gap: 1.25rem;
}

.visit__map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* stylized map tile when no Google Maps embed is set */
.visit__map--fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  text-align: center;
  padding: 1rem;
  background-color: var(--card);
  background-image: linear-gradient(105deg, transparent 47%, color-mix(in srgb, var(--accent) 22%, transparent) 47%, color-mix(in srgb, var(--accent) 22%, transparent) 50%, transparent 50%),
    linear-gradient(15deg, transparent 62%, var(--line) 62%, var(--line) 64.5%, transparent 64.5%),
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 34px 34px, 34px 34px;
  transition: transform 0.3s ease;
}

.visit__map--fallback:hover {
  transform: translateY(-2px);
}

.visit__map--fallback span:not(.pin) {
  color: var(--muted);
  font-size: 0.95rem;
}

.visit__map--fallback strong {
  color: var(--accent);
}

.pin {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-45deg);
  box-shadow: 0 10px 20px -8px var(--accent);
  position: relative;
  margin-bottom: 0.6rem;
}

.pin::after {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: var(--card);
}

.visit__address {
  font-style: normal;
  line-height: 1.6;
}

.visit__address strong {
  display: block;
  font: var(--display-weight) 1.25rem/1.4 var(--font-display);
}

.visit__address a {
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* ---------- faq ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.faq__list {
  border-top: 1px solid var(--ink);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  font: var(--display-weight) 1.25rem/1.3 var(--font-display);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.faq__item p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 40rem;
}

/* ---------- contact ---------- */

.section--ink {
  background: var(--ink);
  color: var(--paper);
  --muted: color-mix(in srgb, var(--paper) 68%, transparent);
  --line: color-mix(in srgb, var(--paper) 18%, transparent);
}

/* on the dark preset, keep the contact section dark instead of inverting to light */
[data-preset="bold"] .section--ink {
  --paper: #f2eee7;
  background: #0a0a0a;
  color: var(--paper);
  border-top: 3px solid var(--accent);
}

/* blend the accent toward the section's text color so it stays readable on the inverted background */
.section--ink em {
  color: color-mix(in srgb, var(--accent) 55%, var(--paper));
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact__direct {
  font-size: 1.1rem;
  color: var(--muted);
}

.contact__direct a {
  color: var(--paper);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 5%, transparent);
  border: 1px solid var(--line);
}

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

.form__hp {
  position: absolute;
  left: -9999px;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field em {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: inherit;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 6%, transparent);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--paper) 10%, transparent);
}

.form__status {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.95rem;
}

.form__status[data-state="ok"] {
  color: #7fd39a;
}

.form__status[data-state="error"] {
  color: #f19a7c;
}

/* ---------- footer ---------- */

.footer {
  padding: 2.5rem 0 3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 2rem;
  align-items: end;
}

.footer p {
  margin: 0;
}

.footer__name {
  font: var(--display-weight) 1.4rem/1.2 var(--font-display);
  color: var(--ink);
}

.footer__small {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin-top: 1rem !important;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.footer a {
  text-underline-offset: 3px;
}

/* ---------- mobile action bar ---------- */

.actionbar {
  display: none;
}

/* ---------- reveal animation ---------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js-reveal .hero .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.js-reveal .hero .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.js-reveal .hero .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.js-reveal .hero__side.reveal {
  transition-delay: 0.3s;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .hero__grid,
  .hero--photo .hero__grid,
  .about,
  .visit,
  .faq,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__side {
    max-width: 440px;
  }

  .hero--photo .ticket {
    left: 1rem;
  }

  .strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip__item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .strip__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .reviews {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 360px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .reviews::-webkit-scrollbar {
    display: none;
  }

  .review {
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .wrap {
    width: min(1180px, 100% - 2rem);
  }

  .topbar__inner {
    height: 62px;
  }

  .topbar__call {
    display: none;
  }

  .ticket {
    transform: none;
  }

  .ticket:hover {
    transform: none;
  }

  .hero--photo .hero__side {
    padding: 0;
  }

  .hero--photo .ticket {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: -3rem 1rem 0;
  }

  .service {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.4rem 0.8rem;
    padding: 1.4rem 0.25rem;
  }

  .service:hover {
    padding-left: 0.25rem;
  }

  .service__price {
    grid-column: 2;
    margin-top: 0.5rem;
    color: var(--accent);
  }

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

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

  .actionbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }

  .actionbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 0;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
  }

  .actionbar a span {
    font-size: 1.05rem;
    line-height: 1;
  }

  .actionbar a:first-child {
    background: var(--accent);
    color: var(--on-accent);
  }
}

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

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