/* Oak & Mason inner pages, v3 draft. Builds on om-tokens.css and om.css.
   Chosen on the whisky casks canvas on 25 Sep 2026: Hero C (the title first, a wide photograph band beneath carrying the
   figures) as the pattern for inner pages, the contents strip, the cask drawn, and the selling routes as photo cards.
   Class prefix om-; these move into om.css and the design system once signed off. The options not chosen live on the
   canvas (project/inner.css). */

/* Inner-page hero: the page title and its lead on paper, then a wide photograph band with the figures as glass tiles */
.om-bandhero { padding: 104px 0 0; }
.om-bandhero__intro { display: grid; gap: 22px; }
.om-bandhero__head { display: grid; gap: 18px; justify-items: start; }
.om-bandhero__side { display: grid; gap: 22px; align-content: end; justify-items: start; }
.om-bandhero__title { margin: 0; max-width: 11em; font-family: var(--font-serif); font-weight: 400; font-size: 38px; line-height: 42px; letter-spacing: -0.03em; font-variation-settings: 'opsz' 72; color: var(--slate-deep); text-wrap: balance; }
.om-bandhero__lead { margin: 0; max-width: 32em; font: 400 17px/27px var(--font-sans); letter-spacing: -0.01em; color: var(--ink-muted); text-wrap: pretty; }
.om-bandhero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.om-bandhero__band { position: relative; isolation: isolate; display: flex; align-items: flex-end; box-sizing: border-box; min-height: 380px; margin: 48px var(--frame-inset) 0; padding: 20px; border-radius: var(--radius-lg); overflow: hidden; background: var(--peat); }
.om-bandhero__band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.om-bandhero__band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, #1f2224b3 0%, #1f222400 55%); }
.om-bandhero__band .om-tiles { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.om-bandhero__band .om-tile { min-height: 96px; }
@media (min-width: 1024px) {
  .om-bandhero { padding-top: 136px; }
  .om-bandhero__intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: end; }
  .om-bandhero__title { font-size: 64px; line-height: 68px; }
  .om-bandhero__lead { font-size: 18px; line-height: 29px; }
  .om-bandhero__band { min-height: 440px; padding: 32px; }
  .om-bandhero__band .om-tiles { width: min(100%, 720px); }
}
@media (max-width: 767px) {
  .om-bandhero__band { padding: 12px; }
  .om-bandhero__band .om-tile { min-height: 84px; padding: 10px 12px 12px; gap: 12px; }
  .om-bandhero__band .om-tile__label { font-size: 13px; line-height: 17px; }
  .om-bandhero__band .om-tile__figure { font-size: 26px; }
}
@media (prefers-reduced-motion: no-preference) {
  .om-bandhero__band > img { animation: om-settle 14s var(--om-ease) both; }
  .om-bandhero__intro > * { animation: om-rise .9s var(--om-ease) both; }
  .om-bandhero__intro > :nth-child(2) { animation-delay: .08s; }
}

