/* Ron Pierson Photography — public site styles.
   Dark is the default theme (html[data-theme="dark"]); light is html[data-theme="light"].
   No inline styles anywhere (strict CSP): every Block Designer option maps to a class here. */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/playfair.woff2) format("woff2");
}
/* Quicksand (body text), self-hosted from Google Fonts, SIL Open Font License */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/quicksand.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/quicksand-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0909;
  --bg-alt: #151010;
  --bg-deep: #050404;
  --surface: #1b1414;
  --surface-2: #241a19;
  --text: #cdc5c0;
  --muted: #968c86;
  --head: #f1ebe6;
  --accent: #d0954d;
  --accent-2: #e8b877;
  --on-accent: #1a0e05;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --shadow: 0 10px 30px rgba(0, 0, 0, .55);
  --header-bg: rgba(23, 6, 3, .92);
  --focus: #f2c47e;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f1ec;
  --bg-alt: #ede5dd;
  --bg-deep: #e2d7cc;
  --surface: #ffffff;
  --surface-2: #f3ece6;
  --text: #3a312d;
  --muted: #6e625b;
  --head: #1c1614;
  --accent: #9b5c1c;
  --accent-2: #b8742f;
  --on-accent: #fff;
  --line: rgba(0, 0, 0, .1);
  --line-2: rgba(0, 0, 0, .2);
  --shadow: 0 10px 30px rgba(60, 40, 25, .16);
  --header-bg: rgba(250, 246, 242, .94);
  --focus: #8a4b10;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 "Quicksand", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  transition: background-color .3s, color .3s;
}
img, video, svg { max-width: 100%; }
img { height: auto; display: block; }
picture { display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
html[data-theme="light"] a { color: var(--accent); }
a:hover { color: var(--head); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; color: var(--head); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--head); padding: 8px 14px; }
.skip:focus { left: 8px; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1.2 "Quicksand", "Segoe UI", system-ui, sans-serif; letter-spacing: .04em;
  padding: .8em 1.5em; border-radius: 4px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, html[data-theme="light"] .btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); color: var(--on-accent); }
