/* Home — six strips read sideways, top of the page to its end. */

/* The track: native snapping, nothing scripted, the wheel left alone. */
.gtt-track{
  display:flex;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;scroll-behavior:smooth;
  overscroll-behavior-x:contain;scrollbar-width:thin;
}
.gtt-track:focus-visible{outline-offset:-.35rem}
/* On a phone a strip grows to hold all it carries, so its previous and next links
   stay inside the strip and never slide under the footer. */
.gtt-screen{
  flex:0 0 100%;min-width:0;
  scroll-snap-align:start;scroll-snap-stop:always;
  min-height:calc(100svh - var(--strip-bar) - var(--lift));
  overflow-x:hidden;
  display:flex;flex-direction:column;
  background:var(--overcast);color:var(--darkroom);
}
.gtt-screen.gtt-night{background:var(--darkroom);color:var(--overcast)}
.gtt-screen > .gtt-drift{flex:0 0 auto;padding-inline:clamp(1rem,3vw,2.5rem)}

/* The corner chip would print the number a second time, in the listing's digits;
   the first strip carries it at picture size instead. */
.gtt-pin-dial{display:none}

/* Each strip's sheet of twelve, stacked on a phone. */
.gtt-screen-body{
  flex:1 0 auto;
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  gap:var(--step);align-content:start;
  padding-block:clamp(1.25rem,4vh,2.5rem);
  padding-inline:clamp(1rem,3vw,2.5rem);
}
.gtt-screen-body > *{grid-column:1 / -1;min-width:0}

/* Headings in the seam: upright on a phone, running downward on a desk. */
.gtt-spine{margin:0;font-weight:500;font-size:1.75rem;line-height:1.1}
.gtt-opening-title h1{font-weight:500}

/* Words of a strip: prompts in the slab, the groomer quoted plain. */
.gtt-words{display:grid;align-content:start;gap:.9rem}
.gtt-words p{margin:0}
.gtt-asks{display:grid;align-content:start;gap:.6rem}
.gtt-asks p{margin:0}
.gtt-ask{
  font-family:var(--display);font-weight:500;
  font-size:clamp(1.4rem,1vw + 1.05rem,2rem);line-height:1.2;max-width:24ch;
}
.gtt-said{margin:0;padding-inline-start:1rem;position:relative}
.gtt-said p{font-size:1.125rem;line-height:1.5;max-width:46ch}
.gtt-said::before{
  content:"";position:absolute;inset-block:0 .2rem;inset-inline-start:0;
  inline-size:var(--mark-weight);background:currentColor;
}
.gtt-onward{font-weight:600;justify-self:start;padding-block:.55rem;min-height:2.75rem}

/* Prints in their marks: every picture hangs off the same sightline. */
.gtt-print img{width:100%;object-fit:cover}
.gtt-first-print{align-self:start}
.gtt-floor-print img{height:clamp(12rem,40vh,26rem)}
.gtt-edge-print{margin-inline-end:calc(-1 * clamp(1rem,3vw,2.5rem))}
.gtt-edge-print img{height:clamp(18rem,62vh,40rem);object-position:30% 40%}
.gtt-whorl-print img{height:clamp(16rem,58vh,38rem)}

