@import url("https://fonts.googleapis.com/css2?family=Forum&family=Questrial&family=Rubik:wght@300;400;500;600;700&display=swap");

/* ==========================================================================
   Panelwise — design system
   Palette, typefaces and shapes taken from the reference blog the client
   supplied (blog.html): cream masthead, off-white reading ground, slate-blue
   pill buttons, tan hairlines, an inscriptional serif for display and a
   geometric sans for body copy. Circular imagery is the signature shape.
   Every value below was read out of the reference, not invented.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Surfaces */
  --cream:      #EBE3D5;  /* masthead, alternating bands */
  --cream-2:    #F2EBE4;  /* softer cream, cards on cream */
  --paper:      #F9F7F4;  /* page ground */
  --white:      #FFFFFF;  /* cards, table bodies */
  --slate-deep: #3D4957;  /* dark band, footer */
  --slate-mid:  #4B596A;  /* raised surface on dark */

  /* Ink */
  --ink:         #242424;
  --body:        #4C515D;
  --muted:       #767676;
  --ink-on-dark: #F4F1EC;
  --muted-on-dark: #B9C2CD;

  /* Accent — the slate blue the reference uses for every button */
  --slate:      #60748A;
  --slate-soft: #7E90A4;
  --slate-wash: #EDF0F3;

  /* Secondary accent — the tan hairline under every article lede */
  --tan:        #C3A07D;
  --tan-wash:   #F4EDE4;

  /* Lines */
  --line:       #B8B2A7;
  --line-soft:  #DED8CD;
  --line-dark:  #55637A;

  /* Type */
  --display: "Forum", "Times New Roman", Times, serif;
  --text:    "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --util:    "Questrial", "Rubik", system-ui, sans-serif;
  --mono:    "Rubik", system-ui, sans-serif;

  /* Fluid type scale. Forum runs small for its point size, so display
     steps are set a notch larger than a sans would need. */
  --t--1: 0.8125rem;
  --t-0:  1.0625rem;
  --t-1:  1.1875rem;
  --t-2:  clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-3:  clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --t-4:  clamp(2.625rem, 1.6rem + 4.6vw, 4.5rem);

  /* Space */
  --gap:   1.25rem;
  --band:  clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* Geometry — the reference uses a 3px radius on panels and a full pill
     on buttons and imagery. Nothing in between. */
  --r:     3px;
  --pill:  10000px;

  --measure: 68ch;
  --container: 1140px;
}

/* --------------------------------------------------------------- reset --- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: var(--t-0);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

/* Page- and section-level headings are the serif. Headings inside prose are
   the sans — that split is exactly how the reference sets its articles. */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin: 0;
  font-weight: 400;
}

h1 { font-size: var(--t-4); }
h2 { font-size: var(--t-3); }
h3 { font-size: var(--t-2); }
h4 { font-size: var(--t-1); }

p { margin: 0 0 1.15em; }

a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--slate-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Figures line up in columns — this site is mostly numbers. */
.num, time, td, th, .stat-value, .meta, .keyfig__v {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ----------------------------------------------------------- structure --- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.125rem, 0.5rem + 2.5vw, 2.5rem);
}

.band { padding-block: var(--band); }
.band--paper { background: var(--paper); }
.band--alt   { background: var(--cream); }
.band--cell  { background: var(--slate-deep); color: var(--ink-on-dark); }

.band--cell h2, .band--cell h3 { color: var(--ink-on-dark); }
.band--cell a { color: #D7E0EA; }
.band--cell a:hover { color: var(--white); }

.skip {
  position: absolute; left: -9999px;
  background: var(--slate-deep); color: var(--ink-on-dark);
  padding: 0.75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Eyebrow labels carry a category or a unit, never decoration. */
.eyebrow {
  font-family: var(--util);
  font-size: var(--t--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.125rem;
  display: block;
}
.band--cell .eyebrow { color: #A9BACB; }

.lede {
  font-size: var(--t-1);
  font-weight: 300;
  max-width: 60ch;
  color: var(--body);
  line-height: 1.7;
}
.band--cell .lede { color: var(--ink-on-dark); opacity: 0.9; }

/* -------------------------------------------------------------- header --- */

/* The cream masthead is the first thing the reference does, so it is the
   first thing this does too. */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(195, 160, 125, 0.35);
}

.site-head__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap);
  min-height: 84px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  line-height: 1;
}
.brand__unit {
  font-family: var(--util);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  color: var(--slate);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: clamp(0.875rem, 2vw, 2.25rem); }
.nav a {
  font-family: var(--util);
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--body);
  text-decoration: none;
  padding-block: 0.375rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--tan); }
