/* Lake James Antique Mall.
   Everything you'd want to change first is in this top block: colors, surfaces, fonts, and sizes. */

@font-face { font-family: "Sorts Mill Goudy"; src: url("../fonts/sorts-mill-goudy-normal-400.woff2") format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "Sorts Mill Goudy"; src: url("../fonts/sorts-mill-goudy-italic-400.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("../fonts/vollkorn-normal-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("../fonts/vollkorn-italic-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("../fonts/kalam-normal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("../fonts/kalam-normal-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: only light;

  /* Colors */
  --sign-red: #992541;
  --sign-red-deep: #6f1830;
  --sign-white: #F2FAFC;
  --ink: #1c191b;
  --ink-soft: #4b4448;
  --lead: #0b0a0b;
  --cream: #FFF6DC;
  --paper: #F8F3E3;
  --manila: #E9D5A6;
  --amber: #F0A838;
  --lake: #1c5e8c;
  --wall-base: #8E2A38;
  --on-wall: #FFF3D8;
  --accent: var(--sign-red);
  --accent-deep: var(--sign-red-deep);
  --quiet: #3A0F1A;
  --quiet-hover: #270A11;
  --pill: rgba(58, 14, 26, 0.38);
  --sky: #F4DDB6;

  /* Surfaces */
  --wall: url("../img/wall-red.webp");
  --wall-size: 320px 320px;
  --block: url("../img/block.webp");
  --block-size: 384px 192px;
  --pegboard: url("../img/pegboard.webp");
  --peg-size: 240px 240px;
  --concrete: url("../img/concrete.webp");

  /* Fonts */
  --title: "Sorts Mill Goudy", "Goudy Old Style", Georgia, serif;
  --body: "Vollkorn", Georgia, "Times New Roman", serif;
  --note: "Kalam", "Segoe Print", "Bradley Hand", cursive;

  /* Sizes */
  --edge: 8px;
  --win-reserve: 13rem; /* Room kept under the window for the sign, words, and buttons. */
  --win-w: min(100vw - var(--edge) * 2, (100vh - var(--win-reserve)) / 1.292);
  --bay-w: min(78vw, 320px);
  --radius: 3px;
}
@supports (height: 100svh) {
  :root { --win-w: min(100vw - var(--edge) * 2, (100svh - var(--win-reserve)) / 1.292); }
}
/* Past phone width the words stop shrinking with the screen, so they need a little more room. */
@media (min-width: 440px) { :root { --win-reserve: 15.5rem; } }
/* The window turns landscape when the space is wider than it is tall. */
@media (min-aspect-ratio: 1/1) {
  :root { --edge: 16px; --win-w: max(320px, min(100vw - var(--edge) * 2, (100vh - 12.4rem) / 0.674)); }
  @supports (height: 100svh) {
    :root { --win-w: max(320px, min(100vw - var(--edge) * 2, (100svh - 12.4rem) / 0.674)); }
  }
}
@media (min-width: 900px) { :root { --bay-w: 340px; } }
@media (min-width: 1500px) { :root { --bay-w: 380px; } }

/* The other walls in the Design Preview */
html[data-wall="linen"] {
  --wall: url("../img/wall-linen.webp");
  --wall-size: 256px 256px;
  --wall-base: #ECE2CB;
  --on-wall: #15324a;
  --accent: var(--lake);
  --accent-deep: #123f60;
  --quiet: #FFFCF4;
  --quiet-hover: #fffdf6;
  --pill: rgba(255, 252, 244, 0.72);
}
html[data-wall="slate"] {
  --wall: url("../img/wall-slate.webp");
  --wall-base: #6F7D8C;
  --on-wall: #FFFFFF;
  --accent: #2c4a68;
  --accent-deep: #1b3048;
  --quiet: #1C2836;
  --quiet-hover: #121C28;
  --pill: rgba(28, 40, 54, 0.5);
}

/* ----- Basics ----- */
*, *::before, *::after { box-sizing: border-box; }
/* On very wide screens the words grow with the window, so nothing looks tiny beside it. */
html { font-size: max(100%, min(0.52vw + 9.4px, 150%)); scroll-behavior: smooth; background: #0d0c0e; }
/* Someone who has set bigger text on their phone gets it. Only these fixed boxes stay as they are, because they'd break. */
.bar, .looks, .win-tag, .first-draft { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.45 var(--body); font-variant-numeric: lining-nums; font-feature-settings: "lnum"; color: var(--ink); background: #0d0c0e; overflow-x: clip; }
img, svg, canvas { display: block; }
[hidden] { display: none !important; }
/* With scripts off, the controls that need them stay out of the way. */
.no-js .hint, .no-js .pause, .no-js .first-draft { visibility: hidden; }
.no-js .bertha-tools, .no-js .strip-arrow, .no-js .bar { display: none !important; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.nums { font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ----- The links at the top, on the building's dark eave ----- */
.eave { position: relative; z-index: 3; background: linear-gradient(#1e1d20, #101012 70%, #08080a); border-bottom: 2px solid #38363a; box-shadow: 0 7px 14px rgba(0, 0, 0, 0.55); }
.eave nav { display: flex; justify-content: center; gap: clamp(0.15rem, 2.4vw, 2.4rem); padding: 0 4px; }
.eave a { display: block; padding: 0.55rem clamp(0.2rem, 1.3vw, 0.9rem) 0.6rem; font-weight: 500; font-size: min(1.02rem, 5.4vw); line-height: 1.3; color: #F3EBDA; text-decoration: none; letter-spacing: 0.01em; }
.eave a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ----- Buttons ----- */
.btn { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; border-radius: var(--radius); font-weight: 700; line-height: 1.2; cursor: pointer; }
.btn-call {
  min-height: 3.2rem; padding: 0.5rem 1rem; font-size: min(1.3rem, 6.6vw); color: var(--accent); background: linear-gradient(#FFFFFF, #EEF3F3 60%, #DCE3E3);
  border: 2px solid #1b181a; box-shadow: 0 3px 0 #1b181a, 0 8px 16px rgba(0, 0, 0, 0.4); font-variant-numeric: lining-nums;
}
.btn-call:hover { color: var(--accent-deep); background: #fff; }
.btn-call:active { transform: translateY(2px); box-shadow: 0 1px 0 #1b181a, 0 3px 8px rgba(0, 0, 0, 0.4); }
.btn-map { min-height: 2.9rem; padding: 0.4rem 1.2rem; font-size: 1.06rem; color: var(--on-wall); border: 2px solid currentColor; background: var(--quiet); }
.btn-map:hover { background: var(--quiet-hover); }
.visit .btn-map, .plain-actions .btn-map { color: var(--on-wall); }

/* ----- Home: the wall, the window, and the sign ----- */
.home { position: relative; background: var(--wall-base) var(--wall) center top / var(--wall-size); }
.home::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 46px; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); pointer-events: none; }
.home-front { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px var(--edge) 0.85rem; }
.storefront { position: relative; width: var(--win-w); }

.win { position: relative; width: 100%; aspect-ratio: 1000 / 1180; overflow: hidden; background: #0a0a0c; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; box-shadow: 0 2px 0 rgba(255, 255, 255, 0.1), 0 8px 18px rgba(0, 0, 0, 0.5); }
@media (min-aspect-ratio: 1/1) { .win { aspect-ratio: 1780 / 1000; } }
.win img, .win canvas { position: absolute; left: 0; top: 0; display: block; }
.win-still, .win-main { width: 100%; height: 100%; }
.win-main { opacity: 0; transition: opacity 0.4s; }
.win-main.is-ready { opacity: 1; }
.win-cloud { width: 200%; height: 100%; pointer-events: none; will-change: transform; }
.win-ripple { width: 100%; pointer-events: none; }
.win-shade { left: -12% !important; top: -12% !important; width: 124%; height: 124%; pointer-events: none; transition: transform 0.7s ease-out; will-change: transform; }
.win-eyes { pointer-events: none; }
.win.is-paused .win-shade { transition: none; }

/* What comes up from the lake: a glass roundel, with a manila price tag tied to it by a string. */
.win-roundel-box { display: none; position: absolute; overflow: hidden; pointer-events: none; }
.win-roundel-box canvas { position: absolute; left: 0; top: auto; bottom: 0; width: 100%; will-change: transform; }
.win-string { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; opacity: 0; transition: opacity 0.3s; overflow: visible; }
.win-tag {
  position: absolute; display: none; left: 0; top: 0; padding: 0.3em 0.75em 0.34em 1.6em; font: 700 1rem/1.14 var(--note); color: #2e2110; text-decoration: none;
  background: linear-gradient(135deg, #F1E0B6, #E4CC95 70%, #DBBF84); opacity: 0; transition: opacity 0.3s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
  clip-path: polygon(0.8em 0, 100% 0, 100% 100%, 0.8em 100%, 0 calc(100% - 0.65em), 0 0.65em);
  transform-origin: 0.85em 50%;
}
.win-tag.is-flipped { padding: 0.3em 1.6em 0.34em 0.75em; clip-path: polygon(0 0, calc(100% - 0.8em) 0, 100% 0.65em, 100% calc(100% - 0.65em), calc(100% - 0.8em) 100%, 0 100%); transform-origin: calc(100% - 0.85em) 50%; }
.win-tag::before { content: ""; position: absolute; left: 0.5em; top: 50%; width: 0.62em; height: 0.62em; margin-top: -0.31em; border-radius: 50%; background: #1d1a18; box-shadow: 0 0 0 0.14em #C8A764; }
.win-tag.is-flipped::before { left: auto; right: 0.5em; }
.win-tag small { display: block; margin-top: 0.08em; font: 400 0.82em/1.1 var(--note); }
.win-tag:hover, .win-tag:focus-visible { text-decoration: underline; }
.win-tag.is-up { opacity: 1; pointer-events: auto; animation: tag-sway 3.2s ease-in-out infinite alternate; }
@keyframes tag-sway { from { transform: var(--tag-at) rotate(-2.4deg); } to { transform: var(--tag-at) rotate(2.4deg); } }
@media (prefers-reduced-motion: reduce) { .win-tag.is-up { animation: none; transform: var(--tag-at); } }

.sign { width: 100%; height: auto; margin-top: 7px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45)); }
.sign-bird.is-away { visibility: hidden; }
.flyer { position: absolute; left: 0; top: 0; z-index: 2; display: none; pointer-events: none; overflow: visible; will-change: transform; }
.flyer g { stroke: #FFF3D8; stroke-width: 1.1; stroke-linejoin: round; paint-order: stroke; }

.their-line { margin-top: 0.5rem; max-width: 42rem; padding: 0.05em 0.6em 0.1em; border-radius: 0.8em; text-align: center; text-wrap: balance; font: italic 500 min(1.09rem, 4.6vw)/1.25 var(--body); color: var(--on-wall); background: var(--pill); box-shadow: 0 0 6px 2px var(--pill); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
html[data-wall="linen"] .their-line, html[data-wall="linen"] .hint { text-shadow: none; }
.hint-row { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr) 3.1rem; align-items: center; gap: 0.35rem; width: min(100%, var(--win-w)); margin-top: 0.3rem; min-height: 2rem; }
.hint { justify-self: center; padding: 0.1em 0.7em 0.14em; border-radius: 1em; text-align: center; text-wrap: balance; font-size: min(0.97rem, 4.1vw); line-height: 1.2; color: var(--on-wall); background: var(--pill); box-shadow: 0 0 6px 2px var(--pill); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.first-draft { justify-self: start; width: 3.1rem; min-height: 2.75rem; padding: 0.1rem 0.15rem; font-size: 0.78rem; font-weight: 600; line-height: 1.05; color: #F3D98E; background: #26242a; border: 1px solid #5a575e; border-radius: 6px; cursor: pointer; }
.first-draft:hover, .bar-looks:hover { color: #FFE9A8; background: #333039; }
.pause { justify-self: end; width: 2rem; height: 2rem; padding: 0; display: grid; place-items: center; color: var(--on-wall); background: var(--quiet); border: 1.5px solid currentColor; border-radius: 50%; cursor: pointer; }
@media (pointer: coarse) { .pause { width: 2.75rem; height: 2.75rem; } }
.hint { grid-column: 2; }
.pause { grid-column: 3; }
@media (min-width: 900px) { .first-draft { display: none; } }
.pause svg { width: 0.85rem; height: 0.85rem; fill: currentColor; }
.pause .i-play { display: none; }
.pause[aria-pressed="true"] .i-play { display: block; }
.pause[aria-pressed="true"] .i-pause { display: none; }

.actions { display: grid; gap: 0.55rem; width: min(100%, var(--win-w)); margin-top: 0.3rem; }
@media (min-width: 620px) {
  .actions { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); max-width: 40rem; align-items: stretch; }
  .hint-row { max-width: 40rem; }
}
/* A phone on its side: the window is small, but the buttons need their room. */
@media (min-aspect-ratio: 1/1) { .actions, .hint-row { width: min(100%, 34rem); } }

/* The gray split-face block along the bottom of the wall, with the plain facts on a white plate. */
.courses { position: relative; padding: 1.1rem var(--edge) 1.3rem; background: #8f8d95 var(--block) center top / var(--block-size); box-shadow: inset 0 7px 9px -5px rgba(0, 0, 0, 0.6); }
.courses::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(#3a383c, #6d6b70 45%, #2a282c); }
.plate {
  position: relative; max-width: 44rem; margin: 0 auto; padding: 0.85rem 1.15rem 0.95rem; color: var(--ink); background: linear-gradient(#FDFEFE, #F0F4F4 70%, #E2E8E8);
  border: 1px solid #6F7376; border-radius: 2px; box-shadow: 0 2px 0 #55585b, 0 5px 10px rgba(0, 0, 0, 0.4);
  display: grid; gap: 0.6rem 2rem;
}
.plate::before, .plate::after { content: ""; position: absolute; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d8d6d0, #77756f 70%); }
.plate::before { left: 5px; }
.plate::after { right: 5px; }
.plate-exit { font: 400 1.32rem/1.15 var(--title); font-variant-numeric: lining-nums; font-feature-settings: "lnum"; color: var(--accent); letter-spacing: 0.01em; }
.plate address { margin-top: 0.15rem; font-style: normal; font-size: 1.04rem; line-height: 1.32; }
.hours { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.05rem 0.9rem; font-size: 1.04rem; line-height: 1.32; font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; white-space: nowrap; }
.hours .closed { grid-column: 1 / -1; font-weight: 600; }
@media (min-width: 680px) { .plate { grid-template-columns: 1fr auto; align-items: center; } .hours { min-width: 19rem; } }

.walk { height: 18px; background: #aaa69f var(--concrete) center top / 256px 64px; border-top: 2px solid #55524d; box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5); position: relative; z-index: 1; }

/* ----- Inside: a long white sign, then the long building ----- */
.fascia { position: relative; padding: 0.8rem var(--edge) 0.85rem; text-align: center; color: var(--accent); background: linear-gradient(#FBFEFE, var(--sign-white) 60%, #DFE7E8); border-top: 3px solid #5d6062; border-bottom: 3px solid #5d6062; }
.fascia h2 { font: 400 clamp(2.1rem, 8.4vw, 3.8rem)/1.05 var(--title); letter-spacing: 0.012em; -webkit-text-stroke: 0.012em currentColor; text-wrap: balance; }
.fascia p { margin-top: 0.1rem; font: italic 500 1.2rem/1.3 var(--body); color: var(--ink); }
.fascia .go::after { content: "\2192"; margin-left: 0.4em; font-style: normal; }
.fascia .go.at-end::after { content: none; }

.strip-wrap { position: relative; }
.strip { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.strip:focus-visible { outline-offset: -4px; }
.bays { --wall-h: calc(var(--bay-w) * 1.2 + 2.6rem); position: relative; display: flex; width: max-content; padding: 0 max(11vw, 2rem); }
.bays::before { content: ""; position: absolute; inset: 0 0 auto 0; height: var(--wall-h); background: var(--wall-base) var(--wall) left top / var(--wall-size); box-shadow: inset 0 9px 10px -6px rgba(0, 0, 0, 0.6); }
.bays::after { content: ""; position: absolute; left: 0; right: 0; top: var(--wall-h); bottom: 0; background: #8f8d95 var(--block) left top / var(--block-size); border-top: 4px solid #2c2a2e; }
.bay { position: relative; z-index: 1; flex: none; width: var(--bay-w); margin-right: 1.4rem; scroll-snap-align: center; display: flex; flex-direction: column; }
.bay:last-child { margin-right: 0; }
.bay-wall { height: var(--wall-h); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0.7rem; }
.pane { position: relative; width: 100%; box-shadow: 0 2px 0 rgba(255, 255, 255, 0.1), 0 6px 14px rgba(0, 0, 0, 0.5); background: #0b0a0c; }
.pane img { width: 100%; height: auto; }
/* The light that moves across the glass as you go along. */
.pane::after { content: ""; position: absolute; inset: 0; background: #06060e; opacity: var(--dim, 0); pointer-events: none; }
.bay-small { width: calc(var(--bay-w) * 0.66); }
.bay-small .pane { width: 94%; }
.bay-wide { width: calc(var(--bay-w) * 1.36); }
.cap { flex: 1; padding: 0.55rem 0.2rem 0.9rem; }
.cap > div { display: block; padding: 0.42rem 0.7rem 0.5rem; text-align: center; background: linear-gradient(#FDFEFE, #EFF3F3); border: 1px solid #6F7376; border-radius: 2px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); font-size: 1.02rem; line-height: 1.26; }
.cap b { display: block; font: 700 1.1rem/1.2 var(--body); font-variant-numeric: lining-nums; font-feature-settings: "lnum"; color: var(--accent); }
.cap q { display: block; font-style: italic; quotes: "\201C" "\201D"; }
.cap .code { display: block; font-size: 0.88rem; color: var(--ink-soft); }
.cap .also { display: block; margin-top: 0.15rem; font-size: 0.94rem; }
.cap .src { display: block; font-size: 0.86rem; color: var(--ink-soft); }
.cap .yours { display: block; margin-top: 0.15rem; font-size: 0.92rem; color: #6b6468; }
/* Words painted right on the block, where a stretch of the wall has no window. */
.bay-pier { width: auto; min-width: 13rem; max-width: 22rem; background: linear-gradient(rgba(40, 36, 44, 0.46), rgba(40, 36, 44, 0.46)), var(--block) center top / var(--block-size); background-color: #6e6c73; box-shadow: 0 0 0 3px rgba(20, 18, 22, 0.5); }
.painted { display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 1; padding: 1rem 1.3rem; text-align: center; font: 400 clamp(2.3rem, 9vw, 3.3rem)/1.04 var(--title); color: #F8F4EA; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.bay-end { max-width: 27rem; width: min(86vw, 27rem); }
.bay-end .painted { font-size: clamp(2.6rem, 10vw, 3.9rem); }
.painted small { display: block; margin-top: 0.7rem; font: italic 500 1.12rem/1.3 var(--body); text-shadow: none; }
.strip-arrow { display: none; position: absolute; top: calc((var(--bay-w) * 1.2 + 2.6rem) / 2); z-index: 2; width: 3rem; height: 3rem; margin-top: -1.5rem; color: #fff; background: rgba(12, 10, 12, 0.82); border: 2px solid #F3EBDA; border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.strip-arrow:hover { background: #000; }
.strip-arrow.prev { left: 1rem; }
.strip-arrow.next { right: 1rem; }
.strip-arrow[disabled] { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .strip { cursor: grab; }
  .strip-arrow { display: block; }
}

/* ----- Pegboard: paper tags on hooks ----- */
.peg { position: relative; padding: 1.5rem var(--edge) 2rem; background: #ad8a60 var(--pegboard) center top / var(--peg-size); box-shadow: inset 0 10px 12px -8px rgba(0, 0, 0, 0.7), inset 0 -10px 12px -8px rgba(0, 0, 0, 0.6); }
.peg-inner { max-width: 84rem; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 0.8rem 1.15rem; }
.note { position: relative; flex: 1 1 13.5rem; max-width: 19rem; margin-top: 1.55rem; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.28)) drop-shadow(0 6px 7px rgba(0, 0, 0, 0.3)); transform: rotate(var(--tilt, -0.8deg)); transform-origin: 50% -0.8rem; }
/* The peg hole and the metal hook. */
.note::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -1.42rem; width: 0.62rem; height: 1.95rem; margin-left: -0.31rem; border: 3px solid #5e5e60; border-top: 0; border-radius: 0 0 0.42rem 0.42rem; }
.note::after { content: ""; position: absolute; left: 50%; top: -1.72rem; width: 0.8rem; height: 0.8rem; margin-left: -0.4rem; border-radius: 50%; background: #2b2016; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25); }
/* The paper tag: corners cut, and a punched hole the hook goes through. */
.tag { position: relative; padding: 1.25rem 0.95rem 0.95rem; font: 400 1.2rem/1.24 var(--note); color: #231d16; background: linear-gradient(170deg, #FFFDF4, #F4EDD6); clip-path: polygon(1.3rem 0, calc(100% - 1.3rem) 0, 100% 1.3rem, 100% 100%, 0 100%, 0 1.3rem); }
.tag::before { content: ""; position: absolute; left: 50%; top: 0.36rem; width: 0.62rem; height: 0.62rem; margin-left: -0.31rem; border-radius: 50%; background: #5a4630; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
.tag b { font-weight: 700; }
.tag p + p { margin-top: 0.25rem; }
.tag-title { font: 400 1.62rem/1.12 var(--title); color: var(--accent); }
.note-head .tag { background: linear-gradient(170deg, #F4E5C2, #E7D2A2); }
@media (min-width: 900px) { .note-head { flex: 1.5 1 19rem; max-width: 26rem; } }
.note-blank .tag { color: #7a7266; font-style: italic; }
.note:nth-child(2) { --tilt: 1deg; }
.note:nth-child(3) { --tilt: -0.5deg; }
.note:nth-child(4) { --tilt: 1.3deg; }
.note:nth-child(5) { --tilt: -1.4deg; }
@media (max-width: 560px) {
  /* On a phone, tags sit side by side where they fit, like a real board. */
  .note { flex: 1 1 42%; max-width: none; }
  .note-head { flex-basis: 100%; }
  .tag { font-size: 1.14rem; padding-left: 0.75rem; padding-right: 0.7rem; }
}

.says-wrap { max-width: 62rem; margin: 2rem auto 0.4rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.6rem; }
.says { flex: 0 1 36rem; padding: 1rem 1.25rem 1.1rem; color: var(--ink); background: linear-gradient(#FFFEFA, #F5F0E2); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25), 0 7px 12px rgba(0, 0, 0, 0.32); }
.says h3 { font: 700 1.2rem/1.2 var(--body); }
.says .rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.5rem; margin: 0.15rem 0 0.55rem; font-size: 1.02rem; font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
.stars { display: inline-block; width: 5.2em; height: 1em; background: linear-gradient(90deg, #C98A16 94%, #d8d2c4 94%); -webkit-mask: url("../img/stars.svg") left center / 100% 100% no-repeat; mask: url("../img/stars.svg") left center / 100% 100% no-repeat; }
.says ul { display: grid; gap: 0.3rem; font-style: italic; font-size: 1.22rem; line-height: 1.25; }
.snaps { flex: 0 1 20rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; max-width: 20rem; }
.snaps figure { padding: 0.3rem 0.3rem 0.34rem; background: #FBF8EE; box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25), 0 6px 10px rgba(0, 0, 0, 0.32); }
.snaps figure:first-child { transform: rotate(-1.4deg); }
.snaps figure:nth-child(2) { transform: rotate(1.2deg); }

/* ----- Bertha, in front of her banner ----- */
.bertha { position: relative; overflow: hidden; background: var(--sky); touch-action: pan-y; }
.bertha-words { position: relative; z-index: 2; padding: 1.3rem var(--edge) 0.5rem; text-align: center; color: #1d2b4a; }
.bertha-words h2 { font: 400 clamp(2.5rem, 11vw, 4.4rem)/1 var(--title); -webkit-text-stroke: 0.012em currentColor; color: var(--sign-red); text-wrap: balance; }
.welcome { margin-top: 0.2rem; font: italic 500 1.3rem/1.2 var(--body); }
.said-line { margin-top: 0.2rem; font-size: 1.08rem; line-height: 1.3; }
.said-line strong { display: inline-block; font-weight: 700; }
.bertha-stage { position: relative; height: calc(min(74vw, 340px) * 1.42 + 3.2rem); }
.banner { position: absolute; left: 0; bottom: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center bottom; }
.figure { position: absolute; left: 50%; bottom: 0.2rem; width: min(74vw, 340px); aspect-ratio: 1100 / 1560; transform: translateX(-50%); }
.figure.is-pop { animation: pop-up 0.72s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
@keyframes pop-up { from { transform: translate(-50%, 42%); } to { transform: translate(-50%, 0); } }
.sun { position: absolute; left: 61%; top: -4%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: #C8261E; box-shadow: inset -0.5em -0.5em 0 rgba(120, 12, 16, 0.12); }
.her-birds { position: absolute; left: -34%; top: -3%; width: 74%; height: auto; pointer-events: none; }
.fur, .dress { position: absolute; inset: 0; width: 100%; height: 100%; }
.eye { position: absolute; width: 5.6%; aspect-ratio: 1; }
.eye img, .eye canvas { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; max-width: none; }
.eye-l { left: calc((517 + 50) / 1100 * 100% - 2.8%); top: calc((157 + 40) / 1560 * 100% - 1.975%); }
.eye-r { left: calc((587 + 50) / 1100 * 100% - 2.8%); top: calc((157 + 40) / 1560 * 100% - 1.975%); }
.pupil { position: absolute; left: 23%; top: 23%; width: 54%; height: 54%; border-radius: 50%; background: #0c0a08; will-change: transform; }
.boughs { position: absolute; left: 50%; bottom: -3%; width: 170%; max-width: none; transform: translateX(-50%); pointer-events: none; }
.bertha-tools { position: relative; z-index: 2; padding: 0.9rem var(--edge) 1.5rem; display: grid; gap: 0.9rem; justify-items: center; background: linear-gradient(#17332a, #0f231d); color: #F3EBDA; }
.dress-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem; }
.dress-row .lbl { width: 100%; text-align: center; font-weight: 600; }
.chip { padding: 0.42rem 0.8rem; min-height: 2.5rem; font-size: 1rem; line-height: 1.15; color: #F3EBDA; background: rgba(255, 255, 255, 0.08); border: 1.5px solid #cfc4a8; border-radius: 2rem; cursor: pointer; }
.chip:hover { background: rgba(255, 255, 255, 0.18); }
.chip[aria-pressed="true"] { color: #1d1a16; background: #F3D98E; border-color: #F3D98E; font-weight: 600; }
.pic-tool { display: grid; gap: 0.35rem; justify-items: center; }
.pic-tool[hidden] { display: none; }
.btn-picture { min-height: 3.2rem; padding: 0.5rem 1.4rem; font-size: 1.2rem; color: #1d1a16; background: linear-gradient(#FBE9B4, #F0CF7E); border: 2px solid #1b181a; box-shadow: 0 3px 0 #1b181a, 0 7px 14px rgba(0, 0, 0, 0.4); }
.btn-picture:hover { background: #FFEFC4; }
.pic-tool input:focus-visible + .btn-picture { outline: 3px solid var(--amber); outline-offset: 2px; }
.pic-msg { font-size: 1.02rem; text-align: center; color: #FFE9A8; }
.card-result { display: grid; gap: 0.7rem; justify-items: center; width: min(100%, 26rem); }
.card-result[hidden] { display: none; }
.card-result canvas { width: 100%; height: auto; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55); }
.card-actions { display: flex; gap: 0.6rem; }
.card-actions .chip { min-width: 6rem; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 880px) {
  .bertha-layout { position: relative; }
  /* The words sit on the picture here, so they carry their own patch of sky. A forced-dark phone flips the patch and the words together, and they stay readable. */
  .bertha-words { position: absolute; z-index: 3; left: max(5vw, 2rem); top: 2.2rem; max-width: min(44vw, 31rem); padding: 0; text-align: left; background: var(--sky); box-shadow: 0 0 1.2rem 0.9rem var(--sky); border-radius: 0.6rem; }
  .bertha-stage { height: clamp(36rem, 80vh, 56rem); margin-top: 0; }
  .banner { width: 100%; object-position: center bottom; }
  .figure { left: 66%; bottom: 0.2rem; width: auto; height: 95%; }
  .her-birds { left: -15%; top: -4%; width: 58%; }
  .said-line { text-wrap: pretty; }
  .bertha-tools { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 1.2rem 3rem; }
  .dress-row { justify-content: flex-start; }
  .dress-row .lbl { width: auto; margin-right: 0.3rem; }
  .card-result { grid-column: 1 / -1; justify-self: center; }
}
/* Between these widths her birds would land in the headline, so they start further over. */
@media (min-width: 880px) and (max-width: 1200px) { .her-birds { left: 14%; top: -7%; width: 40%; } }

/* ----- Visit: their front door ----- */
.visit { position: relative; color: var(--on-wall); background: var(--wall-base) var(--wall) center top / var(--wall-size); }
.visit-sign { position: relative; padding: 0.7rem var(--edge) 0.75rem; text-align: center; color: var(--accent); background: linear-gradient(#FBFEFE, var(--sign-white) 60%, #DFE7E8); border-bottom: 3px solid #5d6062; box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4); }
.visit-sign h2 { font: 400 clamp(1.9rem, 7.6vw, 3.4rem)/1.06 var(--title); -webkit-text-stroke: 0.012em currentColor; font-variant-numeric: lining-nums; text-wrap: balance; }
.visit-body { display: grid; gap: 1.2rem; padding: 1.2rem var(--edge) 1.3rem; justify-items: center; }
/* Their black double door: dark glass, the taped notes inside it, and the push bars. It ends just under the bars. */
.door { position: relative; display: flex; flex-direction: column; width: min(100%, 31rem); background: #0b0b0d; padding: 8px 8px 0; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5); }
.transom { position: relative; height: clamp(5.4rem, 24vw, 7.8rem); margin-bottom: 8px; overflow: hidden; background: #0d0b0a url("../img/door-glass.webp") center top / cover; }
.transom img { position: absolute; left: 50%; top: 50%; height: 92%; width: auto; transform: translate(-50%, -50%); }
.leaves { position: relative; flex: 1; display: grid; gap: 1.15rem; align-content: start; justify-items: center; padding: 1.25rem 0.7rem 3.1rem; background: #0d0b0a url("../img/door-glass.webp") center / cover; }
/* The bar down the middle, where the two doors meet. */
.leaves::before { content: ""; position: absolute; left: calc(50% - 4px); top: 0; bottom: 0; width: 8px; background: #0b0b0d; }
/* A soft reflection on the glass. */
.leaves::after { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 34%, rgba(255, 255, 255, 0) 52%, rgba(190, 215, 255, 0.06) 80%); pointer-events: none; }
.push { position: absolute; z-index: 1; bottom: 1.1rem; height: 0.62rem; border-radius: 2px; background: linear-gradient(#EDEDE8, #A5A5A2 50%, #6f6f6c); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.push-l { left: 0.5rem; right: calc(50% + 4px + 0.5rem); }
.push-r { right: 0.5rem; left: calc(50% + 4px + 0.5rem); }
.taped { position: relative; z-index: 2; width: min(100%, 21rem); padding: 0.85rem 0.95rem 0.9rem; font: 400 min(1.2rem, 5.2vw)/1.26 var(--note); color: #1d1913; background: linear-gradient(175deg, #FBFAF3, #EFEADA); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55); transform: rotate(-0.7deg); }
.taped + .taped { transform: rotate(0.8deg); }
.taped::before, .taped::after { content: ""; position: absolute; top: -0.42rem; width: 2.3rem; height: 0.95rem; background: rgba(240, 226, 166, 0.72); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18); }
.taped::before { left: 0.2rem; transform: rotate(-9deg); }
.taped::after { right: 0.2rem; transform: rotate(8deg); }
.taped h3 { font: 700 min(1.36rem, 6.6vw)/1.15 var(--note); margin-bottom: 0.25rem; }
.taped p + p { margin-top: 0.2rem; }
.taped b { font-weight: 700; }
.taped .addr span { display: block; }
.threshold { height: 8px; background: linear-gradient(#55555a, #1c1c1f); margin: 0 -8px; }
.visit-info { display: grid; gap: 1rem; width: min(100%, 34rem); }
.visit-info .actions { width: 100%; margin: 0; }
.plainly { padding: 0.8rem 1rem 0.9rem; color: var(--ink); background: linear-gradient(#FDFEFE, #F0F4F4 70%, #E2E8E8); border: 1px solid #6F7376; border-radius: 2px; box-shadow: 0 2px 0 #55585b, 0 5px 10px rgba(0, 0, 0, 0.35); font-size: 1.05rem; line-height: 1.34; }
.plainly li + li { margin-top: 0.22rem; }
.pov-tag { justify-self: center; align-self: center; max-width: 22rem; padding: 0.45rem 0.9rem 0.5rem; text-align: center; text-wrap: balance; font: 400 1.14rem/1.26 var(--note); color: #231d16; background: linear-gradient(170deg, #FFFDF4, #F4EDD6); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25), 0 5px 9px rgba(0, 0, 0, 0.35); transform: rotate(-1deg); }
.social { display: flex; gap: 0.6rem; }
.social a { flex: 1; min-height: 2.8rem; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--on-wall); border: 2px solid currentColor; border-radius: var(--radius); text-decoration: none; background: var(--quiet); }
.social a:hover { background: var(--quiet-hover); }
/* Their sign-off, painted on darkened block, in their own words. */
.signoff-wrap { padding: 1.5rem var(--edge) 1.7rem; background: linear-gradient(rgba(40, 36, 44, 0.5), rgba(40, 36, 44, 0.5)), var(--block) center top / var(--block-size); background-color: #6e6c73; box-shadow: inset 0 7px 9px -5px rgba(0, 0, 0, 0.6); }
.signoff { max-width: 50rem; margin: 0 auto; text-align: center; text-wrap: balance; font: italic 400 clamp(2rem, 8.4vw, 3.9rem)/1.08 var(--title); color: #F8F4EA; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
@media (min-width: 880px) {
  .visit-body { grid-template-columns: minmax(0, 31rem) minmax(0, 32rem); justify-content: center; align-items: stretch; gap: 2.5rem; padding: 2rem 2rem 2.2rem; }
  .door { width: 100%; }
  /* Two notes side by side when there's room for them; stacked when there isn't. */
  .leaves { grid-template-columns: repeat(auto-fit, minmax(13.2rem, 1fr)); column-gap: calc(8px + 1.1rem); }
  .taped { padding: 0.8rem 0.7rem 0.85rem; font-size: 1.08rem; }
  .visit-info { align-content: space-between; }
}

/* ----- Footer ----- */
.foot { padding: 1.1rem var(--edge) calc(1.2rem + 3.6rem); text-align: center; color: #E6DFD0; background: #121114; font-size: 0.98rem; line-height: 1.4; font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
/* Name, address, and phone: one line where it fits, otherwise a line each. */
.foot-line { display: grid; justify-items: center; gap: 0.05rem; }
.foot-line a { color: inherit; }
@media (min-width: 760px) {
  .foot-line { display: block; }
  .foot-line > * + *::before { content: "\00B7"; display: inline-block; margin: 0 0.5em; text-decoration: none; }
}
.credit { display: inline-flex; align-items: center; gap: 8px; margin-top: 0.8rem; padding: 4px 12px 4px 6px; border: 1.5px solid #c8a35a; border-radius: 20px; color: #E6C983; background: #152221; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.credit:hover { color: #152221; background: #E6C983; }
.credit img { width: 20px; height: 20px; }
@media (min-width: 900px) { .foot { padding-bottom: 1.4rem; } }

/* ----- The phone bar and the Design Preview ----- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; padding-bottom: env(safe-area-inset-bottom); background: #121114; border-top: 2px solid #3a383c; box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.4); transform: translateY(110%); transition: transform 0.25s ease-out; }
.bar.is-up { transform: none; }
.bar a, .bar button { display: flex; align-items: center; justify-content: center; min-height: 3.05rem; padding: 0.3rem 0.4rem; font-weight: 700; font-size: 1.04rem; line-height: 1.1; text-align: center; text-decoration: none; }
.bar-call { color: var(--accent); background: linear-gradient(#FFFFFF, #E8EEEE); }
.bar-map { color: #F3EBDA; }
.bar-looks { width: 3.5rem; padding: 0 0.15rem !important; font-size: 0.78rem !important; font-weight: 600 !important; line-height: 1.05 !important; color: #F3D98E; background: #26242a; border: 0; border-left: 1px solid #3a383c; cursor: pointer; }
.looks { position: fixed; right: 0.5rem; bottom: calc(3.4rem + env(safe-area-inset-bottom)); transition: bottom 0.2s; z-index: 21; width: min(calc(100vw - 1rem), 25rem); padding: 0.6rem 0.75rem 0.75rem; color: #F3EBDA; background: #1a191d; border: 1px solid #4a474e; border-radius: 6px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55); }
.looks[hidden] { display: none; }
/* At the top of the page the phone bar is out of the way, so the panel sits at the very bottom, clear of the window. */
.looks.is-low { bottom: calc(0.4rem + env(safe-area-inset-bottom)); }
.looks-label { font-weight: 700; font-size: 0.98rem; color: #F3D98E; }
.looks-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; margin-top: 0.35rem; }
.looks-row .lbl { min-width: 2.3rem; font-size: 0.88rem; opacity: 0.85; }
.looks .chip { min-height: 2.2rem; padding: 0.25rem 0.6rem; font-size: 0.92rem; }
@media (min-width: 900px) {
  .bar { left: auto; right: 0.75rem; bottom: 0.75rem; display: block; background: none; border: 0; box-shadow: none; transform: none; padding: 0; }
  .bar-call, .bar-map { display: none !important; }
  .bar-looks { width: 3.4rem; height: 3.4rem; min-height: 0 !important; border: 1px solid #5a575e; border-radius: 6px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); }
  .looks, .looks.is-low { right: 0.75rem; bottom: 4.6rem; }
}
