/* ============================================================
   Tulip Garage — warm earth editorial
   ============================================================ */

:root {
  --bg: #f5efe4;
  --bg-2: #efe6d6;
  --ink: #2b1e14;
  --ink-soft: #5a4636;
  --accent: #c25a37;
  --accent-deep: #a4462a;
  --secondary: #6a7a4a;
  --line: rgba(43, 30, 20, 0.16);
  --line-strong: rgba(43, 30, 20, 0.28);
  --paper-card: #fbf7ef;
  --ink-panel: #241a12;
  --ink-panel-text: #f0e7d9;
  --ink-panel-soft: #bdaa95;
  --shadow: 0 1px 2px rgba(43, 30, 20, 0.06), 0 12px 32px -18px rgba(43, 30, 20, 0.35);
  --radius: 4px;
  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1410;
    --bg-2: #241a14;
    --ink: #f2e9db;
    --ink-soft: #c3b2a0;
    --accent: #e07a52;
    --accent-deep: #ef8f68;
    --secondary: #9aab74;
    --line: rgba(242, 233, 219, 0.16);
    --line-strong: rgba(242, 233, 219, 0.3);
    --paper-card: #251b14;
    --ink-panel: #120d09;
    --ink-panel-text: #f0e7d9;
    --ink-panel-soft: #a89684;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -18px rgba(0, 0, 0, 0.8);
  }
}

html[data-theme="light"] {
  --bg: #f5efe4;
  --bg-2: #efe6d6;
  --ink: #2b1e14;
  --ink-soft: #5a4636;
  --accent: #c25a37;
  --accent-deep: #a4462a;
  --secondary: #6a7a4a;
  --line: rgba(43, 30, 20, 0.16);
  --line-strong: rgba(43, 30, 20, 0.28);
  --paper-card: #fbf7ef;
  --ink-panel: #241a12;
  --ink-panel-text: #f0e7d9;
  --ink-panel-soft: #bdaa95;
  --shadow: 0 1px 2px rgba(43, 30, 20, 0.06), 0 12px 32px -18px rgba(43, 30, 20, 0.35);
}

html[data-theme="dark"] {
  --bg: #1c1410;
  --bg-2: #241a14;
  --ink: #f2e9db;
  --ink-soft: #c3b2a0;
  --accent: #e07a52;
  --accent-deep: #ef8f68;
  --secondary: #9aab74;
  --line: rgba(242, 233, 219, 0.16);
  --line-strong: rgba(242, 233, 219, 0.3);
  --paper-card: #251b14;
  --ink-panel: #120d09;
  --ink-panel-text: #f0e7d9;
  --ink-panel-soft: #a89684;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -18px rgba(0, 0, 0, 0.8);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* animated noise field */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  filter: url(#grain);
  opacity: 0.055;
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: 0.07; }
}
html[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.07; }
html[data-theme="light"] body::before { mix-blend-mode: multiply; opacity: 0.055; }

.noise-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

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

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

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: "Fraunces", "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 1.9vw, 1.32rem); line-height: 1.25; }

p { margin: 0 0 1.05em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 0.9em;
}

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.wrap--split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .wrap--split { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

.band { padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; z-index: 1; }
.band--paper { background: var(--bg); }
.band--ink {
  background: var(--ink-panel);
  color: var(--ink-panel-text);
}
.band--ink h2, .band--ink h3 { color: var(--ink-panel-text); }
.band--ink .eyebrow { color: var(--secondary); }
.band--ink p { color: var(--ink-panel-soft); }
.band--ink a { color: var(--accent); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-lede { color: var(--ink-soft); font-size: 1.08rem; }
.band--ink .section-lede { color: var(--ink-panel-soft); }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mark { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.mark-name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}
.mark-sub {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
}

.site-nav { display: none; gap: 1.4rem; margin-left: auto; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }
@media (min-width: 860px) { .site-nav { display: flex; } }

.call-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.call-btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.call-label { font-weight: 400; opacity: 0.85; }
@media (min-width: 860px) { .call-btn { margin-left: 0; } }

.theme-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero : diagonal split ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  isolation: isolate;
}

.hero-half { position: relative; }

.hero-half--paper {
  background: var(--bg);
  padding: clamp(2.6rem, 7vw, 5.5rem) var(--gutter) clamp(5rem, 11vw, 8rem);
}
.hero-half--ink {
  background: var(--ink-panel);
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  margin-top: -1px;
}

.hero-inner { max-width: 34rem; margin-inline: auto; }

.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }

.hero-note { font-size: 0.9rem; color: var(--ink-soft); }

.hero-figure { margin: 0; max-width: 34rem; margin-inline: auto; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--ink-panel-soft);
  max-width: 34rem;
}

/* diagonal slice between the two halves */
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .hero-half--paper {
    padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 4.5rem) clamp(6rem, 10vw, 9rem) var(--gutter);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    z-index: 2;
  }
  .hero-half--ink {
    margin-top: 0;
    margin-left: -6%;
    padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(4rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
    z-index: 1;
  }
  .hero-inner { margin-inline: 0; max-width: 32rem; }
  .hero-figure { margin-inline: 0; max-width: 30rem; }
}

/* kinetic hero — font weight shifts with scroll */
.kinetic {
  position: relative;
  font-variation-settings: "wght" 300, "opsz" 100;
  animation: weigh linear both;
  animation-timeline: scroll(root);
  animation-range: 0 30vh;
}

@keyframes weigh {
  from { font-variation-settings: "wght" 200, "opsz" 90; }
  to   { font-variation-settings: "wght" 800, "opsz" 144; }
}

/* signature — hover swaps the headline phrase */
.kinetic .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: var(--accent);
  transition: opacity 0.32s ease;
  pointer-events: none;
}
.kinetic .default { transition: opacity 0.32s ease; }
.kinetic:hover .default,
.kinetic:focus-within .default { opacity: 0; }
.kinetic:hover .alt,
.kinetic:focus-within .alt { opacity: 1; }

/* ---------- services ---------- */
.service-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service {
  background: var(--paper-card);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: background-color 0.2s ease;
}
.service:hover { background: var(--bg-2); }
.service h3 { margin-bottom: 0.5em; }
.service p { font-size: 0.97rem; color: var(--ink-soft); }
.service-meta {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--secondary) !important;
  font-weight: 600;
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li { border-top: 2px solid var(--accent); padding-top: 1.2rem; }
.step-num {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.steps h3 { margin-bottom: 0.45em; }
.steps p { font-size: 0.97rem; }

.wide-figure { margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.wide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.wide-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--ink-panel-soft);
}

/* ---------- about ---------- */
.about-copy p { color: var(--ink-soft); }
.about-sign {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink) !important;
  margin-top: 1.4rem;
}
.about-media { display: grid; gap: 1.5rem; }
.about-media figure { margin: 0; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-media figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- hours + contact ---------- */
.visit-block h2 { margin-bottom: 1.2rem; }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(240, 231, 217, 0.14);
  font-weight: 400;
}
.hours th { color: var(--ink-panel-text); font-weight: 500; width: 45%; }
.hours td { color: var(--ink-panel-soft); font-variant-numeric: tabular-nums; }
.hours .closed th, .hours .closed td { color: #8d7c6b; }
.hours .closed td { font-style: italic; }

.visit-note { font-size: 0.92rem; color: var(--ink-panel-soft); }

.contact-card {
  font-style: normal;
  display: grid;
  gap: 1.1rem;
  margin: 0 0 1.4rem;
}
.contact-line { margin: 0; display: grid; gap: 0.2rem; }
.contact-key {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
}
.contact-value { color: var(--ink-panel-text); font-size: 1rem; }
.contact-value--big {
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 500;
  color: var(--accent) !important;
  text-decoration: none;
  line-height: 1.1;
}
a.contact-value--big:hover { color: var(--accent-deep) !important; }
a.contact-value { color: var(--accent); }

.callout {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid rgba(240, 231, 217, 0.2);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(240, 231, 217, 0.04);
}
.callout-text { max-width: 44ch; }
.callout-text h3 { margin-bottom: 0.35em; }
.callout-text p { margin: 0; font-size: 0.97rem; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
  position: relative;
  z-index: 1;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-name {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.foot-meta { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.foot-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}
.foot-nav a:hover { color: var(--accent); text-decoration: underline; }

.foot-claim { margin-top: 2rem; }
.claim-banner {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
}
.claim-banner:hover { color: var(--accent); border-color: var(--accent); }

.attribution {
  max-width: var(--wrap);
  margin: 1.5rem auto 0;
  padding-inline: var(--gutter);
  font-size: 0.78rem;
}
.attribution a { color: var(--ink-soft); text-decoration: none; }
.attribution a:hover { text-decoration: underline; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .kinetic { animation: none; font-variation-settings: "wght" 500, "opsz" 120; }
  body::before { animation: none; }
  .call-btn:hover, .btn--solid:hover { transform: none; }
}
