/* Kate Csák Fine Art
   The page background matches the paper tone of the scanned portraits (#f5f6f0),
   so the vignetted drawings sit on the page with no visible edge. */

:root {
  --paper: #f5f6f0;
  --paper-deep: #ecebe2;
  --card: #fbfbf7;
  --ink: #26241f;
  --ink-soft: #5a5750;
  --ink-faint: #85817a;
  --line: #d9d6cb;
  --accent: #7d4f35;       /* burnt umber, like a well-used pencil */
  --accent-deep: #633c27;
  --memorial: #3a3d38;     /* deep graphite for the in-memory band */
  --focus: #7d4f35;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --narrow: 720px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(64px, 9vw, 120px);
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-variation-settings: "opsz" 72; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); font-variation-settings: "opsz" 60; }
h3 { font-size: 1.4rem; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; text-wrap: pretty; }
.with-flag { white-space: nowrap; }
.flag {
  display: inline-block; height: 0.68em; width: auto; margin-left: 0.3em; vertical-align: 0;
  border-radius: 1.5px; box-shadow: 0 0 0 0.5px rgba(38, 36, 31, 0.25);
}
em { font-family: var(--serif); font-style: italic; font-size: 1.08em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 40em; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 500 1rem/1 var(--sans);
  letter-spacing: 0.01em;
  padding: 1.05em 1.6em;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn--small { padding: 0.8em 1.15em; font-size: 0.92rem; }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }

.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.wordmark:hover { color: var(--ink); }
.wordmark-name { font-family: var(--serif); font-size: 1.55rem; letter-spacing: 0.01em; margin: 0; }
.wordmark-sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px 14px; font: 500 0.9rem var(--sans); color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s, opacity .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 1.15rem; font-family: var(--serif); color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--line); }
  .site-nav .btn { padding: 1.05em; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space); }
