/* Geraty Pools & Spa: shared system. Phone first; wider screens are added with min-width queries in em. */

/* Tokens: palette, faces, shape and timing. Every custom property is --ges-<word>. */
:root {
  --ges-straw: #F7E7A6;
  --ges-ochre: #372902;
  --ges-ultramarine: #2943CC;
  --ges-vermilion: #F76B45;
  --ges-michroma: 'Michroma', 'Eurostile', 'Arial Black', sans-serif;
  --ges-inconsolata: 'Inconsolata', 'Consolas', 'Menlo', monospace;
  --ges-read: 1rem;
  --ges-chamfer: .75rem;
  --ges-coping: .3rem;
  --ges-seam: .125rem;
  --ges-yard: clamp(.75rem, 4vw, 3rem);
  --ges-lap: clamp(2.5rem, 7vh, 5rem);
  --ges-span: 84rem;
  --ges-beat: 180ms;
}
@media (min-width: 48em) {
  :root { --ges-read: 1.0625rem; }
}

/* Base: straw ground, ochre Inconsolata; room at the foot for the pinned offer band and call key. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-block-end: 4.25rem;
  background: var(--ges-straw);
  color: var(--ges-ochre);
  font-family: var(--ges-inconsolata);
  font-size: var(--ges-read);
  line-height: 1.45;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font: inherit; }
img, svg, video { max-inline-size: 100%; block-size: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--ges-ultramarine); color: var(--ges-straw); }
:focus-visible { outline: .1875rem solid var(--ges-ochre); outline-offset: .125rem; }

/* Pool-wall shape: everything listed (or given .walled) is clipped to the chamfered octagon; size corners with --ges-chamfer. */
.walled, .jet, .aisle-key, .panel, .panel img, .pool-wall, .pool-wall::after,
.plugs li::before, .back-gate a, #note button, .ring-shop {
  clip-path: polygon(var(--ges-chamfer) 0, calc(100% - var(--ges-chamfer)) 0, 100% var(--ges-chamfer),
    100% calc(100% - var(--ges-chamfer)), calc(100% - var(--ges-chamfer)) 100%, var(--ges-chamfer) 100%,
    0 calc(100% - var(--ges-chamfer)), 0 var(--ges-chamfer));
}

/* Links: ochre underline that fills ochre on hover or focus, in one 180 ms move. */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: .09em;
  text-underline-offset: .2em;
  transition: background-color var(--ges-beat) linear, color var(--ges-beat) linear;
}
a:hover, a:focus-visible { background: var(--ges-ochre); color: var(--ges-straw); text-decoration: none; }
a[aria-current="page"] { text-decoration-thickness: .2em; }

