/* Stoney Hill Photos: the studio's warm paper, ink and terracotta, set up for photographs.
   Big rounded photo frames, Fraunces headlines, Nunito Sans body, numbered editorial lists,
   and faint contour lines (the hill in the name) in place of the studio's toy tiles. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/fraunces-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/assets/fonts/nunito-sans-normal.woff2) format("woff2"); }

:root {
  --bg: #FBF4E9;
  --paper: #FFFDF8;
  --ink: #2B2522;
  --muted: #5B5049;
  --soft-ink: #4B413B;
  --line: #EADCC6;
  --accent: #B0532B;
  --accent-soft: #F6D9C6;
  --stone: #EFE3D0;
  --contour: rgba(176, 83, 43, 0.13);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1440px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; color: var(--bg); }

.soft { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-top: clamp(72px, 9vw, 120px); }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); text-wrap: pretty; max-width: 560px; }
.eyebrow { display: block; font: 800 13px/1.4 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
em { font-style: italic; }
.accent { color: var(--accent); }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 16px; background: var(--accent); color: #FFFFFF; font: 800 17px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn:hover { color: #FFFFFF; background: #9A4523; transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #000000; color: var(--bg); }
.btn--small { min-height: 42px; padding: 0 18px; border-radius: 14px; font-size: 15px; }
.link { font-size: 17px; font-weight: 800; text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ---------- header ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 22px; font-weight: 600; white-space: nowrap; }
.brand em { color: var(--accent); font-weight: 500; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 30px; font-size: 16px; font-weight: 800; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav .btn { color: var(--bg); }
.nav .btn[aria-current="page"] { text-decoration: none; }
.menu { display: none; position: relative; }
.menu summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 14px; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--bg); }
.menu ul { position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; min-width: 220px; padding: 10px; border-radius: 20px; background: var(--paper); border: 2px solid var(--line); box-shadow: 0 18px 40px rgba(60,40,20,.14); }
.menu li a { display: block; padding: 12px 14px; border-radius: 12px; font-size: 17px; font-weight: 800; text-decoration: none; }
.menu li a:hover { background: var(--bg); }
@media (max-width: 760px) { .nav { display: none; } .menu { display: block; } }

/* ---------- photo frames ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.r-3x2 { aspect-ratio: 3 / 2; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-1x1 { aspect-ratio: 1; }
/* Waiting for a photo: contour lines and the file name that fills this spot. */
.ph { display: flex; align-items: flex-end; background-color: var(--stone);
  background-image: repeating-radial-gradient(ellipse 140% 100% at 30% 115%, transparent 0 19px, var(--contour) 19px 20.5px); }
.ph span { margin: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,253,248,.85); font: 800 12px/1.3 var(--body); letter-spacing: 0.08em; color: var(--muted); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px 64px; padding-block: 16px 0; }
.hero__text { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { display: flex; flex-direction: column; gap: 20px; }
.hero h1 .display { font-weight: 500; font-size: clamp(44px, 5.4vw, 80px); line-height: 1.0; letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 em { color: var(--accent); }
.hero__photos { position: relative; padding-bottom: 14%; }
.hero__inset { position: absolute; left: -7%; bottom: 0; width: 36%; border: 8px solid var(--bg); border-radius: 26px; box-shadow: 0 18px 40px rgba(60,40,20,.16); }
.hero__inset .frame { border-radius: 18px; }
.coords { position: absolute; right: 0; bottom: 2%; font: 800 12px/1.4 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__photos { padding-bottom: 18%; }
  .hero__inset { left: 0; width: 40%; border-width: 6px; }
}

/* ---------- section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 36px; }
.section-head h2, .h2 { font-weight: 500; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.section-head h2 em, .h2 em { color: var(--accent); }
.section-head p { max-width: 440px; font-size: 18px; color: var(--muted); }

/* ---------- three numbered points ---------- */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 36px 40px; counter-reset: point; }
.point { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 2px solid var(--ink); }
.point::before { counter-increment: point; content: "0" counter(point); font: italic 500 22px/1 var(--display); color: var(--accent); }
.point h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 30px; font-weight: 600; line-height: 1.1; }
.point p { font-size: 17px; color: var(--soft-ink); max-width: 400px; }

