/* ============================================================
   Studio Boe — one stylesheet for the whole site.

   Every colour here was sampled out of the actual logo file, so the site
   and the logo can never drift apart:
       ivory  #f4ebdf   the logo's background
       olive  #4b4525   the STUDIO BOE lettering
       rose   #d5948e   the circle and the bow

   One deliberate exception: the logo's rose only reaches 2.1:1 against
   ivory, which is unreadable as text. So --rose is kept for decoration
   (rules, borders, soft fills) and a deepened --rose-deep #8f4e47 does
   the work of links and buttons at 5.3:1. Same hue, legible.
   ============================================================ */

:root {
  --ivory:        #f4ebdf;
  --ivory-raised: #fcf7ee;
  --ink:          #272316;
  --ink-soft:     #5a5442;
  --ink-faint:    #8b8371;
  --line:         #e2d6c4;
  --rose:         #d5948e;
  --rose-deep:    #8f4e47;
  --rose-soft:    #f6e4e0;
  --olive:        #4b4525;
  --olive-soft:   #e7e4d0;
  --radius:       12px;
  --shadow:       0 1px 2px rgba(33, 29, 28, 0.05);
  --shadow-lift:  0 8px 28px rgba(33, 29, 28, 0.10);
  --display: "Cormorant Garamond", ui-serif, Georgia, "Iowan Old Style", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ivory:        #18160f;
    --ivory-raised: #211e15;
    --ink:          #ece5d6;
    --ink-soft:     #b0a894;
    --ink-faint:    #857e6d;
    --line:         #363021;
    --rose:         #d5948e;
    --rose-deep:    #e0a49d;
    --rose-soft:    #33211f;
    --olive:        #b6ae7c;
    --olive-soft:   #282513;
    --shadow:       0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-lift:  0 8px 28px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* `height: auto` is load-bearing. Every <img> carries width= and height=
   attributes so the browser can reserve space before the file arrives,
   but those become presentational hints — a *definite* height — and CSS
   `aspect-ratio` is ignored whenever width and height are both definite.
   Without this line every cropped image renders at its full intrinsic
   height and the crop does nothing. */
img { max-width: 100%; display: block; height: auto; }

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

.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 660px; }

/* ---------- the strip at the very top ---------- */

.preopen {
  background: var(--olive-soft);
  color: var(--olive);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 24px;
  border-bottom: 1px solid var(--line);
}

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

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 20;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--rose-deep); }

nav.site { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

nav.site a {
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
}
nav.site a:hover { color: var(--ink); }
nav.site a.here { color: var(--ink); font-weight: 600; }

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

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--rose-deep);
  background: var(--rose-deep);
  color: var(--ivory-raised);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: var(--ivory-raised); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.ghost { background: transparent; color: var(--rose-deep); }
.btn.ghost:hover { background: var(--rose-soft); color: var(--rose-deep); }

.btn.small { font-size: 14px; padding: 9px 16px; }

/* `nav.site a` is more specific than `.btn`, so without this the button
   in the header inherits the nav's grey and ends up dark-on-rose. */
nav.site a.btn { color: var(--ivory-raised); }
nav.site a.btn:hover { color: var(--ivory-raised); }
nav.site a.btn.ghost { color: var(--rose-deep); }

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

/* Split hero: words on the left, one big photograph on the right that
   runs to the edge of the window. A centred logo over centred text read
   like a holding page -- the photo is the thing that says "this studio
   is real and here is the work". */
.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 620px);
  gap: 0 64px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  min-height: min(78vh, 720px);
}

.hero-text {
  padding: 72px 40px 72px max(24px, calc((100vw - 1180px) / 2));
  max-width: 660px;
  justify-self: end;
  width: 100%;
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo {
  height: 100%;
  min-height: min(78vh, 720px);
  overflow: hidden;
  background: var(--rose-soft);
}
.hero-photo picture { display: block; height: 100%; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-text { padding: 48px 24px 40px; justify-self: stretch; max-width: none; order: 2; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; order: 1; }
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 62px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 10px;
  text-wrap: balance;
}

h3 {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}

p { margin: 0 0 16px; max-width: 64ch; }

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-top: 20px;
}

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

/* ---------- generic section ---------- */

section.band { padding: 66px 0; border-bottom: 1px solid var(--line); }
section.band:last-of-type { border-bottom: 0; }

.section-head { margin-bottom: 34px; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- the menu ---------- */

.menu { border-top: 1px solid var(--line); }

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.menu-item .name {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
}

.menu-item .price {
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--rose-deep);
  white-space: nowrap;
  text-align: right;
}

.menu-item .blurb {
  grid-column: 1 / 2;
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
  max-width: 56ch;
}

.menu-item .mins {
  grid-column: 2 / 3;
  text-align: right;
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .menu-item { grid-template-columns: 1fr; }
  .menu-item .price, .menu-item .mins { text-align: left; }
  .menu-item .blurb, .menu-item .mins { grid-column: 1; }
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--ivory-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- hours ---------- */

.hours { border-top: 1px solid var(--line); max-width: 560px; }

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
/* The day name shouldn't be squeezed until its note wraps onto three
   lines -- that was tripling the height of every row. Let the day keep
   its natural width and the time keep its own. */
.hours-row .when { flex: 0 1 auto; }
.hours-row .time { flex: 0 0 auto; }
.hours-row .when { font-weight: 600; }
.hours-row .time { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-row.highlight .time { color: var(--olive); font-weight: 600; }

/* The days she's shut. Deliberately quiet — it's the answer to "can I
   come Monday", not a third of the schedule. */
.hours-closed {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ---------- forms ---------- */

form.studio { max-width: 560px; }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}

.field .hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-faint);
  display: block;
  margin-top: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--ivory-raised);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 13px;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--rose-deep);
  outline-offset: 1px;
  border-color: var(--rose-deep);
}