/* Skip link (.to-counter) and text for screen readers only (.under-cover). */
.to-counter {
  position: absolute;
  inset-block-start: .5rem;
  inset-inline-start: .5rem;
  z-index: 50;
  padding: .6rem .9rem;
  background: var(--ges-ochre);
  color: var(--ges-straw);
  transform: translateY(-300%);
}
.to-counter:focus { transform: none; }
.under-cover {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header: .shopfront holds the centred .shop-name (with .shop-seal), two phone keys (.aisle-key) and two link groups (.aisle). */
.shopfront {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .25rem .5rem;
  padding: .5rem var(--ges-yard);
  border-block-end: var(--ges-seam) solid var(--ges-ochre);
}
.shop-name {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-block-size: 2.75rem;
  font-family: var(--ges-michroma);
  font-size: clamp(.8rem, 3.4vw, 1rem);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.shop-seal { flex: none; inline-size: 1.5rem; block-size: 1.5rem; }
.aisle-key {
  display: none;
  grid-row: 1;
  min-block-size: 2.75rem;
  padding: .25rem .5rem;
  border: 0;
  font-size: .9375rem;
  line-height: 1.1;
  text-align: center;
  --ges-chamfer: .55rem;
  transition: background-color var(--ges-beat) linear, color var(--ges-beat) linear;
}
.js .aisle-key { display: block; }
.aisle-key-pools { grid-column: 1; justify-self: start; background: var(--ges-ultramarine); color: var(--ges-straw); }
.aisle-key-care { grid-column: 3; justify-self: end; background: var(--ges-vermilion); color: var(--ges-ochre); }
.aisle-key:hover, .aisle-key:focus-visible, .aisle-key[aria-expanded="true"] { background: var(--ges-ochre); color: var(--ges-straw); }
.aisle { grid-column: 1 / -1; padding-block: .25rem; }
.aisle ul { list-style: none; padding: 0; }
.aisle a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  font-size: 1.125rem;
  text-transform: lowercase;
  text-decoration: none;
}
.aisle a[aria-current="page"] { text-decoration: underline; }
.aisle-care { text-align: end; }
.js .aisle { display: none; }
.ges-pools-on .aisle-pools, .ges-care-on .aisle-care { display: block; animation: pour var(--ges-beat) linear backwards; }
@media (min-width: 70em) {
  .shopfront .aisle-key { display: none; }
  .shopfront .aisle { display: block; grid-row: 1; padding: 0; animation: none; }
  .shopfront .aisle-pools { grid-column: 1; justify-self: start; }
  .shopfront .aisle-care { grid-column: 3; justify-self: end; }
  .shopfront .aisle ul { display: flex; gap: 1.25rem; }
  .shopfront .aisle a { font-size: 1rem; white-space: nowrap; }
}

/* Cookie band: #yesno sits in the flow under the header, sentence left, two equal .jet-plain keys right.
   With no optional cookies (data-optional="none") it stays away until the footer's "cookie settings" asks for it (.ges-asked-on). */
#yesno {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1rem;
  padding: .4rem var(--ges-yard);
  border-block-end: var(--ges-seam) solid var(--ges-ochre);
  font-size: .95rem;
}
#yesno[hidden] { display: none; }
#yesno[data-optional="none"]:not(.ges-asked-on) { display: none; }
#yesno div { display: flex; gap: .4rem; }
#yesno .jet { padding-inline: .8rem; --ges-chamfer: .5rem; }

/* Page width and rhythm: .lot keeps content inside the side margins; .lap gives a section its top and bottom space. */
.lot { inline-size: min(100% - 2 * var(--ges-yard), var(--ges-span)); margin-inline: auto; }
.lap { padding-block: var(--ges-lap); }

/* Headings: .nameplate sets Michroma with full-size initials and small capitals; h1 18–20 px, h2/h3 17–19 px. */
.nameplate {
  font-family: var(--ges-michroma);
  font-weight: 400;
  font-size: 1.125rem;
  font-variant-caps: small-caps;
  line-height: 1.35;
  letter-spacing: 0;
}
h2.nameplate, h3.nameplate { font-size: 1.0625rem; }
@media (min-width: 48em) {
  .nameplate { font-size: 1.25rem; }
  h2.nameplate, h3.nameplate { font-size: 1.1875rem; }
}

/* Page opening: .doorway stacks an h1.nameplate, the sentence .bring and one .jet at the upper left, like a note. */
.doorway {
  display: grid;
  gap: .6rem;
  justify-items: start;
  max-inline-size: 46rem;
  padding-block: 1rem 1.1rem;
}
.bring { max-inline-size: 54ch; }

/* Buttons: .jet is the ultramarine octagon action; .jet-sample is vermilion, .jet-plain ochre. */
.jet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.75rem;
  padding: .5rem 1.15rem;
  border: 0;
  background: var(--ges-ultramarine);
  color: var(--ges-straw);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  --ges-chamfer: .6rem;
  transition: background-color var(--ges-beat) linear, color var(--ges-beat) linear;
}
.jet:hover, .jet:focus-visible { background: var(--ges-ochre); color: var(--ges-straw); }
.jet-sample { background: var(--ges-vermilion); color: var(--ges-ochre); }
.jet-plain { background: var(--ges-ochre); color: var(--ges-straw); }
.jet-plain:hover, .jet-plain:focus-visible { background: var(--ges-ultramarine); }

/* Marker: .pool-wall is the outlined octagon; .pool-wall-sketch fills ultramarine, .pool-wall-sample vermilion, .ges-fill-on fills it live. */
.pool-wall {
  position: relative;
  display: inline-block;
  inline-size: .85em;
  block-size: .85em;
  background: var(--ges-ochre);
  --ges-chamfer: .24em;
}
.pool-wall::after {
  content: "";
  position: absolute;
  inset: .11em;
  background: var(--ges-tint, var(--ges-straw));
  --ges-chamfer: .19em;
  transition: background-color var(--ges-beat) linear;
}
.pool-wall-sketch, .pool-wall.ges-fill-on { --ges-tint: var(--ges-ultramarine); }
.pool-wall-sample { --ges-tint: var(--ges-vermilion); }