.section--tight { padding-block: calc(var(--space) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--paper { background: var(--paper-deep); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p:last-child { color: var(--ink-soft); }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--split h2 { margin-bottom: 0; }

.page-intro { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-intro--compact { padding-bottom: clamp(24px, 4vw, 48px); }
.page-intro h1 { max-width: 18em; }
.center h1, .center h2 { margin-inline: auto; }
.center .lede { margin-inline: auto; }
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; margin-top: 28px; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero-copy h1 { max-width: 11em; }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.next-opening { margin: 26px 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.next-opening strong { font-weight: 500; color: var(--ink); }
.next-opening a { color: var(--ink-soft); }
.next-opening-dot { display: inline-block; vertical-align: 0.08em; margin-right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #6e8a5e; box-shadow: 0 0 0 4px color-mix(in srgb, #6e8a5e 18%, transparent); flex: none; }
.next-opening:has([data-when-open][hidden]) .next-opening-dot { background: var(--ink-faint); box-shadow: none; }
.next-opening .draft-badge { position: static; margin-right: 8px; }
.next-opening + .hero-meta { margin-top: 14px; }
.hero-meta { margin-top: 28px; font-size: 0.9rem; color: var(--ink-faint); max-width: 34em; }
.hero-art img { width: 100%; max-width: 560px; margin-inline: auto; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-inline: auto; width: min(58%, 340px); margin-bottom: -4%; }
}

/* ---------- Assurances ---------- */

.assurances { border-block: 1px solid var(--line); }
.assurance-list { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.assurance-list li { padding: 26px 20px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.assurance-list li + li { border-left: 1px solid var(--line); }
.assurance-list strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.assurance-list span { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 800px) {
  .assurance-list { grid-template-columns: 1fr 1fr; }
  .assurance-list li:nth-child(3) { border-left: 0; }
  .assurance-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .assurance-list li { padding: 20px 12px; }
  .assurance-list strong { font-size: 1.12rem; }
  .assurance-list span { font-size: 0.82rem; }
}

/* ---------- Quotes ---------- */

.pull-quote { margin: 0; }
.pull-quote blockquote { margin: 0; }
.pull-quote p {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.45; color: var(--ink);
}
.pull-quote p::before { content: "“"; }
.pull-quote p::after { content: "”"; }
.pull-quote figcaption { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.pull-quote figcaption::before { content: "— "; }
.pull-quote--large { text-align: center; }
.pull-quote--large p { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; }

/* ---------- Artwork grid ---------- */

.art-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px) clamp(16px, 2.5vw, 36px); }
.art-grid--featured { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .art-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .art-grid, .art-grid--featured { grid-template-columns: 1fr 1fr; } }

.art { margin: 0; position: relative; }
.art[hidden] { display: none; }
.art-open {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  overflow: hidden; border-radius: 2px;
}
a.art-open { cursor: pointer; }
.art-open img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.art-open:hover img { transform: scale(1.03); }

/* Feather image edges so each scan's paper tone melts into the page. */
.art-open img, .hero-art img, .lb-figure img, .feather {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.art figcaption { display: flex; flex-direction: column; margin-top: 10px; text-align: center; }
.art-name { font-family: var(--serif); font-size: 1.2rem; }
.art-meta { font-size: 0.82rem; color: var(--ink-faint); }

.filters { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.chip {
  font: 500 0.92rem var(--sans); color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
}
.lightbox::backdrop { background: rgba(38, 36, 31, 0.3); }
.lightbox-inner { position: relative; height: 100%; display: grid; place-items: center; padding: 64px 72px 24px; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: center; }
.lb-figure img { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); width: auto; max-width: 100%; }
.lb-figure figcaption { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 14px; }
.lb-cta { margin-top: 10px; font-size: 0.95rem; }
.lb-close {
  position: absolute; top: 16px; right: 20px;
  font: 500 0.9rem var(--sans); background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 14px; cursor: pointer; color: var(--ink);
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 300 1.8rem/1 var(--serif); cursor: pointer; display: grid; place-items: center; padding-bottom: 4px;
}
.lb-nav:hover, .lb-close:hover { border-color: var(--ink); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@media (max-width: 640px) {
  .lightbox-inner { padding: 60px 12px 16px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
  .lb-figure img { max-height: calc(100dvh - 240px); }
  .lb-figure { justify-content: flex-start; }
}

/* ---------- Craft section ---------- */

.craft-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.craft-copy { grid-row: span 2; align-self: center; }
.craft-grid figure { margin: 0; }
.craft-grid figure img { width: 100%; border-radius: 2px; }
.craft-grid figcaption, .guide-figure figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 8px; }
@media (max-width: 860px) {
  .craft-grid { grid-template-columns: 1fr; }
  .craft-copy { grid-row: auto; }
}

/* ---------- Memorial band ---------- */

.memorial-band { background: var(--memorial); color: #ecebe4; }
.memorial-band .eyebrow { color: #cdb49f; }
.memorial-band p { color: #d4d3cb; font-size: 1.12rem; }
.memorial-band .link-arrow { border-bottom-color: rgba(255,255,255,.3); color: #fff; }
.memorial-band .link-arrow:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 20px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: 0.95rem; color: var(--accent); margin-bottom: 14px;
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.steps--detailed p { font-size: 1.02rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.availability-note { margin-top: 48px; padding: 18px 22px; border-left: 2px solid var(--accent); background: var(--card); color: var(--ink-soft); max-width: 46rem; }

/* ---------- Testimonials ---------- */

.t-grid { columns: 3 300px; column-gap: 28px; }
.t-card {
  break-inside: avoid; margin: 0 0 28px; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.t-card.has-photo { padding-top: 0; overflow: hidden; }
.t-card.is-draft:not(.has-photo) { padding-top: 48px; }
.t-photo { margin: 0 -28px 24px; width: calc(100% + 56px); max-width: none; aspect-ratio: 4 / 3; object-fit: cover; }
.t-card blockquote { margin: 0; }
.t-card blockquote p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.t-card blockquote p::before { content: "“"; }
.t-card blockquote p::after { content: "”"; }
.t-card figcaption { display: flex; flex-direction: column; font-size: 0.9rem; }
.t-name { font-weight: 600; }
.t-meta { color: var(--ink-faint); }

.draft-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #c0392b; color: #fff; font: 600 0.7rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px;
}

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo img { width: 100%; max-width: 440px; border-radius: 2px; filter: grayscale(1) contrast(1.02); }
.about-copy p { color: var(--ink-soft); }
.about-copy .lede { color: var(--ink); }
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo img { max-width: 320px; }
}

/* ---------- Pricing ---------- */

.pricing-preview { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.pricing-preview p { color: var(--ink-soft); }
@media (max-width: 860px) { .pricing-preview { grid-template-columns: 1fr; } }

.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th {
  text-align: left; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); padding: 0 12px 12px 0; border-bottom: 1px solid var(--ink);
}
.price-table td, .price-table tbody th { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-weight: 400; }
.size-name { display: block; font-family: var(--serif); font-size: 1.3rem; }
.size-dims { display: block; font-size: 0.85rem; color: var(--ink-faint); }
.price .usd { display: block; font-size: 1.1rem; }
.price abbr { text-decoration: none; font-size: 0.8em; color: var(--ink-soft); }
.price .cad { display: block; font-size: 0.85rem; color: var(--ink-faint); }
.extra { color: var(--ink-soft); }
.row-link { text-align: right !important; padding-right: 0 !important; }
.row-link a { font-size: 0.9rem; font-weight: 500; }
@media (max-width: 560px) {
  .price-table thead th:nth-child(3) { font-size: 0; }
  .price-table thead th:nth-child(3)::after { content: "Extra pet"; font-size: 0.75rem; }
}

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info-card h3 { font-size: 1.25rem; }
.info-card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.info-card--notice { border-left: 3px solid var(--accent); }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 300; font-size: 1.5rem; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-right: 40px; margin-bottom: 22px; }

/* ---------- Closing ---------- */

.closing { background: var(--paper-deep); }
.closing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.closing-card { padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); }
.closing-card--ready { background: var(--ink); color: var(--paper); }
.closing-card--ready .eyebrow { color: #d9bda7; }
.closing-card--ready p { color: #d8d6ce; }
.closing-card--ready .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); margin-top: 8px; }
.closing-card--ready .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.closing-card--ready a:not(.btn):hover { color: #fff; }
.closing-small { margin-top: 20px; font-size: 0.9rem; }
.closing-card--later { background: var(--card); border: 1px solid var(--line); }
.closing-card--later > p { color: var(--ink-soft); }
@media (max-width: 860px) { .closing-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */

.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
fieldset.field { margin-bottom: 26px; }
.field label, .field legend { display: block; font-size: 0.92rem; font-weight: 500; margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235a5750' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
input[aria-invalid="true"] { border-color: #a4402a; }
.field-hint { font-size: 0.85rem; color: var(--ink-faint); margin: 8px 0 0; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); font-size: 0.93rem; transition: all .15s;
}
.pill:hover span { border-color: var(--ink-soft); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.checks { display: grid; gap: 12px; margin: 6px 0 28px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.85rem; color: var(--ink-faint); margin: 12px 0 0; }
.form-status { margin: 14px 0 0; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: #a4402a; }

.form-success { padding: 8px 0; }
.form-success h2, .form-success h3 { margin-bottom: 0.4em; }
.form-success p { color: var(--ink-soft); }

.newsletter-form { margin-top: 20px; }
.center .newsletter-form { max-width: 560px; margin-inline: auto; text-align: left; }

/* Studio calendar (commission form) */
.studio-calendar { position: relative; padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.studio-calendar .draft-badge { position: static; display: inline-block; margin-bottom: 10px; }
.studio-calendar legend { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin-bottom: 4px; }
.studio-calendar .field-hint { margin: 0 0 16px; }
.slot-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 1100px) { .slot-grid { grid-template-columns: repeat(3, 1fr); } }
.studio-calendar .slot-month {
  position: relative; display: flex; flex-direction: column; gap: 10px; margin: 0; font-weight: 400;
  padding: 14px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.slot-month[hidden] { display: none; }
.slot-month input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.slot-month:hover { border-color: var(--ink-soft); }
.slot-month:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--card); }
.slot-month:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.slot-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1; display: flex; flex-direction: column; gap: 3px; }
.slot-year { font-family: var(--sans); font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.04em; }
.slot-dots { display: flex; gap: 4px; }
.slot-dots i, .slot-legend i {
  display: inline-block; width: 12px; height: 12px; border-radius: 2px;
  border: 1px solid var(--ink-soft); background: transparent;
}
.slot-dots i.is-booked, .slot-legend i.is-booked { background: var(--ink); border-color: var(--ink); }
.slot-status { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.2; }
.slot-month.is-full { background: #d6d3c8; border-color: #d6d3c8; cursor: not-allowed; }
.slot-month.is-full:hover { border-color: #d6d3c8; }
.slot-month.is-full input { cursor: not-allowed; }
.slot-month.is-full .slot-name, .slot-month.is-full .slot-year, .slot-month.is-full .slot-status { color: #6f6b64; }
.slot-month.is-full .slot-dots i { background: #6f6b64; border-color: #6f6b64; }
.slot-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 0.78rem; color: var(--ink-faint); }
.slot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.slot-legend i { width: 10px; height: 10px; }

.inquiry-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); }
.inspired-note { background: var(--paper-deep); border-left: 2px solid var(--accent); padding: 12px 16px; margin-bottom: 24px; font-size: 0.95rem; color: var(--ink-soft); }

.commission-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.commission-aside { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card h2 { font-size: 1.45rem; }
.mini-steps { margin: 0; padding-left: 1.2em; color: var(--ink-soft); display: grid; gap: 8px; }
.mini-steps li::marker { color: var(--accent); font-family: var(--serif); }
.aside-card .price-table td, .aside-card .price-table tbody th { padding-block: 12px; }
.aside-card .size-name { font-size: 1.1rem; }
.aside-small { font-size: 0.9rem; color: var(--ink-soft); margin-top: 12px; }
.commission-aside .pull-quote p { font-size: 1.15rem; }
@media (max-width: 900px) {
  .commission-grid { grid-template-columns: 1fr; }
  .commission-aside { position: static; }
}

/* ---------- Memorial & guide pages ---------- */

.memorial-intro .lede { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; }
.memorial-art .art-grid { max-width: 900px; margin-inline: auto; }
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px) clamp(32px, 6vw, 96px); }
.prose-block h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prose-block p { color: var(--ink-soft); }
@media (max-width: 760px) { .prose-grid { grid-template-columns: 1fr; } }

.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }

.guide-figure { margin: 0 0 56px; }
.guide-figure img { width: 100%; }
.guide-list { list-style: none; padding: 0; margin: 0; counter-reset: tip; }
.guide-list li { counter-increment: tip; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 28px 0; border-top: 1px solid var(--line); }
.guide-list li::before { content: counter(tip); font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--accent); grid-row: span 2; }
.guide-list h2 { font-size: 1.5rem; margin-bottom: 0.3em; }
.guide-list p { color: var(--ink-soft); margin: 0; }
.callout { margin-top: 40px; background: var(--memorial); color: #ecebe4; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); }
.callout h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.callout p { color: #d4d3cb; }
.callout .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); margin-top: 8px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-top: 64px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--ink-soft); max-width: 26em; }
.footer-brand .wordmark-name { color: var(--ink); margin-bottom: 12px; }
.footer-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; color: var(--ink-soft); }
.site-footer ul a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 22px 32px; font-size: 0.85rem; color: var(--ink-faint); }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Gentle reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
