/* ============================================================
   The Beauty Bothy — warm earth editorial
   palette: paper / espresso / terracotta / moss
   ============================================================ */

:root {
  --bg:        #f5efe4;
  --bg-tint:   #ece3d4;
  --ink:       #2b1e14;
  --ink-soft:  #5b4a3c;
  --accent:    #c25a37;
  --secondary: #6a7a4a;
  --rule:      rgba(43, 30, 20, 0.16);
  --card:      #fbf7ef;
  --shadow:    0 1px 0 rgba(43,30,20,.06), 0 18px 40px -28px rgba(43,30,20,.5);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Karla", ui-sans-serif, system-ui, sans-serif;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1180px;
}

html[data-theme="dark"] {
  --bg:        #1c1510;
  --bg-tint:   #241b14;
  --ink:       #f2e9dc;
  --ink-soft:  #c3b3a2;
  --accent:    #e07a52;
  --secondary: #9aab72;
  --rule:      rgba(242, 233, 220, 0.18);
  --card:      #241b14;
  --shadow:    0 1px 0 rgba(0,0,0,.3), 0 18px 40px -28px rgba(0,0,0,.9);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- grain overlay ------------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
}
html[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.07; }

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

: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;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: .6rem 1rem; z-index: 10000;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  animation: slide-down .7s cubic-bezier(.2,.7,.2,1) both;
}

.mark {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin-right: auto;
}
.mark-the {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--ink-soft);
}
.mark-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}

.nav { display: none; gap: 1.6rem; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .86rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .55rem .1rem;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.theme {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .4rem .85rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  font: inherit;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.theme:hover { border-color: var(--accent); color: var(--ink); }
.theme-icon {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -4px -3px 0 0 var(--bg);
}
html[data-theme="dark"] .theme-icon {
  background: var(--bg);
  box-shadow: inset 4px 3px 0 0 var(--accent);
}

@media (min-width: 760px) {
  .nav { display: flex; }
}

/* ============================================================
   HERO — diagonal split
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: min(88vh, 780px);
  isolation: isolate;
}

.hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: clamp(2.5rem, 8vw, 5rem) var(--pad);
}
.hero-panel--paper { background: var(--bg); }
.hero-panel--ink {
  background: var(--ink);
  color: var(--bg);
  align-items: flex-end;
}

.hero-inner { max-width: 34rem; min-width: 0; }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}
.eyebrow--light { color: color-mix(in srgb, var(--bg) 62%, transparent); }

.hero-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 15vw, 8.5rem);
  line-height: .88;
  letter-spacing: -.035em;
  margin: 0;
  font-variation-settings: 'wght' 240, 'opsz' 120;
  transition: font-variation-settings .45s cubic-bezier(.2,.7,.2,1);
}
.hero-name:hover,
.hero-name:focus-visible {
  font-variation-settings: 'wght' 900, 'opsz' 120;
}

.hero-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  color: var(--ink-soft);
  margin: 1.1rem 0 0;
}

.hero-inner--ink { padding-bottom: clamp(.5rem, 3vw, 2rem); }

.hero-lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.4vw, 1.75rem);
  line-height: 1.35;
  margin: 0 0 1.4rem;
  max-width: 30rem;
  text-wrap: pretty;
}

.hero-meta {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 60%, transparent);
  margin: 0;
}

/* the diagonal seam */
.hero-seam {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-seam::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  width: auto;
  height: 3px;
  background: var(--accent);
  transform: rotate(-3.2deg);
  transform-origin: center;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

@media (min-width: 900px) {
  .hero {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    min-height: min(86vh, 820px);
  }
  .hero-panel--paper {
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    padding-right: clamp(4rem, 12vw, 10rem);
  }
  .hero-panel--ink {
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -12%;
    padding-left: clamp(4rem, 12vw, 10rem);
    align-items: center;
  }
  .hero-seam { top: 0; bottom: 0; height: auto; }
  .hero-seam::before {
    left: 44%;
    top: -6%;
    width: 3px;
    height: 112%;
    transform: rotate(4.6deg);
  }
  .hero-name { font-size: clamp(4rem, 9vw, 8.5rem); }
}

/* ============================================================
   BANDS
   ============================================================ */
.band { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.band--tint { background: var(--bg-tint); }
.band--ink {
  background: var(--ink);
  color: var(--bg);
}
.band--ink a { color: var(--accent); }
.band--ink a:hover { color: var(--bg); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.band-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 1rem;
  font-variation-settings: 'wght' 380, 'opsz' 90;
  text-wrap: balance;
}

.band-intro { color: var(--ink-soft); margin: 0; max-width: 40rem; }
.band--ink .band-intro { color: color-mix(in srgb, var(--bg) 72%, transparent); }

/* ============================================================
   WORK
   ============================================================ */
.work-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }

.work-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.1rem 1.1rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.work-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: -.35rem -.35rem 1.1rem;
  background: var(--bg-tint);
}
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .work-media img { transform: scale(1.035); }

.work-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: -.015em;
  margin: 0 0 .3rem;
}
.work-tag {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 .8rem;
}
.work-card p:last-child {
  margin: 0;
  font-size: .94rem;
  color: var(--ink-soft);
}

/* ============================================================
   PRICES
   ============================================================ */
.price-cols {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .price-cols { grid-template-columns: 1fr 1fr; } }

.price-head {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 1rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name val" "desc val";
  gap: 0 .9rem;
  align-items: baseline;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
}
.p-name {
  grid-area: name;
  font-weight: 600;
  font-size: 1rem;
}
.p-desc {
  grid-area: desc;
  font-size: .85rem;
  color: var(--ink-soft);
}
.p-val {
  grid-area: val;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent);
  white-space: nowrap;
}

