/* torrent — layout C full-bleed feed · dense · hairline dividers · light enter */
:root {
  --to-ink: #161c19;
  --to-muted: #5a655e;
  --to-paper: #f3f1ea;
  --to-panel: #ebe7dc;
  --to-line: rgba(22, 28, 25, 0.14);
  --to-line-strong: rgba(22, 28, 25, 0.28);
  --to-grit: #9a7b3c;
  --to-grit-deep: #6e5526;
  --to-slate: #2f3d36;
  --to-cta: #1f6b4a;
  --to-cta-ink: #f5fff8;
  --to-font-display: "Archivo Narrow", "Segoe UI Narrow", "Arial Narrow", sans-serif;
  --to-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --to-mast-h: 56px;
  --to-banner-h: 40px;
  --to-safe-top: env(safe-area-inset-top, 0px);
  --to-safe-bottom: env(safe-area-inset-bottom, 0px);
  --to-content: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--to-mast-h) + var(--to-banner-h) + var(--to-safe-top) + 10px);
  scroll-padding-bottom: calc(76px + var(--to-safe-bottom));
}
body {
  margin: 0;
  font-family: var(--to-font-body);
  color: var(--to-ink);
  background: var(--to-paper);
  line-height: 1.45;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 720px) {
  body { background: #cfc9bb; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--to-grit-deep); text-underline-offset: 2px; }
a:hover { color: var(--to-cta); }
h1, h2, h3, .to-brand__name {
  font-family: var(--to-font-display);
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 700;
}

/* Layout C: mobile full-bleed; desktop centered reading shell */
.to-shell {
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-bottom: calc(72px + var(--to-safe-bottom));
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(22, 28, 25, 0.015) 11px,
      rgba(22, 28, 25, 0.015) 12px
    ),
    var(--to-paper);
}
@media (min-width: 720px) {
  .to-shell {
    max-width: var(--to-content);
    margin-inline: auto;
    box-shadow:
      0 0 0 1px rgba(22, 28, 25, 0.08),
      0 18px 48px rgba(22, 28, 25, 0.12);
  }
}
.to-wrap {
  width: 100%;
  max-width: var(--to-content);
  margin-inline: auto;
  padding-inline: clamp(0.85rem, 3vw, 1.35rem);
}
.to-wrap--feed {
  width: 100%;
  max-width: var(--to-content);
  margin-inline: auto;
  padding-inline: 0;
}

.to-mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 241, 234, 0.96);
  border-bottom: 1px solid var(--to-line-strong);
  padding-top: var(--to-safe-top);
  backdrop-filter: blur(8px);
}
.to-mast__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--to-mast-h);
  width: 100%;
  max-width: var(--to-content);
  margin-inline: auto;
  padding-inline: clamp(0.85rem, 3vw, 1.35rem);
  box-sizing: border-box;
}
.to-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.to-brand img { border-radius: 3px; flex-shrink: 0; background: var(--to-slate); }
.to-brand__name { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.to-brand__tag { display: block; font-size: 0.68rem; color: var(--to-muted); font-family: var(--to-font-body); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.to-nav { display: none; gap: 0.85rem; margin-left: 0.75rem; }
.to-nav a {
  text-decoration: none;
  color: var(--to-muted);
  font-size: 0.86rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.to-nav a.is-active, .to-nav a:hover { color: var(--to-ink); border-bottom-color: var(--to-grit); }
.to-mast__cta { display: none; gap: 0.4rem; margin-left: auto; }
.to-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--to-line-strong);
  background: transparent;
  color: var(--to-ink);
  font: inherit;
  font-weight: 650;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  line-height: 1.2;
}
.to-btn--ghost { background: transparent; }
.to-btn--grit { background: var(--to-grit); border-color: var(--to-grit-deep); color: #1a150c; }
.to-btn--cta-vis, .to-btn--solid, .to-cta-mid__btn, .to-cta-rail__btn {
  background: var(--to-cta);
  border-color: #155538;
  color: var(--to-cta-ink);
}
.to-btn--lg { padding: 0.7rem 1.1rem; font-size: 0.95rem; }
.to-btn--soft { background: var(--to-panel); }
.to-toggle {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--to-line-strong);
  background: var(--to-panel);
  border-radius: 2px;
  font-size: 1.2rem;
  cursor: pointer;
}
.to-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid var(--to-line-strong);
  background: var(--to-panel);
}
.to-drawer.is-open { display: flex; }
.to-drawer a {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--to-ink);
  border-bottom: 1px solid var(--to-line);
  font-weight: 600;
  font-size: 0.92rem;
}

