/* Suds & Sausage: example design by Dezz Web Studio. Mobile first. */

@font-face {
  font-family: "Gloock";
  src: url(../fonts/gloock-400.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url(../fonts/schibsted-grotesk.woff2) format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --paper: #ffffff;         /* glossy cover stock */
  --ink: #1c1418;           /* plum-black, hue 330 */
  --muted: #62575c;
  --accent: #c42f68;        /* accent: the pink bandana every dog goes home in (hue 337) */
  --accent-ink: #a3234f;    /* pink for text and pressed states */
  --blush: #f7dbe6;         /* support colour: the price page and the booking slip page */
  --blush-deep: #efc3d4;    /* the size bars on the price ladder */
  --blush-hover: #e6aec3;   /* size bar hover */
  --muted-on-ink: #b9aab1;
  --shadow-hue: 335 40% 15%;
  --shadow-sticker: 0 2px 3px hsl(var(--shadow-hue) / .18), 0 6px 14px hsl(var(--shadow-hue) / .14);
  --shadow-dialog: 0 4px 10px hsl(var(--shadow-hue) / .16), 0 24px 48px hsl(var(--shadow-hue) / .22);

  /* type */
  --f-display: "Gloock", Georgia, serif;
  --f-text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --t-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --t-h2: clamp(1.75rem, 1.25rem + 2.4vw, 3.5rem);
  --t-h1: clamp(2.5rem, 11vw, 3.5rem);

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --pad-tight: 24px;
  --pad-s: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  --pad-m: clamp(3.5rem, 2.6rem + 4vw, 6rem);
  --pad-l: clamp(4.5rem, 3rem + 6vw, 8rem);
  --g: max(clamp(1rem, 5vw - 1rem, 3rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --max: 74rem;
  --edge: max(var(--g), (100vw - var(--max)) / 2);
  --callbar-h: 70px;

  /* shape and motion */
  --r-btn: 2px;
  --r-input: 3px;
  --r-dialog: 6px;
  --ease-out: cubic-bezier(0, 0, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  /* keeps a focused field clear of the phone bar (WCAG 2.4.11) */
  scroll-padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom) + 12px);
}
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.5;
  font-synthesis: none;
  font-kerning: normal;
  font-variant-numeric: lining-nums proportional-nums;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
p { margin: 0 0 1em; max-width: 62ch; }
main p, main dd {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 10 4 4;
  hanging-punctuation: first allow-end last;
}
figure { margin: 0; }
figcaption, .cover-caption, .small-print, .sample-note, .legal, .rung-more, .form-note,
.masthead, .dateline, .deck, .sticker, .coupon-head { hyphens: manual; -webkit-hyphens: manual; }

a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; text-decoration-color: var(--accent); }
.tel { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.nowrap { white-space: nowrap; }
.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.page-ink :focus-visible, .imprint :focus-visible, .demo-bar :focus-visible { outline-color: var(--blush); }

h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: .45em;
}
/* Gloock's f terminal runs into the next word ("ofyour"); open the word space a touch */
h2, .masthead, .footer-name, .coupon-head { word-spacing: .1em; }
.f-end { margin-right: .07em; } /* a word ending in f, before a space: Gloock's f needs a little more room */
h3 { font-size: var(--t-lead); font-weight: 700; line-height: 1.25; margin: 1.5em 0 .4em; }

.wrap { width: min(100% - 2 * var(--g), var(--max)); margin-inline: auto; }

figcaption {
  text-wrap: pretty;
  font-size: var(--t-small);
  line-height: 1.4;
  color: var(--muted);
  margin-top: var(--s-2);
}

/* ---------- hand marks: one ink, static, two on the page ---------- */
.marked, .ringed { position: relative; display: inline-block; white-space: nowrap; }
.ringed { margin-inline: .3em; } /* room for the pen ring, so it doesn't run into the next word */
.mark { position: absolute; fill: var(--accent); pointer-events: none; overflow: visible; }
.mark-under { left: -3%; bottom: -.3em; width: 106%; height: .4em; }
.mark-ring { left: -11%; top: -18%; width: 122%; height: 136%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: var(--r-btn);
  font: inherit; font-weight: 800; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-ghost { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:active { translate: 0 1px; scale: .98; }
.btn-primary:active { background: var(--accent-ink); border-color: var(--accent-ink); }

/* ---------- example bar ---------- */
.demo-bar {
  max-width: none; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s-4);
  padding: 0 max(var(--g), env(safe-area-inset-right)) 0 max(var(--g), env(safe-area-inset-left));
  background: var(--ink); color: var(--paper);
  font-size: var(--t-small); line-height: 1.35;
}
.demo-bar span { padding-block: 6px; flex: 1 1 14rem; max-width: 30rem; }
.demo-bar a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--blush); font-weight: 600; white-space: nowrap; text-decoration-color: currentColor;
}

