:root {
  --bg: #f7f0e0;
  --panel: #ede4d4;
  --accent: #c76b47;
  --accent2: #6b9475;
  --text: #2e2924;
  --muted: #7a7066;
  --paper: #fffaf2;
  --max: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.page-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.side-panel {
  background: var(--panel);
  border-right: 1px solid rgba(46, 41, 36, 0.08);
  padding: 2rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.side-icon {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(46, 41, 36, 0.12);
}

.side-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.side-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.side-nav a:hover {
  background: rgba(199, 107, 71, 0.12);
  color: var(--accent);
}

.side-note {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.main-column {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.hero-editorial {
  max-width: var(--max);
  margin-bottom: 3.5rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-editorial h1 {
  margin: 0 0 1rem;
  line-height: 1.05;
}

.hero-editorial h1 span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
}

.hero-editorial h1 em {
  display: block;
  font-style: normal;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--muted);
  margin-top: 0.35rem;
}

.hero-tagline {
  font-size: 1.12rem;
  max-width: 38rem;
  color: var(--text);
  margin: 0 0 1.75rem;
}

.hero-art img {
  width: 100%;
  border-radius: 18px;
  display: block;
  box-shadow: 0 18px 40px rgba(46, 41, 36, 0.14);
}

.section-intro.right-block {
  max-width: var(--max);
  margin: 0 0 1.75rem auto;
  text-align: right;
}

.section-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  margin: 0 0 0.35rem;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
}

.flow-section {
  margin-bottom: 4rem;
}

.numbered-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  max-width: var(--max);
}

.numbered-steps li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(46, 41, 36, 0.1);
}

.step-num {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 700;
}

.numbered-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.numbered-steps p {
  margin: 0;
  color: var(--muted);
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: var(--max);
}

.gallery-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.screens-section {
  margin-bottom: 3rem;
}

.polaroid-wall {
  position: relative;
  min-height: 420px;
  max-width: 760px;
  margin: 0 auto;
}

.polaroid {
  background: var(--paper);
  padding: 0.75rem 0.75rem 2.2rem;
  box-shadow: 0 12px 28px rgba(46, 41, 36, 0.16);
  width: min(280px, 78vw);
  margin: 0;
}

.polaroid img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.polaroid figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.65rem;
  font-family: Georgia, serif;
}

.polaroid.p1 { transform: rotate(-4deg); position: absolute; left: 0; top: 0; }
.polaroid.p2 { transform: rotate(2deg); position: absolute; left: 32%; top: 40px; z-index: 2; }
.polaroid.p3 { transform: rotate(-2deg); position: absolute; right: 0; top: 10px; }

.legal-sheet {
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 -8px 30px rgba(46, 41, 36, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--max);
}

.legal-block h2 {
  font-family: Georgia, serif;
  margin-top: 0;
}

.legal-block a {
  color: var(--accent);
}

@media (max-width: 860px) {
  .page-shell { grid-template-columns: 1fr; }
  .side-panel {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(46, 41, 36, 0.08);
  }
  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .side-note { margin-top: 0; }
  .section-intro.right-block { text-align: left; margin-left: 0; }
  .gallery-row { grid-template-columns: 1fr; }
  .polaroid-wall { min-height: auto; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
  .polaroid { position: static !important; transform: none !important; width: min(320px, 92vw); }
  .legal-sheet { grid-template-columns: 1fr; }
}
