/* Four Paws Pet Salon. One moment: the warm, damp minute a pet comes out of the towel. */
:root {
  --butter: #F4DC92;
  --butter-deep: #EBCB6E;
  --ink: #1E2A47;
  --ink-soft: #3A4562;
  --paper: #FBF7EE;
  --foam: #BEDDCF;
  --coral: #E2664A;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Figtree", system-ui, "Segoe UI", sans-serif;
  --soft: "SOFT" 100, "WONK" 0, "opsz" 96, "wght" 680;
  --gut: clamp(1rem, 4vw, 4rem);
  --max: 84rem;
  --head: 4.5rem;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --slow: .9s;
  --tilt: -1.5deg;
  --stitch: repeating-linear-gradient(90deg, var(--coral) 0 .5rem, transparent .5rem .85rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 1rem); }
body {
  margin: 0; background: var(--butter); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, dl, dd, address, blockquote { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 400; font-variation-settings: var(--soft);
  line-height: .98; letter-spacing: -.018em; text-wrap: balance;
}
p { text-wrap: pretty; }
:focus-visible { outline: .18rem solid var(--coral); outline-offset: .25rem; border-radius: .1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999rem; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: .8rem 1.1rem; }
.skip:focus { left: .5rem; top: .5rem; }

/* Type scale - .t-hero (first-screen headline), .t-xl, .t-l, .t-m for headings; .lead for intro copy. */
.t-hero { font-size: clamp(3rem, 1.4rem + 7.4vw, 8.75rem); line-height: .9; letter-spacing: -.03em; }
.t-xl { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.75rem); line-height: .94; letter-spacing: -.025em; }
.t-l { font-size: clamp(1.9rem, 1.25rem + 2.7vw, 3.6rem); line-height: 1; }
.t-m { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.08; }
.lead { font-size: clamp(1.125rem, 1rem + .55vw, 1.4rem); line-height: 1.5; max-width: 34em; }
.prose { max-width: 36em; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--ink-soft); }

/* Tracked small-caps label, for kickers and laundry-tag lines - .label (add .label--coral for the 24-hour mark). */
.label {
  font-family: var(--text); font-size: .75rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .2em; text-transform: uppercase; font-variant-caps: all-small-caps; font-size: .9rem;
}
.label--coral { color: #B4442B; }

/* Layout - .wrap (centred column), .grid (12 columns; children use .span-*), .screen sections in towel colours. */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); row-gap: 2rem; }
.grid > * { grid-column: 1 / -1; }
@media (min-width: 56rem) {
  .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
  .start-2 { grid-column-start: 2; } .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; }
}
.screen { position: relative; padding-block: clamp(4rem, 9vw, 9rem); }
.screen--butter { background: var(--butter); }
.screen--paper { background: var(--paper); }
.screen--foam { background: var(--foam); }
.screen--ink { background: var(--ink); color: var(--paper); }
.stack > * + * { margin-top: var(--gap, 1.5rem); }