/* ---------- the cover ---------- */
.cover-in {
  width: min(100% - 2 * var(--g), var(--max));
  margin-inline: auto;
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.dateline {
  position: relative; z-index: 2; /* above the masthead, whose tall line box reaches up over the phone link */
  max-width: none; margin: 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  font-size: var(--t-small); font-weight: 600;
}
.dateline a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 2px; }
.masthead {
  position: relative; z-index: 1;
  max-width: none;
  margin: 2px calc(-1 * var(--g)) -.22em 0; /* may run into the right gutter, so "Sau-sage" only breaks under wide letter-spacing */
  font-family: var(--f-display); font-weight: 400;
  color: var(--accent);
  font-size: 23vw;
  font-size: 28cqi; /* "Sausage" set flush to the measure */
  line-height: .86;
  letter-spacing: -.012em;
}
.masthead span { display: block; }
.cover-photo { margin-inline: calc(-1 * var(--g)); }
.cover-shot { position: relative; }
.cover-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 8%; }
.sticker {
  position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: 14px; /* clear of the island in landscape */
  width: 104px; height: 104px; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent); color: var(--paper);
  box-shadow: var(--shadow-sticker);
  rotate: 8deg;
  font-size: 13px; font-weight: 700; line-height: 1.1; text-align: center;
}
.sticker span { display: block; }
.sticker .sticker-price {
  font-family: var(--f-display); font-weight: 400;
  font-size: 34px; line-height: 1; margin: 2px 0 3px;
  font-variant-numeric: lining-nums tabular-nums;
}
.cover-text { padding-top: var(--s-4); }
h1 {
  font-size: var(--t-h1);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.008em;
  margin-bottom: .32em;
}
.deck { font-size: var(--t-lead); line-height: 1.35; color: var(--muted); margin-bottom: .75em; }
.cover-cta { display: none; }
.cover-caption { font-size: var(--t-small); line-height: 1.45; color: var(--muted); margin: var(--s-2) 0 0; padding-inline: var(--g); }
.cover-caption strong { color: var(--ink); font-weight: 700; }

/* contents: titles only on phones */
.contents { padding: var(--s-7) 0 var(--pad-s); }
.contents h2 { font-size: 1.625rem; line-height: 1.1; margin-bottom: var(--s-2); }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents a {
  display: flex; align-items: center; min-height: 48px; padding-block: 6px;
  text-decoration: none; font-weight: 600; font-size: var(--t-lead); line-height: 1.25;
}
.c-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.c-dek { display: none; }

/* ---------- sections ---------- */
.page-blush { background: var(--blush); }
.page-ink { background: var(--ink); color: var(--paper); }
.page-ink a { color: var(--blush); text-decoration-color: currentColor; }
.page-ink figcaption { color: var(--muted-on-ink); }