/* ---------- featured work ---------- */
.work { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.work__lead .frame { height: 100%; aspect-ratio: auto; min-height: 280px; }
.work__side { display: grid; gap: 20px; }
.work__row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .work__lead .frame { aspect-ratio: 3 / 2; min-height: 0; }
  .work__side, .work__row { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: auto; }
}

/* ---------- services index ---------- */
.index { border-bottom: 2px solid var(--line); }
.index a { display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr) 40px; align-items: center; gap: 12px 28px; padding: 28px 4px; border-top: 2px solid var(--line); text-decoration: none; transition: background .2s ease, padding .2s ease; }
.index a:hover { color: var(--ink); background: var(--paper); padding-inline: 18px; }
.index__no { font: italic 500 22px/1 var(--display); color: var(--accent); }
.index__name { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; line-height: 1.05; }
.index__line { font-size: 17px; color: var(--muted); }
.index__go { justify-self: end; font-size: 26px; color: var(--accent); transition: transform .2s ease; }
.index a:hover .index__go { transform: translateX(4px); }
@media (max-width: 760px) {
  .index a { grid-template-columns: 44px minmax(0, 1fr) 28px; }
  .index__line { grid-column: 2; grid-row: 2; }
  .index__go { grid-row: 1; grid-column: 3; }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 26px; background: var(--paper); border: 2px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 800 18px/1 var(--body); }
.step h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 28px; font-weight: 600; line-height: 1.1; }
.step p { font-size: 16px; color: var(--soft-ink); }

/* ---------- where we shoot ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(26px, 3.4vw, 46px); font-weight: 500; line-height: 1.25; color: var(--muted); }
.areas li:not(:last-child)::after { content: "·"; margin-inline: 0.35em; color: var(--accent); }
.areas li:first-child { color: var(--ink); }

/* ---------- part of the studio ---------- */
.kin { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: clamp(26px, 4vw, 44px); border-radius: 28px; background: var(--paper); border: 2px solid var(--line); }
.kin svg { flex: 0 0 auto; width: 92px; height: auto; }
.kin__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.kin h2 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.15; }
.kin p { color: var(--soft-ink); max-width: 640px; }

/* ---------- call to action ---------- */
.cta { position: relative; overflow: hidden; border-radius: 32px; background-color: var(--ink); color: var(--bg); padding: clamp(36px, 6vw, 84px);
  background-image:
    repeating-radial-gradient(ellipse 60% 75% at 92% 112%, transparent 0 22px, rgba(240,162,120,.16) 22px 23.5px),
    repeating-radial-gradient(ellipse 40% 50% at 70% -20%, transparent 0 26px, rgba(240,162,120,.10) 26px 27.5px); }
