/* peteramato.com — warm editorial. One excellent photograph per page, generous space, type that breathes. */
:root {
  --paper: #f7f2ea;
  --paper-deep: #efe6d9;
  --card: #fbf8f3;
  --ink: #2a2521;
  --ink-soft: #4a423b;
  --muted: #74695f;
  --line: #ddd1c1;
  --plum: #573a5e;
  --plum-deep: #3d2743;
  --sage: #6f7f63;
  --gold: #a9834f;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1160px;
  --read: 680px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.65; font-weight: 400;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--plum-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1.1em; }
.eyebrow { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 1.1em; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.32rem); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: var(--read); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 28px 0; }
.center .rule, .rule.center { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 242, 234, .94); backdrop-filter: blur(6px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--ink-soft); text-decoration: none; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.brand small { font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav a.link { color: var(--ink-soft); text-decoration: none; font-size: .95rem; letter-spacing: .02em; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 10px 20px; border-radius: 2px; border: 1px solid var(--gold); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--gold); color: #fff; }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); background: transparent; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.tint { background: var(--paper-deep); }
.dark { background: var(--plum-deep); color: #efe6f0; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #d6b98a; }
.dark a { color: #fff; }

/* hero */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-photo { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-deep); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo.portrait { aspect-ratio: 1 / 1; max-width: 560px; justify-self: center; width: 100%; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.caption { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* quote */
.quote { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.3; font-style: italic; color: var(--ink); margin: 0; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 22px; }
.dark .quote { color: #fff; }
.dark .quote cite { color: #cdbdd0; }

/* grids and cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.sub-hero { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: var(--plum); line-height: 1.35; margin: -6px 0 18px; }
.media-frame, .audio-frame { border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(160deg, #3d2743, #573a5e); color: #efe6f0; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--serif); font-size: 1.35rem; gap: 18px; }
.media-frame { aspect-ratio: 16 / 9; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #1d1820; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.audio-frame { padding: 34px 26px; background: var(--card); color: var(--ink); justify-content: flex-start; text-align: left; }
.media-frame small, .audio-frame small { font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.audio-frame .play { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 34px 30px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); }
.card .for { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.card .go { margin-top: 18px; font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.card .go::after { content: " \2192"; }
.num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }

.photo-band { position: relative; min-height: 440px; display: flex; align-items: flex-end; background: #3a3a33 center / cover no-repeat; color: #fff; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 18, 26, .30) 0%, rgba(24, 18, 26, .45) 45%, rgba(24, 18, 26, .78) 100%); }
.photo-band .wrap { position: relative; padding-bottom: 56px; width: 100%; }
.photo-band h2 { color: #fff; max-width: 760px; text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.photo-band p { max-width: 620px; color: #f1ece4; }

/* lists */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr; gap: 20px; }
.facts li span:first-child { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.plain { padding-left: 1.1em; }
.plain li { margin-bottom: .55em; }
.threads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.threads > div { padding: 34px 28px 10px 0; border-right: 1px solid var(--line); }
.threads > div + div { padding-left: 28px; }
.threads > div:last-child { border-right: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.steps.six { grid-template-columns: repeat(6, 1fr); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 22px 18px; font-size: .96rem; color: var(--ink-soft); }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.steps li strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); margin: 4px 0 6px; }

.book { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: 48px 0; border-bottom: 1px solid var(--line); }
.book:last-child { border-bottom: 0; }
.book-cover { border-radius: 4px; }
.book-cover.placeholder { aspect-ratio: 2 / 3; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--serif); font-size: 1.6rem; color: var(--plum); background: linear-gradient(160deg, #efe6d9, #e2d4c2); }
.meta-line { font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* forms */
form { display: grid; gap: 18px; }
label { font-size: .88rem; letter-spacing: .06em; color: var(--ink-soft); display: grid; gap: 6px; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.form-note { font-size: .88rem; color: var(--muted); }
.form-status { font-size: .95rem; color: var(--sage); min-height: 1.4em; }

/* footer */
.site-footer { background: #231e22; color: #cfc4c9; padding: 64px 0 36px; font-size: .95rem; }
.site-footer a { color: #efe6ea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: #bfa98a; margin: 0 0 14px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 10px; }
.legal { border-top: 1px solid #3b3438; margin-top: 44px; padding-top: 22px; font-size: .82rem; color: #a3979d; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .steps.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps, .steps.six { grid-template-columns: 1fr 1fr; }
  .threads { grid-template-columns: 1fr; }
  .threads > div, .threads > div + div { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--paper); flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .nav ul li a.link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-grid, .grid-2, .doors { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; order: -1; }
  .book { grid-template-columns: 1fr; }
  .book-cover { max-width: 320px; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .steps, .steps.six { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .photo-band { min-height: 360px; }
}
