/*
Theme Name: AudioGearz
Description: The AudioGearz theme. Dark by default with a light mode, a banner at the top of every page, and a sidebar on articles, lists and tools.
Author: AudioGearz
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: audiogearz
*/

/* ---------- Typefaces ----------
   Archivo, Figtree and IBM Plex Mono, served from this theme. All three are
   published under the SIL Open Font License 1.1. The site's name is not set
   in a typeface: it is the original logo, drawn as shapes (inc/logo.php). */
@font-face{font-family:'Archivo';font-style:normal;font-weight:400 900;font-stretch:62% 125%;font-display:swap;src:url(assets/fonts/archivo-400-900-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Archivo';font-style:normal;font-weight:400 900;font-stretch:62% 125%;font-display:swap;src:url(assets/fonts/archivo-400-900-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Figtree';font-style:normal;font-weight:400 700;font-display:swap;src:url(assets/fonts/figtree-400-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Figtree';font-style:normal;font-weight:400 700;font-display:swap;src:url(assets/fonts/figtree-400-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/ibm-plex-mono-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ---------- Colours and type ----------
   Dark is the default. Light mode swaps the values below; the banner stays
   dark in both, and the header bar turns white in light mode. */
:root {
  --bg: #0E0F12;
  --ink: #F2F0EA;
  --text: #C7CAD1;
  --muted: #B9BCC4;
  --card: #17191E;
  --card-line: #2E323A;
  --line: #3A3F48;
  --soft: #1F2228;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --label: #FF9A62;
  --label-alt: #4FD1C5;
  --nav-bg: transparent;
  --bar-bg: #0E0F12;
  --nav-ink: #FFFFFF;
  --nav-line: transparent;
  --nav-hover: rgba(255, 255, 255, 0.12);
  --tile: linear-gradient(155deg, #F7F6F2 0%, #DCDDE2 100%);
  --accent: #FF6A1A;
  --accent-hover: #FF8442;
  --accent-ink: #0E0F12;
  --teal: #4FD1C5;
  --focus: #4FD1C5;
  --night: #0E0F12;
  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F2F3F5;
  --ink: #14161A;
  --text: #3A3E46;
  --muted: #555A63;
  --card: #FFFFFF;
  --card-line: #E0E3E8;
  --line: #CBD0D7;
  --soft: #E7EAEF;
  --shadow: 0 18px 40px rgba(20, 22, 26, 0.16);
  --tile: #FFFFFF;
  --label: #B8430A;
  --label-alt: #0B6B63;
  --nav-bg: #FFFFFF;
  --bar-bg: #FFFFFF;
  --nav-ink: #14161A;
  --nav-line: #E0E3E8;
  --nav-hover: rgba(20, 22, 26, 0.07);
  --focus: #0B6B63;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.banner a:focus-visible, .banner button:focus-visible { outline-color: #4FD1C5; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }
/* Content from the old page builder can be wider than the screen; it is cut off, not scrolled. */
main { position: relative; z-index: 1; overflow-x: clip; }
.wrap { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.label {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--label);
}
.label--alt { color: var(--label-alt); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }
.btn--block { display: flex; min-height: 48px; }

/* ---------- Banner and header ---------- */
.banner {
  position: relative; display: flex; flex-direction: column;
  background: var(--night); color: #FFFFFF; font-size: 17px; line-height: 1.5;
}
.banner__media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.banner--plain {
  background:
    radial-gradient(70% 130% at 88% 0%, rgba(255, 106, 26, 0.20), rgba(255, 106, 26, 0) 62%),
    radial-gradient(55% 110% at 100% 100%, rgba(79, 209, 197, 0.13), rgba(79, 209, 197, 0) 60%),
    var(--night);
}
.banner--photo { min-height: 470px; }
/* On a phone an article's banner takes about a third of the first screen, so the article starts there too; a
   long title still makes it as tall as it needs. The homepage keeps its tall banner. */
@media (max-width: 600px) {
  .banner--photo:not(.banner--home) { min-height: 300px; }
  .banner--photo:not(.banner--home) .banner__body { padding-top: 20px; padding-bottom: 28px; }
}
.banner__photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.banner__scrim {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.86) 0%, rgba(14, 15, 18, 0) 24%, rgba(14, 15, 18, 0) 50%, #0E0F12 100%),
    linear-gradient(90deg, rgba(14, 15, 18, 0.96) 0%, rgba(14, 15, 18, 0.93) 38%, rgba(14, 15, 18, 0.68) 56%, rgba(14, 15, 18, 0.14) 80%, rgba(14, 15, 18, 0) 100%);
}
:root[data-theme="light"] .banner__scrim {
  background: linear-gradient(90deg, rgba(14, 15, 18, 0.96) 0%, rgba(14, 15, 18, 0.93) 38%, rgba(14, 15, 18, 0.68) 56%, rgba(14, 15, 18, 0.14) 80%, rgba(14, 15, 18, 0) 100%);
}
.site-header-bar { position: relative; z-index: 20; background: var(--nav-bg); border-bottom: 1px solid var(--nav-line); }
/* On pages without a photo banner the header is a bar of its own. */
.site-header-bar--solid { background: var(--bar-bg); border-bottom-color: var(--card-line); }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; min-height: 44px; color: var(--nav-ink); }
.logo { display: block; width: auto; height: 32px; }
.logo__gear { transform-box: fill-box; transform-origin: center; }
.site-header__right { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.site-nav ul, .site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--nav-ink); font-weight: 600; text-decoration: none;
}
.site-nav a:hover, .theme-toggle:hover { background: var(--nav-hover); }
.site-nav a[aria-current], .site-nav .current-menu-item > a { text-decoration: underline; text-underline-offset: 5px; }
/* The light/dark switch is a round icon button; its words are there for screen readers and as a tooltip. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; border-radius: 999px;
  border: 1.5px solid var(--nav-ink); background: transparent; color: var(--nav-ink); font-weight: 600;
}
.theme-toggle [data-theme-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.theme-toggle span { display: inline-flex; align-items: center; }
.theme-toggle__to-dark { display: none !important; }
:root[data-theme="light"] .theme-toggle__to-dark { display: inline-flex !important; }
:root[data-theme="light"] .theme-toggle__to-light { display: none; }
.banner__body { position: relative; flex: 1; display: flex; align-items: flex-end; padding-top: 40px; padding-bottom: 48px; }
.banner__text { max-width: 860px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* Over a photo the title stays on the dark left side. */
.banner--photo .banner__text { max-width: 640px; }
.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #D9D7D1;
}
.kicker a { display: inline-flex; align-items: center; min-height: 44px; color: #FF9A62; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker__label { color: #FF9A62; }
.banner h1 {
  margin: 0; color: #FFFFFF; font-family: var(--font-display); font-stretch: 118%; font-weight: 800;
  font-size: clamp(34px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.banner--long-title h1 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.06; }
/* A single word wider than the screen breaks rather than pushing the page sideways. */
.banner h1, .page-head h1 { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.banner__note { margin: 0; max-width: 640px; color: #D9D7D1; font-size: 19px; }

/* ---------- The menu on phones ----------
   Hidden on wide screens, where the links sit in the header. */
.menu { display: none; }
.menu > summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.theme-toggle { -webkit-tap-highlight-color: transparent; }
.menu > summary::-webkit-details-marker { display: none; }

/* ---------- Homepage ---------- */
.banner--home { min-height: 740px; }
.banner--home .banner__photo { object-position: center 40%; }
.banner--home .banner__scrim {
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.86) 0%, rgba(14, 15, 18, 0) 18%, rgba(14, 15, 18, 0) 58%, #0E0F12 100%),
    linear-gradient(90deg, rgba(14, 15, 18, 0.96) 0%, rgba(14, 15, 18, 0.93) 38%, rgba(14, 15, 18, 0.68) 56%, rgba(14, 15, 18, 0.14) 80%, rgba(14, 15, 18, 0) 100%);
}
:root[data-theme="light"] .banner--home .banner__scrim {
  background: linear-gradient(90deg, rgba(14, 15, 18, 0.96) 0%, rgba(14, 15, 18, 0.93) 38%, rgba(14, 15, 18, 0.68) 56%, rgba(14, 15, 18, 0.14) 80%, rgba(14, 15, 18, 0) 100%);
}
.hero { position: relative; flex: 1; display: flex; align-items: flex-end; padding-top: 48px; padding-bottom: 170px; }
.hero__text { max-width: 600px; display: flex; flex-direction: column; gap: 22px; }
.hero__kicker { color: #FF9A62; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.banner .hero h1 { font-size: clamp(38px, 5vw, 72px); line-height: 1; }
.hero p { margin: 0; max-width: 25em; color: #F5F3EE; font-size: clamp(17px, 1.5vw, 21px); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn--big { min-height: 56px; padding: 0 26px; font-size: 18px; }
.btn--ghost { padding: 0 24px; border: 1.5px solid #FFFFFF; background: transparent; color: #FFFFFF; font-weight: 600; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.home-tools { position: relative; margin-top: -120px; }
/* narrow enough that five tools share one row on a computer */
.tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px; }
.tool-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 210px; padding: 22px;
  border-radius: 20px; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow);
  color: var(--ink); font-size: 17px; line-height: 1.5; text-decoration: none;
}
.tool-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-card__icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent); color: var(--accent-ink); }
.tool-card:nth-child(even) .tool-card__icon { background: var(--teal); }
.tool-card__tag { color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
/* a tool launched in the last 60 days (agz_is_new) */
.tool-card__new { display: inline-block; margin-right: 4px; padding: 2px 8px; border-radius: 999px; background: var(--tool, var(--accent)); color: #0E0F12; font-weight: 700; }
.tool-card__words { display: flex; flex-direction: column; gap: 8px; }
.tool-card__title { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: 22px; line-height: 1.1; }
.tool-card:hover .tool-card__title { text-decoration: underline; }
.tool-card__text { color: var(--text); font-size: 15px; }
.layout .tool-card { box-shadow: none; }
/* The tool on a tilted phone (agz_tool_shot), night or day to match the page.
   A card in a phone's single column has the phone standing at its side; a
   narrow card (a computer's row of five) has it peeking in at the top corner,
   with the label moved under the icon and wrapping short of the phone, and a
   "New" tag beside the icon. Titles shrink a little where the longest word
   ("Recommender", 7.8 times the font size) would otherwise break. */
.tool-card--shot { position: relative; overflow: hidden; container-type: inline-size; }
.tool-card__shot {
  position: absolute; z-index: 0; overflow: hidden; pointer-events: none;
  border: 6px solid #050608; border-radius: 22px; background: #050608; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.tool-card__shot img { display: block; width: 100%; height: auto; border-radius: 15px; }
:root[data-theme="light"] .tool-card__shot-dark, :root:not([data-theme="light"]) .tool-card__shot-light { display: none; }
.tool-card--shot .tool-card__top, .tool-card--shot .tool-card__words { position: relative; z-index: 1; }
@container (max-width: 259px) {
  .tool-card__shot { top: -34px; right: -18px; width: 96px; height: 196px; transform: rotate(8deg); }
  .tool-card__top { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; min-height: 112px; }
  .tool-card__tag { margin-right: 66px; }
  .tool-card__new { position: absolute; top: 12px; left: 58px; margin: 0; }
  .tool-card__title { font-size: min(22px, calc(100cqi / 7.8)); }
}
@container (min-width: 260px) {
  .tool-card__shot { top: 22px; right: -10px; width: 120px; height: 230px; transform: rotate(6deg); }
  .tool-card__top, .tool-card__words { margin-right: 106px; }
  .tool-card__title { font-size: min(22px, calc((100cqi - 106px) / 7.8)); }
}
/* On the homepage the tools stand in one row instead: each screen upright,
   rising out of a glow in the tool's own colour. A phone swipes the row
   sideways, so more tools never make the page longer, and it ends with a card
   to all of them on Apps & Games, which keeps the phones above. The row has
   room above it for a card lifting on hover, taken back inside the section. */
.home-tools { display: flow-root; }
.home-tools .tool-cards {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin: -6px -24px 0; padding: 6px 24px 26px; scroll-padding: 0 24px; scrollbar-width: none;
}
.home-tools .tool-cards::-webkit-scrollbar { display: none; }
.home-tools .tool-card { flex: 1 0 186px; scroll-snap-align: start; }
.home-tools .tool-card--shot { justify-content: flex-start; gap: 0; min-height: 0; padding: 0; }
.home-tools .tool-card__shot {
  position: relative; top: auto; right: auto; order: -1; width: auto; height: auto; aspect-ratio: 4 / 5;
  border: 0; border-radius: 0; box-shadow: none; transform: none;
  background:
    radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--tool) 70%, transparent) 0%, transparent 72%),
    linear-gradient(180deg, var(--soft) 0%, color-mix(in srgb, var(--tool) 18%, var(--soft)) 100%);
}
.home-tools .tool-card__shot img {
  position: absolute; left: 50%; top: 16px; width: 76%; height: auto; transform: translateX(-50%);
  border: 5px solid #050608; border-radius: 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}
.home-tools .tool-card__icon { display: none; }
.home-tools .tool-card--shot .tool-card__top { order: 1; min-height: 0; margin-right: 0; padding: 16px 16px 0; }
.home-tools .tool-card--shot .tool-card__words { order: 2; gap: 6px; margin-right: 0; padding: 8px 16px 18px; }
.home-tools .tool-card__tag { margin-right: 0; color: var(--tool); font-size: 11px; }
/* here the "New" tag sits on the tool's screen, at its top left */
.home-tools .tool-card--shot .tool-card__top { position: static; }
.home-tools .tool-card__new { position: absolute; z-index: 2; top: 12px; left: 12px; margin: 0; padding: 4px 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.home-tools .tool-card__title { font-size: 19px; }
.home-tools .tool-card__text { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-tools .tool-card--all { flex: 0 0 132px; align-items: flex-start; gap: 12px; min-height: 0; padding: 18px 20px; box-shadow: none; background: var(--soft); }
.tool-card__all-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-card__all-icons span { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--tool); color: #0E0F12; }
.home-section { display: flex; flex-direction: column; gap: 32px; padding-top: 110px; font-size: 17px; line-height: 1.5; }
.home-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px; }
.home-section h2 {
  margin: 0; font-family: var(--font-display); font-stretch: 118%; font-weight: 800;
  font-size: clamp(32px, 3.8vw, 54px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance;
}
.home-section__head p { margin: 0; max-width: 24em; color: var(--text); }
.cards--wide { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.home-duo { display: flex; flex-wrap: wrap; gap: 14px; }
.guide-card {
  flex: 2.2 1 520px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px;
  padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--card); border: 1px solid var(--card-line);
  color: var(--ink); text-decoration: none;
}
.guide-card__text { flex: 1.4 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.guide-card__title { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.02; letter-spacing: -0.02em; }
.guide-card__summary { color: var(--text); }
.guide-card__more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--label); font-weight: 700; }
.guide-card__img {
  flex: 1 1 220px; min-width: 0; display: flex; align-items: center; justify-content: center; height: 230px; padding: 16px;
  border-radius: 18px; isolation: isolate; background: var(--tile); border: 1px solid var(--card-line);
}
.guide-card__img img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.guide-card__img--photo { padding: 0; overflow: hidden; }
.guide-card__img--photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; mix-blend-mode: normal; }
.tile {
  flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  min-height: 260px; padding: 26px; border-radius: 24px; background: var(--accent); color: var(--accent-ink); text-decoration: none;
}
.tile .label { color: inherit; }
/* The tile stretches to the height of the card beside it. Its picture takes whatever space that leaves
   between the label and the words, so the tile is never half empty. Where the space is too small for
   a picture (phones, where the tile is only as tall as its words) the picture is left out. */
.tile__img { display: none; }
@supports (container-type: size) {
  .tile__img { flex: 1; min-height: 0; margin: -10px 0; display: block; container-type: size; }
  .tile__pic {
    height: calc(100% - 20px); margin: 10px 0; display: flex; align-items: center; justify-content: center; padding: 14px;
    overflow: hidden; border-radius: 16px; isolation: isolate; background: var(--tile);
  }
  .tile__pic img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
  .tile__pic--photo { padding: 0; background: none; }
  .tile__pic--photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; mix-blend-mode: normal; }
  .tile__pic--none { background: rgba(14, 15, 18, 0.1); color: rgba(14, 15, 18, 0.6); }
  @container (max-height: 109px) { .tile__pic { display: none; } }
}
.tile__words { display: flex; flex-direction: column; gap: 8px; }
.tile__title { font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: 26px; line-height: 1.05; }
.tile__text { font-size: 16px; }
.tile:hover .tile__title, .guide-card:hover .guide-card__title { text-decoration: underline; }
.more-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 700; }
.home-news { flex-direction: row; flex-wrap: wrap; gap: 24px 48px; }
.home-news__head { flex: 1 1 260px; min-width: 0; }
.home-news__list { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.news-row { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.news-row__date { flex: 0 0 130px; padding-top: 3px; color: var(--muted); font-family: var(--font-mono); font-size: 14px; }
.news-row__text { flex: 1 1 300px; min-width: 0; }
.news-row__text a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- Title of a page without a photo banner ---------- */
.page-head { display: flex; flex-direction: column; gap: 22px; padding-top: 40px; }
.page-head__text { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 {
  margin: 0; color: var(--ink); font-family: var(--font-display); font-stretch: 118%; font-weight: 800;
  font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance;
}
.page-head--long h1 { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.06; }
.page-head__note { margin: 0; max-width: 32em; color: var(--text); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.page-head .kicker { color: var(--muted); }
.page-head .kicker a, .page-head .kicker__label { color: var(--label); }
.page-head .kicker a { min-height: 0; }
.filters ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.filters a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--soft); color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none;
}
.filters a:hover { background: var(--line); }
.filters a[aria-current] { background: var(--ink); color: var(--bg); }

/* ---------- Page layout ---------- */
.layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; padding-top: 56px; }
.layout__main { flex: 999 1 600px; min-width: 0; }
.layout__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.45; }
.page-full { padding-top: 56px; }
/* Under a plain title the content starts a little closer. */
.page-head ~ main .layout, .page-head ~ main .page-full { padding-top: 36px; }
.page-head ~ main .tool-stage { margin-top: 36px; }

/* ---------- Article text ---------- */
.entry { color: var(--text); }
.entry::after { content: ""; display: table; clear: both; }
.entry > :first-child, .entry > header:first-child > :first-child, .entry > .blogstyle:first-child > :first-child,
.entry > .blogstyle:first-child > header:first-child > :first-child { margin-top: 0; }
.entry p { margin: 0 0 22px; }
.entry h2, .entry h3, .entry h4, .entry h5 { color: var(--ink); text-wrap: balance; }
.entry h2 {
  margin: 64px 0 22px; font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(26px, 2.8vw, 36px); line-height: 1.08; letter-spacing: -0.02em;
}
.entry > h2:first-of-type { margin-top: 48px; }
.entry h3 {
  margin: 38px 0 12px; font-family: var(--font-display); font-stretch: 108%; font-weight: 700;
  font-size: clamp(21px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.01em;
}
.entry h4, .entry h5 { margin: 30px 0 10px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.entry h2:empty, .entry h3:empty, .entry h4:empty, .entry p:empty { display: none; }
.entry h2 a, .entry h3 a { text-decoration-thickness: 3px; }
.entry a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--label); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry a:hover { color: var(--label); }
.entry strong, .entry b { color: var(--ink); }
.entry ul, .entry ol { margin: 0 0 26px; padding-left: 1.3em; }
.entry li { margin: 0 0 8px; }
.entry li::marker { color: var(--label); }
.entry hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.entry blockquote {
  margin: 0 0 28px; padding: 22px 26px; border-radius: 18px; border-left: 4px solid var(--accent);
  background: var(--soft); color: var(--ink); font-size: 19px; line-height: 1.5;
}
.entry blockquote > :last-child { margin-bottom: 0; }
.entry blockquote span { font-size: inherit !important; }
.entry blockquote h2, .entry blockquote h3, .entry blockquote h4 { margin: 0; font: inherit; letter-spacing: 0; }
/* A reader's question opening an Audio Answers post: a letter with a big quote mark (Manny chose it, 2026-10-27). */
.entry blockquote.blog-audio-answers-full-question {
  position: relative; margin: 40px 0 30px; padding: 44px 26px 24px; border: 1px solid var(--card-line); border-left-width: 1px;
  background: var(--card); color: var(--ink); font-size: 20px; line-height: 1.45; font-weight: 500;
}
.entry blockquote.blog-audio-answers-full-question::before {
  content: "\201C"; position: absolute; top: -22px; left: 18px;
  font: 800 96px/1 var(--font-display); color: var(--accent);
}
.entry img { border-radius: 14px; }
.entry figure { margin: 0 0 28px; }
.entry .aligncenter, .entry figure > img { display: block; margin-left: auto; margin-right: auto; }
.entry .alignright { float: right; max-width: 45%; margin: 6px 0 16px 28px; }
.entry .alignleft { float: left; max-width: 45%; margin: 6px 28px 16px 0; }
.entry .wp-caption { max-width: 100%; margin-bottom: 28px; }
.entry .wp-caption img { display: block; margin: 0 auto; }
.entry .wp-caption-text, .entry figcaption { margin: 8px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.entry iframe { border: 0; border-radius: 14px; }
/* Instagram asks for at least 326px, more than the narrowest phones have. */
.entry iframe.instagram-media { min-width: 0 !important; max-width: 100% !important; }
.entry center { margin: 0 0 22px; }
.entry footer { margin-top: 44px; color: var(--muted); font-size: 16px; }

.table-scroll { margin: 0 0 28px; overflow-x: auto; border-radius: 20px; background: var(--card); border: 1px solid var(--card-line); }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.4; text-align: left; }
.table-scroll th {
  padding: 16px 12px 12px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; vertical-align: bottom;
}
.table-scroll td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table-scroll th:first-child, .table-scroll td:first-child { padding-left: 20px; }
.table-scroll th:last-child, .table-scroll td:last-child { padding-right: 20px; }

/* ---------- Parts for new articles ----------
   Classes an article can use: agz-lede (the opening paragraph), agz-picks (the
   summary table, with is-pick on the recommended row), agz-buy with agz-button
   and agz-buy__note, agz-note (a boxed aside) and agz-signoff. */
.entry .agz-lede { color: var(--ink); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; }
.entry .agz-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.entry a.agz-button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none;
}
.entry a.agz-button:hover { background: var(--accent-hover); color: var(--accent-ink); }
.entry a.agz-button::after {
  content: ""; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.entry .agz-buy__note { color: var(--muted); font-family: var(--font-mono); font-size: 14px; }
.entry .agz-note { margin: 42px 0 22px; padding: 24px 26px; border-radius: 20px; background: var(--soft); color: var(--ink); }
.entry .agz-note h3 { margin: 0 0 8px; font-stretch: 110%; font-size: 20px; line-height: 1.2; letter-spacing: 0; }
.entry .agz-note p { margin: 0; color: var(--text); font-size: 17px; line-height: 1.5; }
.entry .agz-signoff { margin-top: 32px; color: var(--ink); font-weight: 600; }
.table-scroll table.agz-picks { min-width: 700px; }
.agz-picks td:first-child { color: var(--muted); }
.agz-picks td:nth-child(2) { color: var(--ink); font-weight: 700; }
.agz-picks td:nth-child(3) { white-space: nowrap; }
.agz-picks tbody tr:last-child td { padding-bottom: 16px; }
.agz-picks tr.is-pick { background: var(--soft); }
.agz-picks tr.is-pick td { color: var(--ink); }
.agz-picks tr.is-pick td:first-child { color: var(--label); }

/* Reviews open with the product photo and a button to its Amazon page. Product
   photos have white backgrounds, so they sit on a white panel in both modes. */
.entry .blog-main-image, .entry .blog-supporting-image {
  display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 0 0 32px; padding: 28px;
  border-radius: 22px; isolation: isolate; background: var(--tile);
}
.entry .blog-supporting-image { margin: 36px 0; }
.entry .blog-main-image img, .entry .blog-supporting-image img { max-height: 420px; width: auto; margin: 0; border-radius: 0; mix-blend-mode: multiply; }
.entry .blog-main-image a.blog-buy-button img { mix-blend-mode: normal; }
/* Other product photos in an article get a panel like it, with room around the product (content.php wraps
   each one in .agz-shot). */
.entry .agz-shot {
  display: inline-block; box-sizing: border-box; max-width: 100%; padding: clamp(18px, 4vw, 36px);
  border-radius: 22px; background: var(--tile); isolation: isolate; vertical-align: top;
}
.entry .agz-shot img { display: block; float: none; margin: 0; border-radius: 0; mix-blend-mode: multiply; }
.entry .agz-shot--center { display: block; width: fit-content; margin: 0 auto 28px; }
.entry .agz-shot--left { float: left; margin: 6px 28px 18px 0; }
.entry .agz-shot--right { float: right; margin: 6px 0 18px 28px; }
/* inside a review's own photo panel the panel would be doubled; in a caption box it would be too wide */
.entry .blog-main-image .agz-shot, .entry .blog-supporting-image .agz-shot { display: contents; }
.entry .wp-caption:has(.agz-shot) { max-width: 100%; width: auto !important; }
.entry .wp-caption .agz-shot { display: block; width: fit-content; margin: 0 auto 10px; }
/* Diagrams (class agz-diagram) carry their own panels and lettering, so they get the full column on a
   phone and a readable size on a computer instead of a product panel. */
.entry img.agz-diagram { display: block; width: 100%; max-width: 440px; height: auto; margin: 8px auto 28px; border-radius: 22px; }
.entry a.blog-buy-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px; text-decoration: none;
}
.entry a.blog-buy-button:hover { background: var(--accent-hover); color: var(--accent-ink); }
.entry .blog-footer-call { margin-top: 0 !important; }

/* ---------- Tools ----------
   The tools size themselves in rem, and were built on the old theme, whose
   root size was 10px. Keep that root size on tool pages until each tool is
   restyled. Nothing in this stylesheet uses rem, so the rest is unaffected. */
html.agz-tool { font-size: 10px; }
.tool-stage {
  margin-top: 40px; padding: clamp(16px, 3vw, 32px); border-radius: 22px; background: #FFFFFF; color: #14161A;
  color-scheme: light; overflow-x: auto;
  /* The tools were sized for the old theme's 14px text. */
  font-size: 14px; line-height: 1.43;
}
/* The write-up under a tool reads at article size. */
.tool-stage .blogstyle p, .tool-stage .blogstyle li { font-size: 18px; line-height: 1.6; }

/* A tool rebuilt in its own project (inc/tools.php) takes the first screen, edge to edge; the tool's own
   stylesheet does the rest. Its title and write-up follow it, beside the sidebar. */
.tool-area { position: relative; margin: 0 0 36px; }
main:has(.tool-area) > .wrap.layout { padding-top: 8px; }
.tool-title.page-head { padding-top: 0; margin: 0 0 30px; }
.tool-notes { margin-bottom: 44px; }
/* the write-up asks for a tall gap above its first heading; the title already leaves one */
.tool-notes .blogstyle > h2:first-child { margin-top: 0 !important; }
/* while the tool's settings are open, the page's main part sits above the site header, so the sheet does too */
main:has(.rn--sheet-open) { z-index: 30; }
/* A Google Form is set to a height for a computer; on a phone it grows taller than that and its own
   Submit button ended up hidden inside the frame. */
@media (max-width: 700px) {
  .entry iframe[src*="docs.google.com/forms"] { width: 100%; height: 1300px; }
}
/* a tool page with no write-up: the title, then the sidebar's cards side by side across the page */
.layout--plain { display: block; }
.layout--plain .tool-title.page-head { margin-bottom: 24px; }
.layout--plain .layout__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; gap: 16px; }
.layout--plain .layout__side.layout__side { position: static; }
/* where a browser has no real full screen (an iPhone), the tool asks the page to clear the header instead */
html.rn-full .page-top { display: none; }