/* prices */
#prices { padding-block: var(--pad-l); }
.prices-head p { margin-bottom: 0; }
.ladder-head {
  max-width: none; margin: var(--s-6) 0 var(--s-3);
  display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; column-gap: var(--s-2);
  font-size: var(--t-small); line-height: 1.3;
}
.ladder-head span:first-child { font-weight: 700; }
.ladder-head span:last-child { color: var(--muted); text-align: center; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.rung { --w: 52%; --w-min: 6rem; display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; column-gap: var(--s-2); }
.rung[data-size="m"] { --w: 66%; --w-min: 6.5rem; }
.rung[data-size="l"] { --w: 82%; --w-min: 7rem; }
.rung[data-size="xl"] { --w: 100%; }
.size-pick {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; column-gap: var(--s-2); align-items: center;
  width: 100%; min-height: 56px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; color: inherit;
  font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.size-pick:focus-visible { outline-offset: 5px; }
.bar {
  width: min(100%, max(var(--w), var(--w-min))); min-height: 56px; /* the floor keeps a big-text label inside its bar */
  display: flex; flex-direction: column; justify-content: center;
  padding: 7px 12px;
  background: var(--blush-deep); border: 0;
}
.sz { font-weight: 700; font-size: var(--t-lead); line-height: 1.15; }
.kg { font-size: var(--t-small); font-weight: 600; line-height: 1.3; }
.price { display: flex; justify-content: center; align-items: center; }
.fig {
  position: relative; z-index: 0;
  display: inline-block;
  font-family: var(--f-display); font-size: 1.875rem; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.fig::before {
  content: none;
  position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 2.45em; height: 2.45em; translate: -50% -50%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-sticker);
}
.rung-more { grid-column: 1; font-size: var(--t-small); line-height: 1.4; color: var(--muted); margin: 6px 0 0; }
/* big text on a narrow phone: a slimmer price column, and the notes run under the price too */
.prices-ladder { container-type: inline-size; }
@container (max-width: 15rem) {
  .ladder-head, .rung, .size-pick { grid-template-columns: minmax(0, 1fr) 4.25rem; }
  .rung-more { grid-column: 1 / -1; }
}
.is-picked .bar { background: var(--ink); color: var(--paper); }
.is-picked .fig { color: var(--paper); rotate: -6deg; }
.is-picked .fig::before { content: ""; }
.small-print { font-size: var(--t-small); line-height: 1.5; }
.prices-side { padding-top: var(--s-6); }
.sample-note { font-size: var(--t-small); color: var(--muted); margin-bottom: var(--s-5); }
.prices-cta { margin: 0; }
.prices-cta .btn { width: 100%; }
.pick-status { margin: var(--s-3) 0 0; font-size: var(--t-small); font-weight: 700; color: var(--accent-ink); }

/* hello from the van */
#hello { padding-block: var(--pad-s) var(--s-4); }
.hello-body { margin-bottom: .6em; }
/* phones: Tash signs off bottom-left, level with Frank's photo */
.hello-grid { display: grid; grid-template-columns: minmax(0, 1fr) 56%; column-gap: var(--s-3); }
.hello-grid h2, .hello-body { grid-column: 1 / -1; }
.signoff { grid-column: 1; align-self: end; margin: 0 0 2.75rem; font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1; }
.frank { grid-column: 2; width: auto; margin: 0; }

/* a full groom, minute by minute */
#groom { padding-block: var(--pad-m); }
.photo-note { margin: var(--s-5) 0 0; max-width: 30rem; }
.groom-intro { font-size: var(--t-lead); line-height: 1.4; }
.timeline { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: var(--s-3); padding-block: 9px; }
.timeline time { font-weight: 700; font-variant-numeric: lining-nums proportional-nums; }
.timeline li > p { margin: 0; }
.timeline figure { grid-column: 1 / -1; margin: var(--s-5) 0 15px; }
.timeline .bath { margin-inline: calc(-1 * var(--g)); }
.bath figcaption { padding-inline: var(--g); }
.timeline .towel { width: 72%; margin-left: auto; margin-right: calc(-1 * var(--g)); }
.towel figcaption { padding-right: var(--g); }

/* if your dog hates the groomer */
#nervous { padding-block: 0 var(--pad-l); }
.juno { margin: 0 calc(-1 * var(--g)) var(--pad-tight); }
.juno img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 64%; }
.juno figcaption { padding-inline: var(--g); }
.nervous-text .lead { font-size: var(--t-lead); line-height: 1.42; margin-bottom: 1.1em; }

/* things I'm fussy about */
#fussy { padding-block: var(--pad-m); }
.fussy-col { max-width: 34rem; }
.dropcap::first-letter {
  float: left;
  font-family: var(--f-display); font-weight: 400;
  font-size: 4.15em; line-height: .78;
  margin: .07em .08em 0 0;
  color: var(--accent);
}
/* phones: no float (a float leaves a 20-character column), bleeds off the left edge, mirrors the towel on the right */
.husky { float: none; width: 62%; margin: var(--s-2) 0 var(--s-5) calc(-1 * var(--g)); }
.husky figcaption { padding-left: var(--g); }

/* letters */
#letters { padding-block: var(--pad-s) var(--pad-m); }
.letters-note { font-size: var(--t-small); color: var(--muted-on-ink); }
.letters { display: grid; gap: 40px; margin-top: var(--s-6); }
.letter { margin: 0; }
.letter.l2 { margin-left: 14%; }
.letter.l3 { width: 92%; }
.tag {
  display: inline-block; margin: 0 0 var(--s-3); padding: 1px 7px;
  border: 2px solid var(--blush); border-radius: 2px;
  color: var(--blush); font-size: var(--t-small); font-weight: 700; line-height: 1.4;
}
.letter blockquote { margin: 0; }
.letter blockquote p { font-size: var(--t-lead); line-height: 1.42; margin: 0 0 var(--s-3); hyphens: manual; -webkit-hyphens: manual; }
.letter figcaption { margin: 0; color: var(--paper); font-weight: 600; font-size: var(--t-body); }

/* where + ask */
#where { padding-block: var(--pad-m) var(--s-6); }
#ask { padding-block: var(--pad-s) var(--pad-m); }
.ask-intro { color: var(--muted); }
.qa { margin: var(--s-5) 0 0; }
.qa dt { font-weight: 700; font-size: var(--t-lead); line-height: 1.3; margin-top: var(--s-5); }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: 6px 0 0; max-width: 62ch; }

