/* ============================================================
   開化亭 — depth layer. Loaded LAST, after modern.css.

   WHY THIS FILE EXISTS. The page carried five photographs from the
   shop's Google listing and one of them, img-05.jpg, is a straight
   overhead shot of the printed お品書き: every group, every dish,
   every price, plus the shop's own two footnotes (大盛り +300円 and
   価格はすべて税抜). The page meanwhile said 「品書きと価格は確認中」
   and listed four placeholder rows. The largest depth move available
   here was therefore not a new photograph but reading the one already
   on the page, so this file is mostly the typography of a price list.

   Nothing here sets a colour or a typeface. Indigo #35517a and the
   Sawarabi Mincho / BIZ UDPMincho pair are this shop's identity and
   are untouched.

   TOKENS. modern.css for this site names its spacing --s-1..--s-7 and
   its type --step--1..--step-3 (ratio 1.22). Other sites in the estate
   use --sp-* and --s1..--s9. The aliases below are the only place that
   difference has to be known, so the rest of the file reads the same on
   every site it is copied to and a missing token degrades to a sane
   literal instead of collapsing a gap to zero. That exact mistake ate
   every group gap on the first render of this page.
   ============================================================ */

:root {
  --d2: var(--s-2, 0.6rem);
  --d3: var(--s-3, 0.95rem);
  --d4: var(--s-4, 1.4rem);
  --d5: var(--s-5, 2.1rem);
  --d6: var(--s-6, 3.2rem);
  --d7: var(--s-7, 4.8rem);

  /* The supporting type scale for this layer. A price list needs FOUR
     distinguishable sizes on one line (group, dish, qualifier, figure)
     and the shared scale only reaches down to 0.82rem. */
  --dt-xs: 0.7rem;
  --dt-sm: var(--step--1, 0.82rem);
  --dt-md: 1.02rem;
  --dt-lg: 1.1rem;
}

/* ---------- Full-bleed band ----------
   Structural variety was the other gap: six sections, every one a heading
   over a block. A full-bleed band between two rule-separated sections
   changes the register without introducing a new idea. */

.band-full {
  position: relative;
  padding: 0;
  background: var(--text);
  color: var(--accent-ink);
}
.band-full .band-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.band-full .band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* On a phone the copy sits BELOW the photograph, so no text is ever laid
   over an unpredictable part of a frame we did not shoot. Only above
   1040px, where the band becomes a wide letterbox, does the copy move on
   top of it — and then over a scrim that buys the contrast. */
.band-full .band-copy {
  padding: var(--d5) 0 var(--d6);
}
.band-full .eyebrow {
  font-size: var(--dt-sm);
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--accent-ink);
  opacity: 0.82;
  margin-bottom: var(--d3);
}
.band-full h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 8vw, 3rem);
  line-height: 1.35;
  letter-spacing: 0.06em;
  margin-bottom: var(--d4);
}
.band-full p {
  color: var(--accent-ink);
  opacity: 0.85;
  max-width: 34em;
}

/* The price is the top of the type scale here on purpose: it is what a
   customer is looking for, and before this pass no figure anywhere on the
   page was larger than body text. */
.sig-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: var(--d5) 0 var(--d4);
  font-variant-numeric: tabular-nums;
  opacity: 1;
}
.sig-price .yen { font-size: var(--step-1, 1.2rem); opacity: 0.75; }
.sig-price .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.sig-price .tax {
  font-size: var(--dt-sm);
  letter-spacing: 0.1em;
  opacity: 0.72;
  margin-left: 0.3rem;
}

/* 0.85, not 0.75. On the wide layout this line sits over the photograph, and
   at 0.75 against a blown-out region of it the small text measured 4.46:1 —
   a rounding error below the 4.5 floor. At 0.85 the worst case is 5.4:1. */
.band-full .band-note {
  margin-top: var(--d4);
  font-size: var(--dt-sm);
  line-height: 1.9;
  opacity: 0.85;
}

/* ---------- お品書き ----------
   A transcription has to carry its own proof, so this is an editorial
   spread: the list on the left, the photograph it was read from on the
   right, close enough that the owner can check a row against the paper. */

.oshina {
  display: grid;
  gap: var(--d6);
}

.oshina-groups {
  display: grid;
  gap: var(--d7);
  min-width: 0;
}

.oshina-group { min-width: 0; }

/* h3 was zero on this page. A group heading now sits in the display face
   above the hairline that owns the rows beneath it, so a reader sees three
   levels: section, group, dish. */