.btn-outline, html[data-theme="light"] .btn-outline { border-color: var(--line-2); color: var(--head); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-ghost, html[data-theme="light"] .btn-ghost { color: var(--accent-2); padding-left: 0; padding-right: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn-s { font-size: .85rem; padding: .6em 1.1em; }
.btn-l { font-size: 1.05rem; padding: .95em 1.9em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.ta-center .btn-row { justify-content: center; }

/* ---- Header & menu ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, border-color .3s;
}
.header-row { max-width: 1500px; margin: 0 auto; padding: 10px 28px; display: flex; align-items: center; gap: 24px; }
.logo { display: block; flex: none; }
.logo-img { width: 170px; height: auto; }
html[data-theme="dark"] .logo-for-light, html[data-theme="light"] .logo-for-dark { display: none; }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a, .sub-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 4px; border: 0; background: none; cursor: pointer;
  color: var(--head); font: 600 .95rem/1 "Quicksand", "Segoe UI", system-ui, sans-serif; letter-spacing: .03em; text-decoration: none;
}
.nav-list > li > a:hover, .sub-toggle:hover, .nav-list a[aria-current="page"], .sub-toggle.is-current { color: var(--accent-2); }
html[data-theme="light"] .nav-list a[aria-current="page"], html[data-theme="light"] .sub-toggle.is-current { color: var(--accent); }
.sub-toggle .icon { width: 14px; height: 14px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-cta { border: 1px solid var(--line-2); }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub.open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1001px) { .has-sub:hover .sub { opacity: 1; visibility: visible; transform: none; } }
.sub a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 4px; color: var(--text); text-decoration: none; font-size: .95rem; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--surface-2); color: var(--head); }
.sub .icon { width: 15px; height: 15px; opacity: .7; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.theme-toggle, .nav-toggle {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-2); color: var(--head); cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--accent); color: var(--accent-2); }
html[data-theme="dark"] .when-light, html[data-theme="light"] .when-dark { display: none; }
.nav-toggle { display: none; }
.nav-toggle .when-open { display: none; }
.nav-open .nav-toggle .when-open { display: inline; }
.nav-open .nav-toggle .when-closed { display: none; }

@media (max-width: 1000px) {
  .header-row { padding: 8px 16px; }
  .logo-img { width: 130px; }
  .nav-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .main-nav {
    position: fixed; inset: 64px 0 auto 0; max-height: calc(100vh - 64px); overflow-y: auto;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; padding: 10px 16px 20px;
  }
  .nav-open .main-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li > a, .sub-toggle { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1.05rem; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 8px 12px; background: transparent; }
  .has-sub.open .sub { display: block; }
  .nav-cta { margin-top: 8px; justify-content: center !important; }
}

/* Home page: the header floats over the hero photo */
.hero-top .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); border-color: transparent; backdrop-filter: none; }
.hero-top .site-header .nav-list > li > a, .hero-top .site-header .sub-toggle,
.hero-top .site-header .theme-toggle, .hero-top .site-header .nav-toggle { color: #fff; }
.hero-top .site-header .theme-toggle, .hero-top .site-header .nav-toggle { border-color: rgba(255, 255, 255, .35); }
.hero-top .site-header .logo-for-light { display: none; }
.hero-top .site-header .logo-for-dark { display: block; }
.hero-top.scrolled .site-header { background: var(--header-bg); border-color: var(--line); backdrop-filter: blur(8px); }
.hero-top.scrolled .site-header .nav-list > li > a, .hero-top.scrolled .site-header .sub-toggle,
.hero-top.scrolled .site-header .theme-toggle, .hero-top.scrolled .site-header .nav-toggle { color: var(--head); }
.hero-top.scrolled .site-header .theme-toggle, .hero-top.scrolled .site-header .nav-toggle { border-color: var(--line-2); }
html[data-theme="light"] .hero-top.scrolled .site-header .logo-for-dark { display: none; }
html[data-theme="light"] .hero-top.scrolled .site-header .logo-for-light { display: block; }
.hero-top .sub a { color: var(--text); }
@media (max-width: 1000px) {
  .hero-top .site-header .nav-list > li > a, .hero-top .site-header .sub-toggle { color: var(--head); }
}

/* ---- Rows & columns (Block Designer) ---- */
.row { position: relative; isolation: isolate; }
.row-in { position: relative; margin: 0 auto; padding: 0 28px; }
.w-contained .row-in { max-width: 1200px; }
.w-wide .row-in { max-width: 1560px; }
.w-full .row-in { max-width: none; padding: 0; }
.row-in.narrow { max-width: 760px; }
.bg-default { background: var(--bg); }
.bg-alt { background: var(--bg-alt); }
.bg-deep { background: var(--bg-deep); }
.bg-wine { background: #2a0a08; --text: #e3d4cc; --head: #fff4ec; --muted: #c4a99c; --accent-2: #f0bf7c; --line: rgba(255, 255, 255, .14); color: var(--text); }
.bg-black { background: #000; --text: #c9c2bd; --head: #f4eee9; --muted: #958b86; --accent-2: #e2ad6c; --line: rgba(255, 255, 255, .12); color: var(--text); }
.bg-white { background: #fff; --text: #3a312d; --head: #1c1614; --muted: #6e625b; --accent-2: #9b5c1c; --line: rgba(0, 0, 0, .1); --surface: #f6f1ec; --surface-2: #ede5dd; color: var(--text); }
.has-bg { color: #eee6e0; --head: #fff; --text: #eee6e0; --muted: #d7cbc3; --accent-2: #f0c287; }
.row-bg { position: absolute; inset: 0; z-index: -2; }
.row-bg img { width: 100%; height: 100%; object-fit: cover; }
.row-ov, .ov { position: absolute; inset: 0; z-index: -1; background: #000; pointer-events: none; }
.ov-0 { opacity: 0; } .ov-20 { opacity: .2; } .ov-40 { opacity: .4; } .ov-60 { opacity: .6; } .ov-80 { opacity: .8; }
.pt-0 { padding-top: 0; } .pt-1 { padding-top: 24px; } .pt-2 { padding-top: 56px; } .pt-3 { padding-top: 96px; } .pt-4 { padding-top: 140px; }
.pb-0 { padding-bottom: 0; } .pb-1 { padding-bottom: 24px; } .pb-2 { padding-bottom: 56px; } .pb-3 { padding-bottom: 96px; } .pb-4 { padding-bottom: 140px; }
.ta-left { text-align: left; } .ta-center { text-align: center; } .ta-right { text-align: right; }
.cols { display: grid; grid-template-columns: 1fr; }
.gap-0 { gap: 0; } .gap-1 { gap: 16px; } .gap-2 { gap: 32px; } .gap-3 { gap: 56px; }
.va-top { align-items: start; } .va-center { align-items: center; } .va-bottom { align-items: end; }
.col { min-width: 0; }
@media (min-width: 801px) {
  .cols-6-6 { grid-template-columns: 1fr 1fr; }
  .cols-4-8 { grid-template-columns: 1fr 2fr; }
  .cols-8-4 { grid-template-columns: 2fr 1fr; }
  .cols-4-4-4 { grid-template-columns: repeat(3, 1fr); }
  .cols-3-9 { grid-template-columns: 1fr 3fr; }
  .cols-9-3 { grid-template-columns: 3fr 1fr; }
  .cols-3-3-3-3 { grid-template-columns: repeat(4, 1fr); }
  .hide-d { display: none !important; }
}
@media (min-width: 560px) and (max-width: 800px) { .cols-3-3-3-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) {
  .hide-m { display: none !important; }
  .row-in { padding: 0 16px; }
  .pt-2 { padding-top: 40px; } .pb-2 { padding-bottom: 40px; }
  .pt-3 { padding-top: 64px; } .pb-3 { padding-bottom: 64px; }
  .pt-4 { padding-top: 88px; } .pb-4 { padding-bottom: 88px; }
}
.blk { min-width: 0; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 20px; } .mb-2 { margin-bottom: 40px; } .mb-3 { margin-bottom: 72px; }
.blk:last-child { margin-bottom: 0; }

/* ---- Text ---- */
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.ta-center .prose ul, .ta-center .prose ol { display: inline-block; text-align: left; }
.prose blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--accent); font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 1.15em; color: var(--head); }
.prose .accent { color: var(--accent-2); }
.prose .muted { color: var(--muted); }
.prose .lead { font-size: 1.2em; }
.prose strong { color: var(--head); }

/* ---- Photo ---- */
.photo { margin: 0; }
.photo figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.framed picture { padding: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ta-center .photo picture, .ta-center .photo img { margin-left: auto; margin-right: auto; }
/* "As taken": keep the photo's own shape, but never taller than the screen */
.shape-natural { display: block; }
.shape-natural img { width: auto; max-width: 100%; height: auto; max-height: 88vh; max-height: 88svh; margin-left: auto; margin-right: auto; }
.shape-square img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.shape-portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.shape-landscape img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.shape-wide img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
a.lb { display: block; cursor: zoom-in; }
a.lb img, .card img, .gi img { transition: transform .5s ease, filter .3s; }
a.lb:hover img { filter: brightness(1.08); }

/* ---- Cover pictures (hero, overlay cards) ---- */
.cover { position: absolute; inset: 0; z-index: -2; }
.cover img, video.cover { width: 100%; height: 100%; object-fit: cover; }
.focus-top img { object-position: 50% 10%; } .focus-left img { object-position: 15% 50%; } .focus-right img { object-position: 85% 50%; }
.focus-top-right img { object-position: 88% 5%; } .focus-top-left img { object-position: 12% 5%; }
.hero-video { z-index: -2; }

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; display: flex; color: #fff; overflow: hidden; }
.hero.h-full { min-height: 100vh; min-height: 100svh; }
.hero.h-tall { min-height: 78vh; }
.hero.h-medium { min-height: 56vh; }
.hero.h-short { min-height: 36vh; }
.hero-text { position: relative; padding: 140px 6vw 12vh; max-width: 1100px; text-shadow: 0 2px 4px rgba(0, 0, 0, .6), 0 0 24px rgba(0, 0, 0, .55); }
.hero.pos-left, .hero.pos-bottom-left { align-items: flex-end; }
.hero.pos-left { align-items: center; }
.hero.pos-center { align-items: center; justify-content: center; text-align: center; }
.hero.pos-bottom { align-items: flex-end; justify-content: center; text-align: center; }
.hero.pos-right { align-items: center; justify-content: flex-end; text-align: right; }
.hero.pos-center .btn-row, .hero.pos-bottom .btn-row { justify-content: center; }
.hero.pos-right .btn-row { justify-content: flex-end; }
.hero-title { color: #fff; font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 400; line-height: 1.02; margin: 0 0 .25em; }
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.75rem); color: #f3ece6; margin: 0; letter-spacing: .02em; }
.hero.animate .hero-title { animation: hero-in 2.2s ease-in-out .3s both; }
.hero.animate .hero-sub { animation: hero-in 2.2s ease-in-out .9s both; }
.hero.animate .btn-row { animation: hero-in 1.6s ease-in-out 1.5s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); letter-spacing: .06em; } to { opacity: 1; transform: none; } }
.w-full .blk-hero, .row .blk-hero:only-child { margin-bottom: 0; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
@media (max-width: 800px) { .hero-text { padding: 110px 20px 10vh; } }
/* "Show whole photo": the photo sits in the page flow at its own shape (never taller than the screen), text laid over it */
.hero.fit-whole { display: block; background: #000; }
.hero.fit-whole .cover { position: relative; inset: auto; display: block; }
.hero.fit-whole .cover img { height: auto; max-height: 92vh; max-height: 92svh; object-fit: contain; margin: 0 auto; }
.hero.fit-whole .hero-text { position: absolute; inset: 0; max-width: none; display: flex; flex-direction: column; justify-content: center; padding: 90px 6vw 6vh; }
.hero.fit-whole.pos-center .hero-text, .hero.fit-whole.pos-bottom .hero-text { align-items: center; }
.hero.fit-whole.pos-bottom .hero-text, .hero.fit-whole.pos-bottom-left .hero-text { justify-content: flex-end; }
.hero.fit-whole.pos-right .hero-text { align-items: flex-end; }
.hero.fit-whole .hero-title { font-size: clamp(2rem, 5.5vw, 4.6rem); }

/* ---- Photo with text overlay ---- */
.ovcard { position: relative; isolation: isolate; display: flex; overflow: hidden; border-radius: 4px; color: #fff; }
.ovcard.h-short { min-height: 260px; } .ovcard.h-medium { min-height: 420px; } .ovcard.h-tall { min-height: 600px; } .ovcard.h-full { min-height: 90vh; }
.ovcard-text { position: relative; padding: 32px; max-width: 640px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.ovcard h2 { color: #fff; }
.ovcard.pos-center { align-items: center; justify-content: center; text-align: center; }
.ovcard.pos-left { align-items: center; }
.ovcard.pos-bottom-left { align-items: flex-end; }
.ovcard.pos-bottom { align-items: flex-end; justify-content: center; text-align: center; }
.ovcard.pos-right { align-items: center; justify-content: flex-end; text-align: right; }
.ovcard .btn { margin-top: 8px; }

/* ---- Circle photo ---- */
.circle { width: min(240px, 70%); margin: 0 auto 18px; }
.circle img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; width: 100%; border: 1px solid var(--line-2); }
.blk-circle-photo { text-align: center; }
.blk-circle-photo h3 a { color: var(--head); text-decoration: none; }

/* ---- Slideshow ---- */
.slideshow { position: relative; overflow: hidden; background: #000; border-radius: 4px; }
.slideshow.h-short { height: 40vh; } .slideshow.h-medium { height: 60vh; } .slideshow.h-tall { height: 80vh; } .slideshow.h-full { height: 100vh; height: 100svh; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-on { opacity: 1; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide .fit-cover img { object-fit: cover; } .slide .fit-contain img { object-fit: contain; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 24px 16px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.ss-prev, .ss-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .35); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.ss-prev { left: 14px; } .ss-next { right: 14px; }
.w-full .slideshow { border-radius: 0; }

/* ---- Photo gallery ---- */
.gallery-title { text-align: inherit; }
.gallery-title a { color: var(--head); text-decoration: none; }
.gallery-title a:hover { color: var(--accent-2); }
.gallery { --gap: 6px; }
.gi { overflow: hidden; background: var(--surface); }
.gi picture, .gi img { width: 100%; height: 100%; }
.gi img { object-fit: cover; }
.gi a.lb:hover img { transform: scale(1.03); }
.g-justified { display: flex; flex-wrap: wrap; gap: var(--gap); --rh: 260px; }
.g-justified.gs-s { --rh: 190px; } .g-justified.gs-l { --rh: 380px; }
.g-justified .gi { height: var(--rh); flex: var(--g, 1) 1 calc(var(--rh) * var(--g, 1)); }
.g-justified::after { content: ""; flex: 999 1 0; }
.r0_5 { --g: .5; } .r0_6 { --g: .6; } .r0_67 { --g: .67; } .r0_75 { --g: .75; } .r0_8 { --g: .8; } .r0_9 { --g: .9; } .r1 { --g: 1; }
.r1_25 { --g: 1.25; } .r1_33 { --g: 1.33; } .r1_5 { --g: 1.5; } .r1_6 { --g: 1.6; } .r1_78 { --g: 1.78; } .r2 { --g: 2; } .r2_4 { --g: 2.4; } .r3 { --g: 3; }
.g-masonry { columns: 3 260px; column-gap: var(--gap); }
.g-masonry.gs-s { columns: 5 160px; } .g-masonry.gs-l { columns: 2 380px; }
.g-masonry .gi { break-inside: avoid; margin-bottom: var(--gap); }
.g-masonry .gi img { height: auto; }
.g-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.g-grid.gs-s { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .g-grid.gs-l { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.g-grid .gi img { aspect-ratio: 1; }
.g-strip { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; --rh: 300px; scrollbar-width: thin; }
.g-strip.gs-s { --rh: 200px; } .g-strip.gs-l { --rh: 440px; }
.g-strip .gi { flex: none; height: var(--rh); scroll-snap-align: start; }
.g-strip .gi img { width: auto; height: 100%; }
.gallery-more { margin-top: 22px; }
@media (max-width: 700px) {
  .g-justified { --rh: 150px; } .g-justified.gs-s { --rh: 110px; } .g-justified.gs-l { --rh: 220px; }
  .gallery { --gap: 4px; }
}

/* ---- Text columns ---- */
.tcols { display: grid; gap: 32px; }
@media (min-width: 801px) { .tcols-2 { grid-template-columns: 1fr 1fr; } .tcols-3 { grid-template-columns: repeat(3, 1fr); } .tcols-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---- Divider & spacer ---- */
.divider { border: 0; border-top: 1px solid var(--line-2); margin: 0; }
.d-short { width: 80px; border-top: 2px solid var(--accent); }
.ta-center .d-short { margin: 0 auto; } .ta-right .d-short { margin-left: auto; }
.d-ornament { display: flex; align-items: center; gap: 16px; color: var(--accent); border-top: 0; }
.d-ornament::before, .d-ornament::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
.sp-s { height: 20px; } .sp-m { height: 48px; } .sp-l { height: 88px; } .sp-xl { height: 140px; }

/* ---- Video ---- */
.vid { position: relative; overflow: hidden; border-radius: 4px; background: #000; }
.vid iframe, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.r-16-9 { aspect-ratio: 16 / 9; } .r-4-3 { aspect-ratio: 4 / 3; } .r-1-1 { aspect-ratio: 1; } .r-9-16 { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }

/* ---- Service cards ---- */
.cards { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .per-3 { grid-template-columns: repeat(3, 1fr); } .per-4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, border-color .3s; }
a.card:hover { transform: translateY(-4px); border-color: var(--accent); }
a.card:hover img { transform: scale(1.04); }
.card picture { overflow: hidden; }
.card-text { display: block; padding: 18px 20px 22px; text-align: center; }
.card-title { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.45rem; color: var(--head); }
.card-sub { display: block; margin-top: 4px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(120deg, var(--surface), var(--surface-2)); }
.cta-band h2 { margin-bottom: .2em; }
.cta-copy p:last-child { margin: 0; }
.ta-center .cta-band { flex-direction: column; text-align: center; }

/* ---- Notice / promo ---- */
.notice { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 801px) { .notice.has-photo { grid-template-columns: 5fr 7fr; } .notice.side-right .notice-photo { order: 2; } .notice.side-right.has-photo { grid-template-columns: 7fr 5fr; } }
.notice-photo picture, .notice-photo img { width: 100%; height: 100%; object-fit: cover; }
.notice-text { padding: 36px 40px; align-self: center; }
.eyebrow { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; margin-bottom: .6em; }
html[data-theme="light"] .eyebrow { color: var(--accent); }
.notice-note { display: inline-block; padding: .45em 1em; border: 1px dashed var(--accent); color: var(--accent-2); font-weight: 600; letter-spacing: .05em; border-radius: 4px; }
html[data-theme="light"] .notice-note { color: var(--accent); }
.notice .btn { margin-top: 6px; }

/* ---- Price list ---- */
.prices ul { list-style: none; margin: 0; padding: 0; }
.prices li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.pr-name { color: var(--head); }
.pr-name small { display: block; color: var(--muted); font-size: .85rem; }
.pr-dots { flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.pr-price { font-weight: 700; color: var(--accent-2); white-space: nowrap; }
html[data-theme="light"] .pr-price { color: var(--accent); }
.pr-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--line); text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; position: relative; list-style: none; color: var(--head); font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .prose { padding: 0 0 18px; }

/* ---- Testimonials ---- */
.quotes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-align: left; }
.quote blockquote { margin: 0 0 16px; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 1.1rem; color: var(--head); }
.quote blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--accent); }
.quote figcaption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }
.q-photo { width: 52px; flex: none; }
.q-photo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* ---- Before / after ---- */
.ba { margin: 0; }
.ba-frame { position: relative; overflow: hidden; border-radius: 4px; --pos: 50%; user-select: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before picture, .ba-before img { width: 100%; height: 100%; object-fit: cover; }
.ba-frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .6); pointer-events: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; bottom: 12px; padding: 4px 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 3px; pointer-events: none; }
.ba-l { left: 12px; } .ba-r { right: 12px; }
.ba figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; }

/* ---- Forms ---- */
.inquiry, .glogin { text-align: left; }
.ta-center .inquiry h2, .ta-center .glogin h2 { text-align: center; }
.form { margin-top: 18px; }
.form-grid { display: grid; gap: 16px 20px; margin-bottom: 20px; }
@media (min-width: 701px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.form label, .glogin label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--head); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); color: var(--head);
  font: 400 1rem/1.4 "Quicksand", "Segoe UI", system-ui, sans-serif;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.form-ok, .form-err { padding: 16px 18px; border-radius: 4px; margin: 14px 0; }
.form-ok { background: color-mix(in srgb, #3c8d5a 22%, transparent); border: 1px solid #3c8d5a; color: var(--head); }
.form-err { background: color-mix(in srgb, #b4443c 22%, transparent); border: 1px solid #b4443c; color: var(--head); }
.glogin { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.glogin-form { display: flex; gap: 10px; flex-wrap: wrap; }
.glogin-form input { flex: 1 1 200px; }
.glogin-alt { margin: 14px 0 0; font-size: .92rem; }
.gate-form { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---- Client galleries (/galleries/g/…) and client accounts (/galleries/account/) ---- */
.cg-kicker { margin: 0 0 6px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.cg-kicker a { color: inherit; }
.cg-head { max-width: 860px; margin: 0 auto 22px; text-align: center; }
.cg-head h1 { margin-bottom: 6px; }
.cg-meta { color: var(--muted); margin: 0 0 12px; }
.cg-msg { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; margin: 12px 0; }
.cg-msg p:last-child { margin-bottom: 0; }
.cg-note { font-size: .9rem; color: var(--muted); }
.cg-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; margin-bottom: 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.cg-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.cg-show { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: inherit; font-size: .92rem; cursor: pointer; }
.cg-show[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cg-show .icon { width: 16px; height: 16px; }
.cg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.cg-actions .icon { width: 18px; height: 18px; }
/* Rows of even height, in order (gallery.js sizes each photo by its shape; this is the no-JS fallback) */
.cg-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cg-grid::after { content: ""; flex: 1000 1 0; }
.cg-item { position: relative; flex: 1 1 220px; margin: 0; border-radius: 4px; overflow: hidden; background: var(--surface); }
.cg-item[hidden] { display: none; }
.cg-item a.lb { display: block; }
.cg-item img { display: block; width: 100%; height: auto; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cg-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 26px 8px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.cg-tools > * { pointer-events: auto; }
.cg-num { margin-right: auto; color: #fff; font-size: .8rem; text-shadow: 0 1px 2px #000; opacity: .85; }
.cg-fav, .cg-dl { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; }
.cg-fav .icon, .cg-dl .icon { width: 22px; height: 22px; }
.cg-fav:hover, .cg-dl:hover { background: rgba(0, 0, 0, .7); }
.cg-item.is-fav .cg-fav { color: #ff5d73; }
.cg-item.is-fav .cg-fav .icon { fill: currentColor; }
.cg-fav:focus-visible, .cg-dl:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cg-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.cg-send { max-width: 760px; margin: 34px auto 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; scroll-margin-top: 80px; }
.cg-send label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--head); margin-bottom: 14px; }
.cg-send-grid { display: grid; gap: 0 18px; }
@media (min-width: 701px) { .cg-send-grid { grid-template-columns: 1fr 1fr; } }
.cg-help { text-align: center; color: var(--muted); margin-top: 30px; }
@media (max-width: 700px) {
  .cg-grid { gap: 6px; }
  .cg-num { display: none; }
}
.acct { text-align: left; }
.acct-form { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; max-width: 460px; }
.acct-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--head); }
.acct-form .btn { align-self: flex-start; }
.acct-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.acct-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 18px; }
.acct-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; color: var(--text); text-decoration: none; }
.acct-card:hover { border-color: var(--accent); }
.acct-card img, .acct-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.acct-t { padding: 12px 14px 2px; font-weight: 700; color: var(--head); }
.acct-m { padding: 0 14px 14px; font-size: .88rem; color: var(--muted); }
.acct-orders { padding-left: 1.2em; }
.mt-3 { margin-top: 2rem; }

/* ---- Store: order a photo, cart, checkout, order page, gift cards ---- */
.cg-shop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.cg-shop .icon { width: 18px; height: 18px; vertical-align: -3px; color: var(--accent-2); }
.cg-shop .btn .icon { color: inherit; }
.head-cart { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--head); }
.head-cart .icon { width: 20px; height: 20px; }
.head-cart:hover { border-color: var(--accent); color: var(--accent-2); }
.head-cart-n { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; line-height: 19px; text-align: center; }
.cg-buy { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; }
.cg-buy .icon { width: 20px; height: 20px; }
.cg-buy:hover { background: rgba(0, 0, 0, .7); color: #fff; }
.cg-buy:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cg-item { scroll-margin-top: 90px; }
@media (max-width: 520px) { .cg-buy span { display: none; } .cg-buy { width: 40px; padding: 0; justify-content: center; } }
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cart-link .icon, .shop-actions .icon, .pay-box .icon, .dl-box .icon, .gift-form .icon { width: 18px; height: 18px; }
.shop .btn { display: inline-flex; align-items: center; gap: 8px; }
.shop-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .shop-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .shop-photo { position: sticky; top: 90px; } }
.shop-photo { margin: 0; }
.shop-photo img { display: block; width: 100%; height: auto; border-radius: 4px; -webkit-user-select: none; user-select: none; }
.shop-photo figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.shop-nav { display: flex; gap: 16px; }
.shop-form h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.shop-group { border: 1px solid var(--line); border-radius: 6px; padding: 6px 16px 10px; margin: 0 0 16px; background: var(--surface); }
.shop-group legend { padding: 0 6px; font-weight: 700; color: var(--head); }
.shop-row { display: grid; grid-template-columns: 1fr auto 70px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shop-row:last-child { border-bottom: 0; }
.shop-row label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.shop-name { color: var(--head); font-weight: 600; }
.shop-desc, .shop-small { color: var(--muted); font-size: .85rem; }
.shop-in { color: var(--accent-2); font-size: .82rem; font-weight: 600; }
.shop-price { white-space: nowrap; font-weight: 600; color: var(--head); }
input.shop-qty { width: 70px; min-width: 0; padding: 8px; text-align: center; }
input.shop-check { width: 24px; height: 24px; justify-self: center; accent-color: var(--accent); }
.shop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.cart-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.cart-table th, .cart-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table tfoot td { border-bottom: 0; }
.cart-thumb { width: 84px; }
.cart-thumb img { display: block; width: 72px; min-width: 72px; max-width: none; height: 72px; object-fit: cover; border-radius: 3px; }
.cart-gift { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 3px; background: var(--surface-2); color: var(--accent-2); }
.cart-gift .icon { width: 30px; height: 30px; }
.cart-update { text-align: right; }
.shop .linkish { background: none; border: 0; padding: 4px; color: var(--accent-2); font: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html[data-theme="light"] .shop .linkish { color: var(--accent); }
@media (max-width: 600px) { .cart-table thead { display: none; } .cart-table td { padding: 8px 4px; } .cart-thumb { width: 60px; } .cart-thumb img, .cart-gift { width: 52px; height: 52px; } }
.checkout-grid { display: grid; gap: 30px; align-items: start; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .checkout-sum { position: sticky; top: 90px; } }
.checkout-form fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 10px 18px 16px; margin: 0 0 18px; background: var(--surface); }
.checkout-form legend { padding: 0 6px; font-weight: 700; color: var(--head); }
.checkout-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--head); margin: 10px 0; }
.checkout-form label.radio, .checkout-form label.chip { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.checkout-form input[type="radio"] { width: 20px; height: 20px; accent-color: var(--accent); }
.addr-row { display: grid; grid-template-columns: 1fr 70px 110px; gap: 10px; }
.addr-row label { margin: 0; }
.gift-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gift-row input { flex: 1 1 180px; text-transform: uppercase; }
.checkout-sum { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
.sum-list { list-style: none; margin: 0 0 12px; padding: 0; }
.sum-list li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.sum-list img, .sum-list .cart-gift { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; }
.sum-tot { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.sum-tot dd { margin: 0; text-align: right; }
.sum-tot .tot { font-weight: 700; color: var(--head); font-size: 1.1rem; padding-top: 6px; border-top: 1px solid var(--line); }
.pay-box, .dl-box { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; margin: 18px 0 26px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-chosen { font-size: 1.05rem; color: var(--head); font-weight: 600; }
.dl-list { list-style: none; padding: 0; margin: 0 0 14px; }
.dl-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ln-pay { text-align: center; }
.ln-cashapp { text-align: left; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.qr-box { display: inline-block; padding: 10px; margin: 10px 0; background: #fff; border-radius: 6px; }
.qr-box .qr { display: block; width: min(300px, 76vw); height: auto; }
.ln-amount { color: var(--muted); margin: 0 0 10px; }
.ln-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.ln-state { font-size: 1.1rem; }
.ln-state.is-paid { color: #3c8d5a; }
.gift-amounts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.checkout-form .chip { margin: 0; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; }
.checkout-form .chip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.gift-other { flex-direction: row !important; align-items: center; gap: 6px !important; margin: 0 !important; }
.gift-other input { width: 100px; min-width: 0; }

/* ---- Online agreements (/agreement/…) ---- */
.agr-wrap { text-align: left; }
.agr-title { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.agr-instructions { color: var(--muted); }
.agr-due { font-weight: 600; color: var(--accent-2); }
.agr-doc { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 4vw, 36px); margin: 18px 0 24px; }
.agr-body { font-size: 1rem; }
.agr-blank { display: inline-block; min-width: 9em; border-bottom: 1px solid var(--line-2); color: var(--muted); font-style: italic; padding: 0 4px; }
.agr-input { display: inline-block; width: auto; min-width: 12em; max-width: 100%; padding: 6px 10px; margin: 2px 0; vertical-align: baseline; }
textarea.agr-input { display: block; width: 100%; }
.agr-initials { min-width: 5em; width: 6em; text-transform: uppercase; }
input[type="checkbox"].agr-input { min-width: 0; width: 22px; height: 22px; vertical-align: middle; accent-color: var(--accent); }
.agr-error { border-color: #b4443c !important; box-shadow: 0 0 0 3px color-mix(in srgb, #b4443c 30%, transparent); }
.agr-answer { color: var(--head); }
.agr-empty { color: var(--muted); font-weight: 400; font-style: italic; }
.agr-signer { border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px 20px; margin: 0 0 20px; }
.agr-signer legend { padding: 0 8px; font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; color: var(--head); }
.agr-signer label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--head); margin-bottom: 14px; }
.agr-grid { display: grid; gap: 0 18px; }
@media (min-width: 701px) { .agr-grid { grid-template-columns: 1fr 1fr; } }
.agr-opt { font-weight: 400; color: var(--muted); font-size: .9em; }
/* Signature pads and signatures are always dark ink on white, like paper */
.sig-pad { position: relative; color: #14100e; background: #fff; border: 1px dashed #9b8f88; border-radius: 6px; touch-action: none; }
.sig-pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; cursor: crosshair; touch-action: none; }
.sig-hint { position: absolute; left: 16px; bottom: 12px; color: #8a7f79; font-size: .85rem; pointer-events: none; }
.sig-pad::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 34px; border-bottom: 1px solid #d5ccc6; pointer-events: none; }
.sig-pad.has-ink .sig-hint { display: none; }
.sig-clear { position: absolute; top: 8px; right: 8px; color: #14100e !important; border-color: #b9aea8 !important; background: #fff; }
.agr-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 22px; font-size: .95rem; }
.agr-consent input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--accent); }
.agr-pin { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; }
.agr-pin input { width: 10em; }
.agr-thanks { padding: 16px 18px; border-radius: 4px; background: color-mix(in srgb, #3c8d5a 22%, transparent); border: 1px solid #3c8d5a; color: var(--head); margin-bottom: 16px; }
.agr-actions { margin: 0 0 8px; text-align: right; }
.agr-sigs { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 701px) { .agr-sigs { grid-template-columns: 1fr 1fr; } }
.agr-sig-img { background: #fff; color: #14100e; border-bottom: 1px solid #9b8f88; border-radius: 4px 4px 0 0; }
.agr-sig-img .sig { display: block; width: 100%; height: auto; }
.agr-sig-line { margin: 6px 0 0; font-size: .92rem; }
.agr-record { margin-top: 24px; font-size: .85rem; color: var(--muted); }
@media print {
  .site-header, .site-footer, .agr-actions, .agr-thanks, .skip, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .agr-doc { border: 0; padding: 0; background: #fff; }
  .agr-doc *, .agr-title { color: #000 !important; }
  .row { padding: 0 !important; }
}

/* ---- 18+ link card ---- */
.adult-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 380px; overflow: hidden; border-radius: 6px; text-decoration: none; color: #fff; border: 1px solid var(--line); }
.soft-blur img { filter: blur(14px) brightness(.7); transform: scale(1.1); }
.adult-card:hover .soft-blur img { filter: blur(10px) brightness(.8); }
.adult-badge { position: absolute; top: 16px; right: 16px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 30px; font-weight: 700; letter-spacing: .1em; font-size: .85rem; }
.adult-text { position: relative; display: block; padding: 28px; text-align: left; }
.adult-title { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.8rem; }
.adult-sub { display: block; margin: 6px 0 12px; color: #eee3dc; }
.adult-go { color: #f0c287; font-weight: 700; letter-spacing: .04em; }
.adult-card:not(:has(picture)) { background: linear-gradient(135deg, #2a0a08, #000); }

/* ---- Custom HTML ---- */
.custom-html img { max-width: 100%; height: auto; }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; max-width: 94vw; max-height: 92vh; text-align: center; }
.lb-fig img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; }
.lb-fig figcaption { color: #ddd; margin-top: 10px; font-size: .95rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; font-size: 30px; line-height: 1; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close .icon { width: 22px; height: 22px; }
.lb-single .lb-prev, .lb-single .lb-next { display: none; }

/* ---- Footer ---- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.footer-in { max-width: 1200px; margin: 0 auto; padding: 56px 28px 28px; display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-in { grid-template-columns: 1.3fr 1fr 1.4fr; align-items: start; } }
.logo-foot { width: 150px; margin-bottom: 14px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a, .footer-links a { color: var(--text); text-decoration: none; }
.footer-contact a:hover, .footer-links a:hover { color: var(--accent-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-base { max-width: 1200px; margin: 0 auto; padding: 18px 28px 30px; border-top: 1px solid var(--line); font-size: .82rem; }
.footer-base p { margin: 0 0 4px; }

/* ---- Misc ---- */
.preview-bar { position: sticky; top: 0; z-index: 60; background: #6b3d0f; color: #fff; text-align: center; padding: 8px 14px; font-size: .9rem; }
.preview-bar a { color: #ffd9a3; }
.gate main { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