.to-strip {
  border-bottom: 1px solid var(--to-line);
  background: var(--to-slate);
  color: #e8e4d8;
}
.to-strip__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--to-content);
  margin-inline: auto;
  padding: 0.55rem clamp(0.85rem, 3vw, 1.35rem);
  min-height: var(--to-banner-h);
  font-size: 0.82rem;
  box-sizing: border-box;
}
.to-strip__kicker {
  font-family: var(--to-font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--to-grit);
  font-size: 0.72rem;
}
.to-strip__line { flex: 1; min-width: 12rem; opacity: 0.92; }
.to-strip__x {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}

/* H7 restyled as feed cards — dense stack, hairlines not soft CMS cards */
.to-hero {
  padding: 1.1rem 0 0.35rem;
  border-bottom: 1px solid var(--to-line-strong);
}
.to-hero__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--to-muted);
  font-weight: 700;
}
.to-hero__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 4.5vw, 2.05rem);
  max-width: 36rem;
}
.to-hero__text {
  margin: 0 0 0.85rem;
  color: var(--to-muted);
  max-width: 40rem;
  font-size: 0.95rem;
}
.to-hero__actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.75rem; }
.to-cta-mid {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem;
  border-block: 1px solid var(--to-line-strong);
  background: linear-gradient(90deg, rgba(31, 107, 74, 0.08), transparent 70%);
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.to-cta-mid__btn {
  width: 100%;
  max-width: 22rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
}

.to-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: var(--to-content);
  margin-inline: auto;
  padding: 0.85rem clamp(0.85rem, 3vw, 1.35rem) 0.35rem;
  border-bottom: 1px solid var(--to-line);
  box-sizing: border-box;
}
.to-feed-head h2 { margin: 0; font-size: 1.1rem; }
.to-feed-head p { margin: 0; font-size: 0.8rem; color: var(--to-muted); }

.to-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  max-width: var(--to-content);
  margin-inline: auto;
  border-bottom: 1px solid var(--to-line-strong);
}
@media (min-width: 720px) {
  .to-grid { grid-template-columns: 1fr 1fr; }
  .to-grid > *:nth-child(odd) { border-right: 1px solid var(--to-line); }
  .to-grid > *:nth-child(even) { border-right: 0; }
}
.to-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--to-line);
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.to-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--to-slate);
  border-bottom: 1px solid var(--to-line);
  max-height: 10rem;
}
.to-card__media img, .to-card__ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.to-card__ph {
  background:
    linear-gradient(135deg, #2f3d36 0%, #1c2420 55%, #3d4a42 100%);
}
.to-card__body { padding: 0.75rem 0.9rem 1rem; }
.to-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--to-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 650;
}
.to-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.to-card__title a { color: inherit; text-decoration: none; }
.to-card__title a:hover { color: var(--to-cta); }
.to-card__excerpt {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--to-muted);
}
.to-card__go {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--to-grit-deep);
}