.price-note {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  font-size: .88rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--secondary);
  padding-left: 1rem;
  max-width: 44rem;
}

/* ============================================================
   STUDIO
   ============================================================ */
.wrap--split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .wrap--split { grid-template-columns: 1.55fr 1fr; align-items: start; }
}

.studio-copy p { margin: 0 0 1.15rem; color: var(--ink-soft); max-width: 38rem; }
.studio-copy h2 { margin-bottom: 1.4rem; }

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink) !important;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.3rem 0;
  margin-top: 2rem !important;
  text-wrap: pretty;
}

.studio-aside {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.aside-head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0 1rem;
  letter-spacing: -.01em;
}
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list li {
  font-size: .9rem;
  color: var(--ink-soft);
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
}
.aside-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-list strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   VISIT
   ============================================================ */
.wrap--visit {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .wrap--visit { grid-template-columns: 1fr 1fr; align-items: start; }
}

.address {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  line-height: 1.5;
  margin: 0 0 1.1rem;
}
.wayfind {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
  font-size: .95rem;
  max-width: 30rem;
  margin: 0 0 2rem;
}

.hours {
  width: 100%;
  max-width: 26rem;
  border-collapse: collapse;
  font-size: .92rem;
}
.hours th, .hours td {
  text-align: left;
  padding: .5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 16%, transparent);
  font-weight: 400;
}
.hours th { color: color-mix(in srgb, var(--bg) 62%, transparent); width: 45%; }
.hours td { font-variant-numeric: tabular-nums; }

.visit-note {
  font-size: .85rem;
  color: color-mix(in srgb, var(--bg) 58%, transparent);
  margin: 1.4rem 0 0;
  max-width: 28rem;
}

/* --- form --- */
.visit-form-wrap {
  background: color-mix(in srgb, var(--bg) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  border-radius: 3px;
  padding: clamp(1.4rem, 4vw, 2.2rem);
}
.form-head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 .5rem;
}
.form-sub {
  font-size: .9rem;
  color: color-mix(in srgb, var(--bg) 70%, transparent);
  margin: 0 0 1.6rem;
}

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 62%, transparent);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 2px;
  padding: .7rem .8rem;
  min-height: 44px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--ink) 42%, transparent); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.btn {
  justify-self: start;
  min-height: 46px;
  padding: .75rem 1.7rem;
  font: inherit;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: progress; }

.form-status {
  margin: 0;
  font-size: .9rem;
  color: color-mix(in srgb, var(--bg) 80%, transparent);
}
.form-status[data-state="ok"] { color: var(--secondary); }
.form-status[data-state="err"] { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  background: var(--bg-tint);
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 5rem;
  text-align: center;
}
.foot-mark {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -.01em;
  margin: 0 0 .6rem;
}
.foot-line {
  font-size: .88rem;
  color: var(--ink-soft);
  margin: 0 0 .35rem;
}
.foot-line--small { font-size: .8rem; opacity: .85; }

.attribution {
  position: static;
  margin: 2rem 0 0;
  font-size: .72rem;
  opacity: .55;
  font-family: var(--sans);
}
.attribution a { color: inherit; }

/* ============================================================
   PAGE-LOAD ORCHESTRATION (one shot, then still)
   ============================================================ */
@keyframes slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes rise-in {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes seam-draw {
  from { transform: scaleY(0) rotate(4.6deg); }
  to   { transform: scaleY(1) rotate(4.6deg); }
}

.hero-name,
.hero-role,
.hero-lede,
.hero-meta {
  animation: rise-in .85s cubic-bezier(.2,.7,.2,1) both;
}
.hero-name { animation-delay: .18s; }
.hero-role { animation-delay: .30s; }
.hero-lede { animation-delay: .42s; }
.hero-meta { animation-delay: .54s; }

.hero-seam::before {
  animation: seam-draw .9s cubic-bezier(.2,.7,.2,1) .1s both;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .hero-seam::before { transform: rotate(4.6deg); }
  .work-card:hover .work-media img { transform: none; }
}

  }
  .hero-seam::before { transform: rotate(4.6deg); }
  .work-card:hover .work-media img { transform: none; }
}

