/* Self-hosted fonts (SIL Open Font License). No third-party requests. */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* cianoneill.ai — one stylesheet, no build step.
   Deliberately dark: the site commits to one look and paints every colour explicitly. */

:root {
  --ink: #0B0C0E;         /* ground */
  --surface: #131519;     /* lifted panels */
  --line: #25282E;        /* hairlines */
  --text: #ECE8DF;        /* primary text, warm */
  --muted: #948F86;       /* secondary text */
  --accent: #C8FF4D;      /* signal lime: CTAs, status, focus only */
  --accent-ink: #0B0C0E;
  --paper: #ECE8DF;       /* the one inverted band */
  --paper-muted: #5E5A53;
  --fill: #E7B85C;        /* placeholder marker */

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --step-3: clamp(2.2rem, 1.5rem + 2.6vw, 3.5rem);
  --step-4: clamp(2.9rem, 1.6rem + 5.2vw, 6rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --max: 1180px;
  --radius: 2px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 var(--step-0)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(44rem + 2 * var(--gutter)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* ---------- type ---------- */
.label {
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.label--dark { color: var(--paper-muted); }
.h1, .h2, .h3, .hero__title, .band__title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
.h1 { font-size: var(--step-4); line-height: 0.98; }
.h2 { font-size: var(--step-3); line-height: 1.02; }
.h3 { font-size: var(--step-2); line-height: 1.1; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 38em; margin: 1.5rem 0 0; text-wrap: pretty; }

.fill {
  color: var(--fill);
  font-family: var(--mono);
  font-size: 0.85em;
  border-bottom: 1px dotted currentColor;
  white-space: normal;
}
.fill::before { content: "["; opacity: .6; }
.fill::after { content: "]"; opacity: .6; }

/* ---------- buttons, links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: #D6FF74; }
.btn--small { min-height: 2.25rem; padding: 0 .9rem; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--accent); }

.arrow-link {
  display: inline-flex; gap: .5rem; align-items: center;
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.arrow-link span { transition: transform .2s ease; }
.arrow-link:hover span { transform: translateX(3px); }
.arrow-link:hover { color: var(--accent); }
.arrow-link--muted { color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.nav__name {
  font: 500 0.82rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
}
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__links a:not(.btn) {
  font: 400 0.74rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding-block: .5rem;
}
.nav__links a:not(.btn):hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); }
.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--line); color: var(--text);
  font: 500 0.72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: .7rem .9rem; border-radius: var(--radius); cursor: pointer;
}

@media (max-width: 760px) {
  .nav__toggle { display: inline-block; }
  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav__links a:not(.btn) { padding-block: 1rem; border-bottom: 1px solid var(--line); font-size: .8rem; }
  .nav__links .btn { margin-top: 1rem; min-height: 3rem; }
  .nav.is-open .nav__links { display: flex; }
}

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: end;
  padding-block: clamp(4rem, 3rem + 6vw, 8rem) clamp(3rem, 2rem + 4vw, 5rem);
}
.hero__copy { display: grid; gap: 1.75rem; justify-items: start; }
.hero__title { font-size: var(--step-4); line-height: 0.96; max-width: 13em; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__sub { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 32em; margin: 0; }

/* The schedule: the hero's proof. A cron sheet, not a decoration. */
.schedule {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  font-size: .92rem;
}
.schedule__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.schedule__clock { margin: 0; font-size: .95rem; color: var(--text); font-variant-numeric: tabular-nums; }
.schedule__list { list-style: none; margin: 0; padding: 0; }
.schedule__list li {
  display: grid; grid-template-columns: 3.6rem 1fr; gap: .75rem; align-items: baseline;
  padding: .7rem 0; border-bottom: 1px dashed var(--line);
  color: var(--muted);
  position: relative;
}
.schedule__list li:last-child { border-bottom: 0; }
.schedule__list time { font-size: .82rem; font-variant-numeric: tabular-nums; }
.schedule__list li.is-done { opacity: .55; }
.schedule__list li.is-next { color: var(--text); }
.schedule__list li.is-next time { color: var(--accent); }
.schedule__list li.is-next::after {
  content: "next"; position: absolute; right: 0; top: .78rem;
  font: 500 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: .25rem .4rem; border-radius: 1px;
}
.schedule__foot { margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

.stats { border-top: 1px solid var(--line); }
.stats__row {
  list-style: none; margin-block: 0; display: flex; flex-wrap: wrap;
  gap: .5rem clamp(1.25rem, 3vw, 2.75rem);
  padding-block: 1.1rem;
  font: 500 .72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.stats__row li { display: flex; align-items: center; gap: .6rem; }
.stats__row li::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* ---------- forms ---------- */
.sub { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; max-width: 32rem; }
.sub input {
  flex: 1 1 14rem; min-width: 0; min-height: 3rem;
  padding: 0 1rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: 400 1rem/1 var(--sans);
}
.sub input::placeholder { color: #6A665F; }
.sub input:focus { outline: none; border-color: var(--accent); }
.sub__msg { flex-basis: 100%; margin: .25rem 0 0; min-height: 1.4em; font: 400 .8rem/1.4 var(--mono); color: var(--muted); }
.sub__msg[data-state="ok"] { color: var(--accent); }
.sub__msg[data-state="err"] { color: #FF8A7A; }
.sub--compact .btn { min-height: 2.75rem; }
.sub--compact input { min-height: 2.75rem; }

.sub--light input { border-color: #B9B4AA; color: var(--ink); background: #F6F3EC; }
.sub--light input::placeholder { color: #8A857C; }
.sub--light input:focus { border-color: var(--ink); }
.sub--light .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sub--light .btn:hover { background: #22252A; }
.sub--light .sub__msg { color: var(--paper-muted); }
.sub--light .sub__msg[data-state="ok"] { color: #2E5A0C; }
.sub--light .sub__msg[data-state="err"] { color: #A1321F; }

/* ---------- newsletter band (the one inverted block) ---------- */
.band { background: var(--paper); color: var(--ink); }
.band__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
  padding-block: var(--section);
}
.band__title { font-size: var(--step-4); line-height: .95; margin-top: 1rem; }
.band__pitch { font-size: var(--step-1); line-height: 1.55; margin: 1.5rem 0 0; max-width: 30em; color: #2B2926; }
.band__right { display: grid; gap: 1.5rem; }
.band__small { margin: 0; font: 400 .78rem/1.5 var(--mono); color: var(--paper-muted); }
.band .fill { color: #8C5A00; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.ticks li { display: grid; grid-template-columns: 1.5rem 1fr; padding: .7rem 0; border-bottom: 1px solid #CFC9BD; }
.ticks li::before { content: "→"; font-family: var(--mono); }
.ticks--dark li { border-bottom-color: var(--line); }
.ticks--dark li::before { color: var(--accent); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2rem, 4vw, 4rem) var(--section); }
.section--rule { border-top: 1px solid var(--line); }
.section__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 1rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section__intro { margin: 0; color: var(--muted); max-width: 26em; }

/* ---------- build cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ink);
  transition: background .2s ease;
}
.card:hover { background: var(--surface); }
.card__link { position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline-offset: -3px; }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.card__title { font: 400 var(--step-2)/1.1 var(--serif); margin: 0; text-wrap: balance; }
.card__hook { margin: 0; color: var(--muted); }
.card__meta { margin: 0; display: grid; gap: .8rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.card__meta div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; }
.card__meta dt, .spec dt { font: 500 .68rem/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card__meta dd, .spec dd { margin: 0; }
.card__more { margin-top: auto; font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.card:hover .card__more { color: var(--accent); }

.status { display: inline-flex; align-items: center; gap: .45rem; font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(200, 255, 77, .15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(200, 255, 77, 0); } }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { font: 400 .7rem/1 var(--mono); letter-spacing: .03em; color: var(--muted); border: 1px solid var(--line); padding: .4rem .5rem; border-radius: 1px; }

.disclaimer { margin: 0; font: 400 .75rem/1.5 var(--mono); color: var(--muted); padding: .75rem .9rem; border: 1px dashed var(--line); }

/* ---------- resources ---------- */
.resources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.res { display: flex; flex-direction: column; gap: .8rem; padding: 1.75rem 1.5rem 1.75rem 0; border-right: 1px solid var(--line); }
.res + .res { padding-left: 1.5rem; }
.res:last-child { border-right: 0; }
.res__title { font: 400 1.5rem/1.15 var(--serif); margin: 0; text-wrap: balance; }
.res__desc { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }

/* ---------- writing ---------- */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-row a {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 4rem; gap: .35rem 2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.post-row time, .post-row__len { font: 400 .75rem/2.2 var(--mono); color: var(--muted); letter-spacing: .04em; }
.post-row__len { text-align: right; }
.post-row__title { font: 400 1.6rem/1.15 var(--serif); grid-column: 2; }
.post-row__sum { grid-column: 2; color: var(--muted); font-size: .95rem; }
.post-row__len { grid-column: 3; grid-row: 1; }
.post-row a:hover .post-row__title { color: var(--accent); }
.badge { font: 500 .62rem/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--fill); padding: .25rem .4rem; vertical-align: middle; }
.empty { font: 400 var(--step-2)/1.2 var(--serif); color: var(--muted); margin: 0; }
.empty-state { display: grid; gap: 2rem; }

/* ---------- about / split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.portrait { margin: 0; }
.portrait img, .portrait__empty { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.portrait__empty { display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .75rem; line-height: 1.8; background: var(--surface); }

.work { border-top: 1px solid var(--line); background: var(--surface); }
.work__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 1.5rem 3rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.work p { margin: 0; color: var(--muted); max-width: 36em; }

/* ---------- prose ---------- */
.prose { max-width: 40rem; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > h2 { font: 400 var(--step-2)/1.15 var(--serif); margin: 2.2em 0 0; text-wrap: balance; }
.prose > h3 { font: 600 1.05rem/1.4 var(--sans); margin: 2em 0 0; }
.prose a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 0; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 2px solid var(--accent); font: 400 italic var(--step-1)/1.45 var(--serif); color: var(--text); }
.prose code { font: 400 .88em var(--mono); background: var(--surface); border: 1px solid var(--line); padding: .1em .35em; border-radius: 2px; }
.prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.25rem; font-size: .85rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose--long { font-size: 1.1rem; line-height: 1.75; }
.prose--long > p:first-child::first-line { color: var(--text); }
.prose > :first-child { margin-top: 0; }

/* ---------- page heads, build detail ---------- */
.page-head { padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem) clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head .label { margin-bottom: 1.25rem; }
.crumb { display: inline-block; margin-bottom: 2rem; font: 400 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--accent); }
.build__title, .post__title { max-width: 14em; font-size: var(--step-3); line-height: 1.02; }

.build__grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section); align-items: start; }
.spec { position: sticky; top: 5.5rem; display: grid; gap: 1.25rem; }
.spec dl { margin: 0; display: grid; border-top: 1px solid var(--line); }
.spec dl > div { padding: .9rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .4rem; font-size: .92rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-inline: 0; margin-bottom: 0; max-width: none; }
.pager a, .pager > span { background: var(--ink); padding: 2rem var(--gutter); text-decoration: none; font: 400 1.35rem/1.2 var(--serif); display: grid; gap: .6rem; }
.pager a:hover { background: var(--surface); }
.pager__next { text-align: right; }

.post .page-head { border-bottom: 0; padding-bottom: 1rem; }
.post > .prose { padding-block: 2rem var(--section); }

.subscribe-page { padding-block: clamp(5rem, 4rem + 6vw, 9rem); }
.subscribe-page .wrap { display: grid; gap: 1.75rem; justify-items: start; }
.subscribe-page .lede { margin-top: 0; }
.subscribe-page .ticks { width: 100%; max-width: 32rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); }
.footer__grid { display: grid; grid-template-columns: 1.2fr .6fr .6fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__name { font: 400 1.75rem/1 var(--serif); margin: 0 0 .75rem; }
.footer__brand .muted { margin: 0; font: 400 .72rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer__col { display: grid; gap: .6rem; align-content: start; }
.footer__col .label, .footer__sub .label { margin-bottom: .4rem; }
.footer__col a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer__col a:hover { color: var(--text); }
.footer__sub { display: grid; gap: .6rem; align-content: start; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font: 400 .72rem/1.4 var(--mono); color: var(--muted); letter-spacing: .06em; }

/* ---------- entry motion: visible at rest, lifts in when JS is present ---------- */
.js .reveal { transform: translateY(14px); opacity: .001; transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s ease; }
.js .reveal.is-in { transform: none; opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res:nth-child(2n) { border-right: 0; }
  .res:nth-child(n+3) { border-top: 1px solid var(--line); }
  .res:nth-child(2n+1) { padding-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .work__inner { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 900px) {
  .hero__grid, .band__grid, .split, .build__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { align-items: start; }
  .spec { position: static; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .resources { grid-template-columns: minmax(0, 1fr); }
  .res, .res + .res { padding: 1.5rem 0; border-right: 0; }
  .res + .res { border-top: 1px solid var(--line); }
  .post-row a { grid-template-columns: minmax(0, 1fr) auto; }
  .post-row time { grid-column: 1; grid-row: 1; }
  .post-row__len { grid-column: 2; grid-row: 1; }
  .post-row__title, .post-row__sum { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager__next { text-align: left; }
  .card__meta div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .sub .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { transform: none; opacity: 1; }
}
