/* Plinky-Gui — splash page styling.
   ==========================================================================
   Every colour on this page is a CSS colour *name*, so the palette can be
   changed by reading rather than by decoding hex. The names below are the
   closest standard ones to the editor's own five-colour scheme:

       editor          name used here     note
       #85BBF2 blue    lightskyblue       near enough to be indistinguishable
       #2B6FA8 ink     steelblue          the darker blue, for text on white
       #BF4C41 salmon  indianred          a touch lighter than the editor's
       #244029 green   darkgreen          more saturated than the editor's
       #BFA688 tan     tan                near enough
       #7A6244 tan ink saddlebrown        redder than the editor's
       #0B080D black   black              outlines and body text
       surfaces        linen / floralwhite / antiquewhite / oldlace

   Swap any value in the block below and the whole page follows.
   ========================================================================== */
:root{
  --ink:            black;
  --paper:          linen;
  --card:           floralwhite;
  --card-edge:      antiquewhite;
  --rule:           black;

  --blue:           lightskyblue;
  --blue-ink:       steelblue;
  --salmon:         indianred;
  --green:          darkgreen;
  --sand:           tan;
  --sand-ink:       saddlebrown;

  --text:           black;
  --text-soft:      dimgray;
  --text-faint:     gray;
  --on-dark:        floralwhite;

  /* shadows are this colour, mixed down to a percentage — so even the
     shading is a name you can change rather than a number */
  --shade:          black;

  --measure: 40rem;          /* comfortable reading width */
  --radius: 10px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--paper);
  color:var(--text);
  font:17px/1.65 "Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:var(--blue-ink)}

.wrap{max-width:78rem;margin:0 auto;padding:0 1.5rem}

/* ------------------------------------------------------------------ hero */
.hero{
  padding:5.5rem 0 3.5rem;
  border-bottom:2px solid var(--rule);
  background:
    radial-gradient(60rem 26rem at 12% 0%, var(--blue), transparent 65%),
    radial-gradient(48rem 22rem at 92% 8%, var(--sand), transparent 62%);
}
.hero h1{
  font-size:clamp(2.8rem,8vw,5.2rem);
  line-height:1;letter-spacing:-.02em;font-weight:700;
  margin-bottom:1rem;
}
.hero h1 .gui{color:var(--salmon)}
.hero .tagline{
  font-size:clamp(1.15rem,2.4vw,1.6rem);
  max-width:var(--measure);color:var(--text);margin-bottom:1.8rem;
}
.hero p{max-width:var(--measure);margin-bottom:1rem;color:var(--text-soft)}

.actions{display:flex;gap:.8rem;flex-wrap:wrap;margin:2rem 0 .8rem}
.btn{
  display:inline-block;text-decoration:none;font-family:inherit;
  border:2px solid var(--ink);border-radius:var(--radius);
  padding:.7rem 1.4rem;font-size:1.05rem;font-weight:600;
  background:var(--card);color:var(--text);transition:transform .12s;
}
.btn:hover{transform:translateY(-2px)}
.btn.primary{background:var(--blue);color:var(--ink)}
.action-note{font-size:.9rem;color:var(--text-faint);font-style:italic}

/* ---------------------------------------------------------- how it works */
.how{padding:3.5rem 0;border-bottom:2px solid var(--rule)}
.how h2,.feature h2{
  font-size:.85rem;letter-spacing:.22em;text-transform:uppercase;
  font-family:ui-sans-serif,system-ui,sans-serif;font-weight:700;
  color:var(--salmon);margin-bottom:1.6rem;
}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1.6rem}
.step{border-left:3px solid var(--blue-ink);padding-left:1.1rem}
.step .n{
  font-family:ui-sans-serif,system-ui,sans-serif;font-weight:700;
  font-size:.8rem;letter-spacing:.16em;color:var(--blue-ink);
}
.step h3{font-size:1.25rem;margin:.2rem 0 .4rem}
.step p{color:var(--text-soft);font-size:.98rem}

/* -------------------------------------------------------------- features */
.feature{padding:4rem 0;border-bottom:2px solid var(--rule)}
.feature:nth-of-type(even){background:var(--card-edge)}
.feature .lede{max-width:var(--measure);margin-bottom:2.6rem}
.feature h3.title{font-size:clamp(1.7rem,3.6vw,2.5rem);line-height:1.15;margin-bottom:.7rem}
.feature .lede p{color:var(--text-soft)}

/* the figures — screenshots torn out of a magazine ------------------------ */
.figs{display:flex;flex-wrap:wrap;gap:2.5rem 2rem;align-items:flex-start}
/* a section with a single figure would otherwise run the full width and dwarf
   the paired ones above it */
.figs .fig:only-child{flex:0 1 48rem}
.fig{
  position:relative;flex:1 1 32rem;min-width:min(100%,22rem);
  transform:rotate(var(--tilt,0deg));
}
/* The tear is clipped onto this inner sheet rather than the figure itself,
   so an annotation may hang past the edge without being sliced off. */
