/* Rinaldi Portraiture: dark and quiet.
   All colors live here, in one place, so they are easy to change. */
:root {
  --bg: #0c0c0d;
  --bg-raised: #151517;
  --line: #2b2b2e;
  --text: #ece8e2;
  --muted: #a8a299;
  --accent: #c9a46a;
  --accent-ink: #14110c;
  --focus: #e6c58d;
  --header-h: 64px;
  /* Futura PT comes from Adobe Fonts, web project "Rinaldi Portraiture" (the use.typekit.net link in each page head). The fallbacks are the
     Futura that ships with macOS and iOS, then a Futura-like face, then any sans-serif. */
  --font-display: "futura-pt", Futura, "Jost", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-body: "futura-pt", Futura, "Jost", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .25rem 1.5rem;
  padding: .9rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.wordmark {
  font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
}
.wordmark:hover { color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: .95rem; letter-spacing: .04em; padding: .35rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.site-nav a.nav-cta { color: var(--accent); border: 1px solid var(--accent); padding: .35rem .9rem; border-radius: 2px; }
.site-nav a.nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-size: .95rem; letter-spacing: .04em;
  padding: .75rem 1.5rem; border-radius: 2px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--focus); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* Home: gallery */
.gallery {
  position: relative;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  height: calc(100svh - var(--header-h));
  min-height: 420px;
  background: #000;
}
.viewer-wrap { position: relative; min-height: 0; overflow: hidden; cursor: pointer; }
#photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s ease; user-select: none; -webkit-user-drag: none; }
#photo.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #photo { transition: none; } }
.gallery:fullscreen { height: 100vh; }
.gallery:fullscreen .viewer-wrap { cursor: pointer; }

.ui-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 .8rem;
  font: inherit; font-size: .85rem; letter-spacing: .05em;
  color: var(--text); background: rgba(12, 12, 13, .72);
  border: 1px solid rgba(236, 232, 226, .22); border-radius: 2px; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ui-btn:hover { border-color: var(--accent); color: var(--accent); }
.ui-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ui-btn[hidden] { display: none; }
.step { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; }
.step.prev { left: clamp(.5rem, 2vw, 1.5rem); }
.step.next { right: clamp(.5rem, 2vw, 1.5rem); }
.tools { position: absolute; top: clamp(.5rem, 2vw, 1.25rem); right: clamp(.5rem, 2vw, 1.5rem); display: flex; gap: .4rem; z-index: 5; }
.caption {
  position: absolute; left: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.5rem, 2vw, 1.25rem); z-index: 5;
  margin: 0; font-size: .9rem; color: var(--text); letter-spacing: .03em;
  background: rgba(12, 12, 13, .72); padding: .35rem .75rem; border-radius: 2px; max-width: calc(100% - 1.5rem);
}
.caption .count { color: var(--muted); margin-right: .75rem; font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); }
.loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .95rem; pointer-events: none; z-index: 4; }
.loading[hidden] { display: none; }

.strip {
  display: flex; gap: .5rem; margin: 0; padding: .6rem clamp(.75rem, 2vw, 1.5rem);
  list-style: none; overflow-x: auto; background: var(--bg); border-top: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.thumb { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; border-radius: 2px; opacity: .6; flex: 0 0 auto; }
.thumb img { height: 64px; width: auto; border-radius: 1px; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { border-color: var(--accent); opacity: 1; }

.noscript-photo { padding: 1rem; text-align: center; }
.noscript-photo img { margin: 0 auto; max-height: 80vh; width: auto; }

/* Content pages */
main { flex: 1 0 auto; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem); }
.narrow { max-width: 68ch; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -.005em; margin: 0 0 .75em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; color: var(--text); }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); margin-bottom: 1rem; }

.intro { border-top: 1px solid var(--line); }
.intro .wrap { display: grid; gap: 1.5rem; }
.cta-band { border-top: 1px solid var(--line); background: var(--bg-raised); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; padding-top: 2.25rem; padding-bottom: 2.25rem; }
.cta-band p { margin: 0; font-family: var(--font-display); font-size: 1.4rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-body); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: .9rem 0 0; color: var(--text); }

/* About */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .about-grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.about-photo { aspect-ratio: 4 / 5; background: var(--bg-raised); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-blank { background: #000; border-color: var(--line); }

/* Pricing */
.packages { display: grid; gap: 1.25rem; margin: 2rem 0 1rem; }
@media (min-width: 820px) { .packages { grid-template-columns: repeat(3, 1fr); } }
.package { border: 1px solid var(--line); background: var(--bg-raised); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; border-radius: 2px; }
.package h3 { margin-bottom: .25rem; }
.package .price { font-family: var(--font-display); font-weight: 500; font-size: 2rem; margin: .5rem 0 1rem; }
.package ul { list-style: none; margin: 0 0 1.5rem; padding: 0; color: var(--muted); font-size: .98rem; }
.package li { padding: .45rem 0; border-top: 1px solid var(--line); }
.package .btn { margin-top: auto; text-align: center; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 1px solid var(--accent); padding-top: .9rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--accent); font-family: var(--font-display); margin-bottom: .35rem; }
.steps strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Form */
.form { display: grid; gap: 1.25rem; max-width: 640px; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; letter-spacing: .04em; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg-raised);
  border: 1px solid #77777e; border-radius: 2px; padding: .75rem .85rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { padding-top: 1.75rem; padding-bottom: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; }

/* Placeholders that still need your answer. The check script refuses to pass while any remain. */
.tbd { outline: 1px dashed var(--accent); outline-offset: 2px; color: var(--accent); background: rgba(201, 164, 106, .08); padding: 0 .2em; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wordmark { font-size: 1.2rem; }
  .site-nav { gap: .15rem 1.1rem; }
  .thumb img { height: 52px; }
  .ui-btn { min-width: 40px; height: 40px; }
  .caption { font-size: .82rem; }
  .tools .label-long { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Fixes found in testing */
.tbd { overflow-wrap: anywhere; }
.package li { overflow-wrap: anywhere; }
@media (min-width: 820px) { .package > .muted { min-height: 5.4em; } }