.oshina-group h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 3.4vw, 1.35rem);
  letter-spacing: 0.16em;
  line-height: 1.5;
  padding-bottom: var(--d2);
  border-bottom: 2px solid var(--accent);
  margin-bottom: 0;
}

.oshina-list { list-style: none; }

/* Grid, not flex. Flex let a long drink name shrink below its content and
   break mid-word: 「ノンアルコールビ / ール」. A grid column that is
   minmax(0, 1fr) wraps between words and leaves the figure alone. */
.oshina-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.7rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.oshina-list .name {
  font-size: var(--dt-md);
  font-weight: 700;
  line-height: 1.65;
  min-width: 0;
}
/* A bracketed qualifier the shop wrote stays a qualifier: its own line,
   smaller and muted, so it never competes with the dish. */
.oshina-list .qual {
  display: block;
  font-weight: 400;
  font-size: var(--dt-sm);
  line-height: 1.6;
  color: var(--muted);
}
/* The dotted leader is decoration and only earns its place when the name
   is short enough to leave a run of it. Below 560px there is no such run,
   so it is dropped rather than rendered as a three-pixel stub. */
.oshina-list .dots { display: none; }
.oshina-list .price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: var(--dt-lg);
  color: var(--text);
}
.oshina-list .price .y {
  font-size: var(--dt-sm);
  color: var(--muted);
  margin-right: 0.08em;
}

/* 名物 is the shop's own word: printed on the noren over the door and
   stamped in red beside one dish on the paper menu. It is a quotation, so
   it is set as a mark rather than as a recommendation in our voice. */
.meibutsu {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.08rem 0.4rem;
  font-size: var(--dt-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--r);
  vertical-align: 0.1em;
}

.oshina-source { min-width: 0; }
.oshina-source figure { margin: 0; }
.oshina-source img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.oshina-source figcaption {
  margin-top: var(--d3);
  font-size: var(--dt-sm);
  line-height: 1.9;
  color: var(--muted);
}

.oshina-foot {
  margin-top: var(--d6);
  padding-top: var(--d4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--dt-sm);
  line-height: 1.95;
}
.oshina-foot p + p { margin-top: var(--d2); }

/* One dish on the list has a photograph on the listing. Beside its own row
   it is worth more than a fourth tile in a uniform grid. */
.inline-fig { margin: var(--d5) 0 0; }
.inline-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.inline-fig figcaption {
  margin-top: var(--d2);
  font-size: var(--dt-sm);
  color: var(--muted);
  line-height: 1.85;
}

.takeout .m-figure { border: 1px solid var(--line); }

@media (min-width: 560px) {
  .oshina-list .dots {
    display: block;
    align-self: baseline;
    border-bottom: 1px dotted var(--line);
    transform: translateY(-0.35em);
  }
  .oshina-list li { grid-template-columns: auto minmax(1.5rem, 1fr) auto; }
  .oshina-list .qual { display: inline; margin-left: 0.4rem; }
}

@media (min-width: 860px) {
  .oshina-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .oshina {
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    align-items: start;
    gap: var(--d7);
  }
  .oshina-source {
    position: sticky;
    top: calc(var(--nav-h) + var(--d4));
  }

  .band-full .band-media { aspect-ratio: 21 / 9; }
  .band-full .band-copy {
    position: absolute;
    inset: auto 0 0 0;
    padding-bottom: var(--d6);
    /* Scrim strengths were computed against the WORST case, a blown-out white
       region of a photograph we do not control sitting directly under the
       text. At 0.64 the headline came out at 4.13:1, which passes only on the
       large-text threshold; at 0.80 it is 5.6:1 and passes outright. The body
       line below it sits over 0.92 and clears 8:1. */
    background: linear-gradient(
      to top,
      rgba(41, 39, 34, 0.92) 0%,
      rgba(41, 39, 34, 0.80) 55%,
      rgba(41, 39, 34, 0) 100%
    );
  }
}

/* ---------- No reveal rule here, on purpose ----------
   site.css for this shop states it outright: "Motion: deliberately none.
   No .rv on this site; austerity means the page simply stands there, like
   the shop." There is consequently no `.rv { opacity: 0 }` anywhere in the
   cascade, so nothing on this page is hidden waiting for script. Adding one
   here would have introduced exactly that dependency to buy a fade. The
   stagger in motion-init.js animates FROM opacity 0 at the moment a group
   scrolls in, so the finished state is still the element's ordinary CSS and
   a page whose JS never runs is simply static. */