/* Counter rows: ol.tickets > li.ticket with .ticket-no, a .pool-wall, .ticket-bring, .ticket-name, .ticket-then; .ticket-large enlarges one, .ticket-whole makes its last link cover the row. */
.tickets { list-style: none; padding: 0; }
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem 1.5rem minmax(0, 1fr);
  column-gap: .5rem;
  align-items: baseline;
  padding-block: .5rem;
  font-size: 1rem;
  line-height: 1.35;
}
.ticket-no { font-variant-numeric: tabular-nums; }
.ticket-name, .ticket-then { grid-column: 3; }
.ticket-then { padding-block: .35rem; }
.ticket-whole .ticket-then::after { content: ""; position: absolute; inset: 0; }
.ticket-large {
  padding-block: .9rem;
  border-block: var(--ges-coping) solid var(--ges-ochre);
  font-size: 1.1875rem;
}
@media (min-width: 56em) {
  .ticket {
    grid-template-columns: 2.5rem 1.5rem minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: 1rem;
    padding-block: .35rem;
  }
  .ticket-name, .ticket-then { grid-column: auto; }
  .ticket-then { padding-block: 0; }
  .ticket-large { padding-block: 1.1rem; font-size: 1.5rem; }
}

/* Thick divider: .coping puts the heavy ochre rule above a group or a heading. */
.coping {
  border-block-start: var(--ges-coping) solid var(--ges-ochre);
  padding-block-start: .6rem;
}

/* Photographs: figure.yard-view > .panel (octagon mount, cropped) or .panel.panel-whole (uncropped, chamfers outside the frame) + figcaption.tag. */
.yard-view { display: grid; gap: .4rem; }
.panel {
  padding: var(--ges-seam);
  background: var(--ges-ochre);
  --ges-chamfer: clamp(1rem, 3vw, 2rem);
}
.panel img, .panel video {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.panel-whole img, .panel-whole video {
  padding: calc(var(--ges-chamfer) * .55);
  background: var(--ges-straw);
  object-fit: contain;
}
.tag { max-inline-size: 60ch; font-size: .9375rem; }

/* Text beside a picture: .side-yard is one column on phones, a 5:7 pair on desks; .counter-talk sets running paragraphs. */
.side-yard { display: grid; gap: 1.25rem; }
.counter-talk { max-inline-size: 64ch; }
.counter-talk p + p { margin-block-start: .9em; }
@media (min-width: 56em) {
  .side-yard {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
  }
}

/* Octagon bullets: ul.plugs; set --ges-tint on the list or an item to colour its bullet. */
.plugs { list-style: none; padding: 0; }
.plugs li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: baseline;
  padding-block: .3rem;
}
.plugs li::before {
  content: "";
  inline-size: .8em;
  block-size: .8em;
  background: var(--ges-tint, var(--ges-ochre));
  --ges-chamfer: .22em;
}

/* One-time wipe: .pour wipes in left to right in 180 ms; site.js holds it (.ges-dry-on) until it is scrolled into view. */
.pour { animation: pour var(--ges-beat) linear backwards; }
.js .pour.ges-dry-on { animation: none; clip-path: inset(0 100% 0 0); }
@keyframes pour {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Page ending: .back-gate holds two large octagon links of equal size, ultramarine by default and .back-gate-sample vermilion. */
.back-gate {
  display: grid;
  gap: .5rem;
  padding-block: .75rem var(--ges-lap);
  border-block-start: var(--ges-coping) solid var(--ges-ochre);
}
.back-gate a {
  display: grid;
  align-content: center;
  gap: .25rem;
  min-block-size: 6rem;
  padding: 1.1rem 1.4rem;
  background: var(--ges-ultramarine);
  color: var(--ges-straw);
  font-size: 1.25rem;
  line-height: 1.25;
  text-decoration: none;
  --ges-chamfer: 1rem;
}
.back-gate .back-gate-sample { background: var(--ges-vermilion); color: var(--ges-ochre); }
.back-gate a:hover, .back-gate a:focus-visible { background: var(--ges-ochre); color: var(--ges-straw); }
@media (min-width: 48em) {
  .back-gate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .back-gate > :not(a) { grid-column: 1 / -1; }
}

/* Footer: .directory lists .directory-pages (oversized lowercase, one per line), then .directory-papers (policies, folded into one quiet wrapping line) and one small lowercase .directory-line. */
.directory {
  padding-block: 1.5rem;
  border-block-start: var(--ges-coping) solid var(--ges-ochre);
}
.directory ul { list-style: none; padding: 0; }
.directory-pages a {
  display: inline-block;
  padding-block: .08em;
  font-size: clamp(1.9rem, 6.2vw, 3.4rem);
  line-height: 1.25;
  text-transform: lowercase;
  text-decoration: none;
}
.directory .directory-papers {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-block-start: 1rem;
}
.directory-papers a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  font-size: .95rem;
  text-transform: lowercase;
  text-decoration: none;
}
.directory-line {
  margin-block-start: .5rem;
  font-size: .95rem;
  line-height: 1.6;
  text-transform: lowercase;
}
.directory-line a { display: inline-block; padding-block: .55rem; }
.directory-line .jet { padding-inline: .8rem; font-size: .95rem; text-transform: lowercase; --ges-chamfer: .5rem; }
@media (min-width: 56em) {
  .directory-papers a { min-block-size: 2.1rem; }
}

