/* Ricorda Photography, design D: Azione Editorial. Spec: docs/COLOR-SCHEMES.md section D. */

/* Text sizes for the big type. 1 = design size. The build adds the values from src/data/look.json
   (Arranger, Look tab) at the end of the published file, so change them there, not here. */
:root { --size-wordmark: 1; --size-footer: 1; --size-page-title: 1; --size-panel: 1; --size-marquee: 1; --size-logo: 1; --size-follow: 1; --w-wordmark: 400; --backdrop: #2C3D33; }

:root {
  --paper: #FBFAF6; --black: #000; --ink: #000; --char: #222; --ash: #DADBDD; --card: #fff;
  --cognac: #8A6440; --green: #2C3D33; --teal: #1D4650; --cogl: #C9A27A; --body2: #3d3d3d; --ph: #D9D4CA;
  --anton: 'Anton', 'Impact', sans-serif; --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Archivo', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 16px; --gap: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--black); font: 19px/1.35 var(--sans); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cognac); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--paper); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* type */
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: .42px; text-transform: uppercase; line-height: 1.3; }
.lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .36px; text-transform: uppercase; line-height: 1.3; }
.lbl-light { color: var(--paper); opacity: .85; }
.serif { font-family: var(--serif); font-weight: 400; }
.anton { font-family: var(--anton); font-weight: var(--w-wordmark, 400); text-transform: uppercase; }
.h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; margin-bottom: 32px; }
.lead { font-size: 22px; line-height: 1.35; }
.center { text-align: center; }
.plain { list-style: none; padding: 0; }

/* layout */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gap); }
.narrow { max-width: 860px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.intro { max-width: 820px; margin: 0 auto; padding: 48px var(--gap) 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 32px; min-height: 44px; border: 1px solid var(--paper); border-radius: 1000px; background: transparent; color: var(--paper); text-decoration: none; transition: background .2s, color .2s; }
.pill:hover { background: var(--paper); color: var(--black); }
.pill.ink { border-color: var(--black); color: var(--black); }
.pill.ink:hover { background: var(--black); color: var(--paper); }
.pill.solid { background: var(--black); border-color: var(--black); color: var(--paper); }
.pill.solid:hover { background: var(--cognac); border-color: var(--cognac); }
.arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); padding: 8px 0; min-height: 44px; text-decoration: none; }
.dot { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); color: var(--black); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; transition: transform .2s; }
.arrow:hover .dot { transform: rotate(45deg); }
.link { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .42px; text-underline-offset: 5px; }

/* header */
.nav { position: sticky; top: 0; z-index: 20; background: var(--black); color: var(--paper); display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid rgba(251,250,246,.2); }
/* logo on the left, all links on the right */
.brand { order: 0; }
.navl { order: 1; margin-left: auto; }
.navr { order: 2; }
.burger { order: 3; margin-left: auto; }
.navl, .navr { display: flex; flex-wrap: wrap; align-items: center; }
.nl { color: var(--paper); padding: 8px 20px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.nl:hover, .nl[aria-current], .dd-menu a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.brand { color: var(--paper); padding: 4px 12px; text-decoration: none; display: block; }
.brand img, .obrand img { display: block; height: calc(44px * var(--size-logo)); width: auto; }
.dd { position: relative; }
.dd summary { list-style: none; cursor: pointer; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: '↓'; margin-left: 8px; font-size: 12px; }
.dd-menu { position: absolute; top: 100%; left: 8px; background: var(--black); border: 1px solid rgba(251,250,246,.25); border-radius: 12px; padding: 8px; min-width: 240px; display: flex; flex-direction: column; }
.dd-menu a { color: var(--paper); text-decoration: none; padding: 12px 14px; border-radius: 8px; }
.dd-menu a:hover { background: rgba(251,250,246,.1); }
.burger { display: none; background: none; border: 1px solid var(--paper); color: var(--paper); border-radius: 1000px; padding: 8px 18px; min-height: 44px; justify-self: end; }

/* full-screen overlays: phone menu and Book */
.over { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; background: var(--black); color: var(--paper); overflow: auto; padding: 16px 24px 48px; }
.over::backdrop { background: var(--black); }
.ohead { display: flex; justify-content: space-between; align-items: center; }
.obrand { display: block; }
.x { background: none; border: 0; color: var(--paper); font-size: 46px; font-weight: 100; line-height: 1; width: 56px; height: 56px; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; max-width: 1240px; margin: 48px auto 0; }
.otitle { font-size: clamp(48px, 7vw, 100px); line-height: 1.05; }
.mlinks { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.mlinks a { color: var(--paper); text-decoration: none; font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.1; padding: 2px 0; }

/* photos (crop from the Arranger: object-position, zoom via --z) */
.slot { position: absolute; inset: 0; overflow: hidden; }
.slot img, .tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.slot.fit-contain { background: var(--backdrop); }
.shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.45)); pointer-events: none; }

