/* burymyphone.com on the Edge look (2026-11-23).
   - One page (Maxwell): the sheet holds still. Scrolling prints each scene onto it and lifts
     it off for the next; nothing slides. No header. The buy line at the foot stays printed.
   - One text size, Edge's (--cap), on every page; hierarchy from space (Maxwell 2026-11-23, 2026-11-26).
   - Every line is the Edge line (assets/line.js) at the stem of the letters (site.js).
   - Photos and films are prints: white photo paper, one shape (4:5), a slicer-cut edge (line.js
     sheetPath), sharp corners, curling off the page with the shadow growing where the paper
     lifts (curl.js, Maxwell 2026-11-26). Words ink in (humedgtec's bloom), prints fade in,
     lines draw on. */
@font-face { font-family: 'Edge Book'; src: url('/assets/fonts/edge-book.woff2?v=1') format('woff2'); font-weight: 400 800; font-style: normal; font-display: block; }

:root {
  --paper: #F6F3EC;
  --photo: #FBFAF6;   /* photo paper, a shade brighter than the page */
  --ink: #453e3b;
  --serif: 'Edge Book', Georgia, serif;
  --cap: clamp(18px, 1.75vw, 26px);
  --gut: max(16px, 4vw);
  --bar: calc(var(--cap) * 3.4);   /* the buy line's height */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 var(--cap) / 1.35 var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, p, figure, blockquote, dl, dd, ul { margin: 0; padding: 0; font-weight: 500; font-size: inherit; }
b { font-weight: 500; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
/* Line breaks (Maxwell 2026-11-26: "good line break logic and hygiene"): short lines are
   balanced, longer ones avoid a lone last word, and nothing is ever hyphenated by the browser. */
html { hyphens: manual; -webkit-hyphens: manual; }
p, dd, li { text-wrap: pretty; }
h1, h2, blockquote, figcaption, .pull, .below, .below *, .above, .above * { text-wrap: balance; }
.nb { white-space: nowrap; }
.ln { display: inline-block; }   /* a sentence that keeps to its own line when the two can't share one */

.quiet { }   /* no gray text (Maxwell 2026-11-23): everything in the one ink */

/* Lines drawn by site.js sit in the element's own box as a background image. */
[data-line] { background-repeat: no-repeat; }
.rule { display: block; height: 10px; }
[data-line="under"] { display: inline-block; padding-bottom: 0.32em; background-position: 0 100%; }
.btn { display: inline-block; padding: 0.5em 1.1em 0.55em; white-space: nowrap; }

/* ---- The stage: one sheet, still. The page's height is only scroll to drive it. ---- */
.stage { position: fixed; inset: 0 0 var(--bar) 0; z-index: 1; }
/* Nothing shows until site.js has set the stage (Maxwell 2026-11-23: the name and the tomb printed
   unplaced on first load). It adds .on to <html> after the first frame. */
html:not(.on) .stage, html:not(.on) .buyline { visibility: hidden; }
.track { height: 100vh; }   /* site.js sets the real length */
.scene { position: absolute; inset: 0; padding: calc(var(--cap) * 1.6) var(--gut); display: grid; place-content: safe center; justify-items: center;
  gap: 0.9em; text-align: center; visibility: hidden; }
.scene.is-on { visibility: visible; }

/* A print: photo paper with a white border, 4:5, the picture inside. site.js cuts its edge
   and lays its shadow (.lift) just behind it. */
/* No border (Maxwell 2026-11-23): the picture is the print, its edge cut by site.js. Pinned to
   the box, so a video's own shape can never stretch it. */
.print { position: relative; display: block; aspect-ratio: 4 / 5; min-height: 0; }
.print > img, .print > video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lift { position: absolute; z-index: 0; pointer-events: none; background-repeat: no-repeat; }
.sheen { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }   /* the light on the curls, drawn small and stretched */

/* The opening */
.scene--rest h1 span { display: inline-block; }
.scene--rest h1 { font-weight: 500; }
.tomb-slot { width: min(56vmin, 420px); aspect-ratio: 148 / 178; }
/* The tomb rides on the stage; site.js sets its place and size every frame (opening, then parked). */
.tomb { position: absolute; left: 0; top: 0; z-index: 2; width: 100px; height: auto; overflow: visible; color: var(--ink); transform-origin: 0 0; pointer-events: none; }
:root { --mark: calc(var(--cap) * 3.4); --head: calc(var(--cap) * 5); }   /* the parked mark's width (site.js MARK); the header's depth */
.brand { position: absolute; left: 0; right: 0; top: 0; z-index: 2; text-align: center; pointer-events: none; }
.scene:not(.scene--rest) { padding-top: var(--head); }
.scene--rest { gap: calc(var(--cap) * 1.2); }
.scene--box .print { width: min(calc(100vw - 2 * var(--gut)), calc(min(calc(100svh - var(--bar) - var(--head) - var(--cap) * 4.4), 600px) * 0.8)); }   /* by width, so it never runs off a narrow screen */

/* Pairs: a print and words */
.scene--pair .print { height: min(46svh, 460px); }
.scene--pair .words { display: grid; gap: 0.6em; justify-items: center; max-width: 24em; }
@media (min-width: 900px) {
  .scene--pair { grid-template-columns: auto minmax(0, 24em); align-items: center; column-gap: calc(var(--cap) * 2.5); text-align: left; }
  .scene--pair .print { height: min(64svh, 600px); }
  .scene--pair .words { justify-items: start; }
}

/* Rows of three (films, materials, reviews) */
.row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--cap) * 0.9); width: min(calc(100vw - 2 * var(--gut)), 1400px); align-items: start; }
.row figure { display: grid; gap: 0.5em; justify-items: center; }
.scene--films .print { width: min(100%, calc(64svh * 0.8)); }
.scene--films figcaption { max-width: min(100%, calc(64svh * 0.8)); }
.scene--films .row { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(calc(100vw - 2 * var(--gut)), 940px); }   /* two films, walnut only (2026-11-25) */
.scene--trio .print { width: min(100%, calc(40svh * 0.8)); }
.scene--trio figcaption { display: grid; gap: 0.2em; }
@media (max-width: 700px) {
  .scene--trio .row { grid-template-columns: none; gap: 0.8em; }
  .scene--trio figure { grid-template-columns: 5.2em 1fr; text-align: left; align-items: center; justify-items: start; column-gap: 0.8em; }
  .scene--trio .print { width: 5.2em; }
  .scene--trio figcaption .quiet { display: none; }
  /* the films one above another, each as tall as leaves room for the header, the line and the
     captions (any shape: Maxwell 2026-11-23) */
  .scene--films .row { grid-template-columns: none; gap: calc(var(--cap) * 0.5); }
  .scene--films .print { width: calc(100vw - 2 * var(--gut)); aspect-ratio: auto;
    height: calc((100svh - var(--head) - var(--cap) * 1.6 - var(--cap) * 2.6 - var(--cap) * 1 - var(--cap) * 1.9 * 3) / 3); }
}
.scene--reviews .row { text-align: center; justify-items: center; gap: calc(var(--cap) * 1.4); }   /* centered like the rest of the site (Maxwell 2026-11-26) */
.scene--reviews figure { justify-items: center; max-width: 24em; }
@media (max-width: 700px) { .scene--reviews .row { grid-template-columns: none; gap: 1em; } }

