/* ============================================================
   REBEL INC. — therebelinc.com
   Design system + animation
   ============================================================ */

:root {
  --black: #0b0b0b;
  --ink: #141414;
  --card: #101010;
  --red: #d42a2a;
  --red-bright: #ff2e2e;
  --yellow: #f5b301;
  --cream: #f1efec;
  --white: #ffffff;
  --gray: #b5b5b5;
  --gray-dark: #6e6e6e;

  --font-display: 'Anton', sans-serif;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Caveat', cursive;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow-lift: 0 18px 40px -12px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============ Loader ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: grid;
  place-items: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: .05em;
  animation: loaderPulse 1s ease-in-out infinite alternate;
}
.loader__text span { color: var(--red); }
@keyframes loaderPulse {
  from { opacity: .35; transform: scale(.98); }
  to   { opacity: 1;   transform: scale(1); }
}

/* ============ Domain bar ============ */
.domain-bar {
  background: #000;
  color: #d8d8d8;
  text-align: center;
  font-size: .8rem;
  padding: .55rem 0;
  letter-spacing: .02em;
}
.domain-bar__lock { font-size: .7rem; margin-right: .25rem; }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .04em;
}
.nav__logo span { color: var(--red); }
.nav__list {
  display: flex;
  gap: 2.2rem;
}
.nav__link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-block: .35rem;
  position: relative;
  transition: color .25s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.nav__link:hover { color: var(--red-bright); }
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__link.is-active { color: var(--red-bright); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
}
.nav__toggle span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .85rem 1.7rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s ease, color .25s ease, background .25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 90%; height: 100%;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .25) 50%, transparent 80%);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn:hover::before { left: 130%; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--red {
  background: var(--red);
  color: var(--white);
}
.btn--red:hover { box-shadow: 0 10px 26px -8px rgba(212, 42, 42, .7); }

.btn--yellow {
  background: var(--yellow);
  color: #151102;
}
.btn--yellow:hover { box-shadow: 0 10px 26px -8px rgba(245, 179, 1, .6); }

.btn--outline-yellow {
  background: transparent;
  border-color: var(--yellow);
  color: var(--yellow);
}
.btn--outline-yellow:hover {
  background: var(--yellow);
  color: #151102;
  box-shadow: 0 10px 26px -8px rgba(245, 179, 1, .5);
}

.btn--sm {
  padding: .55rem 1.1rem;
  font-size: .78rem;
}

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  margin-right: .5rem;
  vertical-align: 1px;
  animation: liveBlink 1.4s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 46, 46, .5); }
  50% { opacity: .5; box-shadow: 0 0 0 5px rgba(255, 46, 46, 0); }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 78% 18%, rgba(212, 42, 42, .13), transparent 60%),
    var(--black);
  overflow: hidden;
}
.hero__eq {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .5;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 2.5rem;
  padding-block: 3.5rem 4rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: .95;
  letter-spacing: .02em;
}
.hero__title-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotate(4deg);
  animation: letterUp .7s var(--ease-out) forwards;
}
.hero__title-letter:nth-child(1) { animation-delay: .55s; }
.hero__title-letter:nth-child(2) { animation-delay: .63s; }
.hero__title-letter:nth-child(3) { animation-delay: .71s; }
.hero__title-letter:nth-child(4) { animation-delay: .79s; }
.hero__title-letter:nth-child(5) { animation-delay: .87s; }
.hero__title-letter:nth-child(6) { animation-delay: .95s; }
.hero__title-dot { color: var(--red); }
@keyframes letterUp {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero__tagline {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  color: var(--yellow);
  line-height: 1.1;
  margin-top: 1.2rem;
}
.hero__tagline-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .8s var(--ease-out) forwards;
}
.hero__tagline-line:nth-child(1) { animation-delay: 1.15s; }
.hero__tagline-line:nth-child(2) { animation-delay: 1.35s; position: relative; width: fit-content; }
.hero__underline {
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 14px;
}
.hero__underline path {
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: drawLine .9s ease forwards 1.7s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.hero__desc {
  margin-top: 2rem;
  color: var(--gray);
  font-size: 1.02rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) forwards 1.6s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) forwards 1.8s;
}

