/*
Theme Name: Mesa
Theme URI: https://upshurtattoo.com/
Author: Mesa Tattoo On Upshur
Description: Lightweight house theme for Mesa Tattoo On Upshur. Shared header, footer and design system so pages contain only copy and images. Pages that include their own <style> block (artist pages) render standalone, with no theme header, footer or CSS.
Version: 1.5.2
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: mesa
*/

/* =========================================================
   1. TOKENS
   ========================================================= */
:root {
  --cream: #f4f0e6;
  --paper: #fffdf7;
  --ink: #292b22;
  --olive: #555c3d;
  --olive-dark: #383d2a;
  --terracotta: #b96548;
  --muted: #5f6156;
  --terracotta-text: #a14f33; /* terracotta for small text (passes WCAG AA on cream and paper) */
  --line: #d9d4c6;

  /* Fonts. Only Anton is downloaded (self-hosted, see functions.php).
     Everything else uses fonts already on the device, picked to match
     the old Google Fonts look:
       body  (was Archivo)    → Helvetica Neue / Arial / Roboto
       serif (was Fraunces)   → Iowan Old Style / Georgia / Noto Serif
       mono  (was Space Mono) → SF Mono / Menlo / Consolas / Roboto Mono */
  --f-display: 'Anton', 'Anton Fallback', Impact, 'Arial Narrow', sans-serif-condensed, 'Roboto Condensed', sans-serif;
  --f-body: 'Helvetica Neue', Helvetica, Arial, Roboto, 'Liberation Sans', sans-serif;
  --f-serif: 'Iowan Old Style', Georgia, 'Noto Serif', 'Droid Serif', serif;
  --f-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Roboto Mono', 'Liberation Mono', monospace;

  --wrap: 1100px;
  --gutter: 26px;
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.mesa {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
}

.mesa img { max-width: 100%; height: auto; }
.mesa a { color: inherit; text-underline-offset: 4px; }
.mesa a:hover { color: var(--terracotta-text); }
.mesa p { margin: 0 0 1em; }
.mesa strong { font-weight: 700; }

.mesa h1, .mesa h2 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--ink);
}
.mesa h1 { font-size: clamp(48px, 8vw, 94px); max-width: 900px; margin: 0 0 25px; }
.mesa h2 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 22px; }
.mesa h3 {
  font-family: var(--f-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.mesa h4 { font-family: var(--f-body); font-size: 18px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; padding: 10px 14px; background: var(--paper); }

/* =========================================================
   3. LAYOUT
   ========================================================= */
.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 var(--gutter); }

.hero { padding: 76px 0 64px; border-bottom: 1px solid var(--line); }
.section { padding: 68px 0; border-bottom: 1px solid var(--line); }
.section.paper { background: var(--paper); }
.section.dark { background: var(--olive-dark); color: var(--paper); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--paper); }
.section.dark .kicker { color: #e5dfcd; }
.section-intro { max-width: 760px; margin-bottom: 28px; }
.narrow { max-width: 760px; }

.grid-2, .grid-3 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* =========================================================
   4. TEXT HELPERS
   ========================================================= */
.mono, .kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.kicker { color: var(--olive); margin: 0 0 18px; }
.lede { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; max-width: 760px; }
.muted { color: var(--muted); }
.note {
  margin-top: 30px;
  padding: 20px 24px;
  border-left: 4px solid var(--terracotta);
  background: var(--paper);
  font-family: var(--f-serif);
  font-size: 20px;
  line-height: 1.5;
}

/* =========================================================
   5. BUTTONS
   ========================================================= */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mesa .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  background: var(--olive);
  border: 1px solid var(--olive);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.mesa .btn:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: #fff; }
.mesa .btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.mesa .btn.outline:hover { background: var(--ink); color: var(--paper); }
.mesa .dark .btn.outline, .mesa .callout .btn.outline { color: var(--paper); border-color: var(--paper); }
.mesa .dark .btn.outline:hover, .mesa .callout .btn.outline:hover { background: var(--paper); color: var(--olive-dark); }

/* =========================================================
   6. CARDS, LISTS, CALLOUT
   ========================================================= */
.card { padding: 25px; background: var(--paper); border: 1px solid var(--line); }
.card > :last-child { margin-bottom: 0; }
.card .num { display: block; margin-bottom: 20px; color: var(--terracotta-text); font-family: var(--f-mono); font-size: 12px; }

.list { padding-left: 22px; margin: 18px 0; }
.list li { padding: 4px 0 4px 5px; }
.list li::marker { color: var(--terracotta); }

.callout { padding: 28px; margin-top: 28px; background: var(--olive-dark); color: var(--paper); }
.mesa .callout h3 { color: var(--paper); }
.callout .mono, .callout .kicker { color: #e5dfcd; }

/* =========================================================
   7. IMAGES: gallery + before/after
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.gallery figure, .before-after figure { margin: 0; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 16 / 9; }
.gallery figcaption, .before-after figcaption {
  padding: 12px 15px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0; }
.before-after img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.before-after .label { display: block; color: var(--terracotta-text); font-weight: 700; }

/* =========================================================
   8. FAQ
   ========================================================= */
.faq { border-top: 1px solid var(--line); padding: 22px 0; }
.mesa .faq h3 { font-family: var(--f-body); font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.faq p { margin: 0; max-width: 820px; }

/* =========================================================
   9. FORMS (Forminator)
   ========================================================= */
.form-wrap { padding: 24px; margin-top: 30px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.form-wrap .forminator-label, .form-wrap .forminator-description, .form-wrap .forminator-checkbox-label, .form-wrap .forminator-radio-label { color: var(--ink); }
.form-wrap .forminator-ui, .form-wrap .forminator-custom-form { width: 100%; max-width: 100%; }
.form-wrap .forminator-button-submit {
  background: var(--olive) !important;
  border-color: var(--olive) !important;
  color: var(--paper) !important;
  font-family: var(--f-mono) !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.form-wrap .forminator-button-submit:hover { background: var(--olive-dark) !important; border-color: var(--olive-dark) !important; }

/* =========================================================
   10. SITE HEADER + FOOTER (theme-owned)
   ========================================================= */
.site-topline { border-bottom: 1px solid var(--line); }
.site-topline .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.site-topline a { font-weight: 700; text-decoration: none; }

.site-nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-nav .wrap { padding-top: 12px; padding-bottom: 12px; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; padding: 0; list-style: none; }
.site-nav a { font-family: var(--f-mono); font-size: 11px; line-height: 1.5; text-transform: uppercase; text-decoration: none; }
.site-nav .current-menu-item > a { color: var(--terracotta-text); }
.site-nav .nav-cta > a, .site-nav a.nav-cta {
  display: inline-block;
  padding: 9px 12px;
  background: var(--olive);
  border: 1px solid var(--olive);
  color: var(--paper);
}
.site-nav .nav-cta > a:hover, .site-nav a.nav-cta:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: var(--paper); }

/* Phone menu (accordion) styles are printed inline in the page head by
   functions.php (mesa_nav_css), so the menu works even when a caching
   plugin serves an older copy of this file. */

.site-footer { padding: 28px 0; background: var(--olive-dark); color: var(--paper); }
.site-footer a { color: var(--paper); }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 8px; padding: 0; }
.site-topline .custom-logo { display: block; height: 48px; width: auto; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }

/* =========================================================
   11. PLAIN PAGES + BLOG (no custom markup)
   ========================================================= */
.entry { padding: 60px 0 72px; }
.entry-header { margin-bottom: 28px; }
.entry-content { max-width: 760px; }
.entry-content h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 1.4em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { display: block; margin: 24px 0; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.post-list { display: grid; gap: 18px; }
.post-list .card h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.post-list .card a { text-decoration: none; }
.pagination { margin-top: 28px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }

/* =========================================================
   11b. MORE LAYOUTS: split, hero with image, points, steps, photo
   ========================================================= */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.mesa h1 .accent { display: block; color: var(--olive); }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split.reverse > :first-child { order: 2; }

.section.ink { background: var(--ink); color: var(--paper); }
.section.ink h2, .section.ink h3 { color: var(--paper); }
.section.ink .kicker, .section.dark .kicker { color: #c6cba9; }
.section.ink .muted, .section.dark .muted { color: rgba(255, 253, 247, .72); }
.section.ink .card, .section.dark .card { background: transparent; border-color: rgba(255, 253, 247, .3); }
.section.ink .card .num, .section.dark .card .num { color: #c6cba9; }
.section.ink .btn.outline { color: var(--paper); border-color: var(--paper); }
.section.ink .btn.outline:hover { background: var(--paper); color: var(--ink); }
.section .panel { padding: clamp(24px, 4vw, 48px); background: var(--paper); color: var(--ink); min-width: 0; }
.mesa .section .panel h3 { color: var(--ink); }
.section .panel .kicker { color: var(--olive); }

.points { list-style: none; margin: 28px 0 0; padding: 0; }
.points li { position: relative; padding: 16px 0 16px 32px; border-top: 1px solid var(--line); }
.points li::before { content: '+'; position: absolute; left: 0; top: 15px; color: var(--olive); font-family: var(--f-mono); font-size: 1.1rem; font-weight: 700; }
.ink .points li, .dark .points li { border-top-color: rgba(255, 253, 247, .24); }
.ink .points li::before, .dark .points li::before { color: #c6cba9; }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin-top: 34px; counter-reset: step; }
.steps > * { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.steps > *::before { content: 'STEP 0' counter(step); counter-increment: step; display: block; margin-bottom: 18px; color: var(--olive); font-family: var(--f-mono); font-size: 12px; font-weight: 700; }

.photo { margin: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e8e2d5; }
.photo figcaption { margin-top: 12px; padding-left: 12px; border-left: 3px solid var(--olive); color: var(--muted); font-family: var(--f-mono); font-size: 11px; line-height: 1.5; text-transform: uppercase; }
.gallery figure.natural img { aspect-ratio: auto; height: auto; object-fit: contain; }
/* WordPress 6.7+ gives lazy images with sizes="auto" a 3000x1500 placeholder size; use the real width/height instead. */
.mesa img { contain-intrinsic-size: auto none; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.ink .rule, .dark .rule { border-top-color: rgba(255, 253, 247, .25); }

/* WordPress [gallery] shortcode output */
.gallery.gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery .gallery-item { margin: 0; overflow: hidden; }
.gallery .gallery-icon img { aspect-ratio: 1 / 1; }
.section.ink .gallery figure, .section.dark .gallery figure { border-color: rgba(255, 253, 247, .2); }

/* =========================================================
   11c. SIDEWAYS GALLERY (.scroller) + FAQ ACCORDION
   ========================================================= */
.scroller { margin: 30px 0; }
.scroller .scroller-track,
.scroller .gallery {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 0 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.scroller .scroller-track > figure,
.scroller .gallery > figure {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}
/* Every photo is the same height and keeps its own shape (no cropping). */
.scroller img,
.scroller .gallery .gallery-icon img {
  display: block;
  height: clamp(280px, 38vw, 420px);
  width: auto;
  max-width: 88vw;
  object-fit: cover;
}
.scroller .scroller-track:focus-visible,
.scroller .gallery:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }
.scroller-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.scroller-nav[hidden] { display: none; }
.mesa .scroller-btn {
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.mesa .scroller-btn:hover:not(:disabled) { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.mesa .scroller-btn:disabled { opacity: .3; cursor: default; }

:root { interpolate-size: allow-keywords; }
details.faq { padding: 0; border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
}
details.faq > summary::-webkit-details-marker { display: none; }
.mesa details.faq > summary h3 { margin: 0; transition: color .2s ease; }
details.faq > summary:hover h3 { color: var(--terracotta); }
details.faq > summary:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }
details.faq > summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--terracotta);
  font-family: var(--f-mono);
  font-size: 22px;
  line-height: 1;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
details.faq[open] > summary::after { content: '\2212'; background: var(--olive); border-color: var(--olive); color: var(--paper); }
details.faq > summary:hover::after { border-color: var(--terracotta); }
details.faq > p { margin: 0; padding: 0 58px 22px 0; }
details.faq::details-content { block-size: 0; overflow: hidden; transition: block-size .25s ease, content-visibility .25s allow-discrete; }
details.faq[open]::details-content { block-size: auto; }

/* =========================================================
   11d. HOMEPAGE COMPONENTS (mobile first)
   pin wall, spec strip, artist sheets, cards with links,
   credentials list, reading list, studio grid
   ========================================================= */
.mesa h1 em, .mesa h2 em { font-style: normal; color: var(--terracotta); }
.mesa h1 .display { display: block; }
.mesa h1 .sub {
  display: block;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: clamp(13px, 1.6vw, 15px);
  letter-spacing: .06em;
  line-height: 1.5;
  color: var(--ink);
}
.hero-grid h1 { font-size: clamp(40px, 5.6vw, 72px); overflow-wrap: anywhere; }
.split.end { align-items: end; }
.split.head { margin-bottom: clamp(28px, 5vw, 48px); }
.split.head h2 { margin-bottom: 0; }

/* Text link with arrow feel */
.mesa .go {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--terracotta-text);
}
.mesa .go:hover { color: var(--ink); }
.mesa .dark .go, .mesa .ink .go { color: #e2b49f; }
.mesa .dark .go:hover, .mesa .ink .go:hover { color: var(--paper); }

/* Card that stacks content and pins its link to the bottom */
.card.stack { display: flex; flex-direction: column; gap: 12px; }
.card.stack > * { margin: 0; }
.card.stack .go { margin-top: auto; padding-top: 6px; }

/* Pinned photo wall (hero) */
.pin-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 520px;
  margin: 8px auto 0;
  padding: 10px;
}
.mesa .pin {
  position: relative;
  display: block;
  padding: 8px 8px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 28px -18px rgba(41, 43, 34, .55);
  text-decoration: none;
  transform: rotate(var(--r, 0deg));
  transition: transform .3s ease;
}
.mesa .pin:hover { transform: rotate(0deg) scale(1.04); z-index: 2; color: inherit; }
.pin img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.pin span {
  position: absolute;
  left: 10px;
  bottom: 7px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.pin::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 54px;
  height: 18px;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--tape, rgba(185, 101, 72, .55));
}
.pin:nth-child(1) { --r: -3deg; --tape: rgba(85, 92, 61, .7); }
.pin:nth-child(2) { --r: 2deg; margin-top: 22px; --tape: rgba(201, 42, 45, .6); }
.pin:nth-child(3) { --r: -1.5deg; --tape: rgba(217, 201, 163, .9); }
.pin:nth-child(4) { --r: 2.5deg; --tape: rgba(135, 127, 168, .7); }

/* Spec strip (dl): 2 columns on phones, 4 (or 3 with .three) on desktop */
.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(36px, 6vw, 60px) 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.spec > div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.spec dd { margin: 6px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.spec.three { grid-template-columns: 1fr; }
@media (min-width: 761px) {
  .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spec.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Artist sheets: house frame, each artist's own colors and type */
.roster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 721px) { .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
.sheet {
  --bg: var(--paper);
  --fg: var(--ink);
  --ac: var(--terracotta);
  --sub: rgba(41, 43, 34, .76);
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
}
.sheet .ph { position: relative; overflow: hidden; }
.sheet .ph img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.sheet:hover .ph img { transform: scale(1.04); }
.sheet .strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px 4px 0; }
.sheet .strip img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.sheet .body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 22px 22px 24px; }
.sheet .body > * { margin: 0; }
.sheet .styles { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ac); }
.mesa .sheet h3 { margin: 0; font-size: 32px; font-weight: 400; line-height: 1.02; color: var(--fg); }
.sheet h3 small { display: inline-block; margin-left: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: lowercase; color: var(--sub); vertical-align: middle; }
.mesa .sheet p { font-size: 15px; color: var(--sub); }
.sheet .facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
}
.sheet .facts .mono { font-size: 11px; color: var(--fg); }
.mesa .sheet .go { color: var(--ac); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.mesa .sheet .go:hover { color: var(--fg); }
.s-rian { --bg: var(--paper); --fg: var(--ink); --ac: #8f3a17; }
.mesa .s-rian h3 { font-family: var(--f-display); text-transform: uppercase; }
.s-birdy { --bg: #f4f2ec; --fg: #161616; --ac: #c92a2d; --sub: rgba(22, 22, 22, .74); }
.mesa .s-birdy h3 { font-family: 'Helvetica Neue', 'Arial Black', Arial, Roboto, sans-serif; font-weight: 800; letter-spacing: -.02em; }
.s-fae { --bg: #16150c; --fg: #f1ece0; --ac: #d9c9a3; --sub: rgba(241, 236, 224, .72); border-color: #16150c; }
.mesa .s-fae h3 { font-family: var(--f-serif); font-style: italic; font-weight: 500; }
.s-alex { --bg: #fcf7bf; --fg: #15111f; --ac: #6d6496; --sub: rgba(21, 17, 31, .76); }
.mesa .s-alex h3 { font-family: 'Patrick Hand', 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive; font-size: 35px; letter-spacing: .05em; }
.s-alex .ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: linear-gradient(90deg, #877fa8 0 50%, #d47e97 50% 100%); }

/* Numbered credentials list */
.creds { list-style: none; margin: 0; padding: 0; align-self: start; border-top: 2px solid currentColor; }
.creds li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: 15px; }
.creds b { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; color: var(--terracotta-text); }
.dark .creds b, .ink .creds b { color: #e2b49f; }
.letter { display: grid; gap: 18px; max-width: 64ch; margin-top: 22px; }
.letter p { margin: 0; }

/* Reading list */
.reading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 861px) { .reading { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mesa .reading a { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 22px 22px 24px; background: var(--paper); text-decoration: none; transition: background-color .18s; }
.mesa .reading a:hover { background: #fff; color: var(--ink); }
.reading .mono { color: var(--olive); font-size: 11px; }
.reading strong { font-size: 17px; font-weight: 600; line-height: 1.35; }
.more { margin-top: 18px; }
.brand-head { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.brand-head h2 { margin: 0; }
.brand-head img { flex: none; width: clamp(64px, 8vw, 96px); height: auto; }

/* Studio photo grid */
.studio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.studio img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.studio img:first-child, .studio img:nth-child(4) { grid-column: 1 / 3; }
@media (min-width: 701px) {
  .studio { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .studio img:first-child { grid-column: auto; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
  .studio img:nth-child(4) { grid-column: 2 / 4; aspect-ratio: 16 / 7; }
}

/* Closing call to action */
.close h2 { font-size: clamp(40px, 6.5vw, 80px); max-width: 16ch; }

@media (prefers-reduced-motion: reduce) {
  .mesa .pin, .mesa .pin:hover, .sheet .ph img { transition: none; }
}

/* =========================================================
   12. RESPONSIVE
   ========================================================= */
@media (max-width: 800px) {
  .grid-3, .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .gallery.gallery-columns-3, .gallery.gallery-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --gutter: 18px; }
  .hero { padding: 52px 0; }
  .section { padding: 48px 0; }
  .grid-2, .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: auto; }
  .gallery.gallery-columns-3, .gallery.gallery-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  details.faq > p { padding-right: 0; }
  .before-after { gap: 10px; }
  .before-after figcaption { padding: 10px; font-size: 10px; }
  .card, .callout { padding: 21px; }
  .form-wrap { padding: 12px; margin-left: -8px; margin-right: -8px; }
}
@media (max-width: 400px) {
  .before-after { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