/* The product. A carousel of prints (Maxwell 2026-11-23): it runs off the right edge of the
   screen so the next print peeks in; swipe or scroll it sideways. */
.reel { display: flex; gap: calc(var(--cap) * 0.7); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; width: 100vw; padding: 6px calc(var(--gut) * 2) 26px 0; margin-bottom: -16px; justify-self: start; }   /* room under the prints for their shadows */
.reel::-webkit-scrollbar { display: none; }
.reel .print { flex: 0 0 auto; height: min(46svh, calc((100vw - 2 * var(--gut)) * 0.8 * 1.25)); scroll-snap-align: start; }
.scene--product .words { display: grid; gap: 0.35em; justify-items: center; width: min(calc(100vw - 2 * var(--gut)), 22em); }
.stars { display: flex; align-items: center; gap: 0.5em; }
.stars__ink { width: 5.4em; height: 1em; overflow: visible; }
.stars__ink path { fill: var(--ink); }
.facts { display: grid; width: 100%; margin-top: 0.4em; text-align: left; }
.facts .rule { height: 8px; }
.facts div { display: flex; gap: 0.6em; padding: 0.3em 0; }
@media (min-width: 900px) {
  /* the words on the left, the carousel running from beside them to the screen's right edge */
  .scene--product { grid-template-columns: 22em auto; align-items: center; column-gap: calc(var(--cap) * 3); justify-content: start; }
  .scene--product .words { order: -1; justify-items: start; text-align: left; }
  .reel { width: calc(100vw - 2 * var(--gut) - 22em - var(--cap) * 3 + var(--gut)); }
  .reel .print { height: min(64svh, 640px); }
}