.hero__social {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 2.2rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) forwards 2s;
}
.hero__social-label {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-right: .3rem;
}
.social-icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background .25s ease, transform .25s var(--ease-out), color .25s ease;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
  background: var(--red);
  transform: translateY(-4px) scale(1.08);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__media {
  perspective: 900px;
}
.hero__img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8);
  opacity: 0;
  transform: translateX(50px);
  animation: heroIn 1s var(--ease-out) forwards .7s;
  transition: transform .3s ease;
  will-change: transform;
}
@keyframes heroIn {
  to { opacity: 1; transform: translateX(0); }
}
.hero__img {
  width: 100%;
  transform: scale(1.02);
  animation: kenBurns 14s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.09) translate(-8px, -6px); }
}
.hero__glow {
  position: absolute;
  top: 4%; right: 2%;
  width: 42%; height: 34%;
  background: radial-gradient(closest-side, rgba(255, 40, 40, .38), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: neonFlicker 4.5s linear infinite;
}
@keyframes neonFlicker {
  0%, 100% { opacity: .9; }
  4%  { opacity: .55; }
  6%  { opacity: 1; }
  9%  { opacity: .7; }
  11% { opacity: 1; }
  46% { opacity: .92; }
  48% { opacity: .6; }
  50% { opacity: 1; }
  77% { opacity: .85; }
  79% { opacity: 1; }
}

/* ============ Marquee ============ */
.marquee {
  background: var(--red);
  overflow: hidden;
  padding-block: .7rem;
  transform: rotate(-.6deg) scale(1.02);
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .88rem;
  color: var(--white);
}
.marquee__track em {
  font-style: normal;
  color: #ffd75e;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Sections (light) ============ */
.section {
  padding-block: 4.5rem;
}
.section--light {
  background: var(--cream);
  color: #161616;
}
.section--flush { padding-top: 0; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  position: relative;
  padding-bottom: .5rem;
}
.section__title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out) .2s;
}
.reveal.is-visible .section__title::after,
.section__head.is-visible .section__title::after { transform: scaleX(1); }

.section__more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  white-space: nowrap;
}
.section__more .arrow {
  display: inline-block;
  transition: transform .25s var(--ease-out);
}
.section__more:hover .arrow { transform: translateX(6px); }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Projects ============ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.project-card {
  background: var(--card);
  color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lift);
}
.project-card__media {
  overflow: hidden;
  aspect-ratio: 2 / 1;
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.project-card:hover .project-card__media img { transform: scale(1.08); }
.project-card__body { padding: 1.3rem 1.4rem 1.6rem; }
.project-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.project-card__desc {
  color: var(--gray);
  font-size: .9rem;
  margin-bottom: 1.1rem;
  min-height: 2.7em;
}

/* ============ Split: writing / merch ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

/* Posts */
.posts { display: grid; gap: 1.4rem; }
.post {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: .6rem;
  margin: -.6rem;
  border-radius: 10px;
  transition: background .3s ease, transform .3s var(--ease-out);
}
.post:hover {
  background: rgba(212, 42, 42, .06);
  transform: translateX(6px);
}
.post__thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.post__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.post:hover .post__thumb img { transform: scale(1.1); }
.post__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
  transition: color .25s ease;
}
.post:hover .post__title { color: var(--red); }
.post__date {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  margin-block: .3rem;
}
.post__excerpt {
  font-size: .88rem;
  color: #4c4c4c;
}