.to-promo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.1rem 0.95rem;
  background: var(--to-slate);
  color: #e8e4d8;
  border-bottom: 1px solid var(--to-line-strong);
}
.to-promo h3 { margin: 0; font-size: 1.15rem; color: #fff; }
.to-promo p { margin: 0; font-size: 0.88rem; opacity: 0.88; }

.to-pillars {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: var(--to-content);
  margin-inline: auto;
  border-bottom: 1px solid var(--to-line-strong);
}
.to-pillar {
  padding: 0.95rem clamp(0.85rem, 3vw, 1.35rem);
  border-bottom: 1px solid var(--to-line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
}
.to-pillar__n {
  font-family: var(--to-font-display);
  font-size: 1.35rem;
  color: var(--to-grit);
  line-height: 1;
}
.to-pillar h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.to-pillar p { margin: 0; font-size: 0.86rem; color: var(--to-muted); }
.to-pillar a { font-size: 0.8rem; font-weight: 700; white-space: nowrap; }

.to-news-list { display: flex; flex-direction: column; gap: 0; }
.to-news-card {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--to-line);
  background: transparent;
}
.to-news-card.has-thumb { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .to-news-card.has-thumb {
    grid-template-columns: minmax(132px, 168px) minmax(0, 1fr);
    align-items: start;
  }
}
.to-news-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--to-slate);
  border-bottom: 1px solid var(--to-line);
}
@media (min-width: 640px) {
  .to-news-card__media {
    border-bottom: 0;
    border-right: 1px solid var(--to-line);
    aspect-ratio: 16 / 9;
    min-height: 0;
    align-self: start;
  }
}
.to-news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.to-news-card__body { padding: 0.85rem 1rem 1.05rem; }
.to-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  color: var(--to-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 650;
}
.to-news-card__drop {
  color: var(--to-grit-deep);
}
.to-news-card__title { margin: 0 0 0.35rem; font-size: 1.12rem; }
.to-news-card__title a { color: inherit; text-decoration: none; }
.to-news-card__excerpt { margin: 0; font-size: 0.9rem; color: var(--to-muted); }
.to-news-empty { padding: 1.25rem; color: var(--to-muted); }

.to-pager { padding: 1rem; border-top: 1px solid var(--to-line); }
.to-pager__row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.to-pager__pages { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.to-pager__btn, .to-pager__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid var(--to-line);
  text-decoration: none;
  color: var(--to-ink);
  font-size: 0.85rem;
  border-radius: 2px;
}
.to-pager__num.is-current { background: var(--to-slate); color: #fff; border-color: var(--to-slate); }
.to-pager__btn.is-disabled { opacity: 0.35; pointer-events: none; }
.to-pager__gap { opacity: 0.5; font-size: 0.75rem; align-self: center; padding: 0 0.2rem; }
.to-pager__status { display: block; margin-top: 0.45rem; font-size: 0.78rem; color: var(--to-muted); }

.to-page { padding: 0.85rem 0 1.5rem; }
.to-crumb {
  font-size: 0.78rem;
  color: var(--to-muted);
  margin: 0 0 0.65rem;
}
.to-crumb a { color: inherit; }
.to-title { margin: 0 0 0.55rem; font-size: clamp(1.4rem, 3.8vw, 1.85rem); }
.to-lead { margin: 0 0 1rem; color: var(--to-muted); max-width: 42rem; }
.to-prose { max-width: 44rem; }
.to-prose p, .to-prose li { font-size: 0.95rem; }
.to-prose ol, .to-prose ul { padding-left: 1.15rem; }
.to-prose li + li { margin-top: 0.35rem; }
.to-figure {
  margin: 0 0 1rem;
  border: 1px solid var(--to-line);
  border-radius: 0;
}
.to-figure__ph {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(120deg, #2f3d36, #1c2420 50%, #4a564e);
}
.to-figure figcaption {
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  color: var(--to-muted);
  border-top: 1px solid var(--to-line);
}

.to-article__title { margin: 0 0 0.45rem; font-size: clamp(1.35rem, 3.6vw, 1.75rem); }
.to-news-lead { margin: 0 0 0.85rem; color: var(--to-muted); }
.to-news-hero {
  margin: 0 0 1rem;
  border: 1px solid var(--to-line);
}
.to-news-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.to-news-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.1rem 0;
  border-block: 1px solid var(--to-line-strong);
}
.to-news-nav a {
  display: block;
  padding: 0.75rem 0.85rem;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--to-line);
  font-size: 0.82rem;
}
.to-news-nav a:last-child { border-right: 0; }
.to-news-nav strong { display: block; margin-top: 0.2rem; font-size: 0.9rem; }
.to-news-related {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--to-line);
}
.to-news-related h2 { margin: 0 0 0.5rem; font-size: 1rem; }
.to-news-related ul { margin: 0; padding-left: 1.1rem; }
.to-news-related li + li { margin-top: 0.3rem; }