.modes { display: grid; gap: 0.9em; }
.symbol { width: 1.7em; height: 1.7em; overflow: visible; }
.symbol path { fill: var(--ink); }
.symbol--big { width: 3.4em; height: 3.4em; }

.scene--quote { gap: 1.1em; }

.specs { display: grid; gap: 1.1em calc(var(--cap) * 2); width: min(calc(100vw - 2 * var(--gut)), 980px); text-align: center; justify-items: center; }   /* centered like the rest of the site (Maxwell 2026-11-26) */
.specs > div { max-width: 24em; }
.specs dd { margin-top: 0.15em; text-wrap: balance; }
@media (min-width: 800px) { .specs { grid-template-columns: 1fr 1fr; } }

.stores { display: grid; gap: 0.6em 2em; width: min(calc(100vw - 2 * var(--gut)), 980px); }
.stores b { display: block; }
@media (min-width: 800px) { .stores { grid-template-columns: repeat(3, 1fr); } }

.links { display: flex; gap: 1.2em; justify-content: center; }

/* ---- The buy line ---- */
.buyline { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; height: var(--bar); padding: 0 var(--gut);
  display: flex; align-items: center; gap: 1.2em; }
.buyline { justify-content: center; }   /* one button, centered under the column (Maxwell 2026-11-24) */
.woods { display: flex; gap: 1em; }
.woods button { padding-bottom: 0.32em; background-repeat: no-repeat; background-position: 0 100%; white-space: nowrap; }
.qty { display: flex; align-items: center; }
.qty button { padding: 0.5em 0.7em 0.55em; }
.qty span { min-width: 1.2em; text-align: center; }
@media (max-width: 700px) {
}

/* ---- The story page: the main page's still sheet (Maxwell 2026-11-26: "the same non scrolling
   physics", "photos are centered, and you deliver parts of the story in chunks, appearing and
   disappearing"). Soren's photo sits in the image well; then each part of the story prints onto
   the sheet and lifts off for the next, the way the main page's folds do (site.js).
   The header is the main page's parked mark with the name under it, at the same size and place
   (site.js placeTomb: the closed tomb's drawing 0.9 cap from the top, the name 0.3 cap under it;
   the symbol's drawing sits 19.19 of its 128 units down). It stays put. There's no buy line, so
   every fold centres on the window. */
.head { position: fixed; left: 0; right: 0; top: 0; z-index: 2; height: var(--head); pointer-events: none; }
.head__home { position: absolute; left: 50%; top: 0; width: 8em; height: 100%; transform: translateX(-50%); pointer-events: auto; }
.head .symbol { position: absolute; left: 50%; top: calc(var(--cap) * 0.9 - var(--mark) * 19.19 / 148);
  width: calc(var(--mark) * 128 / 148); height: calc(var(--mark) * 128 / 148); transform: translateX(-50%); }
.head span { position: absolute; left: 0; right: 0; top: calc(var(--cap) * 0.9 + var(--mark) * 66 / 148 + var(--cap) * 0.3); text-align: center; }
body[data-page="about"] .stage { bottom: 0; }
body[data-page="about"] .scene { padding-bottom: var(--head); }
.scene--portrait .print > img { object-position: 50% 0; }   /* Soren's face is at the top of a tall photo */
.scene--story > * { max-width: 24em; }
.scene--pull blockquote { max-width: 20em; }
.scene--pull blockquote + blockquote { margin-top: 0.4em; }
.scene--end { gap: 1.1em; }
.scene--end .btn { margin-bottom: 1.4em; }

/* Grain: fine flecks of ink, one device pixel each, made once in site.js. */
.grain { position: fixed; inset: 0; z-index: 5; pointer-events: none; background-repeat: repeat; }

/* Choosing the wood: two prints side by side, the name underlined when chosen. */
.woods--big { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--cap) * 1.2); width: min(calc(100vw - 2 * var(--gut)), 760px); }
.woods--big button { display: grid; gap: 0.45em; justify-items: center; align-content: start; padding: 0; white-space: normal; background: none; }
.woods--big .print { width: min(100%, calc((100svh - var(--head) - var(--bar) - var(--cap) * 9) * 0.8)); }
.woods--big .nm { display: inline-block; padding-bottom: 0.32em; background-repeat: no-repeat; background-position: 0 100%; }
.woods--big .note { max-width: 18em; }