/* Merch */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.merch-card {
  background: var(--white);
  border-radius: 10px;
  padding: .8rem .8rem 1rem;
  text-align: center;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.merch-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .25);
}
.merch-card__media {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: .7rem;
  aspect-ratio: 1 / 1;
}
.merch-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.merch-card:hover .merch-card__media img { transform: scale(1.09); }
.merch-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  color: #1c1c1c;
}
.merch-card__price {
  font-weight: 700;
  font-size: .84rem;
  color: var(--red);
  margin-top: .2rem;
}

/* About */
.about { margin-top: 3rem; }
.about__row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.5rem;
  align-items: center;
}
.about__media {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35);
}
.about__media img {
  transition: transform .6s var(--ease-out);
}
.about__media:hover img { transform: scale(1.06); }
.about__body p {
  font-size: .95rem;
  color: #333;
  margin-bottom: 1.1rem;
}

/* ============ Footer CTA ============ */
.footer-cta {
  position: relative;
  background: var(--ink);
  padding-block: 4rem;
  overflow: hidden;
}
.footer-cta__brush {
  position: absolute;
  right: -4%;
  top: 0;
  width: 45%;
  height: 100%;
  background:
    linear-gradient(115deg, transparent 42%, rgba(212, 42, 42, .55) 43%, rgba(212, 42, 42, .18) 55%, transparent 62%),
    linear-gradient(100deg, transparent 55%, rgba(212, 42, 42, .35) 56%, transparent 70%);
  pointer-events: none;
}
.footer-cta__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr .8fr;
  gap: 2.5rem;
  align-items: center;
}
.footer-cta__title {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--yellow);
  margin-bottom: .9rem;
}
.footer-cta__title--sans {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: .05em;
  color: var(--white);
}
.footer-cta__thanks p {
  color: var(--gray);
  font-size: .95rem;
  margin-bottom: .6rem;
}
.footer-cta__sig {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--yellow) !important;
  margin-top: .4rem;
}
.heart {
  display: inline-block;
  color: var(--red-bright);
  animation: heartBeat 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.25); }
  24% { transform: scale(1); }
  36% { transform: scale(1.18); }
  48% { transform: scale(1); }
}
.footer-cta__join p { color: var(--gray); font-size: .92rem; }

.subscribe {
  display: flex;
  gap: .6rem;
  margin-top: 1.1rem;
}
.subscribe__input {
  flex: 1;
  min-width: 0;
  padding: .85rem 1rem;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.subscribe__input::placeholder { color: #8a8a8a; }
.subscribe__input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 179, 1, .18);
}
.subscribe__btn { flex-shrink: 0; }
.subscribe__msg {
  margin-top: .7rem;
  font-size: .85rem;
  min-height: 1.3em;
  color: var(--yellow);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s var(--ease-out);
}
.subscribe__msg.is-shown { opacity: 1; transform: translateY(0); }
.subscribe__msg.is-error { color: var(--red-bright); }

.footer-cta__media img {
  border-radius: 10px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .7);
  transition: transform .4s var(--ease-out);
}
.footer-cta__media:hover img { transform: rotate(1.5deg) scale(1.03); }