/* the booking slip (class names still say coupon) */
#book { padding-block: var(--pad-l); scroll-margin-top: 0; }
.coupon-wrap {
  max-width: 36rem; margin-top: var(--s-6);
  background: var(--paper);
  border: 2px dashed var(--ink);
}
.coupon { padding: 20px 16px 22px; display: grid; gap: 18px; }
.coupon-head {
  margin: 0; padding-bottom: 10px;
  border-bottom: 1px dashed var(--ink);
  font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1;
}
.coupon-picked { margin: 0; font-weight: 700; color: var(--accent-ink); }
.coupon-picked:empty { display: none; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 1rem; line-height: 1.3; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; margin: 0; padding: 10px 12px;
  font: inherit; font-size: 1.0625rem; line-height: 1.35; color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r-input);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  translate: 0 -70%; rotate: 45deg; pointer-events: none;
}
.days legend { margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; display: flex; flex: 1 1 0; max-width: 4.5rem; min-width: calc(2.2em + 4px); } /* 2.2em fits "Wed" */
.chips .chip input {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0;
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; border-radius: 2px; cursor: pointer;
}
.chip > span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; padding: 0 4px;
  border: 2px solid var(--ink); border-radius: 2px;
  font-weight: 600;
}
.chips .chip input:checked + span { background: var(--ink); color: var(--paper); }
.btn-send { width: 100%; min-height: 52px; margin-top: 4px; }
.form-note { margin: -6px 0 0; font-size: var(--t-small); color: var(--muted); }
.demo-sent { display: none; }
.demo-sent { scroll-margin-top: var(--s-6); }
.demo-sent:target { display: block; margin-top: var(--s-5); padding: var(--s-4); background: var(--paper); border-left: 4px solid var(--accent); }
#call-note { margin-inline: var(--edge); }
.book-phone { display: none; }

/* imprint */
.imprint {
  background: var(--ink); color: var(--paper);
  padding-block: var(--pad-m) calc(var(--pad-m) + var(--callbar-h) + env(safe-area-inset-bottom));
}
.imprint p { margin-bottom: .8em; }
.footer-name { font-family: var(--f-display); font-size: 2rem; line-height: 1.05; }
.footer-name span { word-spacing: normal; display: block; margin-top: 6px; font-family: var(--f-text); font-weight: 600; font-size: var(--t-small); }
.imprint a { color: var(--blush); text-decoration-color: currentColor; }
.imprint-phone a { display: inline-block; padding-block: 12px; margin-block: -12px; }
/* Small-print links stack on narrow phones. Each one's 44px tap area is its own line plus a strip below it,
   so a link never covers the one on the line above (the later link wins any overlap, and it's the lower one). */
.legal a { display: inline-block; padding-bottom: calc(45px - 1.75em); margin-bottom: calc(1.75em - 45px); }
.imprint-grid > div + div { margin-top: var(--s-5); }
.legal { font-size: var(--t-small); line-height: 1.75; color: var(--muted-on-ink); } /* 1.75: a link's own line is at least 24px */