/* Matches aria-current="page" and aria-current="true" (an ancestor section,
   e.g. Guides while reading an article inside it). */
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--slate); }

/* The nav's last child is a pill, like the reference's Subscribe button. */
.nav .nav__cta {
  background: var(--slate);
  color: var(--white);
  border: 1px solid var(--slate);
  border-radius: var(--pill);
  padding: 0.6875rem 1.625rem;
  line-height: 1;
}
.nav .nav__cta:hover { background: var(--slate-deep); border-color: var(--slate-deep); color: var(--white); }
.nav a.nav__cta[aria-current] { color: var(--white); border-bottom-color: var(--slate); }

/* ---------------------------------------------------------------- hero --- */

/* Cream ground, serif headline, pill call to action — the reference's hero,
   rebuilt around a solar generation curve instead of a portrait. */
.hero {
  background: var(--cream);
  color: var(--body);
  padding-block: clamp(3rem, 1.5rem + 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
/* The arch. The reference sets a large quarter-circle behind its imagery;
   here it is an oversized sun disc rising behind the curve. */
.hero::before {
  content: "";
  position: absolute;
  right: -14vw; top: -18vw;
  width: 46vw; height: 46vw;
  min-width: 320px; min-height: 320px;
  border-radius: 50%;
  background: var(--cream-2);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--ink); max-width: 24ch; }
.hero__lede {
  max-width: 54ch; margin-top: 1.5rem;
  font-size: var(--t-1); font-weight: 300;
  color: var(--body); line-height: 1.7;
}

/* Hero call to action — the button the reference puts under its headline. */
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 0.875rem;
  margin: 2.25rem 0 0;
}

/* Signature element: the daily generation curve. The shape of a day's
   harvest is the most characteristic artifact in this subject's world. */