/* ============ Footer ============ */
.site-footer {
  background: #000;
  padding-top: 3rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.site-footer__heading {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
  color: var(--white);
}
.site-footer__list li { margin-bottom: .45rem; }
.site-footer__list a {
  color: var(--gray);
  font-size: .88rem;
  transition: color .25s ease, padding-left .25s ease;
}
.site-footer__list a:hover {
  color: var(--red-bright);
  padding-left: 4px;
}
.site-footer__list--icons a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.footer-icon { width: 14px; height: 14px; flex-shrink: 0; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.2rem;
  text-align: center;
  font-size: .8rem;
  color: var(--gray-dark);
}
.site-footer__bottom a { color: var(--yellow); }
.site-footer__bottom a:hover { text-decoration: underline; }

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .35s var(--ease-out), visibility .35s, background .25s ease;
  box-shadow: 0 8px 20px -6px rgba(212, 42, 42, .6);
}
.back-to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--red-bright); }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 2.5rem 3rem; }
  .hero__media { order: -1; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .footer-cta__grid { grid-template-columns: 1fr 1fr; }
  .footer-cta__media { display: none; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__list {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, .97);
    padding: .5rem 0 1rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform .35s var(--ease-out), opacity .3s ease;
  }
  .nav__list.is-open { transform: scaleY(1); opacity: 1; }
  .nav__list li { text-align: center; }
  .nav__link { display: block; padding: .8rem 0; }
  .nav__link::after { display: none; }

  .projects-grid { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .about__row { grid-template-columns: 1fr; }
  .about__media { max-width: 280px; }
  .footer-cta__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .subscribe { flex-direction: column; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__title-letter, .hero__tagline-line, .hero__desc,
  .hero__actions, .hero__social, .hero__img-wrap { opacity: 1; transform: none; }
}

/* ============================================================
   INNER PAGES — Writing, Post, Contact
   ============================================================ */

/* ============ Page hero ============ */
.page-hero {
  background:
    radial-gradient(700px 300px at 75% 30%, rgba(212, 42, 42, .16), transparent 60%),
    var(--black);
  padding-block: 3.5rem 3rem;
}
.page-hero__kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--red-bright);
  margin-bottom: .4rem;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp .8s var(--ease-out) forwards .1s;
}
.page-hero__title span { color: var(--red); }
.page-hero__sub {
  position: relative;
  width: fit-content;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--yellow);
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .8s var(--ease-out) forwards .35s;
}
.page-hero__underline {
  position: absolute;
  left: 0;
  bottom: -12px;
  width: min(220px, 60%);
  height: 14px;
}
.page-hero__underline path {
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: drawLine .9s ease forwards .9s;
}

/* ============ Blog grid ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px -12px rgba(0, 0, 0, .28);
}
.blog-card__link { display: block; color: inherit; }
.blog-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.blog-card:hover .blog-card__media img { transform: scale(1.08); }
.blog-card__body { padding: 1.2rem 1.3rem 1.3rem; }
.blog-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.3;
  color: #161616;
  margin-block: .15rem .45rem;
  transition: color .25s ease;
}
.blog-card:hover .blog-card__title { color: var(--red); }
.blog-card__excerpt {
  font-size: .88rem;
  color: #4c4c4c;
  margin-bottom: .9rem;
}
.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-card__read {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
}
.blog-card__read .arrow {
  display: inline-block;
  transition: transform .25s var(--ease-out);
}
.blog-card:hover .blog-card__read .arrow { transform: translateX(5px); }
.blog-card__comments {
  font-size: .8rem;
  color: #8a8a8a;
}

/* ============ Article ============ */
.article { background: var(--cream); color: #161616; }
.article__hero {
  background:
    radial-gradient(700px 300px at 70% 40%, rgba(212, 42, 42, .15), transparent 60%),
    var(--black);
  color: var(--white);
  padding-block: 3rem 2.6rem;
}
.article__back {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gray);
  margin-bottom: 1.2rem;
  transition: color .25s ease, transform .25s var(--ease-out);
}
.article__back:hover { color: var(--yellow); transform: translateX(-4px); }
.article__date {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red-bright);
  margin-bottom: .5rem;
}
.article__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  max-width: 18em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp .8s var(--ease-out) forwards .1s;
}
.article__layout {
  max-width: 760px;
  padding-block: 0 4rem;
}
.article__media {
  margin-top: -1.6rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .35);
}
.article__media img { width: 100%; max-height: 340px; object-fit: cover; }
.article__body { padding-top: 2rem; }
.article__para {
  font-size: 1.04rem;
  line-height: 1.85;
  color: #2b2b2b;
  margin-bottom: 1.3rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .7s var(--ease-out) forwards calc(.25s + var(--d, 0s));
}
.article__para:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  float: left;
  line-height: .85;
  padding-right: .12em;
  color: var(--red);
}