.to-comments {
  margin: 1.25rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--to-line-strong);
}
.to-comments__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}
.to-comments__list--forum { gap: 0 !important; }
.to-comments__list--forum .to-comments__item {
  border-radius: 0 !important;
  border-bottom: 1px solid var(--to-line);
  background: transparent !important;
  padding: 0.75rem 0 !important;
}
.to-comments__item--editor {
  background: rgba(31, 107, 74, 0.06) !important;
  border-left: 2px solid var(--to-cta) !important;
  padding-left: 0.75rem !important;
}
.to-comments__floor { font-variant-numeric: tabular-nums; color: var(--to-grit-deep); }
.to-comments__foot { font-size: 0.78rem; color: var(--to-muted); margin-top: 0.65rem; }

.to-faq details {
  border-bottom: 1px solid var(--to-line);
  padding: 0.65rem 0;
}
.to-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--to-font-display);
  font-size: 1.02rem;
}
.to-faq details[open] summary { color: var(--to-cta); }
.to-faq p { margin: 0.45rem 0 0.15rem; color: var(--to-muted); font-size: 0.92rem; }

.to-foot {
  margin-top: 1.5rem;
  border-top: 1px solid var(--to-line-strong);
  background: var(--to-panel);
  padding: 1.25rem 0 1.5rem;
  font-size: 0.86rem;
}
.to-foot__grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .to-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.to-foot__brand { font-family: var(--to-font-display); font-size: 1.15rem; margin: 0 0 0.35rem; }
.to-foot h3 { margin: 0 0 0.4rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.to-foot ul { list-style: none; margin: 0; padding: 0; }
.to-foot li + li { margin-top: 0.28rem; }
.to-foot a { text-decoration: none; color: var(--to-ink); }
.to-foot__meta {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--to-line);
  color: var(--to-muted);
  font-size: 0.78rem;
}

.to-cta-rail {
  position: fixed;
  right: max(0.65rem, env(safe-area-inset-right));
  bottom: calc(0.85rem + var(--to-safe-bottom));
  z-index: 50;
}
/* Desktop: pin to the centered shell's right edge, not the viewport */
@media (min-width: 720px) {
  .to-cta-rail {
    right: max(
      0.65rem,
      calc((100vw - min(100vw, var(--to-content))) / 2 + 0.65rem)
    );
  }
}
.to-cta-rail__btn {
  display: inline-flex;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* light enter motion — 2–3 spots */
@keyframes to-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
html.to-ready .to-hero__title,
html.to-ready .to-cta-mid,
html.to-ready .to-grid > .to-card:nth-child(-n+3) {
  animation: to-rise 0.55s ease both;
}
html.to-ready .to-cta-mid { animation-delay: 0.08s; }
html.to-ready .to-grid > .to-card:nth-child(2) { animation-delay: 0.12s; }
html.to-ready .to-grid > .to-card:nth-child(3) { animation-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  html.to-ready .to-hero__title,
  html.to-ready .to-cta-mid,
  html.to-ready .to-grid > .to-card:nth-child(-n+3) { animation: none; }
}

@media (min-width: 860px) {
  .to-nav { display: flex; }
  .to-mast__cta { display: flex; }
  .to-toggle { display: none; }
  .to-drawer { display: none !important; }
}

/* wide media slots: keep 16:9 even if source is portrait */
.to-figure img,
.to-gallery img,
.to-card__media img,
.to-hero__visual img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}
