/* extensionsunset.com
 *
 * One stylesheet, no framework, no webfont request.
 *
 * The look is warm editorial rather than product marketing: paper and ink, a
 * serif for anything a person wrote, and colour reserved for the one thing it
 * has to mean — an extension's status. What earns its keep beyond that is
 * structure: a hero that gives the page a beginning, a facts panel that stays
 * with you while you read, and the score drawn as an object rather than stated
 * as a number.
 *
 * The headline face is a system serif stack. It costs no request and still
 * gives every page a voice.
 */

/* ============================================================ tokens */

:root {
  /* Warm paper and ink. Pure #fff / #000 is what makes a page feel untouched. */
  --paper:      #fcfbf8;
  --raised:     #ffffff;
  --sunk:       #f4f1ea;
  --ink:        #17150f;
  --ink-soft:   #6a6355;
  --ink-faint:  #948c7c;
  --rule:       #e7e2d6;
  --rule-firm:  #d3ccbb;

  /* Dusk: the one brand colour. Links and the mark, nothing else. */
  --link:       #a1471a;
  --link-lit:   #c96130;
  --tint:       #f7efe6;

  /* Status. Each of these means exactly one thing, everywhere on the site. */
  --healthy: #2c6b46;
  --watch:   #86620f;
  --atrisk:  #a4501d;
  --sunset:  #99301d;
  --removed: #6b1d13;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 42rem;   /* comfortable reading column */
  --wide:    64rem;   /* page frame */

  --r-sm: 8px;
  --r:    14px;

  /* Shadows are warm and shallow: depth, not drama. */
  --lift:   0 1px 2px rgba(60, 45, 25, .05), 0 4px 12px rgba(60, 45, 25, .05);
  --lift-2: 0 2px 4px rgba(60, 45, 25, .06), 0 12px 28px rgba(60, 45, 25, .08);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #131210;
    --raised:     #1b1917;
    --sunk:       #211e1a;
    --ink:        #eeeae1;
    --ink-soft:   #a8a091;
    --ink-faint:  #857d6e;
    --rule:       #2e2a25;
    --rule-firm:  #423c34;

    --link:       #e59258;
    --link-lit:   #f4ad79;
    --tint:       #241d17;

    --healthy: #74c795;
    --watch:   #d8b65e;
    --atrisk:  #e79c66;
    --sunset:  #f08d75;
    --removed: #f2ab9c;

    --lift:   0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .3);
    --lift-2: 0 2px 6px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .4);
  }
}

/* ============================================================ base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 1.5rem; }
.column { max-width: var(--measure); }

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--link) 30%, transparent);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
a:hover { color: var(--link-lit); border-bottom-color: currentColor; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 30;
  background: var(--raised); padding: .7rem 1.1rem;
  border-radius: var(--r-sm); box-shadow: var(--lift-2);
}

img { max-width: 100%; }

/* ============================================================ masthead */

header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--rule);
}
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; padding-block: .85rem; }

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 1.0625rem/1 var(--serif);
  letter-spacing: -.012em; color: var(--ink); border: 0;
}
/* A setting sun: the mark the name already describes. */
.brand .mark {
  width: 1.05rem; height: 1.05rem; border-radius: 99px;
  background: linear-gradient(160deg, var(--link-lit), var(--sunset));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 12%, transparent);
  flex: 0 0 auto;
}
/* An element rather than a text node, so template whitespace cannot open a gap
   in the middle of the wordmark. */
.brand em { font-style: normal; color: var(--link); }

header.site nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .875rem; margin-left: auto; }
header.site nav a { color: var(--ink-soft); border: 0; }
header.site nav a:hover { color: var(--ink); }

/* ============================================================ page rhythm */

main { padding-block: 0 2rem; }
main > .wrap:first-child { padding-top: 2.5rem; }

h1 {
  font: 600 clamp(1.75rem, 1.15rem + 2.2vw, 2.6rem)/1.12 var(--serif);
  letter-spacing: -.022em; margin: 0 0 .45rem; text-wrap: balance;
}

h2 {
  font: 600 1.3rem/1.3 var(--serif);
  letter-spacing: -.012em;
  margin: 3rem 0 .85rem;
  display: flex; align-items: baseline; gap: .85rem;
}
h2::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, var(--rule), transparent);
}

h3 { font: 600 1.0625rem/1.35 var(--sans); margin: 1.9rem 0 .4rem; }

p { margin: 0 0 1rem; }
.byline { font-size: .875rem; color: var(--ink-faint); margin: 0; display: flex; flex-wrap: wrap; gap: .35rem .55rem; }

code { font: .875em/1 var(--mono); background: var(--sunk); padding: .18em .4em; border-radius: 4px; }

/* ============================================================ hero */

.hero {
  background: linear-gradient(180deg, var(--tint), var(--paper));
  border-bottom: 1px solid var(--rule);
  padding-block: 2.75rem 2.25rem;
  margin-bottom: 2.5rem;
}
.hero .wrap { display: grid; gap: 1.75rem 3rem; }

@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