/* ============ Comments ============ */
.comments {
  margin-top: 3rem;
  border-top: 3px solid #e2ded8;
  padding-top: 2.2rem;
}
.comments__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.comments__count { color: var(--red); }
.comments__sub {
  font-size: .9rem;
  color: #6b6b6b;
  margin-block: .3rem 1.4rem;
}

.field { margin-bottom: 1rem; }
.field__label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #444;
  margin-bottom: .35rem;
}
.field__label span { color: var(--red); }
.field__input {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 6px;
  border: 1.5px solid #d9d4cc;
  background: var(--white);
  color: #191919;
  font-family: var(--font-body);
  font-size: .93rem;
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212, 42, 42, .14);
}
.field__input--area { resize: vertical; min-height: 96px; }
.field__input--select { cursor: pointer; }

.comment-form__row {
  display: grid;
  grid-template-columns: minmax(0, 320px);
  gap: 1rem;
}
.comment-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.comment-form__msg {
  font-size: .85rem;
  color: #1d7a37;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s var(--ease-out);
  margin: 0;
}
.comment-form__msg.is-shown { opacity: 1; transform: translateY(0); }
.comment-form__msg.is-error { color: var(--red); }

.comments__list { margin-top: 2rem; display: grid; gap: 1.1rem; }
.comment {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .9rem;
  background: var(--white);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.comment--new { animation: commentPop .5s var(--ease-out); }
@keyframes commentPop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.comment__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  display: grid;
  place-items: center;
}
.comment__head { font-size: .88rem; color: #191919; }
.comment__time { color: #9a9a9a; font-size: .78rem; margin-left: .4rem; }
.comment__text {
  font-size: .92rem;
  color: #3a3a3a;
  margin-top: .25rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.comments__empty {
  margin-top: 1.6rem;
  font-size: .9rem;
  color: #8a8a8a;
  font-style: italic;
}

/* ============ More posts ============ */
.more-posts {
  margin-top: 3rem;
  border-top: 3px solid #e2ded8;
  padding-top: 2.2rem;
}
.more-posts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.more-posts__card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: .9rem;
  align-items: center;
  background: var(--white);
  border-radius: 10px;
  padding: .8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.more-posts__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .2);
}
.more-posts__card img {
  width: 96px; height: 72px;
  object-fit: cover;
  border-radius: 6px;
}
.more-posts__card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  color: #161616;
}
.more-posts__card:hover h3 { color: var(--red); }

/* ============ Contact page ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info__lead {
  color: #4c4c4c;
  font-size: .95rem;
  margin-block: 1rem 1.6rem;
}
.contact-info__list { display: grid; gap: 1.1rem; }
.contact-info__list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .8rem;
  align-items: center;
  background: var(--white);
  border-radius: 10px;
  padding: .9rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  font-size: .9rem;
  color: #4c4c4c;
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.contact-info__list li:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .18);
}
.contact-info__list strong { color: #161616; font-family: var(--font-head); letter-spacing: .02em; }
.contact-info__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--black);
  border-radius: 50%;
  font-size: 1.1rem;
}
.contact-info__direct { margin-top: 1.8rem; }
.contact-info__email-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6b6b6b;
}
.contact-info__email {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--red);
  position: relative;
}
.contact-info__email::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.contact-info__email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 34px -14px rgba(0, 0, 0, .18);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}
.contact-form__success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.contact-form__success.is-in { animation: commentPop .6s var(--ease-out); }
.contact-form__success-heart {
  font-size: 2.6rem;
  color: var(--red);
  animation: heartBeat 1.6s ease-in-out infinite;
  margin-bottom: .6rem;
}
.contact-form__success h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.4rem;
  color: #161616;
}
.contact-form__success p {
  color: #4c4c4c;
  font-size: .93rem;
  margin-block: .6rem 1.4rem;
}

/* ============ Inner pages responsive ============ */
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .blog-grid { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .more-posts__grid { grid-template-columns: 1fr; }
}

