/* ============================================================
   The Art of Focus — the book page.
   Builds on styles.css tokens and follows the Explorations and
   Brand directions pages: centred hero, hairline-separated sections,
   small uppercase labels, 1.1rem image frames.
   ============================================================ */

.aof-page {
  --aof-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --aof-max: 1240px;
  --aof-media-bg: #ece5dc;
}

.aof-page main > * {
  width: min(100%, calc(var(--aof-max) + var(--aof-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--aof-gutter);
}

.aof-page h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; text-wrap: balance; }

/* ---------- hero (centred, like Brand directions) ---------- */
.aof-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: calc(var(--head-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.aof-kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.aof-hero h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.aof-subtitle { margin: 0.7rem 0 0; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--wash-deep); }
.aof-lede {
  max-width: 50ch;
  margin: clamp(1.4rem, 2.5vw, 2rem) auto clamp(2.5rem, 4.5vw, 3.5rem);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.aof-hero-image { width: 100%; margin: 0; border-radius: 1.1rem; overflow: hidden; background: var(--aof-media-bg); }
.aof-hero-image img { display: block; width: 100%; height: auto; }

/* ---------- sections ---------- */
.aof-section { padding-block: clamp(3.5rem, 6vw, 5.5rem); border-top: 1px solid var(--line); }
.aof-section p { color: var(--ink-2); line-height: 1.65; }

/* Text beside one image or film; the second section flips the order. */
.aof-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.aof-split-flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.aof-copy { display: grid; gap: 1.1rem; }
.aof-copy h2 { margin: 0 0 0.3rem; }
.aof-copy > p { margin: 0; max-width: 52ch; }

.aof-media { margin: 0; border-radius: 1.1rem; overflow: hidden; background: var(--aof-media-bg); }
.aof-media img,
.aof-media video { display: block; width: 100%; height: auto; }

/* Numbered steps with hairlines, as the insights list on Brand directions. */
.aof-steps { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); counter-reset: step; }
.aof-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.aof-steps li::before {
  content: "0" counter(step);
  grid-row: span 2;
  padding-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.aof-steps h3 { margin: 0 0 0.25rem; font-family: var(--syne); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.aof-steps p { margin: 0; font-size: 0.95rem; }

/* ---------- market ---------- */
.aof-section-head { display: grid; gap: 1rem; max-width: 60ch; }
.aof-section-head h2,
.aof-section-head p { margin: 0; }
.aof-market .market-grid { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* ---------- buy: heading left, copy right, like the contact sections ---------- */
.aof-buy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.aof-buy h2 { margin: 0; max-width: 14ch; }
.aof-buy-copy { display: grid; justify-items: start; gap: 1rem; }
.aof-buy-copy p { margin: 0; max-width: 56ch; font-size: 0.98rem; }

/* The one button on the site besides the header Contact, so it borrows that shape. */
.aof-buy-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 0.7rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 460;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.aof-buy-btn:hover { background: var(--wash-deep); border-color: var(--wash-deep); }
.aof-buy-btn:active { transform: scale(0.98); }
.aof-buy-copy .aof-buy-note { margin-top: 0.4rem; font-size: 0.85rem; color: var(--mute); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .aof-split,
  .aof-split-flip,
  .aof-buy { grid-template-columns: 1fr; }
  .aof-split-flip .aof-media { order: 2; }
}

@media (max-width: 720px) {
  .aof-hero { justify-items: start; text-align: left; }
  .aof-hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.05; }
  .aof-lede { margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aof-buy-btn { transition: none; }
}