/* Contents strip: the page's sections, in order; scrolls sideways on phones */
.om-toc { margin-top: 32px; }
.om-toc__wrap { display: flex; align-items: center; gap: 24px; overflow-x: auto; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.om-toc__wrap::-webkit-scrollbar { display: none; }
.om-toc__label { flex: none; margin: 0; font: 400 12px/18px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.om-toc__list { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.om-toc__list a { font: 500 15px/20px var(--font-sans); color: var(--ink); text-decoration: none; white-space: nowrap; border-radius: 2px; }
.om-toc__list a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 767px) { .om-toc__label { display: none; } .om-toc__list { gap: 22px; } }
[id="own"], [id="tax"], [id="held"], [id="buying"], [id="selling"], [id="costs"], [id="questions"] { scroll-margin-top: 24px; }

/* The cask, drawn: a line drawing with four numbered parts, on a stone panel */
.om-anatomy { padding: 56px var(--frame-inset) 0; }
.om-anatomy__panel { display: grid; gap: 40px; box-sizing: border-box; padding: 32px 20px 36px; border-radius: var(--radius-lg); background: var(--stone); }
.om-anatomy__intro { display: grid; gap: 18px; align-content: start; justify-items: start; }
.om-anatomy__title { margin: 0; max-width: 13em; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; font-variation-settings: 'opsz' 60; color: var(--slate-deep); text-wrap: balance; }
.om-anatomy__lead { margin: 0; max-width: 34em; font: 400 17px/27px var(--font-sans); letter-spacing: -0.01em; color: var(--ink-muted); text-wrap: pretty; }
.om-anatomy__note { margin: 0; max-width: 34em; font: 400 14px/22px var(--font-sans); color: var(--ink-muted); }
.om-anatomy__figure { display: grid; gap: 32px; margin: 0; }
.om-anatomy__drawing { display: block; width: 100%; height: auto; overflow: visible; }
.om-anatomy__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.om-anatomy__notes > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; }
.om-anatomy__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--brass); color: var(--ink); font: 600 14px/1 var(--font-sans); }
.om-anatomy__part { margin: 2px 0 6px; font: 500 18px/24px var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.om-anatomy__text { margin: 0; font: 400 16px/25px var(--font-sans); color: var(--ink-muted); }
@media (min-width: 1024px) {
  .om-anatomy { padding-top: 72px; }
  .om-anatomy__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; padding: 64px; }
  .om-anatomy__title { font-size: 38px; line-height: 45px; }
  .om-anatomy__lead { font-size: 18px; line-height: 28px; }
  .om-anatomy__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
}
/* The drawing carries no presentation attributes; every style is here */
.cask-body { fill: var(--paper); stroke: var(--slate-deep); stroke-width: 1.6px; stroke-linejoin: round; }
.cask-head { fill: var(--paper); stroke: var(--slate-deep); stroke-width: 1.6px; }
.cask-line { fill: none; stroke: var(--slate-deep); stroke-width: 1px; stroke-linecap: round; }
.cask-lead { fill: none; stroke: var(--slate-deep); stroke-width: 1px; }
.cask-seam { fill: none; stroke: var(--line-strong); stroke-width: .9px; stroke-linecap: round; }
.cask-hoop { fill: none; stroke: var(--slate-deep); stroke-width: 1.6px; stroke-linecap: round; }
.cask-floor { fill: none; stroke: var(--line-strong); stroke-width: 1.2px; stroke-linecap: round; }
.cask-chock { fill: var(--sand); stroke: var(--slate-deep); stroke-width: 1.2px; stroke-linejoin: round; }
.cask-stencil { fill: var(--slate-deep); font-family: var(--font-sans); font-size: 30px; font-weight: 600; letter-spacing: .06em; text-anchor: middle; }
.cask-stencil--small { font-size: 22px; }
.cask-mark { fill: var(--brass); stroke: var(--stone); stroke-width: 3px; }
.cask-mark-n { fill: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
@media (max-width: 767px) { .cask-marker { transform: scale(1.8); transform-box: fill-box; transform-origin: center; } }

/* Selling: three routes, each a photograph with its route on a stone card, and the market note beneath */
.om-routecards { display: grid; gap: 16px; }
.om-routecard { display: grid; grid-template-rows: auto 1fr; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--stone); }
.om-routecard__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--peat); }
.om-routecard__media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.om-routecard__body { display: grid; gap: 12px; align-content: start; padding: 24px 24px 28px; }
.om-routecard__title { margin: 0; font: 500 22px/28px var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.om-routes__when { margin: 0; font: 400 12px/18px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brass-text); }
.om-routes__text { margin: 0; max-width: 26em; font: 400 17px/27px var(--font-sans); letter-spacing: -0.01em; color: var(--ink-muted); text-wrap: pretty; }
.om-routes-note { width: 100%; max-width: 900px; margin: 0 auto; }
@media (min-width: 1024px) {
  .om-routecards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .om-routecard__body { padding: 28px 32px 36px; }
}
@media (prefers-reduced-motion: no-preference) {
  .om-routecard__media img { transition: transform 1.2s var(--om-ease); }
  .om-routecard:hover .om-routecard__media img { transform: scale(1.03); }
}