/* ============ About page ============ */
.about-page {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}
.about-page__media {
  position: sticky;
  top: 90px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .35);
}
.about-page__media img {
  width: 100%;
  transition: transform .6s var(--ease-out);
}
.about-page__media:hover img { transform: scale(1.04); }
.about-page__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.2rem .9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: var(--white);
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.25rem;
}
.about-page__story .section__title { margin-bottom: 1.2rem; }
.about-page__para {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #2b2b2b;
  margin-bottom: 1.2rem;
}
.about-page__para:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.1em;
  float: left;
  line-height: .85;
  padding-right: .12em;
  color: var(--red);
}
.about-page__link {
  color: var(--red);
  font-weight: 600;
  border-bottom: 2px solid rgba(212, 42, 42, .3);
  transition: border-color .25s ease;
}
.about-page__link:hover { border-color: var(--red); }
.about-page__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* ============ Pillars ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.pillar {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 1.6rem 1.4rem;
  transition: transform .35s var(--ease-out), border-color .35s ease, box-shadow .35s ease;
}
.pillar:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 42, 42, .5);
  box-shadow: 0 18px 38px -14px rgba(212, 42, 42, .35);
}
.pillar__icon { font-size: 1.8rem; display: block; margin-bottom: .7rem; }
.pillar__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--yellow);
  margin-bottom: .5rem;
}
.pillar p { font-size: .88rem; color: var(--gray); }