/* home hero */
.hero-top { background: var(--paper); color: var(--black); padding: 0 0 24px; }
.hero-text { background: var(--paper); color: var(--black); padding: 12px 0 64px; }
.hero-top .word-outline { -webkit-text-stroke-color: var(--black); }
.hero { position: relative; height: clamp(420px, 78vh, 760px); overflow: hidden; color: var(--paper); background: var(--backdrop); }
.word { position: relative; font-size: clamp(calc(72px * var(--size-wordmark)), calc(19.5vw * var(--size-wordmark)), calc(290px * var(--size-wordmark))); line-height: .86; text-align: center; padding-top: 20px; }
.word-outline { color: transparent; -webkit-text-stroke: max(1.5px, .012em) var(--paper); }
.hmid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: 28px 24px 0; }
.hmid h1 { font-family: var(--sans); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; max-width: 640px; }
.mq { position: absolute; left: 0; right: 0; bottom: 6px; overflow: hidden; white-space: nowrap; }
.mqt { display: inline-block; font-family: var(--serif); font-size: clamp(calc(28px * var(--size-marquee)), calc(5.4vw * var(--size-marquee)), calc(78px * var(--size-marquee))); line-height: 1.5; animation: mq 30s linear infinite; padding-left: 24px; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* photo + color panel pairs */
.stack { display: flex; flex-direction: column; gap: var(--gap); padding: var(--gap); max-width: 1680px; margin: 0 auto; }
.dip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: var(--gap); }
.dip-media { position: relative; min-height: 640px; border-radius: 24px; overflow: hidden; background: var(--ph); }
.panel { border-radius: var(--r); color: var(--paper); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 640px; }
.panel h2 { font-size: clamp(calc(40px * var(--size-panel)), calc(5.4vw * var(--size-panel)), calc(78px * var(--size-panel))); line-height: 1; margin-top: 12px; }
.panel p { margin-top: 16px; max-width: 520px; }
.dip-short .panel, .dip-short .dip-media { min-height: 420px; }
.c1 { background: var(--cognac); } .c2 { background: var(--green); } .c3 { background: var(--teal); }

/* white cards: steps, tips, quotes */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.st { background: var(--card); border-radius: var(--r); padding: 28px; }
.st h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; margin: 14px 0 10px; }
.st p { color: var(--body2); font-size: 17px; }
.st .lbl { color: var(--black); }
.quote blockquote { font-size: 28px; line-height: 1.15; margin-bottom: 18px; }

/* inner page header */
.phead { position: relative; min-height: 560px; overflow: hidden; color: var(--paper); background: var(--black); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 24px; text-align: center; }
.phead .lbl { position: relative; margin-bottom: 18px; }
.ptitle { position: relative; font-size: clamp(calc(56px * var(--size-page-title)), calc(16vw * var(--size-page-title)), calc(240px * var(--size-page-title))); line-height: .95; }
.psub { position: relative; font-size: 22px; margin-top: 18px; max-width: 720px; }
.phead.plain-head { min-height: 0; padding: 96px 24px 64px; }

/* chips (session switch, filters, guide tabs) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 28px 0 0; }
.chip { border: 1px solid var(--black); border-radius: 1000px; background: transparent; color: var(--black); padding: 10px 20px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.chip:hover { background: rgba(0,0,0,.06); }
.chip.on, .chip[aria-selected="true"] { background: var(--black); color: var(--paper); }
.guides .steps { margin-top: 28px; }

/* price cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.pr { background: var(--card); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.pr .amt { font-family: var(--serif); font-size: 72px; line-height: 1; }
.pr .per { font-size: 32px; }
.pr ul { color: var(--body2); font-size: 17px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pr .pill { align-self: flex-start; margin-top: 8px; }
.pr.feat { background: var(--cognac); color: var(--paper); }
.pr.feat ul { color: var(--paper); }
.addons { list-style: none; padding: 0; font-size: 17px; }
.addons li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ash); }
.note { font-size: 16px; color: var(--body2); margin-top: 24px; text-align: center; }

/* galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 320px; grid-auto-flow: dense; gap: 16px; }
.tile { margin: 0; overflow: hidden; position: relative; cursor: zoom-in; border-radius: var(--r); background: var(--ph); }
.tile img { transition: transform .6s ease; }
.tile:hover img { transform: scale(calc(var(--z, 1) * 1.03)); }
.tile.fit-contain { background: #EDE9E1; }
.size-wide { grid-column: span 2; } .size-tall { grid-row: span 2; } .size-feature { grid-column: span 2; grid-row: span 2; }
.tile.filtered { display: none; }
.ph-box, .tile.ph { display: flex; align-items: flex-end; padding: 14px; color: #555; font-family: var(--mono); font-size: 12px; text-transform: uppercase; cursor: default; }
.gallery-wrap { padding-top: 32px; }

/* faq */
.faq details { border-top: 1px solid var(--ash); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--ash); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 28px; line-height: 1.15; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 22px; }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 12px; color: var(--body2); font-size: 17px; max-width: 720px; }