.curve {
  margin-top: clamp(2.5rem, 1rem + 5vw, 4rem);
  padding: 2rem clamp(1.5rem, 0.75rem + 2.5vw, 2.5rem) 1.75rem;
  border: 1px solid rgba(195, 160, 125, 0.5);
  border-radius: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  background: var(--white);
}
.curve figcaption {
  font-family: var(--util); font-size: var(--t--1);
  color: var(--muted); margin-top: 1.125rem;
  padding-left: 0.875rem; border-left: 2px solid var(--tan);
  line-height: 1.6;
}
.curve svg { width: 100%; height: auto; display: block; overflow: visible; }
.curve__path { stroke: var(--slate); stroke-width: 2.5; fill: none; }
.curve__area { fill: url(#curveFill); }
.curve__grid { stroke: var(--line); stroke-width: 1; }
.curve__tick {
  font-family: var(--util); font-size: 11px;
  fill: var(--muted); letter-spacing: 0.08em;
}
.curve__peak { fill: var(--tan); }
.curve__peak-label { font-family: var(--util); font-size: 11px; fill: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .curve__path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  }
  .curve__area { opacity: 0; animation: fade 1.2s ease 1.1s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* Stat strip under the curve */
.stats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: rgba(195, 160, 125, 0.45);
  border: 1px solid rgba(195, 160, 125, 0.45);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 2rem;
}
.stat { background: var(--white); padding: 1.25rem 1.375rem; }
.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 1.875rem;
  color: var(--ink);
  line-height: 1.1;
}
.stat-value sup { font-size: 0.5em; color: var(--slate); }
.stat-label {
  display: block; margin-top: 0.375rem;
  font-family: var(--util); font-size: var(--t--1);
  color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* -------------------------------------------------------- guide index --- */

/* Rows rather than a card grid: it keeps the dates and read-times aligned
   in a column, and it scales to thirty guides without becoming a wall of
   thumbnails. Each row carries its own Read-more pill, like the reference. */
.rows { border-top: 1px solid var(--line-soft); margin-top: 2.5rem; }

.row {
  display: grid;
  grid-template-columns: 7rem 1fr auto auto;
  gap: 0.75rem var(--gap);
  align-items: center;
  padding-block: 1.625rem;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  position: relative;
}
.row:hover { background: var(--white); }
.row:hover .row__title { color: var(--slate); }

/* The Read-more pill. Generated rather than marked up, because the whole
   row is already the link — this is the affordance, not a second target. */
.row::after {
  content: "Read more \2192";
  font-family: var(--util); font-size: 0.875rem;
  color: var(--slate);
  border: 1px solid var(--slate);
  border-radius: var(--pill);
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
  line-height: 1;
}
.row:hover::after { background: var(--slate); color: var(--white); }

/* Planned guides are not links — a link to nothing is worse than no link.
   They stay in the index so readers can see the shape of the series. */
.row--planned { cursor: default; }
.row--planned:hover { background: transparent; }
.row--planned:hover .row__title { color: inherit; }
.row--planned .row__title { color: var(--muted); }
.row--planned .row__cat { color: var(--muted); opacity: 0.75; }
.row--planned::after { content: none; border: 0; padding: 0; }

.row__cat {
  font-family: var(--util); font-size: var(--t--1);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--slate);
  align-self: start;
}
.row__title {
  font-family: var(--display); font-weight: 400;
  font-size: var(--t-2); line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.row__desc {
  margin: 0.5rem 0 0; font-size: 0.9375rem; font-weight: 300;
  color: var(--muted); max-width: 62ch; line-height: 1.65;
}
.row__meta {
  font-family: var(--util); font-size: var(--t--1);
  color: var(--muted); white-space: nowrap;
  align-self: start;
}

@media (max-width: 899px) {
  .row { grid-template-columns: 1fr auto; align-items: start; }
  .row > div { grid-column: 1 / -1; order: 2; }
  .row__cat { order: 1; }
  .row__meta { order: 1; justify-self: end; }
  .row::after { order: 3; justify-self: start; margin-top: 0.5rem; }
}

/* --------------------------------------------------------- entry cards --- */

/* Large circular artwork over centred text, then a pill. This is the
   reference's post card, one for one. */
.cards {
  display: grid; gap: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 3rem;
}
.card {
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.card__range {
  font-family: var(--util); font-size: var(--t--1);
  color: var(--slate); letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card h3 {
  margin: 0.75rem 0 0.625rem;
  font-size: var(--t-2); line-height: 1.25;
}
.card:hover h3 { color: var(--slate); }
.card p {
  margin: 0; font-size: 0.9375rem; font-weight: 300;
  color: var(--muted); line-height: 1.7;
}
/* Card pill, matching the row pill so the two indexes feel like one site. */
.card__go {
  margin-top: 1.375rem;
  font-family: var(--util); font-size: 0.875rem;
  color: var(--slate);
  border: 1px solid var(--slate);
  border-radius: var(--pill);
  padding: 0.5rem 1.375rem;
  line-height: 1;
}
.card:hover .card__go { background: var(--slate); color: var(--white); }

/* ---------------------------------------------------- circular artwork --- */

/* The signature shape. A square viewBox drawn inside a circular mask, so
   the motif sits centred without clipping. Drop a real photograph in as an
   <img> child and it will be cropped to the same circle. */
.card__art {
  display: grid; place-items: center;
  width: 100%; max-width: 220px; aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  border-radius: var(--pill);
  background: var(--cream-2);
  overflow: hidden;
}
.card__art svg,
.card__art img { width: 100%; height: 100%; display: block; }
.card__art img { object-fit: cover; }
.card:hover .card__art { background: var(--tan-wash); }

/* Reusable image frames for real photographs, once you have them. */
.photo { margin: 2.5rem 0; }
.photo img { width: 100%; border-radius: var(--r); }
.photo--circle img { border-radius: var(--pill); aspect-ratio: 1; object-fit: cover; }
.photo figcaption {
  font-family: var(--util); font-size: var(--t--1);
  color: var(--muted); margin-top: 0.875rem;
  padding-left: 0.875rem; border-left: 2px solid var(--tan);
}

/* -------------------------------------------------------- spec tables --- */

/* Comparison tables are the point of this site, so they are a first-class
   component rather than an afterthought. */
.table-scroll { overflow-x: auto; margin: 2.25rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.band--cell table { background: var(--slate-mid); border-color: var(--line-dark); }

caption {
  font-family: var(--util); font-size: var(--t--1);
  text-align: left; color: var(--muted);
  padding-bottom: 0.75rem; letter-spacing: 0.06em;
}
.band--cell caption { color: var(--muted-on-dark); }

th, td {
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  font-weight: 300;
}
.band--cell th, .band--cell td { border-bottom-color: var(--line-dark); }

thead th {
  font-family: var(--util); font-weight: 400;
  font-size: var(--t--1); letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border-bottom: 1px solid var(--tan);
  white-space: nowrap;
}
.band--cell thead th {
  color: var(--ink-on-dark); background: var(--slate-deep);
  border-bottom-color: var(--tan);
}

tbody th { font-weight: 500; color: var(--ink); }
.band--cell tbody th { color: var(--ink-on-dark); }
.band--cell td { color: var(--ink-on-dark); opacity: 0.92; }

tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--slate-wash); }
.band--cell tbody tr:hover { background: var(--slate-deep); }

/* ------------------------------------------------------------- article --- */

/* The reference centres the article head over a full-width image, then drops
   a tan hairline before the body. Same structure here. */
.article { padding-block: var(--band); }
.article__head { max-width: 46rem; margin-inline: auto; text-align: center; }
.article__head h1 { max-width: 30ch; margin-inline: auto; }
.article__head .eyebrow { text-align: center; }
.article__head .lede { max-width: 54ch; margin-inline: auto; }

.byline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tan);
  font-family: var(--util); font-size: var(--t--1);
  color: var(--muted);
}
.byline a { color: var(--ink); }
.byline__sep { color: var(--tan); }

.prose { max-width: var(--measure); margin: 3rem auto 0; }
.prose > * + * { margin-top: 1.15em; }

/* Inside prose the headings switch to the sans, set bold. The serif carries
   the page; the sans carries the argument. */
.prose h2, .prose h3, .prose h4 {
  font-family: var(--text);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.prose h2 { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem); margin-top: 2.5em; margin-bottom: 0.6em; }
.prose h3 { font-size: 1.1875rem; margin-top: 2em; margin-bottom: 0.5em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.45em; }
.prose .table-scroll { max-width: none; }
.prose strong { font-weight: 500; color: var(--ink); }

.prose figure { margin: 2.5em 0; }
.prose figcaption {
  font-family: var(--util); font-size: var(--t--1);
  color: var(--muted); margin-top: 0.875rem;
  padding-left: 0.875rem; border-left: 2px solid var(--tan);
  line-height: 1.6;
}

blockquote {
  margin: 2.25em 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 2px solid var(--tan);
  font-family: var(--display);
  font-size: var(--t-2);
  line-height: 1.4;
  color: var(--ink);
}

/* Callout for the numbers-you-can-act-on moments */
.figure-note {
  background: var(--tan-wash);
  border: 1px solid rgba(195, 160, 125, 0.55);
  border-radius: var(--r);
  padding: 1.375rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.figure-note strong { color: var(--ink); font-weight: 500; }

/* Table of contents */
.toc {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 1.625rem 1.875rem;
  margin: 3rem auto 0;
  max-width: var(--measure);
}
.toc h2 {
  font-size: var(--t--1) !important;
  font-family: var(--util); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--slate); margin: 0 0 1rem !important;
}
.toc ol { margin: 0; padding-left: 1.25rem; font-size: 0.9375rem; }
.toc li + li { margin-top: 0.4375rem; }

/* Sources block — provenance is a trust signal, so it stays visible */
.sources {
  max-width: var(--measure);
  margin: 4rem auto 0; padding-top: 1.875rem;
  border-top: 1px solid var(--tan);
}
.sources h2 { font-size: var(--t-2); }
.sources ol { font-size: 0.9375rem; color: var(--muted); padding-left: 1.35em; margin-top: 1rem; }
.sources li + li { margin-top: 0.5em; }

/* ------------------------------------------------------- hero diagrams --- */

/* Each guide opens with a diagram drawn in the same visual language as the
   home-page generation curve: slate strokes, tan hairlines, sans labels.
   These are content, not decoration — every one encodes something the
   article then explains. */
.hero-fig {
  max-width: 46rem;
  margin: 3rem auto 0;
  background: var(--white);
  border: 1px solid rgba(195, 160, 125, 0.5);
  border-radius: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  padding: 2rem clamp(1.5rem, 0.75rem + 2.5vw, 2.5rem) 1.75rem;
}
.hero-fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-fig figcaption {
  font-family: var(--util); font-size: var(--t--1);
  color: var(--muted); margin-top: 1.125rem;
  padding-left: 0.875rem; border-left: 2px solid var(--tan);
  line-height: 1.6;
}

/* Shared diagram primitives */
.dg-line   { stroke: var(--line); stroke-width: 1.5; fill: none; }
.dg-axis   { stroke: var(--slate-deep); stroke-width: 1.5; fill: none; }
.dg-accent { stroke: var(--slate); stroke-width: 2.5; fill: none; }
.dg-accent-2 { stroke: var(--tan); stroke-width: 2.5; fill: none; }
.dg-fill   { fill: var(--slate-wash); }
.dg-fill-accent { fill: var(--slate); }
.dg-fill-cell { fill: var(--slate-deep); }
.dg-label  {
  font-family: var(--util); font-size: 12px;
  fill: var(--muted); letter-spacing: 0.04em;
}
.dg-label--ink { fill: var(--ink); }
.dg-label--accent { fill: var(--slate); }
.dg-title {
  font-family: var(--display); font-weight: 400;
  font-size: 16px; fill: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-fig .dg-draw {
    stroke-dasharray: 1400; stroke-dashoffset: 1400;
    animation: draw 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
  }
}

/* --------------------------------------------------------- key figures --- */

.keyfigs {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  margin: 2.25rem auto;
  max-width: var(--measure);
}
.keyfig { background: var(--white); padding: 1.25rem 1.375rem; }
.keyfig__v {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem; color: var(--ink);
  line-height: 1.1;
}
.keyfig__l {
  display: block; margin-top: 0.375rem;
  font-family: var(--util); font-size: var(--t--1);
  color: var(--muted); letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- ad slots --- */

/* Space is reserved with explicit min-height so inserting an ad unit later
   causes no layout shift. Empty until you paste your own code in. */
.ad-slot {
  max-width: var(--measure);
  margin: 3rem auto;
  min-height: 280px;
  display: grid; place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  font-family: var(--util); font-size: var(--t--1);
  color: var(--muted);
  text-align: center; padding: 1rem;
}

/* ---------------------------------------------------------- buttons --- */

/* One shape for every action on the site: the reference's pill. */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--util); font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.875rem 2rem;
  border-radius: var(--pill);
  border: 1px solid var(--slate);
  background: var(--slate); color: var(--white);
  text-decoration: none; cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--slate-deep); border-color: var(--slate-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: var(--white); border-color: var(--slate); }