/* Header - .head (sticky, solid; set --head-bg on body to change its towel colour), .mark logo, .nav. */
.head {
  position: sticky; top: 0; z-index: 70; min-height: var(--head);
  display: flex; align-items: center; gap: clamp(.6rem, 2vw, 2rem);
  padding: .55rem var(--gut); background: var(--head-bg, var(--butter));
  transition: box-shadow .4s var(--ease);
}
.head.is-scrolled { box-shadow: 0 .1rem 0 rgba(30, 42, 71, .14); }
.mark { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; flex-shrink: 0; }
.mark__tag { width: 1.4rem; height: auto; transform: rotate(2deg); }
.mark__words { display: flex; flex-direction: column; line-height: 1; }
.mark__name { font-family: var(--display); font-variation-settings: var(--soft); font-size: 1.3rem; letter-spacing: -.01em; }
.mark__kind { margin-top: .2rem; font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.nav { display: none; margin-left: auto; gap: clamp(1rem, 2vw, 2rem); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; font-size: .95rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .45rem; height: .14rem; background: var(--stitch); transition: right .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
@media (min-width: 64rem) { .nav { display: flex; } }

/* The recurring device: a sewn laundry tag - .tag (add .tag--lg, .tag--coral-edge; a.tag swings on hover). Children: .tag__label, .tag__num, .tag__note. */
.tag {
  position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  padding: 1.05rem 1.05rem .7rem; background: var(--paper); color: var(--ink);
  border: .09rem solid var(--ink); border-radius: .5rem .5rem .15rem .15rem;
  box-shadow: .15rem .25rem 0 rgba(30, 42, 71, .1);
  transform: rotate(var(--tilt)); transform-origin: 50% 0;
  transition: transform .6s var(--ease);
}
.tag::before { content: ""; position: absolute; left: .7rem; right: .7rem; top: .45rem; height: .14rem; background: var(--stitch); }
a.tag:hover, a.tag:focus-visible, .tag--swing:hover { transform: rotate(calc(var(--tilt) + 1deg)); }
.tag--right { --tilt: 1.5deg; }
.tag__label { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.tag__num { font-family: var(--display); font-variation-settings: var(--soft); font-size: 1.15rem; line-height: 1.1; font-variant-numeric: lining-nums; white-space: nowrap; }
.tag__note { font-size: .78rem; color: var(--ink-soft); }
.tag--lg { padding: 1.5rem 1.6rem 1.1rem; }
.tag--lg::before { top: .65rem; left: 1rem; right: 1rem; }
.tag--lg .tag__num { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); }
.tag--lg .tag__label { font-size: .8rem; }

/* The pinned phone tag in the header - .tag--pin (on phones only the number shows). */
.tag--pin { margin-left: auto; padding: .85rem .75rem .45rem; min-height: 2.75rem; flex-shrink: 0; }
.tag--pin::before { top: .35rem; left: .5rem; right: .5rem; }
.tag--pin .tag__label, .tag--pin .tag__note { display: none; }
.tag--pin .tag__num { font-size: 1rem; }
@media (min-width: 40rem) { .tag--pin .tag__note { display: block; } .tag--pin .tag__num { font-size: 1.1rem; } }
@media (min-width: 64rem) { .tag--pin { margin-left: 0; } }
@media (max-width: 24rem) { .mark__kind { display: none; } .tag--pin .tag__num { font-size: .92rem; } }

/* Menu button and full-screen mobile menu - .menu-btn, .menu (opened by site.js). */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 .4rem; background: none; border: 0; cursor: pointer; flex-shrink: 0;
}
.menu-btn__lines { position: relative; width: 1.4rem; height: .9rem; border-block: .14rem solid var(--ink); transition: transform .4s var(--ease); }
.menu-btn__text { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.menu-btn[aria-expanded="true"] .menu-btn__lines { transform: scaleY(.25); }
@media (max-width: 30rem) { .menu-btn__text { display: none; } }
@media (min-width: 64rem) { .menu-btn { display: none; } }
.menu {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  padding: calc(var(--head) + 2rem) var(--gut) 3rem; background: var(--butter);
  display: flex; flex-direction: column; gap: 2.5rem;
}
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-family: var(--display); font-variation-settings: var(--soft);
  font-size: clamp(2.2rem, 1.4rem + 5vw, 3.6rem); line-height: 1.15; padding-block: .2rem;
}
.menu__nav a[aria-current="page"] { color: #B4442B; }
.menu__call { align-self: flex-start; }
.menu__addr { font-size: .95rem; color: var(--ink-soft); }
.js .menu.is-open .menu__nav a { animation: menu-in .6s var(--ease) both; }
.js .menu.is-open .menu__nav a:nth-child(2) { animation-delay: .04s; } .js .menu.is-open .menu__nav a:nth-child(3) { animation-delay: .08s; }
.js .menu.is-open .menu__nav a:nth-child(4) { animation-delay: .12s; } .js .menu.is-open .menu__nav a:nth-child(5) { animation-delay: .16s; }
.js .menu.is-open .menu__nav a:nth-child(6) { animation-delay: .2s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }

/* Page opening for inner pages - .opening > .opening__text (kicker .label, h1, .lead) + .opening__media (a .sewn figure). */
.opening { padding-block: clamp(2.5rem, 6vw, 6rem) clamp(3rem, 7vw, 7rem); }
.opening__inner { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: end; }
.opening__text > * + * { margin-top: 1.25rem; }
@media (min-width: 56rem) {
  .opening__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .opening--bleed .opening__media { margin-right: calc(var(--gut) * -1); }
}

/* Figure that carries a sewn tag on its edge - .sewn (figure) > img + .sewn__tag (a .tag) + optional figcaption. */
.sewn { position: relative; }
.sewn img { width: 100%; height: 100%; object-fit: cover; border-radius: .2rem; }
.sewn--tall img { aspect-ratio: 4 / 5; }
.sewn--wide img { aspect-ratio: 16 / 10; }
.sewn__tag { position: absolute; left: clamp(.75rem, 3vw, 1.75rem); bottom: clamp(.75rem, 3vw, 1.75rem); max-width: calc(100% - 2rem); }
.sewn__tag.tag--right { left: auto; right: clamp(.75rem, 3vw, 1.75rem); }

/* Plain figure and caption - .fig > img + figcaption.fig__cap. */
.fig img { width: 100%; object-fit: cover; border-radius: .2rem; }
.fig__cap, .sewn figcaption { margin-top: .8rem; font-size: .85rem; color: var(--ink-soft); max-width: 40em; }

/* Running-stitch rule, coral dashes - hr.stitch (use .stitch--short for a 6rem mark under a heading). */
.stitch { border: 0; height: .14rem; margin: 0; background: var(--stitch); }
.stitch--short { width: 6rem; }

/* Care label for specs and facts - dl.care > div > dt + dd. */
.care { background: var(--paper); border: .09rem solid var(--ink); border-radius: .2rem; padding: .4rem clamp(1rem, 3vw, 1.75rem); max-width: 40rem; }
.care > div { display: grid; gap: .15rem; padding-block: .9rem; border-top: .07rem dashed rgba(30, 42, 71, .35); }
.care > div:first-child { border-top: 0; }
.care dt { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.care dd { font-size: 1rem; }
@media (min-width: 36rem) { .care > div { grid-template-columns: 10rem 1fr; gap: 1.5rem; align-items: baseline; } }

/* Links and buttons - .link (stitched underline), .btn-call (the coral call button), .btn .btn--line (quiet outline). */
.link { background: linear-gradient(var(--coral), var(--coral)) 0 100% / 100% .1rem no-repeat; padding-bottom: .1rem; transition: background-size .4s var(--ease); }
.link:hover { background-size: 100% .3rem; }
.btn-call {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 3.25rem; padding: .8rem 1.5rem;
  background: var(--coral); color: var(--ink); border-radius: .2rem;
  font-family: var(--display); font-variation-settings: var(--soft); font-size: 1.3rem; line-height: 1.1;
  box-shadow: .2rem .3rem 0 var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-call:hover { transform: translate(-.1rem, -.1rem); box-shadow: .3rem .4rem 0 var(--ink); }
.btn-call:active { transform: translate(.1rem, .1rem); box-shadow: .05rem .1rem 0 var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1.2rem;
  border-radius: .2rem; cursor: pointer; font-weight: 600; font-size: .95rem;
}
.btn--line { background: transparent; border: .09rem solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* Reveal-on-scroll - add data-reveal to any block; data-reveal="fade" for opacity only. site.js adds .is-in. */
.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Settling tags - data-settle on a parent of .tag children; each swings 2deg then rests in turn (site.js sets --i). */
.js [data-settle] > .tag { transform: rotate(calc(var(--tilt) + 2deg)); }
.js [data-settle].is-in > .tag { animation: settle 1.1s var(--ease) calc(var(--i, 0) * 90ms) both; }
@keyframes settle { 0% { transform: rotate(calc(var(--tilt) + 2deg)); } 55% { transform: rotate(calc(var(--tilt) - .8deg)); } 100% { transform: rotate(var(--tilt)); } }

/* Footer - .foot on navy, with the address card and the cookie settings button. */
.foot { background: var(--ink); color: var(--paper); padding: clamp(3.5rem, 7vw, 6rem) var(--gut) 2rem; }
.foot__inner { max-width: var(--max); margin-inline: auto; display: grid; gap: 2.5rem; }
.foot__name { font-family: var(--display); font-variation-settings: var(--soft); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); line-height: 1; }
.foot__addr { margin-top: 1rem; display: flex; flex-direction: column; color: #E7E2D6; }
.foot__hours { margin-top: 1rem; font-size: .9rem; color: #E7E2D6; max-width: 22rem; }
.foot__reach { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.foot__phone { font-family: var(--display); font-variation-settings: var(--soft); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); color: var(--butter); white-space: nowrap; }
.foot__phone:hover { color: var(--paper); }
.foot__nav { display: flex; flex-direction: column; align-items: flex-start; }
.foot__nav .label { color: var(--butter); margin-bottom: .4rem; }
.foot__nav a, .foot__btn { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--paper); }
.foot__nav a:hover, .foot__btn:hover { color: var(--butter); }
.foot__btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }
.foot__stitch { max-width: var(--max); margin: 3rem auto 1.25rem; }
.foot__base { max-width: var(--max); margin-inline: auto; font-size: .85rem; color: #D6D2C8; }
@media (min-width: 48rem) { .foot__inner { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; } }

/* Consent banner - #consent.consent, a small tag in the lower left that never covers the reading column. */
.consent {
  position: fixed; z-index: 80; left: var(--gut); right: var(--gut); bottom: 1rem;
  max-width: 24rem; gap: .9rem; --tilt: -1deg;
}
.consent[hidden] { display: none; }
.consent__text { font-size: .9rem; line-height: 1.45; }
.consent__btns { display: flex; gap: .6rem; }
.consent__btns .btn { flex: 1; }

/* Reduced motion: everything is already in its resting place. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-settle] > .tag { transform: rotate(var(--tilt)); }
}

/* A page never scrolls sideways. */
html, body { overflow-x: clip; }
/* Past a full-HD window the whole page grows with the window - type, gaps and pictures
   together - so a very wide screen (or a page zoomed far out) shows the same composition,
   not a small column of text lost in an enormous picture. */
@media (min-width: 1921px) { html { font-size: calc(100vw / 120); } }