/* Side-by-side fields. One of them has a hint line under its label and
   the other doesn't, which would push its input a line lower than its
   neighbour. `subgrid` puts every label on one shared row and every
   input on the next, so they line up whatever the labels say. Browsers
   without subgrid just get the old slightly-uneven version. */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0 16px;
}
.two-up .field {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  align-content: end;
}
@media (max-width: 560px) {
  .two-up { grid-template-columns: 1fr; grid-template-rows: none; }
  .two-up .field { display: block; }
}

/* Not shown to people — only to the bots that fill in every field they
   find. A real person never sees this, so anything typed in it is spam. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.note {
  font-size: 14px;
  padding: 13px 15px;
  border-radius: 9px;
  margin: 0 0 20px;
  max-width: 560px;
}
.note.good { background: var(--olive-soft); color: var(--olive); }
.note.bad  { background: var(--rose-soft); color: var(--rose-deep); }
.note.quiet { background: var(--ivory-raised); border: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- policies ---------- */

.policy-list { display: grid; gap: 4px; }
.policy { padding: 20px 0; border-bottom: 1px solid var(--line); }
.policy:first-child { border-top: 1px solid var(--line); }
.policy p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

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

footer.site {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

footer.site .cols {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
footer.site a { color: var(--ink-soft); }
footer.site a:hover { color: var(--rose-deep); }
footer.site .fine { margin-top: 30px; font-size: 13px; color: var(--ink-faint); }

/* ---------- admin ---------- */

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.booking {
  background: var(--ivory-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.booking.is-new { border-left-color: var(--rose-deep); }
.booking.is-confirmed { border-left-color: var(--olive); }
.booking.is-done, .booking.is-declined { opacity: 0.6; }

.booking-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.booking .who { font-family: var(--display); font-size: 24px; font-weight: 500; }
.booking .svc { color: var(--rose-deep); font-weight: 600; font-size: 15px; }
.booking dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 14px 0 0;
  font-size: 15px;
}
.booking dt { color: var(--ink-faint); }
.booking dd { margin: 0; }
.booking .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--line);
  color: var(--ink-faint);
  white-space: nowrap;
}
.tag.new { background: var(--rose-soft); color: var(--rose-deep); border-color: transparent; }
.tag.confirmed { background: var(--olive-soft); color: var(--olive); border-color: transparent; }

.empty { color: var(--ink-faint); padding: 50px 0; text-align: center; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--ivory-raised);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--rose-deep);
}


/* ---------- the logo ---------- */

.wordmark img {
  height: 40px;
  width: auto;
}
@media (max-width: 480px) { .wordmark img { height: 32px; } }

.hero-logo {
  width: min(330px, 74vw);
  margin: 0 0 30px;
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--rose);
  margin: 40px 0 0;
  max-width: 420px;
}
.hero-rule::before, .hero-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rose);
}
.hero-rule .bow { font-size: 15px; letter-spacing: 0.2em; color: var(--rose-deep); }


/* ---------- service cards ---------- */

.svc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--ivory-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: inherit; }
.svc-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.svc-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.svc-card-body h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 6px;
}
.svc-card-body p { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }

.svc-card-price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 19px;
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.svc-card-price span { font-size: 13px; font-weight: 400; color: var(--ink-faint); }

/* ---------- the portfolio grid ---------- */

/* Fixed three across rather than auto-fill. There are nine photos, and
   auto-fill picked four columns at desktop width, which left the ninth
   sitting alone on its own row looking like a mistake. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--rose-soft);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery figure:hover img { transform: scale(1.04); }

.gallery-note {
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: none;
}

/* A faint wash behind the portfolio, so the page has more than one
   surface and the grid reads as its own section rather than more page. */
section.band.tinted { background: var(--ivory-raised); }

/* ---------- hours beside a photo ---------- */

.hours-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.hours-split .hours { max-width: none; }
.hours-aside img { width: 100%; border-radius: var(--radius); object-fit: cover; }

@media (max-width: 860px) {
  .hours-split { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- closing band ---------- */

section.band.closer {
  background: var(--olive);
  border-bottom: 0;
  color: var(--ivory);
}
section.band.closer h2 { color: var(--ivory); }
section.band.closer p { color: rgba(244, 235, 223, 0.82); }
section.band.closer .btn {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--olive);
}
section.band.closer .btn:hover { color: var(--olive); }

@media (prefers-color-scheme: dark) {
  section.band.closer { background: var(--olive-soft); color: var(--ink); }
  section.band.closer h2 { color: var(--ink); }
  section.band.closer p { color: var(--ink-soft); }
  section.band.closer .btn { background: var(--olive); border-color: var(--olive); color: var(--ivory); }
  section.band.closer .btn:hover { color: var(--ivory); }
}


/* ---------- a photo dropped into a column of prose ---------- */

.wide-photo { margin: 32px 0 34px; }
.wide-photo img { width: 100%; border-radius: var(--radius); }
.wide-photo figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-faint);
}


/* ---------- header on a phone ---------- */

/* Sticky is right on a laptop and wrong on a phone: wrapped onto three
   rows it took about a fifth of the screen, permanently. Below 700px it
   scrolls away with everything else and the rows are tightened up. */
@media (max-width: 700px) {
  header.site { position: static; }
  header.site .wrap {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px 14px;
  }
  .wordmark img { height: 30px; }
  nav.site { gap: 16px; width: 100%; }
  nav.site a { font-size: 14.5px; }
  nav.site a.btn { margin-left: auto; }
}