.band--cell .btn { background: var(--white); border-color: var(--white); color: var(--slate-deep); }
.band--cell .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--slate-deep); }
.band--cell .btn--ghost { background: transparent; color: var(--white); }
.band--cell .btn--ghost:hover { background: var(--white); color: var(--slate-deep); }

/* ------------------------------------------------------------- forms --- */

.field { margin-bottom: 1.375rem; max-width: 32rem; }
.field label {
  display: block; margin-bottom: 0.5rem;
  font-family: var(--util); font-size: 0.9375rem;
  color: var(--ink);
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--text); font-size: var(--t-0); font-weight: 300;
  color: var(--body);
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.field input:focus, .field textarea:focus {
  border-color: var(--slate); outline: 2px solid var(--slate); outline-offset: 1px;
}
.field__hint { font-family: var(--util); font-size: var(--t--1); color: var(--muted); margin-top: 0.4375rem; }
.hp { position: absolute; left: -9999px; }

/* -------------------------------------------------------------- misc --- */

.prose-page { padding-block: var(--band); }
.prose-page .prose { margin-top: 2rem; }
.prose-page h1 { max-width: 32ch; }

.updated {
  font-family: var(--util); font-size: var(--t--1);
  color: var(--muted); margin-top: 1rem;
}

.meta { font-family: var(--util); }