/* ---------- Sidebar ---------- */
.side-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--card-line); }
.side-card[hidden] { display: none; }
.side-card--tight { gap: 6px; }
.side-card--tight > .label { padding-bottom: 6px; }
.side-card__more { align-self: center; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
.deal__title { color: var(--ink); font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 20px; line-height: 1.15; }
.deal__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.deal__now { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; }
.deal__was { color: var(--muted); text-decoration: line-through; }
.deal__off { padding: 4px 8px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; }
.tool-link { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); font-weight: 600; text-decoration: none; }
.tool-link:hover span:last-child { text-decoration: underline; }
.tool-link__icon { flex: 0 0 36px; display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }
.tool-link:nth-of-type(even) .tool-link__icon { background: var(--teal); }
.read-link { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.read-link:last-child { padding-bottom: 0; }
.read-link__title { font-weight: 700; line-height: 1.25; }
.read-link:hover .read-link__title { text-decoration: underline; }
.read-link__text { color: var(--text); font-size: 15px; }

/* ---------- Deals (page-amazon-deals.php) ----------
   Amazon gives the site no product photos, so each deal is drawn (inc/deals.php): its kind of gear in
   lines on a tile, and a level meter under it with a light for every 5% off, teal into orange like a meter
   going into the red. The glow behind the drawing takes the colour of the last light lit. */
:root { --meter-low: #4FD1C5; --meter-mid: #FF9A62; --meter-high: #FF6A1A; }
:root[data-theme="light"] { --meter-low: #1FA698; --meter-mid: #F28A4E; --meter-high: #F05F0E; }
.gear-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.deals { display: flex; flex-direction: column; gap: 18px; }
.deal-art {
  --glow: var(--meter-low);
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  overflow: hidden; isolation: isolate; border-radius: 16px; color: var(--ink);
  background: radial-gradient(90% 75% at 50% 100%, color-mix(in srgb, var(--glow) 32%, transparent) 0%, transparent 72%), var(--soft);
}
.deal-art--warm { --glow: var(--meter-mid); }
.deal-art--hot { --glow: var(--meter-high); }
.deal-art__gear { display: block; width: auto; height: 50%; aspect-ratio: 1; }
.deal-art__meter { display: flex; gap: 2px; width: 72%; }
.deal-art__meter i { flex: 1; height: 5px; border-radius: 1px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.deal-art__meter i.is-lit { background: var(--meter-low); }
.deal-art__meter i.is-lit:nth-child(n+5) { background: var(--meter-mid); }
.deal-art__meter i.is-lit:nth-child(n+8) { background: var(--meter-high); }
/* A deal with a photo shows it on the light tile above the meter; if the photo fails, the drawing is back. */
.deal-art:has(.deal-art__photo) { background: var(--tile); }
.deal-art:has(.deal-art__photo) .deal-art__gear { visibility: hidden; }
.deal-art__photo {
  position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 34px);
  object-fit: contain; mix-blend-mode: multiply;
}

/* the deal of the day, first */
.deal-pick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; padding: clamp(14px, 2.4vw, 24px);
  border-radius: 24px; background: var(--card); border: 1px solid var(--card-line);
}
.deal-pick__art { flex: 0 1 250px; min-width: 200px; display: block; border-radius: 18px; }
.deal-art--big { width: 100%; aspect-ratio: 1; gap: 16px; border-radius: 18px; }
.deal-art--big .deal-art__gear { height: 44%; }
.deal-art--big .deal-art__meter { gap: 3px; width: 66%; }
.deal-art--big .deal-art__meter i { height: 9px; border-radius: 2px; }
.deal-pick__body { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.deal-pick__title {
  margin: 0; color: var(--ink); font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance;
}
.deal-pick .deal__now { font-size: 34px; }
.deal-pick__meta { margin: 0; color: var(--text); font-size: 16px; }
.deal-pick__go { margin-top: 4px; }

/* the buttons that choose a list */
.deals-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 30px; }
.deals-bar__title {
  margin: 0; color: var(--ink); font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(26px, 2.8vw, 36px); line-height: 1.08; letter-spacing: -0.02em;
}
.deals-bar__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.deals-by { display: flex; align-items: center; gap: 10px; }
.deals-by[hidden] { display: none; }
.deals-by__label { color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.deals-by__options { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.deals-by__options a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
  color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.deals-by__options a:hover { background: var(--soft); }
.deals-by__options a[aria-current] { background: var(--accent); color: var(--accent-ink); }
.deal-list > .list-status { margin: 0 0 12px; }

/* a deal in a list: the whole card is the link */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.deal-card {
  display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--card-line); color: var(--ink); line-height: 1.4; text-decoration: none;
}
.deal-card .deal-art { flex: 0 0 112px; width: 112px; height: 112px; }
.deal-card__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.deal-card__title {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  font-family: var(--font-display); font-stretch: 105%; font-weight: 700; font-size: 17px; line-height: 1.2;
}
.deal-card:hover .deal-card__title { text-decoration: underline; }
.deal-card .deal__prices { gap: 2px 10px; }
.deal-card .deal__now { font-size: 21px; }
.deal-card .deal__was { font-size: 15px; }
.deal-card .deal__off { padding: 3px 7px; font-size: 11px; }
.deal__now--none { font-family: var(--font-body); font-size: 16px !important; font-weight: 700; }
.deal-card__meta { color: var(--muted); font-size: 14px; }
.deal-card__saved + .deal-card__when::before { content: " · "; }

/* a list the server had nothing for: the drawing with its meter at rest */
.deal-empty { display: flex; align-items: center; gap: 18px; padding: 14px; border-radius: 20px; border: 1px dashed var(--line); color: var(--text); font-size: 16px; }
.deal-empty .deal-art { flex: 0 0 96px; height: 96px; }
.deal-empty p { margin: 0; }
.deal-empty strong { color: var(--ink); }
.deals-note { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.deals-note a { color: inherit; }

/* ---------- Cards and lists ---------- */
.read-next { display: flex; flex-direction: column; gap: 28px; padding-top: 96px; font-size: 17px; line-height: 1.5; }
.read-next h2 { margin: 0; font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: clamp(28px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.02em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--card); border: 1px solid var(--card-line); color: var(--ink); text-decoration: none; }
.card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #FFFFFF; }
/* Product shots and diagrams come on white. They sit on a soft tile, and "multiply" lets the
   white fall away so the product seems to stand on the tile instead of in a white box. */
.card__img--whole { display: flex; align-items: center; justify-content: center; padding: 26px; overflow: hidden; isolation: isolate; background: var(--tile); }
.card__img--whole img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card__img--none { display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--label-alt); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.card__title { color: var(--ink); font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 22px; line-height: 1.15; }
.card:hover .card__title { text-decoration: underline; }
.card__text { color: var(--text); font-size: 16px; }
.card--promo { justify-content: space-between; gap: 24px; min-height: 280px; padding: 26px; border: 0; background: var(--accent); color: var(--accent-ink); }
.card--promo .label, .card--promo .card__title, .card--promo .card__text { color: var(--accent-ink); }
.card--promo .card__body { padding: 0; gap: 8px; }
.card--promo .card__title { font-stretch: 110%; font-weight: 800; font-size: 26px; line-height: 1.05; }
/* A small drawing of Random Notes on the "Take a break" card: the note to play, the tool's four beat lights
   and an octave of keys with that note lit, in the card's ink. */
.promo-art { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; width: 100%; max-width: 300px; margin: 0 auto; }
.promo-art__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.promo-art__note { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 64px; line-height: 0.9; color: var(--accent-ink); }
.promo-art__beats { display: flex; gap: 8px; }
.promo-art__beats i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-ink); }
.promo-art__beats i:first-child { background: var(--accent-ink); }
.promo-art__keys { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; height: 92px; }
.promo-art__keys i { border-radius: 0 0 7px 7px; background: #FFF4EA; box-shadow: inset 0 0 0 2px var(--accent-ink); }
.promo-art__keys i.is-lit { position: relative; background: #FFFFFF; }
.promo-art__keys i.is-lit::after {
  content: ""; position: absolute; left: 50%; bottom: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--accent-ink);
}
.promo-art__keys b {
  position: absolute; top: 0; left: calc(var(--at) * (100% + 3px) / 7 - 3px / 2); width: 9%; height: 58%;
  transform: translateX(-50%); border-radius: 0 0 5px 5px; background: var(--accent-ink);
}
@media (prefers-reduced-motion: no-preference) {
  .promo-art__beats i { animation: agz-promo-beat 2s steps(1) infinite; }
  .promo-art__beats i:first-child { animation-name: agz-promo-beat-one; }
  .promo-art__beats i:nth-child(2) { animation-delay: 0.5s; }
  .promo-art__beats i:nth-child(3) { animation-delay: 1s; }
  .promo-art__beats i:nth-child(4) { animation-delay: 1.5s; }
}
@keyframes agz-promo-beat { 0% { background: var(--accent-ink); } 25%, 100% { background: transparent; } }
@keyframes agz-promo-beat-one { 0% { background: var(--accent-ink); transform: scale(1.25); } 25%, 100% { background: transparent; transform: none; } }
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 14px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--card-line); color: var(--ink); line-height: 1.5; text-decoration: none;
}
.post-row__img { flex: 0 0 160px; width: 160px; height: 120px; border-radius: 12px; object-fit: cover; }
.post-row__img--whole { display: flex; align-items: center; justify-content: center; padding: 14px; isolation: isolate; background: var(--tile); }
.post-row__img--whole img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.post-row__img--none { display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--label-alt); }
.post-row__img--tool { overflow: hidden; background: var(--soft); }
.post-row__img--tool img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 34%); }
.post-row__body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.post-row__title { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 23px; line-height: 1.12; }
.post-row:hover .post-row__title { text-decoration: underline; }
.post-row__text { color: var(--text); font-size: 16px; }
.list-more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 22px; }
.load-more {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700; font-size: 18px; text-decoration: none;
}
.load-more:hover { background: var(--soft); }
.load-more[aria-busy="true"] { opacity: 0.6; }
.load-more[hidden] { display: none; }
.list-status { color: var(--muted); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }
.list-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 16px; font-weight: 600; }
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Comments and forms ---------- */
.comments { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); color: var(--text); font-size: 17px; }
.comments__title, .comment-reply-title { margin: 0 0 20px; color: var(--ink); font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 26px; line-height: 1.1; }
.comment-reply-title small { margin-left: 12px; font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-left: clamp(16px, 4vw, 44px); }
.comment-body { margin: 0 0 14px; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-line); }
.comment-author { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 0 0 6px; font-size: 14px; }
.comment-metadata a, .comment-author a { color: var(--muted); text-decoration: none; }
.comment-metadata a { display: inline-flex; align-items: center; min-height: 40px; }
.comment-form input[type="checkbox"] { flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.comment-author a { color: var(--ink); }
.comment-content p { margin: 0 0 12px; }
.comment-content a { color: var(--ink); }
.reply a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
.comment-respond { margin-top: 36px; }
.comment-form p { margin: 0 0 16px; }
.comment-form label { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--text); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.search-form { display: flex; flex-wrap: wrap; gap: 10px; }
.search-form label { flex: 1 1 240px; }
.search-form .search-submit { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.page-links { margin: 28px 0 0; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-top: 72px; padding-bottom: 48px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.site-footer__about { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__name { color: var(--ink); }
.site-footer__name .logo { height: 28px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text); }

/* On a wide, tall screen the sidebar stays in view down a long article. */
@media (min-width: 1000px) and (min-height: 820px) {
  .layout__side { position: sticky; top: 24px; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .banner__scrim { background: linear-gradient(180deg, rgba(14, 15, 18, 0.9) 0%, rgba(14, 15, 18, 0.74) 28%, rgba(14, 15, 18, 0.84) 70%, #0E0F12 100%); }
  :root[data-theme="light"] .banner__scrim { background: linear-gradient(180deg, rgba(14, 15, 18, 0.84) 0%, rgba(14, 15, 18, 0.78) 100%); }
  .banner--home .banner__scrim { background: linear-gradient(180deg, rgba(14, 15, 18, 0.9) 0%, rgba(14, 15, 18, 0.74) 28%, rgba(14, 15, 18, 0.84) 70%, #0E0F12 100%); }
  :root[data-theme="light"] .banner--home .banner__scrim { background: linear-gradient(180deg, rgba(14, 15, 18, 0.9) 0%, rgba(14, 15, 18, 0.74) 28%, rgba(14, 15, 18, 0.84) 100%); }
  .layout { gap: 44px; padding-top: 40px; }
  .read-next { padding-top: 64px; }
}
/* Wherever the row of links would not fit beside the name: phones and small tablets. */
@media (max-width: 780px) {
  /* The name, the light/dark switch and the menu button share one row; the links move into the menu. */
  .site-header { padding-top: 12px; padding-bottom: 12px; gap: 0 12px; }
  .site-header__right { display: contents; }
  .theme-toggle { order: 2; margin-left: auto; width: 44px; padding: 0; justify-content: center; }
  .theme-toggle [data-theme-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .site-nav { display: none; }
  .menu { display: block; order: 3; }
  .menu > summary {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
    border: 1.5px solid var(--nav-ink); color: var(--nav-ink);
  }
  .menu[open] > summary { background: var(--nav-hover); }
  /* Three bars that fold into a cross while the menu is open. */
  .menu__bars { position: relative; display: block; width: 18px; height: 14px; }
  .menu__bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
  .menu__bars i:nth-child(1) { top: 0; }
  .menu__bars i:nth-child(2) { top: 6px; }
  .menu__bars i:nth-child(3) { top: 12px; }
  .menu[open]:not(.is-closing) .menu__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu[open]:not(.is-closing) .menu__bars i:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
  .menu[open]:not(.is-closing) .menu__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .menu__panel {
    position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 18px;
    padding: 6px 24px 24px; background: var(--bar-bg); border-top: 1px solid var(--card-line); border-bottom: 1px solid var(--card-line);
    color: var(--ink);
  }
  /* While the menu is open, a dim sheet covers the rest of the page; a tap on it closes the menu. */
  .menu[open]::before { content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(8, 9, 11, 0.6); }
  .menu > summary { position: relative; z-index: 1; }
  .menu__links ul { margin: 0; padding: 0; list-style: none; }
  .menu__links a {
    display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--card-line);
    color: var(--ink); font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: 21px; text-decoration: none;
  }
  .menu__links a[aria-current], .menu__links .current-menu-item > a { color: var(--label); }
  .menu__tools { display: flex; flex-direction: column; gap: 4px; }
  .menu__tools .label { padding-bottom: 4px; }
}
@media (max-width: 600px) {
  /* Side margins are forced: some old posts set their own on the picture, which pushed it off a narrow phone. */
  .entry .alignright, .entry .alignleft { float: none; display: block; max-width: 100%; margin: 0 auto 22px; margin-left: auto !important; margin-right: auto !important; }
  /* A row in a list keeps its picture beside the words, smaller, instead of
     dropping the words underneath and leaving a gap beside the picture. */
  .post-row { flex-wrap: nowrap; align-items: flex-start; gap: 14px; padding: 12px; }
  .post-row__img { flex: 0 0 104px; width: 104px; height: 104px; }
  .post-row__img--whole { padding: 10px; }
  .post-row__body { flex: 1 1 0; gap: 6px; }
  .post-row .label { font-size: 11px; }
  .post-row__title { font-size: 19px; line-height: 1.16; }
  .post-row__text { display: -webkit-box; overflow: hidden; font-size: 15px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  /* The deal of the day's drawing runs across the top of its card, as a wide strip. */
  .deal-pick__art { flex-basis: 100%; }
  .deal-art--big { aspect-ratio: 2.2 / 1; gap: 12px; }
  .deal-art--big .deal-art__gear { height: 48%; }
  .deal-art--big .deal-art__meter { width: 50%; }
  .deal-card { gap: 14px; padding: 10px; }
  .deal-card .deal-art { flex-basis: 96px; width: 96px; height: 96px; border-radius: 14px; }
  .deal-card__title { font-size: 16px; }
  .deal-card .deal__now { font-size: 19px; }
  /* the struck-out price already shows the saving, and the line then fits beside the drawing */
  .deal-card__saved { display: none; }
  .deal-card__saved + .deal-card__when::before { content: none; }
  .entry .blog-main-image, .entry .blog-supporting-image { padding: 18px; }
  .entry blockquote { padding: 18px 20px; font-size: 18px; }
  /* Two tools and a bit of the third across, so the row looks swipeable. */
  .home-tools .tool-card { flex: 0 0 40vw; }
  .home-tools .tool-card--all { flex-basis: 30vw; }
  .home-tools .tool-card__title { font-size: 17px; }
  .home-tools .tool-card--shot .tool-card__top { padding: 14px 13px 0; }
  .home-tools .tool-card--shot .tool-card__words { padding: 6px 13px 16px; }
}
/* ---------- Movement ----------
   Small and slow on purpose: the page should feel switched on, not busy.
   Everything here is skipped for people who ask their device for less motion,
   and nothing a visitor is reading ever moves. */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-right: 10px; vertical-align: -1px; }
.eq i { display: block; width: 3px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: bottom; }
.eq i:nth-child(1) { transform: scaleY(0.55); }
.eq i:nth-child(2) { transform: scaleY(1); }
.eq i:nth-child(3) { transform: scaleY(0.4); }
.eq i:nth-child(4) { transform: scaleY(0.75); }
.page-top { position: relative; overflow-x: clip; }
.page-top > .page-head { position: relative; }
.page-top::before, .page-top::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; filter: blur(30px); }
.page-top::before { top: -150px; right: -4%; width: min(640px, 80vw); height: 420px; background: radial-gradient(closest-side, rgba(255, 106, 26, 0.20), rgba(255, 106, 26, 0)); }
.page-top::after { top: 40px; right: 26%; width: min(420px, 60vw); height: 300px; background: radial-gradient(closest-side, rgba(79, 209, 197, 0.12), rgba(79, 209, 197, 0)); }
:root[data-theme="light"] .page-top::before { background: radial-gradient(closest-side, rgba(255, 106, 26, 0.13), rgba(255, 106, 26, 0)); }
:root[data-theme="light"] .page-top::after { background: radial-gradient(closest-side, rgba(11, 107, 99, 0.09), rgba(11, 107, 99, 0)); }
.progress { display: none; }
.card { transform: translateZ(0); }

@media (max-width: 360px) {
  /* The narrowest phones: logo, switch and menu button still share one row. */
  .wrap { padding-left: 18px; padding-right: 18px; }
  .home-tools .tool-cards { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; scroll-padding: 0 18px; }
  .brand .logo { height: 28px; }
  .site-header { column-gap: 8px; }
  .post-row__img { flex-basis: 84px; width: 84px; height: 84px; }
  .post-row__title { font-size: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(0.2, 0.8, 0.2, 1); }

  /* The banner photo drifts very slowly, like a held camera. */
  .banner__photo { animation: agz-drift 32s ease-in-out infinite alternate; transform-origin: 68% 40%; }
  /* The level meter beside the homepage's first line. */
  .eq i { animation: agz-level 1.1s ease-in-out infinite alternate; }
  .eq i:nth-child(2) { animation-duration: 0.8s; animation-delay: -0.3s; }
  .eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -0.6s; }
  .eq i:nth-child(4) { animation-duration: 0.95s; animation-delay: -0.2s; }
  /* A soft glow behind the title of pages without a photo. */
  .page-top::before { animation: agz-glow 18s ease-in-out infinite alternate; }
  .page-top::after { animation: agz-glow 23s ease-in-out infinite alternate-reverse; }

  /* The first screen arrives in order: words, then buttons, then the tools. */
  .hero__text > *, .banner__text > *, .page-head__text > *, .page-head .filters, .home-tools .tool-card { animation: agz-rise 0.7s var(--ease) backwards; }
  .hero__text > :nth-child(2), .banner__text > :nth-child(2), .page-head__text > :nth-child(2) { animation-delay: 0.07s; }
  .hero__text > :nth-child(3), .page-head__text > :nth-child(3) { animation-delay: 0.14s; }
  .hero__text > :nth-child(4), .page-head .filters { animation-delay: 0.21s; }
  .home-tools .tool-card:nth-child(1) { animation-delay: 0.30s; }
  .home-tools .tool-card:nth-child(2) { animation-delay: 0.37s; }
  .home-tools .tool-card:nth-child(3) { animation-delay: 0.44s; }
  .home-tools .tool-card:nth-child(4) { animation-delay: 0.51s; }

  /* Further down, cards and rows rise into place once (see theme.js). */
  .will-reveal { opacity: 0; transform: translateY(18px); }
  .will-reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .is-new { animation: agz-rise 0.6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms); }

  /* Things answer the pointer. */
  .btn, .site-nav a, .theme-toggle, .entry a.blog-buy-button, .entry a.agz-button, .filters a, .load-more { transition: background-color 0.15s ease, transform 0.15s ease; }
  .btn:active, .load-more:active, .entry a.agz-button:active, .filters a:active { transform: scale(0.97); }
  .card, .tool-card, .guide-card, .tile, .post-row, .deal-card { transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease; }
  /* A deal's meter lights up to its level one light after another: the deal of the day's as the page
     opens, and a card's when you point at it. */
  .deal-art__meter i { animation-delay: calc(var(--lamp, 0) * 55ms + var(--lamps-start, 0s)); }
  .deal-art__meter i:nth-child(2) { --lamp: 1; }
  .deal-art__meter i:nth-child(3) { --lamp: 2; }
  .deal-art__meter i:nth-child(4) { --lamp: 3; }
  .deal-art__meter i:nth-child(5) { --lamp: 4; }
  .deal-art__meter i:nth-child(6) { --lamp: 5; }
  .deal-art__meter i:nth-child(7) { --lamp: 6; }
  .deal-art__meter i:nth-child(8) { --lamp: 7; }
  .deal-art__meter i:nth-child(9) { --lamp: 8; }
  .deal-art__meter i:nth-child(10) { --lamp: 9; }
  .deal-art--big { --lamps-start: 0.35s; }
  .deal-art--big .deal-art__meter i.is-lit { animation: agz-lamp 0.3s ease backwards; }
  .icon, .btn svg, .more-link svg, .guide-card__more svg, .load-more svg, .entry a.agz-button::after { transition: transform 0.25s var(--ease); }
  .card__img { transition: transform 0.8s var(--ease); }
  @media (hover: hover) {
    .card:hover, .tool-card:hover, .guide-card:hover, .tile:hover { transform: translateY(-4px); }
    .post-row:hover, .deal-card:hover { transform: translateY(-2px); border-color: var(--line); }
    .deal-card:hover .deal-art__meter i.is-lit { animation: agz-lamp 0.3s ease backwards; }
    .card:hover, .tool-card:hover, .guide-card:hover { border-color: var(--line); }
    .card:hover .card__img:not(.card__img--whole):not(.card__img--none) { transform: scale(1.04); }
    .btn:hover svg, .more-link:hover svg, .guide-card:hover .guide-card__more svg { transform: translateX(4px); }
    .load-more:hover svg { transform: translateY(3px); }
    .entry a.agz-button:hover::after { transform: translate(2px, -2px); }
    /* Each tool's icon does a little of what the tool does. */
    .tool-card:hover .icon--notes, .tool-link:hover .icon--notes { animation: agz-bob 0.9s ease-in-out infinite alternate; }
    .tool-card:hover .icon--blocks rect, .tool-link:hover .icon--blocks rect { animation: agz-drop 0.9s var(--ease) infinite; }
    .tool-card:hover .icon--blocks rect:nth-of-type(2), .tool-link:hover .icon--blocks rect:nth-of-type(2) { animation-delay: 0.12s; }
    .tool-card:hover .icon--blocks rect:nth-of-type(3), .tool-link:hover .icon--blocks rect:nth-of-type(3) { animation-delay: 0.24s; }
    .tool-card:hover .icon--wave path, .tool-link:hover .icon--wave path { animation: agz-level 0.5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
    .tool-card:hover .icon--wave path:nth-child(2n), .tool-link:hover .icon--wave path:nth-child(2n) { animation-delay: -0.25s; }
    .tool-card:hover .icon--wave path:nth-child(3), .tool-link:hover .icon--wave path:nth-child(3) { animation-delay: -0.4s; }
    .tool-card:hover .icon--sliders path:nth-child(n+2), .tool-link:hover .icon--sliders path:nth-child(n+2) { animation: agz-fader 0.8s ease-in-out infinite alternate; }
    .tool-card:hover .icon--sliders path:nth-child(3), .tool-link:hover .icon--sliders path:nth-child(3) { animation-direction: alternate-reverse; }
    .tool-card:hover .icon--record, .tool-link:hover .icon--record { animation: agz-spin 1.8s linear infinite; }
    /* The gear in the logo turns two teeth when you point at it. It has eight, so it ends as it began. */
    .brand:hover .logo__gear { animation: agz-gear 0.9s var(--ease); }
  }
  .load-more[aria-busy="true"] svg { animation: agz-bob 0.5s ease-in-out infinite alternate; }

  /* Switching between light and dark fades instead of cutting. */
  .agz-switching, .agz-switching * { transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease !important; }
  .theme-toggle span svg { animation: agz-turn 0.45s var(--ease); }
  /*
   * The phone menu. Opening: the bars fold into a cross, the page dims, the
   * panel wipes down from the header and its links arrive one after another.
   * Closing runs back the same way, only quicker (theme.js holds the menu
   * open for the moment that takes).
   */
  .menu__bars i { transition: transform 0.38s var(--ease), opacity 0.2s ease; }
  .menu[open]::before { animation: agz-fade-in 0.32s ease both; }
  .menu[open] .menu__panel { animation: agz-menu-open 0.46s var(--ease) both; }
  .menu[open] .menu__links li, .menu[open] .menu__tools > * { animation: agz-rise-sm 0.5s var(--ease) backwards; }
  .menu[open] .menu__links li:nth-child(1) { animation-delay: 0.08s; }
  .menu[open] .menu__links li:nth-child(2) { animation-delay: 0.12s; }
  .menu[open] .menu__links li:nth-child(3) { animation-delay: 0.16s; }
  .menu[open] .menu__links li:nth-child(4) { animation-delay: 0.20s; }
  .menu[open] .menu__links li:nth-child(n+5) { animation-delay: 0.24s; }
  .menu[open] .menu__tools > :nth-child(1) { animation-delay: 0.26s; }
  .menu[open] .menu__tools > :nth-child(2) { animation-delay: 0.30s; }
  .menu[open] .menu__tools > :nth-child(3) { animation-delay: 0.34s; }
  .menu[open] .menu__tools > :nth-child(4) { animation-delay: 0.38s; }
  .menu[open] .menu__tools > :nth-child(n+5) { animation-delay: 0.42s; }
  .menu.is-closing::before { animation: agz-fade-out 0.24s ease both; }
  .menu.is-closing .menu__panel { animation: agz-menu-close 0.24s ease both; }
  .menu.is-closing .menu__links li, .menu.is-closing .menu__tools > * { animation: none; }

  /* On articles, a thin line across the top fills as you read. */
  @supports (animation-timeline: scroll()) {
    .progress {
      display: block; position: fixed; z-index: 5; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent);
      transform-origin: left; animation: agz-fill linear both; animation-timeline: scroll(root block);
    }
  }

  /* Going from one page to the next is a quick cross-fade, with the header staying put. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
  .site-header { view-transition-name: agz-header; }
}
@media print {
  .will-reveal { opacity: 1 !important; transform: none !important; }
}
@keyframes agz-drift { from { transform: scale(1); } to { transform: scale(1.07) translate3d(-1.2%, -0.8%, 0); } }
@keyframes agz-level { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
@keyframes agz-glow { from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; } to { transform: translate3d(-9%, 14%, 0) scale(1.18); opacity: 1; } }
@keyframes agz-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes agz-bob { from { transform: translateY(1px) rotate(4deg); } to { transform: translateY(-2px) rotate(-6deg); } }
@keyframes agz-drop { 0% { transform: translateY(-5px); opacity: 0; } 45%, 100% { transform: none; opacity: 1; } }
@keyframes agz-fader { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes agz-gear { to { transform: rotate(90deg); } }
@keyframes agz-spin { to { transform: rotate(360deg); } }
@keyframes agz-turn { from { transform: rotate(-70deg) scale(0.6); opacity: 0; } }
/* The panel stays solid while it wipes open and shut, so the page behind never shows through its links. */
@keyframes agz-menu-open { from { clip-path: inset(0 0 100% 0); transform: translateY(-12px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes agz-menu-close { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); transform: translateY(-8px); } }
@keyframes agz-fade-in { from { opacity: 0; } }
@keyframes agz-fade-out { to { opacity: 0; } }
@keyframes agz-rise-sm { from { opacity: 0; transform: translateY(12px); } }
@keyframes agz-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes agz-lamp { from { background: color-mix(in srgb, var(--ink) 16%, transparent); } }

/* ---------- The bar comes back when you scroll up ----------
   Once the bar has scrolled away, scrolling up brings it back along the top of the screen, and scrolling
   down puts it away again, so reading keeps the whole screen. Tool pages leave it where it is: the tools
   fill the screen. (theme.js adds the classes.) */
/* It keeps its size, so it settles back into its place at the top without a jump. Its shadow only shows
   while it does, so none falls on the page while it waits above the screen. */
.site-header-bar.is-floating {
  position: fixed; top: var(--bar-edge, 0px); left: 0; right: 0; z-index: 40;
  background: var(--bar-bg); border-bottom-color: var(--card-line);
  transform: translateY(-105%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}
.site-header-bar.is-floating.is-shown { transform: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); }
/* what was below the bar stays where it was while the bar is out of its place */
.has-floating-bar { padding-top: var(--bar-h, 0px); }
/* the sidebar, which stays in view as you read, moves down out of the bar's way while the bar is showing */
@media (min-width: 1001px) {
  .layout__side { transition: top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  body:has(.site-header-bar.is-shown) .layout__side { top: calc(var(--bar-h, 85px) + 24px); }
}
@media (prefers-reduced-motion: no-preference) {
  .site-header-bar.is-landing { transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
}
@media (prefers-reduced-motion: reduce) { .site-header-bar.is-floating { transition: none; } }

/* ---------- Search ----------
   On a computer a magnifying glass in the header opens a search field across the bar. On a phone the
   field is at the top of the menu. The article lists have one beside their filters. */
.search-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; border-radius: 999px;
  border: 0; background: transparent; color: var(--nav-ink);
}
.search-toggle:hover { background: var(--nav-hover); }
.search-box { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.search-box__icon { position: absolute; left: 14px; display: flex; color: var(--muted); pointer-events: none; }
.search-box input[type="search"] { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px 10px 42px; border-radius: 999px; font-size: 16px; }
.search-box input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.search-box__go {
  flex: none; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer;
}
.search-box__go:hover { background: var(--accent-hover); }

/* the header's field, over the bar */
.site-search {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; background: var(--bar-bg);
  border-bottom: 1px solid var(--card-line);
}
.site-search[hidden] { display: none; }
.site-search__inner { display: flex; align-items: center; gap: 10px; }
.site-search .search-box { flex: 1; }
.site-search__close {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.site-search__close:hover { background: var(--soft); }

/* the article lists: the filters, and the field beside them (under them on a phone) */
.page-head__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.page-head__tools .search-box { flex: 0 1 340px; }
.page-head__tools .search-box__go { display: none; }
.search-box--page { max-width: 520px; margin-top: 18px; }

/* the phone menu has the field; the header keeps no room for the magnifying glass there */
.search-box--menu { margin-top: 12px; }
.search-box--menu .search-box__go { display: none; }
@media (max-width: 780px) {
  .search-toggle, .site-search { display: none !important; }
  .page-head__tools .search-box { flex: 1 1 100%; }
}