.ident { display: flex; gap: 1.15rem; align-items: flex-start; margin-bottom: 1.15rem; }
.ident .shot {
  flex: 0 0 auto; width: 4.5rem; height: 4.5rem;
  border-radius: var(--r);
  background: var(--raised); padding: .4rem;
  box-shadow: var(--lift);
  object-fit: contain;
}
.ident .who { min-width: 0; }

.lede { font: 400 1.25rem/1.45 var(--serif); margin: 0 0 .7rem; text-wrap: pretty; max-width: 34rem; }
.lede strong { font-weight: 600; }
.hero .note { font-size: .9375rem; color: var(--ink-soft); margin: 0; max-width: 34rem; }

/* the score, drawn */

.gauge { display: flex; align-items: center; gap: 1.1rem; }
.gauge svg { width: 6.5rem; height: 6.5rem; flex: 0 0 auto; }
.gauge .track { fill: none; stroke: currentColor; opacity: .14; }
.gauge .arc   { fill: none; stroke: currentColor; stroke-linecap: round; }
.gauge .n { font: 600 1.6rem/1 var(--serif); fill: currentColor; letter-spacing: -.02em; }
.gauge .of { font: 500 .5625rem/1 var(--sans); fill: var(--ink-faint); letter-spacing: .08em; }
.gauge .cap { min-width: 0; }
.gauge .label { font: 600 1.0625rem/1.2 var(--sans); display: block; }
.gauge .sub { font-size: .8125rem; color: var(--ink-faint); display: block; margin-top: .2rem; }

.healthy { color: var(--healthy); }
.watch   { color: var(--watch); }
.atrisk  { color: var(--atrisk); }
.sunset  { color: var(--sunset); }
.removed { color: var(--removed); }

/* ============================================================ body layout */

.layout { display: grid; gap: 2.5rem 3rem; align-items: start; }

@media (min-width: 56rem) {
  .layout { grid-template-columns: minmax(0, 1fr) 17rem; }
  .layout > .side { position: sticky; top: 5.25rem; }
}

.side .card {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--lift);
  padding: 1.25rem 1.35rem;
}
.side .card + .card { margin-top: 1rem; }
.side h2 {
  font: 600 .6875rem/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 .95rem; display: block;
}
.side h2::after { display: none; }

.facts { margin: 0; display: grid; gap: .85rem; }
.facts div { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: baseline; }
.facts dt { font-size: .8125rem; color: var(--ink-faint); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }

/* ============================================================ reasons */

ul.reasons { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
ul.reasons li {
  position: relative;
  padding: .8rem 1.1rem .8rem 2.5rem;
  background: var(--sunk);
  border-radius: var(--r-sm);
  font-size: .9688rem;
}
ul.reasons li::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.4rem;
  width: 6px; height: 6px; border-radius: 99px; background: currentColor; opacity: .5;
}

/* ============================================================ tables */