.two-col {
  display: grid; gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .two-col { grid-template-columns: 1.6fr 1fr; } }

.aside-box {
  background: var(--cream-2);
  border: 1px solid rgba(195, 160, 125, 0.4);
  border-radius: var(--r);
  padding: 1.875rem;
}
.aside-box h2 { font-size: var(--t-2); margin-bottom: 1rem; }
.aside-box ul { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.aside-box li { padding-block: 0.6875rem; border-bottom: 1px solid rgba(195, 160, 125, 0.4); }
.aside-box li:last-child { border-bottom: 0; }
.aside-box a { color: var(--ink); text-decoration: none; }
.aside-box a:hover { color: var(--slate); text-decoration: underline; }

/* Centre the article's trailing blocks with the prose column. */
.article .aside-box,
.article .ad-slot,
.article .figure-note,
.article .table-scroll { margin-inline: auto; }
.article .aside-box { max-width: var(--measure); margin-top: 3rem; }

/* ------------------------------------------------------------ footer --- */

.site-foot {
  background: var(--slate-deep); color: var(--muted-on-dark);
  padding-block: clamp(3rem, 1.5rem + 3vw, 4.5rem);
  font-size: 0.9375rem;
  font-weight: 300;
}
.site-foot__grid {
  display: grid; gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.site-foot h2 {
  font-family: var(--util); font-size: var(--t--1); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: #A9BACB; margin-bottom: 1rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.5625rem; }
.site-foot a { color: var(--ink-on-dark); text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }

.site-foot__base {
  margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-family: var(--util); font-size: var(--t--1);
}
.site-foot__disclaimer { max-width: 62ch; margin-top: 1.25rem; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
