/* First groom: deep ink, a portrait held in its marks, five lines, and the line being read held in the same four marks. */

.gtt-first{
  --first-lead:clamp(1.15rem,.6vw + 1rem,1.4rem);
  display:grid;grid-template-columns:minmax(0,1fr);
  gap:clamp(1.5rem,4vh,2.5rem) clamp(1.5rem,4vw,3.5rem);
  padding-block:clamp(1.5rem,5vh,3rem);
  padding-inline:clamp(1rem,4vw,3rem);
}

/* Title and portrait: title above on a phone, beside the picture on a desk. */
.gtt-first-side{display:flex;flex-direction:column;gap:1.1rem;background:var(--darkroom)}
.gtt-first-title{
  margin:0;font-size:clamp(1.75rem,1.2vw + 1.45rem,1.875rem);
  font-weight:500;line-height:1.1;
}
/* The marks hang off the picture alone; the caption sits under them. */
.gtt-first-plate{display:block}
.gtt-first-portrait{margin:.4rem}
.gtt-first-portrait img{aspect-ratio:1/1;object-fit:cover}
.gtt-first-portrait figcaption{max-width:none}

/* The reading column. */
.gtt-first-body{display:grid;align-content:start;gap:0;min-width:0}
.gtt-first-lead{
  margin:0 0 1.5rem;max-width:36ch;
  font-size:var(--first-lead);line-height:1.45;
}
.gtt-first-head{
  margin:0 0 .6rem;max-width:30ch;font-size:var(--subhead);font-weight:500;line-height:1.2;
}
.gtt-first-intro{margin:0 0 1rem;max-width:52ch;font-size:var(--reading)}

/* The five lines: one even rule the full height of the list; the line being read sits in four corner marks. */
.gtt-lines{
  list-style:none;margin:0 0 clamp(1.75rem,5vh,3rem);
  padding:0 0 0 clamp(1.25rem,2.5vw,2rem);
  position:relative;counter-reset:gtt-line;
}
.gtt-lines::before{
  content:"";position:absolute;inset-block:0;inset-inline-start:0;
  inline-size:.15rem;background:currentColor;
}
.gtt-line{
  counter-increment:gtt-line;position:relative;
  display:grid;grid-template-columns:2rem minmax(0,1fr);gap:.75rem;
  padding-block:.8rem;max-width:34rem;
  font-size:clamp(1.15rem,.6vw + 1rem,1.45rem);line-height:1.35;
}
.gtt-line::before{
  content:counter(gtt-line);
  font-family:var(--spoken);font-weight:600;font-size:1.0625rem;line-height:1.9;
}
/* The marks stand in the line's own padding and half a rem outside its text, so no arm touches a letter. */
.gtt-line::after{
  content:"";position:absolute;inset-block:0;inset-inline:-.5rem;
  background-image:
    linear-gradient(currentColor,currentColor),linear-gradient(currentColor,currentColor),
    linear-gradient(currentColor,currentColor),linear-gradient(currentColor,currentColor),
    linear-gradient(currentColor,currentColor),linear-gradient(currentColor,currentColor),
    linear-gradient(currentColor,currentColor),linear-gradient(currentColor,currentColor);
  background-repeat:no-repeat;
  background-size:
    var(--mark-arm) var(--mark-weight),var(--mark-weight) var(--mark-arm),
    var(--mark-arm) var(--mark-weight),var(--mark-weight) var(--mark-arm),
    var(--mark-arm) var(--mark-weight),var(--mark-weight) var(--mark-arm),
    var(--mark-arm) var(--mark-weight),var(--mark-weight) var(--mark-arm);
  background-position:
    0 0,0 0,100% 0,100% 0,
    0 100%,0 100%,100% 100%,100% 100%;
  opacity:0;pointer-events:none;transition:opacity .3s linear;
}
.gtt-line-here::after{opacity:1}