.cta__text { position: relative; max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.cta h2 { font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 1.0; letter-spacing: -0.02em; }
.cta h2 em { color: var(--accent-soft); }
.cta p { font-size: 19px; color: #DDD0C2; }
.cta a:not(.btn) { color: var(--bg); font-weight: 700; }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(56px, 7vw, 88px); border-top: 2px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; padding-block: 32px 44px; font-size: 15px; font-weight: 600; color: var(--muted); }
.site-foot .about { display: flex; flex-direction: column; gap: 6px; }
.site-foot a { text-decoration: none; }
.site-foot .dot { display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: -1px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.foot-cols nav { display: flex; flex-direction: column; }
.foot-cols h2 { margin-bottom: 8px; font: 800 12px/1.4 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.foot-cols ul { display: flex; flex-direction: column; gap: 6px; }

/* ---------- page intro (inner pages) ---------- */
.intro { display: flex; flex-direction: column; gap: 22px; max-width: 920px; padding-block: 32px 8px; }
.intro h1 { display: flex; flex-direction: column; gap: 18px; }
.intro h1 .display { font-weight: 500; font-size: clamp(42px, 5.4vw, 80px); line-height: 1.0; letter-spacing: -0.02em; text-wrap: balance; }
.intro h1 em { color: var(--accent); }

/* ---------- packages ---------- */
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1000px) { .packages { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.package { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 30px 30px; border-radius: 28px; background: var(--paper); border: 2px solid var(--line); }
.package h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 30px; font-weight: 600; line-height: 1.1; }
.package__price { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.package__price span { font-size: 0.5em; vertical-align: 0.7em; margin-right: 2px; color: var(--muted); }
.package__for { padding-bottom: 16px; border-bottom: 2px solid var(--line); font-weight: 700; color: var(--muted); }
.package .ticks { flex: 1; padding-top: 4px; }
.package .btn { align-self: flex-start; margin-top: 10px; }
.package--featured { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.package--featured .package__price span, .package--featured .package__for { color: #CBBDAE; }
.package--featured .package__for { border-color: rgba(255,255,255,.14); }
.package--featured .ticks li { color: #E6DACB; }
.package__tag { position: absolute; top: 22px; right: 22px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font: 800 12px/1.4 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- services page ---------- */
.services { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 112px); }
.service { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 32px 64px; scroll-margin-top: 24px; }
.service:nth-child(even) > .frame { order: 2; }
.service__text { display: flex; flex-direction: column; gap: 18px; }
.service__text h2 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(34px, 3.6vw, 50px); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
.service__text > p { font-size: 18px; color: var(--soft-ink); }
.service .eyebrow { color: var(--accent); }
@media (max-width: 900px) { .service { grid-template-columns: minmax(0, 1fr); } .service:nth-child(even) > .frame { order: 0; } }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 17px; color: var(--soft-ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

.prep { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.prep__group { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 26px; background: var(--paper); border: 2px solid var(--line); }
.prep__group h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 26px; font-weight: 600; }

.faq { max-width: 900px; border-bottom: 2px solid var(--line); }
.faq details { border-top: 2px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 4px; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.2; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font: 400 32px/1 var(--body); color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 26px; max-width: 720px; font-size: 17px; color: var(--soft-ink); }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 15px; font-weight: 800; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.filters label:hover { border-color: var(--ink); }
.filters input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.shot { display: block; border-radius: var(--radius); text-decoration: none; }
.shot--wide { grid-column: span 2; }
.shot--wide .frame { height: 100%; }
a.shot .frame img { transition: transform .5s ease; }
a.shot:hover .frame img { transform: scale(1.03); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); } .shot--wide { grid-column: auto; } }
/* the categories in src/gallery.json */
.gallery:has(#show-interiors:checked) .shot:not([data-show~="interiors"]),
.gallery:has(#show-exteriors:checked) .shot:not([data-show~="exteriors"]),
.gallery:has(#show-aerial:checked) .shot:not([data-show~="aerial"]),
.gallery:has(#show-lodging:checked) .shot:not([data-show~="lodging"]) { display: none; }
.gallery:has(input:not(#show-all):checked) .shot--wide { grid-column: auto; }

/* full-size view: opened by linking to its id, closed by linking back to the photo */
.view { display: none; position: fixed; inset: 0; z-index: 20; align-items: center; justify-content: center; gap: 12px; padding: 56px 16px 24px; background: rgba(28, 23, 20, .94); }
.view:target { display: flex; }
.view figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1600px, 100%); }
.view img { max-height: calc(100vh - 140px); width: auto; border-radius: 12px; }
.view figcaption { font-size: 15px; font-weight: 700; color: #DDD0C2; }
.view__close { position: absolute; top: 14px; right: 16px; padding: 8px 16px; border-radius: 12px; background: rgba(255,255,255,.12); color: var(--bg); font-weight: 800; text-decoration: none; }
.view__nav { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--bg); font-size: 30px; line-height: 1; text-decoration: none; }
.view a:hover { color: #FFFFFF; background: rgba(255,255,255,.22); }
@media (max-width: 600px) { .view__nav { position: absolute; bottom: 18px; } .view__nav--prev { left: 18px; } .view__nav--next { right: 18px; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; gap: 40px 64px; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--paper); border: 2px solid var(--line); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 15px; font-weight: 800; }
.field .opt { font-weight: 600; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: 400 17px/1.4 var(--body); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #FFFFFF; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.checks label { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); font-size: 15px; font-weight: 700; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.checks label:has(input:checked) { border-color: var(--accent); background: #FFFFFF; }
.form .btn { justify-self: start; }
.trap { position: absolute; left: -9999px; }
.aside { display: flex; flex-direction: column; gap: 28px; }
.aside dl { display: flex; flex-direction: column; gap: 18px; }
.aside dt { font: 800 12px/1.4 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.aside dd { margin-top: 4px; font-size: 18px; font-weight: 600; }
.email { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; color: var(--accent); text-underline-offset: 6px; overflow-wrap: anywhere; }

/* ---------- photo delivery ---------- */
.note-page h1 { display: flex; flex-direction: column; gap: 18px; }
.pin { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.pin label { font-size: 15px; font-weight: 800; }
.pin__row { display: flex; flex-wrap: wrap; gap: 12px; }
.pin input { width: 9.5ch; min-height: 64px; padding: 0 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font: 600 30px/1 var(--display); letter-spacing: 0.18em; }
.pin input::placeholder { color: #D6C7B2; }
.pin input:focus { outline: none; border-color: var(--accent); background: #FFFFFF; }
.pin .btn { min-height: 64px; }

.dl-head { display: flex; flex-direction: column; gap: 14px; padding-block: 24px 28px; }
.dl-head h1 { font-weight: 500; font-size: clamp(38px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.dl-meta { font-size: 17px; font-weight: 700; color: var(--muted); }
.pick__bar { position: sticky; top: 12px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 20px; padding: 12px 12px 12px 22px; border-radius: 20px; background: rgba(255,253,248,.94); border: 2px solid var(--line); box-shadow: 0 14px 30px rgba(60,40,20,.10); backdrop-filter: blur(8px); }
.pick__all, .pick__count { display: none; }
.js .pick__all { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; cursor: pointer; }
.js .pick__count { display: block; flex: 1; color: var(--muted); font-weight: 700; }
.pick__all input { width: 20px; height: 20px; accent-color: var(--accent); }
.pick__bar .btn { margin-left: auto; }
.pick__bar .btn:disabled { opacity: .45; cursor: default; transform: none; }
.pick__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .pick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pick__grid { gap: 8px; } .pick__bar { padding-left: 14px; } }
.pick__item { position: relative; border-radius: 16px; overflow: hidden; background: var(--stone); transition: opacity .2s ease; }
.pick__open img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.pick__item:has(input:not(:checked)) { opacity: .45; }
.pick__check { position: absolute; top: 10px; left: 10px; display: flex; cursor: pointer; }
.pick__check input { appearance: none; -webkit-appearance: none; margin: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #FFFFFF; background: rgba(43,37,34,.35); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
.pick__check input:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: var(--accent); }
.pick__one { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,253,248,.92); color: var(--ink); font-weight: 800; text-decoration: none; opacity: 0; transition: opacity .2s ease; }
.pick__item:hover .pick__one, .pick__one:focus-visible { opacity: 1; }
@media (hover: none) { .pick__one { opacity: 1; } }
.view figcaption a { color: inherit; }

/* ---------- small pages: thanks, problem, 404 ---------- */
.note-page { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 40px 64px; padding-block: 32px; }
.note-page .hero__text { max-width: 600px; }
@media (max-width: 900px) { .note-page { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