/* Offer band: #note is a solid vermilion strip pinned at the foot; it slides in from the left edge when the build adds .is-in.
   On a phone it is one line: .promo-lead shows, .promo-rest is kept for screen readers, and the end is reserved for the call key.
   .ges-band-on (set in the markup on the home page, then kept by site.js) holds it out while the page's own offer band is in view. */
#note {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-block-size: 3.75rem;
  padding: .4rem 4.75rem .4rem var(--ges-yard);
  background: var(--ges-vermilion);
  color: var(--ges-ochre);
  font-size: .95rem;
  line-height: 1.25;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform var(--ges-beat) linear, opacity var(--ges-beat) linear;
}
#note.is-in { transform: none; opacity: 1; }
#note.ges-band-on, #note.is-in.ges-band-on {
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--ges-beat) linear, opacity var(--ges-beat) linear, visibility 0s linear var(--ges-beat);
}
#note[hidden] { display: none; }
#note a {
  flex: 0 1 auto;
  min-inline-size: 0;
  padding-block: .7rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.promo-lead { display: inline; }
.promo-rest {
  position: absolute;
  inline-size: .0625rem;
  block-size: .0625rem;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#note button {
  flex: none;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border: 0;
  background: var(--ges-ochre);
  color: var(--ges-straw);
  font-size: 1.25rem;
  line-height: 1;
  --ges-chamfer: .6rem;
  transition: background-color var(--ges-beat) linear;
}
#note button:hover, #note button:focus-visible { background: var(--ges-ultramarine); }

/* Phone call key: .ring-shop is the small ultramarine octagon pinned at the lower right, set into the offer band's reserved end and centred on its one-line height. */
.ring-shop {
  position: fixed;
  inset-inline-end: .5rem;
  inset-block-end: .5rem;
  z-index: 40;
  display: grid;
  place-items: center;
  min-inline-size: 3.75rem;
  min-block-size: 2.75rem;
  padding-inline: .7rem;
  background: var(--ges-ultramarine);
  color: var(--ges-straw);
  text-decoration: none;
  --ges-chamfer: .6rem;
}
/* The call key's own straw strip: a solid ground across the foot, under the offer band, so the key never sits on copy. */
body:has(.ring-shop)::after {
  content: "";
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 25;
  block-size: 3.75rem;
  background: var(--ges-straw);
  border-block-start: var(--ges-seam) solid var(--ges-ochre);
  pointer-events: none;
}
@media (min-width: 56em) {
  .ring-shop { display: none; }
  body:has(.ring-shop)::after { display: none; }
  #note { padding-inline-end: var(--ges-yard); font-size: 1rem; }
  #note a { overflow: visible; white-space: normal; }
  .promo-rest {
    position: static;
    inline-size: auto;
    block-size: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
}

/* Reduced motion: every move lands in its final state at once. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .pour.ges-dry-on { clip-path: none; }
}

body, html {
  overflow-x: clip;
}
nav a, nav button, header a, header button {
  position: relative;
  z-index: 2;
}
@media screen and (min-width: 1921px) {
  html { font-size: calc(100vw / 120); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