.fig .paper{
  padding:.75rem .75rem 1.6rem;
  background:var(--card);
  box-shadow:0 10px 26px color-mix(in srgb, var(--shade) 22%, transparent);
}
.fig .paper.torn-a{clip-path:polygon(
  0% 2%, 6% 0.4%, 13% 2.2%, 21% 0.6%, 29% 2.4%, 38% 0.8%, 47% 2.6%, 56% 0.7%,
  65% 2.3%, 74% 0.9%, 83% 2.5%, 91% 0.6%, 100% 2.1%,
  99.2% 20%, 100% 44%, 99% 66%, 100% 88%, 99.4% 98%,
  92% 99.4%, 84% 97.6%, 75% 99.5%, 66% 97.7%, 57% 99.3%, 48% 97.5%,
  39% 99.4%, 30% 97.6%, 21% 99.5%, 12% 97.8%, 4% 99.4%, 0% 98%,
  0.8% 76%, 0% 54%, 1% 32%)}
.fig .paper.torn-b{clip-path:polygon(
  0% 1.6%, 8% 2.6%, 16% 0.5%, 25% 2.4%, 34% 0.7%, 43% 2.5%, 52% 0.6%,
  61% 2.6%, 70% 0.8%, 79% 2.4%, 88% 0.5%, 96% 2.3%, 100% 1%,
  99% 24%, 100% 48%, 99.2% 72%, 100% 96%, 96% 99.5%,
  88% 97.5%, 79% 99.4%, 70% 97.6%, 61% 99.5%, 52% 97.4%, 43% 99.3%,
  34% 97.5%, 25% 99.4%, 16% 97.6%, 7% 99.5%, 0% 98.4%,
  1% 74%, 0% 50%, 0.9% 26%)}
.fig .paper.torn-c{clip-path:polygon(
  0% 2.4%, 7% 0.6%, 15% 2.5%, 24% 0.8%, 33% 2.3%, 41% 0.5%, 50% 2.6%,
  59% 0.7%, 68% 2.4%, 77% 0.6%, 86% 2.5%, 94% 0.8%, 100% 1.8%,
  99.4% 26%, 100% 52%, 99% 78%, 100% 97%, 94% 99.3%,
  86% 97.5%, 77% 99.4%, 68% 97.7%, 59% 99.5%, 50% 97.4%, 41% 99.4%,
  33% 97.6%, 24% 99.3%, 15% 97.5%, 6% 99.4%, 0% 97.6%,
  0.7% 72%, 0% 48%, 1.1% 24%)}
.fig img{border:1px solid var(--rule)}
.fig figcaption{
  font-family:ui-sans-serif,system-ui,sans-serif;font-size:.78rem;
  color:var(--text-faint);padding:.5rem .3rem 0;letter-spacing:.02em;
}

/* the arrows and their labels --------------------------------------------- */
.notes{position:absolute;inset:.75rem .75rem 1.6rem;pointer-events:none;z-index:2}
.notes svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.note-label{
  position:absolute;transform:translate(-50%,-50%);
  font-family:"Bradley Hand","Segoe Print","Comic Sans MS",ui-rounded,cursive;
  font-size:.95rem;line-height:1.2;font-weight:600;
  color:var(--ink);background:var(--card);
  border:2px solid var(--salmon);border-radius:.6rem;
  padding:.3rem .6rem;max-width:10rem;text-align:center;
  box-shadow:0 3px 10px color-mix(in srgb, var(--shade) 16%, transparent);
}

/* -------------------------------------------------------------- the YAML */
.codewrap{max-width:44rem}
.code{
  background:var(--ink);color:var(--on-dark);
  border-radius:var(--radius);padding:1.2rem 1.4rem;overflow-x:auto;
  font-family:"SF Mono",Menlo,Consolas,monospace;font-size:.86rem;line-height:1.6;
  box-shadow:0 10px 26px color-mix(in srgb, var(--shade) 28%, transparent);
}
.code .k{color:var(--blue)}
.code .v{color:var(--sand)}
.code .c{color:var(--text-faint);font-style:italic}
.codecap{font-size:.85rem;color:var(--text-faint);margin-top:.6rem;font-style:italic}

/* ----------------------------------------------------------------- foot */
.foot{padding:3rem 0 4rem;font-size:.92rem;color:var(--text-soft)}
.foot p{max-width:var(--measure);margin-bottom:1rem}
.foot .links{display:flex;gap:1.4rem;flex-wrap:wrap}
.foot a{color:var(--blue-ink);text-decoration-thickness:1px}

@media (max-width:760px){
  .fig{transform:none;flex-basis:100%}
  .note-label{font-size:.8rem;max-width:9rem}
  .hero{padding:3.5rem 0 2.5rem}
}
/* the annotations rely on the image being at its designed size; below this
   they crowd the picture more than they explain it */
@media (max-width:560px){ .notes{display:none} }