/* long text */
.prose { font-size: 19px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.05; margin: 48px 0 14px; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--char); margin-bottom: 14px; }
.prose a { text-underline-offset: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; margin-top: 48px; }
.facts div { background: var(--card); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.facts strong { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.facts span { font-size: 15px; color: var(--body2); }

/* instagram row */
.ighead { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 48px 24px 20px; flex-wrap: wrap; }
.ighead h2 { font-size: calc(clamp(36px, 4.5vw, 56px) * var(--size-follow)); line-height: 1; color: var(--black); }
.social { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: calc(clamp(20px, 2.2vw, 28px) * var(--size-follow)); line-height: 1; color: var(--black); text-decoration: none; }
.social a:hover { text-decoration: underline; text-underline-offset: 6px; }
.social svg { width: 1.1em; height: 1.1em; flex: none; }
.ig { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding: 0 24px; }
.ig a { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--ph); display: block; }

/* footer */
.fword { font-size: clamp(calc(64px * var(--size-footer)), calc(20vw * var(--size-footer)), calc(330px * var(--size-footer))); line-height: .85; text-align: center; padding: 48px 0 8px; white-space: nowrap; overflow: hidden; }
.fword.word-outline { -webkit-text-stroke-color: var(--black); }
.frow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 16px 24px; border-top: 1px solid var(--ash); }
.frow a { color: var(--black); text-decoration: none; padding: 6px 0; }
.frow a:hover { text-decoration: underline; text-underline-offset: 5px; }
.fmark { display: block; margin: 20px auto 4px; color: var(--black); }
.fine { padding: 8px 24px 28px; color: #6b6b6b; text-align: center; }

/* forms */
form.inquiry { display: flex; flex-direction: column; gap: 22px; }
form.inquiry label { display: flex; flex-direction: column; gap: 6px; font: 12px/1.3 var(--mono); letter-spacing: .36px; text-transform: uppercase; }
form.inquiry input, form.inquiry select, form.inquiry textarea { background: transparent; border: 0; border-bottom: 1px solid var(--black); border-radius: 0; color: inherit; font: 20px/24px var(--sans); text-transform: none; letter-spacing: 0; padding: 11px 0; min-height: 48px; width: 100%; }
form.inquiry textarea { resize: vertical; min-height: 96px; }
form.inquiry input:focus, form.inquiry select:focus, form.inquiry textarea:focus { outline: none; border-bottom-width: 2px; }
form.inquiry select option { color: #000; }
form.inquiry .check { flex-direction: row; align-items: flex-start; gap: 12px; font: 16px/1.35 var(--sans); text-transform: none; letter-spacing: 0; }
form.inquiry .check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--cognac); }
form.inquiry.dark input, form.inquiry.dark select, form.inquiry.dark textarea { border-bottom-color: var(--ash); }
form.inquiry.dark ::placeholder { color: #8d8a84; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.form-note { color: #77736b; }
.send { align-self: flex-start; background: var(--black); border: 1px solid var(--black); color: var(--paper); border-radius: 7px; padding: 10px 24px; min-height: 44px; }
.dark .send { background: transparent; border-color: var(--paper); }
.send:hover { background: var(--cognac); border-color: var(--cognac); }
.send:disabled { opacity: .5; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-family: var(--sans); font-size: 17px; }
.form-status.ok { color: #2E6B3E; } .dark .form-status.ok { color: #9BD3A8; }
.form-status.err { color: #A42A2A; } .dark .form-status.err { color: #F2A7A7; }
.book-page { background: var(--black); color: var(--paper); }
.book-page .chip { border-color: var(--paper); color: var(--paper); }
.book-page .chip[aria-selected="true"] { background: var(--paper); color: var(--black); }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; -webkit-user-select: none; user-select: none; }
.lb-close { position: fixed; top: 16px; right: 20px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; }

/* phone and tablet */
@media (max-width: 900px) {
  .navl, .navr { display: none; }
  .burger { display: inline-flex; align-items: center; }
  .ig { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  :root { --gap: 16px; }
  body { font-size: 18px; }
  .panel { padding: 32px 24px; min-height: 0; }
  .dip-media { min-height: 480px; }
  .dip-short .panel { min-height: 0; } .dip-short .dip-media { min-height: 360px; }
  .phead { min-height: 440px; }
  .psub, .lead { font-size: 19px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; gap: 8px; }
  .tile { border-radius: 10px; }
  .size-feature { grid-row: span 2; }
  .ig { gap: 8px; padding: 0 16px; }
  .ig a { border-radius: 10px; }
  .pr .amt { font-size: 60px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .mqt { animation: none; }
  .tile img, .dot, .pill { transition: none; }
}

/* Look settings from src/data/look.json */
:root { --size-wordmark: 0.6; --size-footer: 0.7; --size-page-title: 1; --size-panel: 0.95; --size-marquee: 0.6; --size-logo: 1; --size-follow: 0.8; --anton: 'Anton', 'Impact', sans-serif; --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Archivo', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace; --w-wordmark: 400; --backdrop: #2C3D33; }