/* sticky phone bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--paper);
  border-top: 2px solid var(--ink);
}
.callbar .btn { padding-inline: 10px; }
.callbar.is-away { translate: 0 calc(100% + 4px); visibility: hidden; }

/* honesty dialog */
dialog {
  width: min(26rem, 100% - 32px); max-width: none; padding: 0;
  border: 0; border-radius: var(--r-dialog);
  background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-dialog);
}
dialog::backdrop { background: rgb(28 20 24 / .6); }
.note-in { padding: 24px 20px 20px; }
dialog h2 { font-size: 1.625rem; line-height: 1.1; margin-bottom: var(--s-3); }
dialog p { margin-bottom: .8em; }
dialog h2:focus { outline: none; }
dialog form { margin: 0; }
dialog .btn { min-width: 120px; }
.note-actions { display: grid; gap: 10px; margin-top: var(--s-4); }
.note-actions .btn { width: 100%; }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); }
.note-foot a, .not-now { display: inline-flex; align-items: center; min-height: 44px; }
.not-now { padding: 0 2px; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- motion: opt in only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: translate .12s var(--ease-out), scale .12s var(--ease-out), background-color .12s var(--ease-out); }
  .bar { transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
  .is-picked .fig { animation: slap .18s cubic-bezier(.3, 1.35, .6, 1) both; }
  .callbar { transition: translate .2s var(--ease-out), visibility 0s linear .2s; }
  .callbar:not(.is-away) { transition: translate .2s var(--ease-out), visibility 0s; }
  dialog[open] { transition: opacity .2s var(--ease-out), translate .2s var(--ease-out); }
  @starting-style { dialog[open] { opacity: 0; translate: 0 8px; } }
  @view-transition { navigation: auto; }
}
@keyframes slap {
  from { scale: .7; rotate: -14deg; }
  to { scale: 1; rotate: -6deg; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* landscape phones: the note fits on screen without scrolling */
@media (max-height: 420px) {
  dialog { width: min(36rem, 100% - 32px); }
  .note-in { padding: 16px 20px 8px; }
  dialog h2 { font-size: 1.375rem; margin-bottom: var(--s-2); }
  .note-actions { grid-template-columns: 1fr 1fr; margin-top: var(--s-3); }
  .note-foot { margin-top: 0; }
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
  .btn-ghost:hover, .btn-ink:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }
  .size-pick:hover .bar { background: var(--blush-hover); }
  .is-picked .size-pick:hover .bar { background: var(--ink); }
  .chip:hover > span { background: var(--blush); }
  .chips .chip input:checked:hover + span { background: var(--ink); }
  a:hover { text-decoration-thickness: .14em; }
}

/* ---------- 768px and up ---------- */
@media (min-width: 768px) {
  .callbar { display: none; }
  .imprint { padding-bottom: var(--pad-m); }
  html { scroll-padding-bottom: 0; }
  .masthead { font-size: 12.8vw; font-size: 14.25cqi; } /* set flush to the measure: Gloock "Suds & Sausage" is 7.0em wide */
  .masthead span { display: inline; }
  .cover-cta { display: block; margin: 0 0 var(--s-5); }
  .prices-cta .btn { width: auto; }
  .book-phone { display: block; }
}

/* ---------- 600px and up: the husky can float beside the text again ---------- */
@media (min-width: 600px) {
  .fussy-col { display: flow-root; }
  .husky { float: left; width: 44%; margin: 4px var(--s-4) var(--s-2) 0; }
  .husky figcaption { padding-left: 0; }
}

/* ---------- 900px and up: the spreads ---------- */
@media (min-width: 900px) {
  .cover-in {
    grid-template-columns: 5fr 4fr 3fr;
    column-gap: var(--s-6);
    grid-template-areas:
      "date date date"
      "mast mast mast"
      "text photo contents";
    align-items: start;
    padding-bottom: var(--s-7);
  }
  .dateline { grid-area: date; }
  .masthead { grid-area: mast; }
  .cover-photo { grid-area: photo; margin-inline: 0; }
  .cover-caption { padding-inline: 0; }
  .cover-photo img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
  .sticker { width: 132px; height: 132px; right: -30px; bottom: 28px; font-size: 15px; }
  .sticker .sticker-price { font-size: 44px; }
  .cover-text { padding-top: calc(14.25cqi * .22 + 28px); }
  .contents { padding-top: calc(14.25cqi * .22 + 40px); }
  .cover-text { grid-area: text; }
  .contents { grid-area: contents; padding-bottom: 0; }
  .contents h2 { font-size: 1.5rem; margin-bottom: var(--s-3); }
  .contents a { display: block; min-height: 0; padding-block: 9px; font-size: 1.125rem; }
  .c-title { text-decoration-thickness: 2px; }
  .c-dek { display: block; margin-top: 3px; font-size: var(--t-small); font-weight: 400; line-height: 1.4; color: var(--muted); }

  .prices-grid {
    display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--s-8);
    grid-template-areas: "head side" "ladder side"; align-items: start;
  }
  .prices-head { grid-area: head; }
  .prices-ladder { grid-area: ladder; }
  .prices-side { grid-area: side; align-self: start; padding-top: .5rem; position: sticky; top: var(--s-6); } /* extras stay level with the ladder */

  #hello { padding-block: var(--pad-m) var(--s-5); }
  .hello-grid { display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--s-8); align-items: start; }
  .hello-grid h2, .hello-body, .signoff { grid-column: 1; }
  .signoff { align-self: start; margin: .1em 0 var(--s-5); }
  .frank { grid-column: 2; grid-row: 1 / span 3; width: 18rem; margin: 0; justify-self: start; }

  /* third track is a side column: the towel photo starts level with its step and the later steps run beside it */
  .timeline li { grid-template-columns: 5.5rem minmax(0, 36rem) minmax(0, 18rem); column-gap: var(--s-5); padding-block: 12px; }
  #groom { padding-bottom: calc(var(--pad-m) + var(--s-6)); }
  .timeline time { grid-column: 1; }
  .timeline li > p { grid-column: 2; }
  .timeline figure.bath { grid-column: 1 / 3; margin: var(--s-6) 0 var(--s-5) calc(-1 * var(--edge)); }
  .bath figcaption { padding-inline: var(--edge) 0; }
  .timeline figure.towel { grid-column: 3; grid-row: 1; align-self: start; width: 100%; margin: 5px 0 -125%; } /* -125% = the 4:5 photo's height, so 9.00 to 9.50 sit beside it */
  .towel figcaption { padding-right: 0; }

  #nervous { padding-block: var(--pad-l); }
  .nervous-grid { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--s-8); align-items: start; }
  .juno { margin: 0; }
  .juno img { aspect-ratio: 4 / 5; object-position: 50% 60%; }
  .juno figcaption { padding-inline: 0; }

  .fussy-col { max-width: min(34rem, 100% - 17rem - var(--s-8)); } /* still flow-root from 600px, so the husky and its caption stay inside the section */
  .husky { float: right; width: 17rem; margin: 0 calc(-17rem - var(--s-8)) var(--s-5) 0; }

  .letters { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); row-gap: var(--s-6); }
  .letter.l1 { grid-column: 1 / span 7; }
  .letter.l2 { grid-column: 8 / span 5; margin: var(--s-8) 0 0; }
  .letter.l3 { grid-column: 2 / span 6; width: auto; }

  .duo { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--s-8); }
  #where, #ask { padding-block: var(--pad-m); }

  .book-grid { display: grid; grid-template-columns: minmax(0, 36rem) minmax(15.5rem, 1fr); column-gap: var(--s-8); align-items: end; }
  .book-phone {
    margin: 0 0 var(--s-2); max-width: none;
    font-family: var(--f-display); font-size: var(--t-h2); line-height: 1.05;
  }
  .book-phone a { display: block; text-decoration-thickness: .05em; }

  .imprint-grid { display: grid; grid-template-columns: 4fr 3fr 5fr; column-gap: var(--s-6); }
  .imprint-grid > div + div { margin-top: 0; }
}

/* ---------- 404 ---------- */
.lost-in { padding-block: var(--pad-m) var(--pad-l); }
.lost-mast { margin: 0 0 var(--s-6); font-size: clamp(3rem, 2rem + 6vw, 6rem); line-height: .9; }
.lost h1 { max-width: 14ch; margin-bottom: .45em; }

/* ---------- Windows high contrast: it drops background colours, so picked days and the picked size use system colours ---------- */
@media (forced-colors: active) {
  .chips .chip input:checked + span, .chips .chip input:checked:hover + span,
  .is-picked .bar, .is-picked .size-pick:hover .bar {
    forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight;
  }
}