.scroll { overflow-x: auto; margin: 0 0 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th {
  font: 600 .6875rem/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom-color: var(--rule-firm); white-space: nowrap;
  padding-bottom: .5rem;
}
tbody tr { transition: background .12s var(--ease); }
tbody tr:hover { background: var(--sunk); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; padding: .7rem 0 .7rem 1.1rem; font-variant-numeric: tabular-nums; }
.perm-name { font: .875em/1.4 var(--mono); }
.weight { color: var(--ink-faint); }

.row-ext { display: flex; gap: .7rem; align-items: center; }
.row-ext img { width: 1.75rem; height: 1.75rem; border-radius: 6px; flex: 0 0 auto; background: var(--sunk); object-fit: contain; }
td .why { display: block; color: var(--ink-faint); font-size: .8125rem; }

/* ============================================================ listings */

ul.card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
ul.card-list li {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .95rem 1.1rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  transition: box-shadow .15s var(--ease), border-color .15s var(--ease);
}
ul.card-list li:hover { box-shadow: var(--lift); border-color: var(--rule-firm); }
ul.card-list img { flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: 7px; background: var(--sunk); object-fit: contain; }
ul.card-list li > span { display: block; min-width: 0; }
ul.card-list .why { display: block; color: var(--ink-soft); font-size: .875rem; margin-top: .15rem; }

/* ============================================================ screenshots */

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 25rem);
  gap: 1rem; overflow-x: auto; padding: .25rem .25rem 1rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.shots img {
  width: 100%; height: auto;
  border-radius: var(--r);
  box-shadow: var(--lift);
  background: var(--sunk);
  scroll-snap-align: start;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.shots img:hover { box-shadow: var(--lift-2); transform: translateY(-2px); }

/* ============================================================ timeline */

ul.timeline { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.timeline li {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid var(--rule);
}
ul.timeline li:last-child { border-bottom: 0; }
ul.timeline time { color: var(--ink-faint); font-size: .875rem; font-variant-numeric: tabular-nums; }

/* ============================================================ figures */

.figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1rem; margin: 2.25rem 0 1rem; color: var(--ink);
}
.figures div {
  min-width: 0; padding: 1.15rem 1.25rem;
  background: var(--raised); border: 1px solid var(--rule);
  border-radius: var(--r); box-shadow: var(--lift);
}
.figures dd {
  margin: 0 0 .25rem; font: 600 2.1rem/1 var(--serif);
  letter-spacing: -.028em; font-variant-numeric: tabular-nums; color: currentColor;
}
.figures dt { font-size: .875rem; line-height: 1.35; color: var(--ink-soft); }

/* ============================================================ charts, notes */

figure.chart { margin: 0 0 1rem; color: var(--link); }
figure.chart svg { width: 100%; height: auto; display: block; }
figcaption { color: var(--ink-faint); font-size: .875rem; margin-top: .6rem; }

.note { color: var(--ink-soft); font-size: .9375rem; }
.nothing {
  color: var(--ink-faint); font-style: italic;
  padding: 1rem 1.15rem; background: var(--sunk); border-radius: var(--r-sm);
}

.footnote {
  margin-top: 3.5rem; padding: 1.35rem 1.5rem;
  background: var(--sunk); border-radius: var(--r);
  color: var(--ink-faint); font-size: .875rem;
}
.footnote p { margin-bottom: .5rem; }
.footnote p:last-child { margin-bottom: 0; }

/* ============================================================ forms */

form label { display: block; font: 600 .75rem/1.4 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .5rem; }
input[type="text"] {
  width: 100%; max-width: 34rem; padding: .8rem 1rem;
  font: inherit; color: var(--ink);
  background: var(--raised); border: 1px solid var(--rule-firm);
  border-radius: var(--r-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input[type="text"]:focus {
  border-color: var(--link); outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 15%, transparent);
}
button {
  font: 600 .9688rem/1 var(--sans); padding: .8rem 1.6rem;
  color: var(--paper); background: var(--ink);
  border: 0; border-radius: var(--r-sm); cursor: pointer;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
button:hover { background: var(--link); }
button:active { transform: translateY(1px); }

/* ============================================================ footer */

footer.site { margin-top: 5rem; border-top: 1px solid var(--rule); background: var(--sunk); }
footer.site .wrap { padding-block: 2rem 3rem; color: var(--ink-soft); font-size: .875rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0; }
footer.site .how { margin: 0; }
footer.site .small { font-size: .8125rem; color: var(--ink-faint); margin: 0; }

/* ============================================================ narrow */

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 1.15rem; }
  .hero { padding-block: 2rem 1.75rem; margin-bottom: 2rem; }
  .ident .shot { width: 3.25rem; height: 3.25rem; border-radius: 11px; }
  .lede { font-size: 1.125rem; }
  .gauge svg { width: 5.25rem; height: 5.25rem; }
  ul.timeline li { grid-template-columns: 1fr; gap: .15rem; }
  h2 { margin-top: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  header.site, footer.site nav, .ad { display: none; }
  body { background: #fff; color: #000; }
  .hero { background: none; }
  a { border: 0; }
  .side .card, ul.card-list li, .figures div, .shots img { box-shadow: none; }
}

/* ---------- hub intro ---------- */

/* The status colour marks the page with a rule rather than tinting the prose:
   putting the tone class on a wrapper made every paragraph inherit it. */
.hub-intro { display: grid; grid-template-columns: 3px 1fr; gap: 1.35rem; margin: 0 0 .5rem; }
.hub-intro .rule { background: currentColor; border-radius: 99px; opacity: .8; }
.hub-intro .lede { margin-bottom: .8rem; }
.hub-intro > div { min-width: 0; }

/* ---------- advertising ---------- */

/* Height is reserved rather than left to the unit. Every image on the site
   carries width and height so nothing moves after paint; an ad that arrives
   late and shoves the article down would undo that, and it lands later than
   any image. min-height, not height: a taller unit may be taller.

   The block is separated from the article by rules and its own ground, and it
   is labelled. On a site whose subject is what to trust, an ad that could be
   mistaken for a recommendation is the one thing worth over-engineering. */
.ad {
  display: block;
  margin: 2.25rem 0;
  padding: .75rem 0 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--sunk);
  border-radius: var(--r-sm);
  text-align: center;
  min-height: 260px;
}

/* No overflow:hidden here. It was the first attempt at keeping a wide unit from
   scrolling the page, and it would clip paid inventory the moment a unit came
   back taller or wider than the box — a Multiplex grid does exactly that. The
   width is held by max-width on the unit instead, which responsive units respect
   and which cannot cut anything off. */
.ad .adsbygoogle { max-width: 100%; }

/* Reserved height per position, matched to the unit that belongs there. */
.ad--article_top    { min-height: 260px; }   /* in-article: about a paragraph block */
.ad--listing        { min-height: 260px; }   /* responsive display, between prose and table */
.ad--article_bottom { min-height: 600px; }   /* Multiplex: a grid, roughly twice as tall */
.ad .adsbygoogle { min-height: 250px; }

/* The sticky facts panel must never be pushed out of view by a unit beside it. */
.side .ad { margin: 1.5rem 0 0; }

@media (max-width: 40rem) {
  .ad { margin: 1.75rem 0; }
  .ad--article_top, .ad--listing { min-height: 250px; }
  /* One column on a phone, so the grid is taller rather than wider. */
  .ad--article_bottom { min-height: 700px; }
}
