/* ============================================================
   FOCUS TIMER — /focus/
   ============================================================

   Two halves that deliberately do NOT match.

   The page around the tool is Rosie's: cream ground, Playfair head,
   terracotta accent, same page head and body rhythm as the blog.

   The tool itself is black on white, Helvetica, no ornament. That is not an
   oversight. It is a timer for people whose attention is the scarce resource,
   and every decorative thing in that box is something for the eye to go to
   instead of the number. It reads as an instrument set into the page rather
   than as part of it, which is what it is.

   Its colours and curves therefore live in their own --t-* tokens under .tool
   rather than using the site tokens, so a change to the brand palette cannot
   quietly tint the timer.
   ============================================================ */

body{
  margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);font-weight:300;
  font-size:clamp(1rem,.94rem + .28vw,1.0625rem);line-height:1.78;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
  display:flex;flex-direction:column;min-height:100vh;
}
[id]{scroll-margin-top:6.5rem}
.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter);width:100%}
.eyebrow{
  font-family:var(--cond);font-weight:400;font-size:clamp(.8125rem,.765rem + .2vw,.875rem);
  letter-spacing:.18em;text-transform:uppercase;color:var(--ink-soft);line-height:1;
}
.btn:hover::before,.btn:focus-visible::before{transform:translateY(0)}
.btn:hover,.btn:focus-visible{color:var(--ink-deep);border-color:var(--apricot)}

/* ============================ NAV ============================ */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:100;padding:1.6rem 0;
  transition:background .5s var(--ease),box-shadow .5s var(--ease),padding .5s var(--ease);
}
.nav__sublink[aria-current="page"]{color:var(--terracotta)}

/* ========================= PAGE HEAD ========================= */
main{flex:1 0 auto}
.phead{background:var(--dune);padding:clamp(8.5rem,15vh,11rem) 0 clamp(3rem,6vw,5rem)}
.phead__t{
  font-family:var(--serif);font-size:clamp(2.6rem,1.4rem + 5.4vw,6rem);
  line-height:.94;letter-spacing:-.04em;   /* no eyebrow above it anymore */
}
.phead__t em{font-style:italic;color:var(--terracotta)}
.phead__sub{
  margin-top:clamp(1.2rem,2.4vw,1.8rem);
  font-family:var(--serif);font-size:clamp(1.1rem,.98rem + .6vw,1.45rem);
  line-height:1.4;color:var(--ink-soft);
}

/* ========================= PAGE BODY ========================= */
.pbody{padding:clamp(2.5rem,5vw,4rem) 0 clamp(5rem,10vw,8rem)}


/* ============================================================
   THE TOOL
   ============================================================ */

.tool{
  --t-ink:#111111;
  --t-line:rgba(17,17,17,.14);   /* the two dividing rules */
  --t-soft:rgba(17,17,17,.42);   /* the small capitals */
  --t-peak:cubic-bezier(.85,0,.15,1);
  --t-ease:cubic-bezier(.76,0,.24,1);

  /* Everything inside is sized off this one number, so the box has the same
     proportions whether it is sitting in the page or filling the screen. */
  --toolh:clamp(28rem,56vh,36rem);

  position:relative;
  background:#ffffff;color:var(--t-ink);
  border:1px solid var(--hairline);border-radius:6px;
  overflow:hidden;
  font-family:"Helvetica Neue",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  -webkit-tap-highlight-color:transparent;
  -webkit-user-select:none;user-select:none;
}

/* ---- Fullscreen ---------------------------------------------------------
   A class on the element, not the Fullscreen API. iPhone Safari does not
   implement requestFullscreen at all, and this is the one device most of the
   people reading the article will be holding. A fixed box at a high z-index
   behaves identically everywhere, exits on Escape, and cannot leave the
   browser in a state the page does not know about. */