/* ============ Quote band ============ */
.quote-band {
  background:
    radial-gradient(600px 260px at 50% 50%, rgba(212, 42, 42, .18), transparent 65%),
    #000;
  text-align: center;
  padding-block: 4rem;
}
.quote-band__text {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--white);
  max-width: 20em;
  margin-inline: auto;
}
.quote-band__sig {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--yellow);
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .about-page { grid-template-columns: 1fr; }
  .about-page__media { position: static; max-width: 480px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ============ Merch page ============ */
.store-banner {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  border-radius: 14px;
  padding: 1.8rem 2rem 2.2rem;
  margin-bottom: 2.4rem;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .4);
}
.store-banner__stripes {
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 14px,
    #151102 14px 28px
  );
  background-size: 40px 8px;
  animation: stripesMove 1.2s linear infinite;
}
@keyframes stripesMove {
  to { background-position: 40px 0; }
}
.store-banner__body {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: .6rem;
}
.store-banner__icon {
  font-size: 2rem;
  line-height: 1;
  animation: wrenchTilt 2.4s ease-in-out infinite;
  transform-origin: 60% 60%;
}
@keyframes wrenchTilt {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-14deg); }
  55% { transform: rotate(9deg); }
}
.store-banner__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--yellow);
}
.store-banner__text {
  font-size: .93rem;
  color: #d8d8d8;
  max-width: 62ch;
  margin-top: .3rem;
}
.store-banner__progress {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  margin-top: 1.3rem;
  overflow: hidden;
}
.store-banner__progress span {
  position: absolute;
  top: 0; bottom: 0;
  width: 38%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  animation: progressSlide 2.2s var(--ease-out) infinite;
}
@keyframes progressSlide {
  0% { left: -40%; }
  60% { left: 100%; }
  100% { left: 100%; }
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.shop-card { position: relative; }
.shop-card__badge {
  position: absolute;
  top: .8rem;
  left: .8rem;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #151102;
  background: var(--yellow);
  padding: .28rem .7rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.shop-note {
  margin-top: 1.6rem;
  font-size: .82rem;
  color: #8a8a8a;
  font-style: italic;
}

@media (max-width: 960px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .shop-grid { grid-template-columns: 1fr; }
  .store-banner__body { flex-direction: column; }
}

/* ============ Fourthwall connection ============ */
.store-banner__cta { margin-top: 1rem; }
.shop-card[href] { cursor: pointer; }

/* ============ Shop toolbar (live store) ============ */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* ============ Footer admin link ============ */
.site-footer__admin {
  opacity: .45;
  transition: opacity .25s ease, color .25s ease;
}
.site-footer__admin:hover {
  opacity: 1;
  color: var(--yellow);
}

/* ============ Hidden attribute safety ============ */
[hidden] { display: none !important; }

/* ============ Text-glyph footer icon (Threads @) ============ */
.footer-icon--at {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

/* ============ Writing tabs (Blog / Substack) ============ */
.writing-tabs {
  display: flex;
  gap: .6rem;
  margin-bottom: 2rem;
}
.writing-tab {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #6b6b6b;
  background: transparent;
  border: 2px solid #d9d4cc;
  border-radius: 999px;
  padding: .6rem 1.6rem;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.writing-tab:hover { color: #161616; transform: translateY(-2px); }
.writing-tab.is-active {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 10px 24px -10px rgba(212, 42, 42, .6);
}

.substack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.substack-head__note { color: #4c4c4c; font-size: .95rem; }
.substack-loading { color: #8a8a8a; font-style: italic; }

.blog-card__media--substack {
  display: grid;
  place-items: center;
  background:
    radial-gradient(300px 140px at 70% 20%, rgba(212, 42, 42, .35), transparent 70%),
    var(--black);
}
.blog-card__mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--white);
}
.blog-card__mark::after { content: ''; }

.substack-fallback {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--white);
  border-radius: 12px;
  padding: 3rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}
.substack-fallback__icon { font-size: 2.4rem; }
.substack-fallback h2 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #161616;
  margin: .4rem 0;
}
.substack-fallback p { color: #4c4c4c; font-size: .95rem; max-width: 46ch; margin: 0 auto 1.4rem; }

/* ============ Substack reader modal ============ */
body.reader-open { overflow: hidden; }
.reader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 3vw, 2rem);
}
.reader__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: readerFade .3s ease;
}
@keyframes readerFade { from { opacity: 0; } }
.reader__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cream);
  color: #191919;
  border-radius: 14px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9);
  animation: readerIn .45s var(--ease-out);
}
@keyframes readerIn {
  from { opacity: 0; transform: translateY(34px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.reader__close {
  position: sticky;
  top: .9rem;
  margin-left: calc(100% - 3.4rem);
  margin-right: .9rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  transition: background .25s ease, transform .25s var(--ease-out);
}
.reader__close:hover { background: var(--red); transform: rotate(90deg); }
.reader__head {
  padding: 0 clamp(1.4rem, 5vw, 3rem) 1rem;
  margin-top: -1.4rem;
}
.reader__date {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red);
  margin-bottom: .4rem;
}
.reader__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.15;
  color: #141414;
}
.reader__body {
  padding: .4rem clamp(1.4rem, 5vw, 3rem) 1.6rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #2b2b2b;
}
.reader__body p { margin-bottom: 1.15rem; }
.reader__body h1, .reader__body h2, .reader__body h3 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: #141414;
  margin: 1.6rem 0 .7rem;
}
.reader__body img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.2rem 0;
}
.reader__body a { color: var(--red); font-weight: 600; }
.reader__body blockquote {
  border-left: 4px solid var(--red);
  padding-left: 1.1rem;
  margin: 1.3rem 0;
  font-style: italic;
  color: #4c4c4c;
}
.reader__body hr { border: 0; border-top: 2px solid #e2ded8; margin: 1.6rem 0; }
.reader__ext { color: var(--red); font-weight: 600; }
.reader__foot {
  border-top: 3px solid #e2ded8;
  padding: 1.4rem clamp(1.4rem, 5vw, 3rem) 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.reader__foot p { font-size: .9rem; color: #4c4c4c; }
.reader__foot-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