@media (max-width: 700px) {
  /* The films one at a time on a phone (Maxwell 2026-11-23): each prints into the same place and
     leaves for the next (site.js). */
  .scene--films .row { display: grid; grid-template-columns: none; }
  .scene--films .row figure { grid-area: 1 / 1; }
  .scene--films .print { width: min(calc(100vw - 2 * var(--gut)), calc((100svh - var(--head) - var(--bar) - var(--cap) * 7.5) * 0.8)); aspect-ratio: 4 / 5;
    height: auto; }
}

/* One image well (Maxwell 2026-11-23): on every fold with a picture, the picture sits in the same
   place and at the same size: dead centre in the window, across and down (Maxwell 2026-11-26, "I
   miss when the images were vertically and horizontally centered"). Its words go underneath it
   (.below). Where they need more room than the picture leaves under it (the review fold), the
   picture rises only as far as they need. The scene's padding is set as if centring on the window,
   not on the stage above the buy line: top padding minus bottom padding equals the buy line's height. */
:root { --side: calc(var(--cap) * 6.5);   /* room for words on each side of the picture */
  --wellH: min(calc(100svh - 2 * var(--head) - 2 * var(--side)), calc((100vw - 2 * var(--gut)) * 1.25), 680px);
  --wellW: calc(var(--wellH) * 0.8);   /* the picture's width: words never run wider (Maxwell 2026-11-26) */ }
.scene.well { display: grid; grid-template-columns: minmax(0, 1fr);
  /* the rooms above and below the picture share what it leaves equally; the one below never gets
     less than its words need (1fr's least is its words), and the one above gives way for it */
  grid-template-rows: minmax(0, 1fr) auto 1fr;
  place-content: normal; align-items: normal; justify-items: center; row-gap: calc(var(--cap) * 0.9); text-align: center;
  padding-top: var(--head); padding-bottom: calc(var(--head) - var(--bar)); }
.scene.well > .print, .scene.well > .row { grid-row: 2; }
.scene.well > .print { width: var(--wellW); height: auto; }
.scene.well > .above { grid-row: 1; align-self: end; max-width: min(24em, var(--wellW)); }
.scene.well > .below { grid-row: 3; align-self: start; display: grid; gap: 0.6em; justify-items: center; max-width: min(24em, var(--wellW)); }
p.below { display: block; }
.scene.well .stars { justify-content: center; }
.byline { display: grid; gap: 0.6em; justify-items: center; }   /* the review: stars, who said it, the link, one to a line */
/* The films: each caption hangs under its film, outside the row, so the film itself is what's
   centred. On a big screen they're sized to leave room under them for a two-line caption. */
.scene--films.well .row figure { position: relative; }
.scene--films.well figcaption { position: absolute; left: 0; right: 0; top: calc(100% + var(--cap) * 0.9); margin-inline: auto; }
@media (min-width: 701px) {
  .scene--films.well { --filmW: min(100%, calc(64svh * 0.8), calc((100svh - 2 * var(--head) - var(--cap) * 7.2) * 0.8)); }
  .scene--films.well .print { width: var(--filmW); }
  .scene--films.well figcaption { max-width: var(--filmW); }
}
@media (min-width: 900px) {
  .scene--pair.well { grid-template-columns: minmax(0, 1fr); column-gap: 0; text-align: center; }
}
@media (max-width: 700px) {
  /* a phone's films: one at a time in the well, each caption under its film */
  .scene--films.well .print { width: var(--wellW); margin-inline: auto; }   /* centred under its line (Maxwell 2026-11-26) */
  .scene--films.well .row figure { display: grid; justify-items: center; }
  .scene--films.well figcaption { max-width: var(--wellW); }
}

/* The last fold holds the stores and say hello (fold audit, 2026-11-23). */
.scene--hello h2.gap { margin-top: 0.8em; }
@media (max-width: 799px) { .scene--hello .stores { grid-template-columns: 1fr 1fr; gap: 0.5em 1em; } }
.stars--head { justify-content: center; }

/* Reviews, Edge's own (2026-11-27). The form an ask email opens: one column, the site's type. */
.review__title { font-weight: 500; }
.review-form { display: grid; gap: 1.1em; width: min(100%, 28em); margin-inline: auto; text-align: left; }
.review-form label { display: grid; gap: 0.35em; }
.review-form textarea, .review-form input:not([type=radio]) { font: inherit; color: inherit; background: transparent; border: 1px solid var(--ink); border-radius: 0; padding: 0.5em 0.6em; }
.review-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1em; }
.review-form legend { padding: 0; margin-bottom: 0.35em; }
.review-form__stars label { display: inline-flex; align-items: center; gap: 0.3em; }
.review-form button { justify-self: center; padding: 0.5em 1.2em 0.55em; }