/* The ledger of six questions, no prices anywhere. */
.gtt-ledger-rows{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.gtt-ledger-rows li{display:grid;gap:.1rem .9rem;font-size:1rem;line-height:1.4}
.gtt-ledger-name{
  font-family:var(--display);font-weight:500;font-size:1.125rem;
  text-decoration:underline;text-underline-offset:.16em;text-decoration-thickness:var(--edge);
  padding-block:.2rem;
}
.gtt-ledger-intro{font-weight:600}
.gtt-listing{font-size:1rem}

/* The contact sheet: three equal prints, each caption under its own marks. */
.gtt-proofs{display:grid;gap:clamp(1.5rem,2.5vw,2.25rem);margin-block-start:.6rem}
.gtt-proofs figcaption{font-size:1rem;max-width:30ch}
.gtt-proofs .gtt-dial{padding-block:.35rem;min-height:2.75rem}
.gtt-contact-lead{max-width:60ch}

/* Previous and next, named, at the foot of each strip. */
.gtt-pace{
  flex:0 0 auto;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 1.5rem;
  padding-block:.2rem .6rem;padding-inline:clamp(1rem,3vw,2.5rem);
}
.gtt-pace .gtt-press{font-size:1rem}
.gtt-pace .gtt-press::after{opacity:1}
.gtt-pace-on{margin-inline-start:auto}

/* In the first strip the way on sits in the copy column, on its own four marks. */
.gtt-opening-field .gtt-pace{
  display:block;padding:0;margin-block-start:.35rem;flex:0 0 auto;
}
.gtt-opening-field .gtt-pace .gtt-press{margin-inline-start:0;padding-block:.6rem;padding-inline:0}

/* The first strip: the dog takes the left, its nose aimed at the number.
   On a phone the landscape crop is cut to the top two-fifths of the window so the
   upright title, the slogan and the number stand in the first window.
   The track stretches every strip to the tallest one, so the rows are pinned:
   the spare height goes under the copy, never between the crop and the title. */
.gtt-screen-open{--open-edge:clamp(.6rem,1.2vw,1rem)}
.gtt-screen-open .gtt-opening{
  flex:1 0 auto;background:transparent;
  grid-template-rows:auto auto minmax(0,1fr);
}
.gtt-screen-open .gtt-opening-photo{
  overflow:visible;margin:var(--open-edge);
  height:40vh;height:40svh;
}
.gtt-screen-open .gtt-opening-photo img{
  height:100%;aspect-ratio:auto;object-fit:cover;object-position:50% 32%;
}
.gtt-screen-open .gtt-opening-title h1{font-size:1.875rem;line-height:1.1}
.gtt-screen-open .gtt-slogan{font-size:1.25rem;line-height:1.35;max-width:28ch}
.gtt-screen-open .gtt-facts{gap:.5rem;margin-block-start:.15rem}
.gtt-fact{display:grid;gap:.1rem;min-width:0}
.gtt-screen-open .gtt-facts dt{font-size:1rem}
.gtt-screen-open .gtt-facts dd{font-size:1.0625rem;line-height:1.45}
.gtt-screen-open .gtt-dial{font-size:2.25rem;line-height:1.15;justify-self:start}

@media (min-width:40rem){
  .gtt-proofs{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
  .gtt-ledger-rows li{grid-template-columns:minmax(8rem,11rem) minmax(0,1fr);align-items:baseline}
}

@media (min-width:60rem){
  .gtt-screen{min-height:0;height:100vh;height:100svh;overflow-y:auto}
  /* A strip stops short of the window's edge: the next strip's ground and its rule
     show as a sliver at the right, so the track reads sideways without a word. */
  .gtt-screen{flex:0 0 calc(100% - 3.5rem)}
  .gtt-spine{writing-mode:vertical-rl;text-orientation:mixed;font-size:clamp(1.875rem,1.1vw + 1.5rem,2.75rem);line-height:1;align-self:start}

  /* One row the height of the strip: photo, title and copy all share its top and bottom. */
  .gtt-screen-open .gtt-opening{
    grid-template-areas:"photo title field";
    grid-template-columns:minmax(0,56fr) auto minmax(0,40fr);
    grid-template-rows:minmax(0,1fr);min-height:0;
    padding-block-end:calc(var(--notice) + 1.5rem);
  }
  .gtt-screen-open .gtt-opening-photo{height:auto;min-height:clamp(22rem,72vh,40rem)}
  .gtt-screen-open .gtt-opening-photo img{position:absolute;inset:0;height:100%;min-height:0;object-position:40% 45%}

  /* The title runs from the photo's top marks to its bottom marks. */
  .gtt-screen-open .gtt-opening-title{
    padding-block:1.5rem;padding-inline:var(--open-edge);
  }
  .gtt-screen-open .gtt-opening-title h1{
    flex:1 1 auto;margin:0;
    font-size:min(2.75rem,6vh);line-height:1;
    text-align:justify;text-align-last:justify;
  }

  /* The field holds type the size of the photograph's subject, spread down its height. */
  .gtt-screen-open .gtt-opening-field{
    grid-template-rows:auto auto minmax(0,1fr) auto;
    align-content:stretch;gap:1rem;
    padding-block:var(--open-edge);
  }
  .gtt-screen-open .gtt-slogan{
    font-size:clamp(1.5rem,1.15vw + 1.15rem,1.875rem);line-height:1.28;max-width:24ch;
  }
  .gtt-screen-open .gtt-facts{
    grid-row:3;align-self:stretch;align-content:space-evenly;
    gap:.6rem 1rem;margin-block-start:0;
  }
  .gtt-screen-open .gtt-facts dt{font-size:1rem}
  .gtt-screen-open .gtt-facts dd{font-size:clamp(1.375rem,.9vw + 1.15rem,1.75rem);line-height:1.3;max-width:22ch}
  .gtt-screen-open .gtt-dial{font-size:2.25rem;justify-self:start}
  .gtt-screen-open .gtt-opening-field .gtt-pace{grid-row:4;align-self:end;margin-block-start:0}
  .gtt-screen-open .gtt-opening-field .gtt-pace .gtt-press{
    display:inline-flex;align-items:flex-end;min-height:2.75rem;padding-block:0;
  }

  .gtt-cut-first .gtt-first-print{grid-column:1 / span 5}
  .gtt-cut-first .gtt-spine{grid-column:6 / span 1;grid-row:1}
  .gtt-cut-first .gtt-words{grid-column:7 / -1;grid-row:1;padding-block-start:1rem}

  .gtt-cut-between .gtt-asks{grid-column:2 / span 6;grid-row:1}
  .gtt-cut-between .gtt-words{grid-column:8 / -1;grid-row:1}
  .gtt-cut-between .gtt-spine{grid-column:1 / span 1;grid-row:2}
  .gtt-cut-between .gtt-floor-print{grid-column:2 / -1;grid-row:2;align-self:end}
  .gtt-cut-between{align-content:space-between}

  .gtt-cut-coat .gtt-words{grid-column:1 / span 6;grid-row:1;align-self:center}
  .gtt-cut-coat .gtt-spine{grid-column:7 / span 1;grid-row:1;justify-self:end}
  .gtt-cut-coat .gtt-edge-print{grid-column:8 / -1;grid-row:1}

  .gtt-cut-listing .gtt-spine{grid-column:1 / span 1;grid-row:1}
  .gtt-cut-listing .gtt-words{grid-column:2 / span 8;grid-row:1;gap:.7rem}
  .gtt-cut-listing .gtt-whorl-print{grid-column:10 / -1;grid-row:1;align-self:start}

  .gtt-cut-contact .gtt-spine{grid-column:1 / span 1;grid-row:1}
  .gtt-cut-contact .gtt-words{grid-column:2 / -1;grid-row:1}
  .gtt-proofs img{max-height:52vh}
}

@media (prefers-reduced-motion:reduce){
  .gtt-track{scroll-behavior:auto}
  .gtt-drift-hold{display:none}
}