.tool.is-full{
  --toolh:100vh;
  position:fixed;inset:0;z-index:300;
  border:0;border-radius:0;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
@supports (height:100dvh){
  /* dvh, so the dial is not cut off behind the disappearing Safari toolbar */
  .tool.is-full{--toolh:100dvh}
}
body.is-locked{overflow:hidden}

.tool__in{
  display:grid;grid-template-columns:2fr 1fr;
  min-height:var(--toolh);
}
.tool.is-full .tool__in{height:var(--toolh)}

.tool__side{
  border-left:1px solid var(--t-line);
  display:grid;grid-template-rows:1fr 1fr;
}
.cell{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:clamp(10px,1.6vh,22px);
  padding:clamp(14px,2vw,30px);
  text-align:center;min-width:0;
}
.cell + .cell{border-top:1px solid var(--t-line)}

.cap{
  font-size:clamp(9px,.72vw,12px);font-weight:500;
  letter-spacing:.22em;text-transform:uppercase;color:var(--t-soft);
  line-height:1.5;
}
.big{
  font-weight:400;line-height:1;letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;
}
#tasksVal{font-size:clamp(44px,calc(var(--toolh) * .21),132px)}
#metaVal {font-size:clamp(22px,calc(var(--toolh) * .085),52px);letter-spacing:-.02em}

/* the count change gets a beat of its own */
.bump{animation:bump .5s var(--t-ease)}
@keyframes bump{from{transform:scale(1.14)}to{transform:scale(1)}}

/* ---- the dial ------------------------------------------------------ */
.tool__main{position:relative;display:flex;flex-direction:column;min-width:0}
.tool__stage{flex:1;display:grid;place-items:center;min-height:0;padding:clamp(12px,2vw,28px)}

.dial{
  width:min(100%,calc(var(--toolh) * .68));
  aspect-ratio:1;
  position:relative;display:grid;place-items:center;
  transition:transform 2s var(--t-peak);
}
.tool[data-state="running"] .dial{transform:scale(1.03)}

.ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
/* The ring is always drawn whole and is never touched. Nothing empties or
   fills — a bar that drains is a deadline, and a deadline is the wrong
   feeling here. */
.ring .track{fill:none;stroke:var(--t-ink);stroke-width:1.6;opacity:.2}
.ring .dot{fill:var(--t-ink);transition:opacity .4s ease}
.tool[data-state="idle"] .ring .dot{opacity:.25}
.tool[data-state="paused"] .ring .dot{opacity:.3}

/* the dot passing the top: a minute is full */
.pulse{
  position:absolute;left:50%;top:50%;width:90%;height:90%;
  margin:-45% 0 0 -45%;
  border:1px solid var(--t-ink);border-radius:50%;opacity:0;pointer-events:none;
}
.pulse.go{animation:ping 1.1s var(--t-ease)}
@keyframes ping{from{transform:scale(1);opacity:.32}to{transform:scale(1.12);opacity:0}}

.num{
  position:relative;
  font-size:calc(var(--toolh) * .105);
  font-weight:400;letter-spacing:-.025em;line-height:1;
  font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;
  transition:opacity .35s ease;
}
.tool[data-state="idle"]   .num{opacity:.3}
.tool[data-state="paused"] .num{opacity:.42}
.num b{display:block;font-weight:inherit}
.num.pop b{animation:pop .4s var(--t-ease)}
@keyframes pop{from{transform:scale(1.035)}to{transform:scale(1)}}

.dialcap{
  position:absolute;left:50%;transform:translateX(-50%);
  top:calc(50% + var(--toolh) * .09);
  font-size:clamp(9px,.68vw,11px);font-weight:500;
  letter-spacing:.22em;text-transform:uppercase;color:var(--t-soft);
  white-space:nowrap;
}

/* ---- the buttons --------------------------------------------------- */
.tool__controls{
  display:flex;flex-wrap:wrap;align-items:center;
  gap:clamp(8px,1vw,14px);
  padding:clamp(14px,2.2vw,30px);
}
.tool__row{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(8px,1vw,14px)}
.tool__row--sec{margin-left:auto}

.tool button{
  font:inherit;font-size:clamp(13px,1vw,16px);font-weight:500;
  padding:clamp(11px,1.1vw,15px) clamp(18px,1.8vw,28px);
  border-radius:999px;border:1px solid transparent;
  background:var(--t-ink);color:#fff;cursor:pointer;
  white-space:nowrap;touch-action:manipulation;
  transition:transform .08s ease,opacity .2s ease,background .2s ease,color .2s ease;
}
.tool button:active{transform:scale(.96)}
.tool :focus-visible{outline:2px solid var(--t-ink);outline-offset:3px}

/* Done is as important as Start, and must not look like it */
#btnDone{background:transparent;color:var(--t-ink);border:2px solid var(--t-ink)}
#btnDone:disabled{opacity:.22}

.tool .ghost{
  background:transparent;color:rgba(17,17,17,.6);border:1px solid rgba(17,17,17,.22);
  font-size:clamp(12px,.9vw,14px);padding:clamp(9px,.9vw,12px) clamp(14px,1.4vw,20px);
}
/* Never hidden, only switched off: the row then never jumps */
.tool .ghost:disabled{opacity:.3}
.tool button:disabled{cursor:default}

/* ---- the tool on a phone -------------------------------------------
   The iPad version puts the two figures in a column beside the dial. On a
   portrait phone that column would be a stripe about forty pixels wide, so
   they go across the top instead and the dial keeps the width. */
@media (max-width:760px){
  .tool{--toolh:clamp(30rem,72vh,42rem)}
  .tool__in{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .tool__side{
    grid-row:1;
    grid-template-rows:none;grid-template-columns:1fr 1fr;
    border-left:0;border-bottom:1px solid var(--t-line);
  }
  .cell{padding:16px 12px;gap:6px}
  .cell + .cell{border-top:0;border-left:1px solid var(--t-line)}
  .cap{letter-spacing:.16em;font-size:9px}
  #tasksVal{font-size:40px}
  #metaVal{font-size:28px}
  .dial{width:min(100%,calc(var(--toolh) * .56))}
  .num{font-size:calc(var(--toolh) * .082)}
  .dialcap{top:calc(50% + var(--toolh) * .073);font-size:9px}
  .tool__controls{padding:14px;gap:8px;justify-content:center}
  .tool__row{justify-content:center;flex:1 1 100%}
  .tool__row--sec{margin-left:0}
  .tool button{padding:12px 18px;font-size:14px}
  .tool .ghost{padding:9px 14px;font-size:12px}
}

/* ---- the time, measured against the ring rather than the box ---------
   The ring is min(the width it is given, a share of the box height), so on a
   narrow tall screen it stops growing with the box — and a figure sized off
   the box then runs out past it. 15cqw is 15% of the ring's own width, so the
   two can no longer come apart, on any shape of screen.

   This is also a shade tighter than the 16.8% the iPad version uses. There it
   is always Helvetica Neue; here it may be Arial, Roboto or Segoe UI, all of
   them wider, and the figure has to stay inside the ring in every one of them.

   The calc() values above remain the fallback for a browser without container
   queries — Safari before 16, autumn 2022. */
@supports (container-type:inline-size){
  .dial{container-type:inline-size}
  .num{font-size:15cqw}
  .dialcap{top:calc(50% + 13cqw)}
}

@media (prefers-reduced-motion:reduce){
  .dial,.num,.ring .dot{transition:none}
  .pulse.go,.num.pop b,.bump{animation:none}
}

/* ---- the one line under the box ------------------------------------- */
.tool__note{
  margin:1.1rem 0 0;font-size:.875rem;line-height:1.7;color:var(--ink-soft);
  display:flex;flex-wrap:wrap;gap:.35rem 1.4rem;
}
.tool__note b{font-weight:500}


/* ============================================================
   THE LINE ABOVE THE BOX, HOW IT WORKS, CLOSING NOTE + CTA
   ============================================================
   The same on all six tool pages (pick, focus, jar, trail, sign, meeting).
   A short line above the tool links down to the steps (#how), for whoever
   would rather read first. Down there the steps sit in one box and the
   coaching box stands next to them from 60rem up — under the steps, as it
   used to be, it was below the point where most people stop scrolling. */
/* padding-left: the hook of the J hangs about .09em left of its own box, which
   put the line visibly in front of the tool's edge; this sets the ink flush */
.jump{
  margin:0 0 1.2rem;padding-left:.09em;
  font-size:clamp(1.0625rem,.98rem + .35vw,1.25rem);line-height:1.5;color:var(--ink-soft);
}
.jump a{
  color:var(--terracotta);text-decoration-thickness:1px;text-underline-offset:.22em;
  white-space:nowrap;transition:color .2s ease;
}
.jump a:hover{color:var(--ink-deep)}
.jump svg{width:.62em;height:.86em;margin-left:.35em;vertical-align:-.06em}

.outro{
  margin-top:clamp(3.5rem,7vw,6rem);
  display:grid;gap:clamp(1rem,2vw,1.5rem);
  grid-template-columns:minmax(0,1fr);
}
@media (min-width:60rem){
  .outro{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
}

.how{
  background:var(--paper);border:1px solid var(--hairline);border-radius:6px;
  padding:clamp(1.6rem,3.5vw,2.6rem);
}
.how__t{font-family:var(--serif);font-size:clamp(1.4rem,1.1rem + 1.1vw,2rem);letter-spacing:-.025em}
.how__t em{font-style:italic;color:var(--terracotta)}
.how__list{list-style:none;margin:clamp(1.1rem,2.2vw,1.5rem) 0 0;padding:0}
.how__item{
  display:grid;grid-template-columns:2.2rem minmax(0,1fr);column-gap:.5rem;
  padding:.9rem 0;border-top:1px solid var(--hairline);
}
.how__item:last-child{padding-bottom:0}
.how__n{
  font-family:var(--cond);font-weight:500;font-size:.875rem;letter-spacing:.18em;
  color:var(--terracotta);line-height:1.5;padding-top:.15rem;
}
.how__h{font-family:var(--serif);font-size:1.1rem;line-height:1.35;letter-spacing:-.02em}
.how__p{margin:.3rem 0 0;font-size:.9375rem;line-height:1.65;color:var(--ink-soft)}
.how__p code{
  font-family:var(--cond);font-size:1em;letter-spacing:.04em;
  text-transform:uppercase;color:var(--ink);
}

/* A photo of Rosie across the top, edge to edge, then the words and the
   button. Next to the steps the box is taller than its words, and the photo
   takes up the difference (flex-grow), so there is never an empty stretch;
   min-height keeps it a real photo where the steps are short and on a phone. */
.close{
  --pad:clamp(1.6rem,3.5vw,2.6rem);
  background:var(--sand);border-radius:6px;overflow:hidden;
  padding:var(--pad);
  display:flex;flex-direction:column;align-items:flex-start;
}
.close__img{
  flex:1 1 0;min-height:15rem;
  width:calc(100% + 2 * var(--pad));max-width:none;height:auto;
  margin:calc(-1 * var(--pad)) calc(-1 * var(--pad)) var(--pad);
  object-fit:cover;object-position:50% 22%;
}
.close__t{font-family:var(--serif);font-size:clamp(1.4rem,1.1rem + 1.1vw,2rem);letter-spacing:-.025em}
.close__t em{font-style:italic;color:var(--terracotta)}
.close__p{margin:.8rem 0 0;font-size:.9375rem;line-height:1.75;color:var(--ink-soft);max-width:44ch}
.close__act{padding-top:clamp(1.4rem,3vw,2rem)}

/* ============================================================
   FOOTER — same as every other page, it lives in base.css
   ============================================================ */
.foot{background:var(--ink-deep);color:#FFFFFF;padding:clamp(2.75rem,5.5vw,4.25rem) 0 1.75rem;flex-shrink:0}


/* ============================================================
   BREAKPOINTS THE WHOLE SITE SHARES
   ============================================================
   These are not in base.css. Every page stylesheet loads after it and carries
   its own .nav rules, so a nav breakpoint there would be the one that loses —
   the comment at base.css line 139 spells out why. Copied verbatim from
   blog-index.css so the menu and the footer behave identically on this page.
   ============================================================ */
@media (max-width:1080px){
  .nav__links{
    position:fixed;inset:0 0 auto;top:0;background:var(--cream);
    flex-direction:column;justify-content:center;gap:2rem;height:100dvh;
    clip-path:inset(0 0 100% 0);transition:clip-path .7s var(--ease);margin-bottom:0;
  }
  .nav.is-open .nav__links{clip-path:inset(0 0 0 0)}
  .nav__link{font-size:1.5rem;font-family:var(--serif);letter-spacing:.04em;text-transform:none}
  .burger{display:block;position:relative;z-index:2}
}
@media (max-width:860px){
  .foot__grid{grid-template-columns:1fr 1fr}
  .foot__brand{grid-column:1/-1}
}
@media (max-width:640px){
  .foot__grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* ============================================================
   SECTION SPACING — since 22.10.2026
   Every section boundary has the same air on both sides: from the edge to
   the first or last thing you can see in the section (the tops of the letters,
   a box, a photo, a frame line), as much as the footer has from its top edge
   to the letters of "Navigate". That is 69px on a desktop and 47px on a phone,
   measured on the pixels, not on the text boxes: a large heading carries
   20-30px of empty font box above its letters, and that is what the eye
   does not count. --sec-pad in base.css is the footer's padding; the + or -
   on a value makes up for what sits between a section's padding and its
   first or last visible edge. Last in the file so it wins over the paddings
   above, media queries included. Not touched: the hero with the stats or
   fact band under it. Change a section's first or last element and its
   value here may need measuring again.
   ============================================================ */
main > .pbody{padding-bottom:var(--sec-pad)}