/* Handling questions: each on its own hairline, numbered, at a size to be read aloud on the phone. */
.gtt-asks{
  list-style:none;margin:0 0 1.5rem;padding:0;
  display:grid;grid-template-columns:minmax(0,1fr);
  counter-reset:gtt-ask;
  border-block-end:var(--edge) solid var(--rule-pale);
}
.gtt-asks li{
  counter-increment:gtt-ask;
  display:grid;grid-template-columns:2rem minmax(0,1fr);gap:.75rem;
  padding-block:1.05rem;
  border-block-start:var(--edge) solid var(--rule-pale);
  font-size:clamp(1.125rem,.5vw + 1rem,1.3rem);line-height:1.4;
}
.gtt-asks li::before{
  content:counter(gtt-ask);
  font-family:var(--display);font-weight:500;font-size:1.125rem;line-height:1.6;
}
.gtt-first-lead-in{margin:0 0 1.5rem;font-size:var(--reading)}

/* The number, written the way it is said, at picture size; it never breaks inside itself. */
.gtt-first-call{display:grid;gap:.35rem;justify-items:start}
.gtt-first-call .gtt-dial{padding-block:.5rem;font-size:2.25rem;line-height:1.2}
.gtt-first-number{white-space:nowrap}
.gtt-first-fine{margin:0;font-size:var(--smallprint);line-height:1.45}

/* The floor print: wide and shallow on a phone, tall under the portrait on a desk. */
.gtt-first-floor{margin:.4rem}
.gtt-first-floor img{aspect-ratio:16/7;object-fit:cover;object-position:50% 68%}
.gtt-first-floor figcaption{max-width:none}

/* The hand-off: back to the six, across to the paws. */
.gtt-first-hand{
  display:flex;flex-wrap:wrap;gap:.5rem clamp(1.5rem,4vw,3.5rem);
  padding-block-start:clamp(1.25rem,3vh,2rem);
  border-block-start:var(--edge) solid var(--rule-pale);
}
.gtt-first-go{
  display:grid;gap:.15rem;align-content:center;
  min-height:3.5rem;padding-block:.5rem;text-decoration:none;
  font-size:var(--reading);
}
.gtt-first-goname{
  font-family:var(--display);font-weight:500;line-height:1.2;
  font-size:clamp(1.15rem,.8vw + .95rem,1.6rem);
  text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:var(--edge);
}
.gtt-first-gonote{font-size:var(--smallprint);font-weight:400;line-height:1.35}

@media (min-width:60rem){
  /* Two prints fill the left column for the whole height of the reading column. */
  .gtt-first{
    grid-template-columns:clamp(21rem,42vw - 3rem,39rem) minmax(0,1fr);
    grid-template-rows:auto 1fr auto;
    align-items:start;
  }
  /* One top line: the side is lowered to where the lead's first letters begin; the title starts there,
     and the portrait's marks hug its corners so the marks and the photograph start there too. */
  .gtt-first-side{
    grid-column:1;grid-row:1;
    flex-direction:row-reverse;align-items:flex-start;gap:clamp(.75rem,1.5vw,1.25rem);
    padding-block-start:calc(var(--first-lead) * .3);
  }
  .gtt-first-plate{--mark-offset:var(--mark-weight)}
  .gtt-first-body{grid-column:2;grid-row:1 / span 2}
  .gtt-first-title{
    writing-mode:vertical-rl;text-orientation:mixed;
    font-size:2.75rem;line-height:1.05;
    max-block-size:calc(100vh - 4rem);
  }
  .gtt-first-portrait{flex:1 1 0;min-inline-size:0;margin-block-start:var(--mark-weight)}
  .gtt-first-portrait img{
    aspect-ratio:4/5;object-position:56% 50%;
    max-block-size:calc(100vh - 9rem);
  }
  .gtt-first-floor{
    grid-column:1;grid-row:2;align-self:stretch;
    display:flex;flex-direction:column;justify-content:flex-end;
  }
  .gtt-first-floor .gtt-first-plate{flex:1 1 auto;min-block-size:16rem;max-block-size:52rem}
  .gtt-first-floor img{
    position:absolute;inset:0;inline-size:100%;block-size:100%;
    aspect-ratio:auto;object-position:34% 60%;
  }
  .gtt-first-hand{grid-column:1 / -1;grid-row:3}
}

@media (prefers-reduced-motion:reduce){
  .gtt-line::after{transition:none}
}
