:root {
  --cf-floor: #dfe6dd;
  --cf-floor-2: #cfd9d1;
  --cf-ink: #17201d;
  --cf-muted: #56635d;
  --cf-panel: #eef2eb;
  --cf-panel-dark: #263330;
  --cf-blue: #718f94;
  --cf-orange: #c85d2c;
  --cf-yellow: #e1c96c;
  --cf-rule: #aab8ad;
  --cf-shadow: #b8c4bb;
  --cf-radius: 18px;
  --cf-display: Bahnschrift, 'DIN Alternate', 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  --cf-body: 'Atkinson Hyperlegible', 'Segoe UI', Verdana, Geneva, sans-serif;
  --cf-mono: 'Cascadia Mono', 'IBM Plex Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

.cf-site {
  color: var(--cf-ink);
  background: var(--cf-floor);
  font-family: var(--cf-body);
  line-height: 1.55;
  padding: clamp(18px, 3vw, 44px);
}

.cf-site a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.cf-home, .cf-article {
  min-height: 100vh;
}

.cf-kicker,
.cf-section-label,
.cf-post-card__date,
.cf-load-plate__label,
.cf-article-rail p,
.cf-feature__mark,
.cf-post-card__tag {
  font-family: var(--cf-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--cf-muted);
}

.cf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.cf-hero__plate {
  background: var(--cf-panel-dark);
  color: #f2f5ef;
  border-radius: 30px 30px 12px 30px;
  padding: clamp(28px, 6vw, 76px);
  border: 3px solid #121917;
  box-shadow: 10px 10px 0 var(--cf-shadow);
  position: relative;
  overflow: hidden;
}

.cf-hero__plate::after {
  content: '';
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  top: 0;
  width: 22px;
  height: 72%;
  background: var(--cf-orange);
  border-left: 8px solid #f0a27b;
  opacity: 0.92;
}

.cf-hero h1,
.cf-article-header h1 {
  font-family: var(--cf-display);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin: 0;
}

.cf-hero h1 {
  font-size: clamp(4rem, 12vw, 10.5rem);
  max-width: 8ch;
}

.cf-deck {
  max-width: 66ch;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  margin: 26px 0 0;
  color: #dce5dc;
}

.cf-load-plate {
  background: var(--cf-yellow);
  border: 3px solid var(--cf-ink);
  border-radius: 12px 30px 30px 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 10px 10px 0 var(--cf-shadow);
}

.cf-load-plate p:last-child {
  font-family: var(--cf-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.3vw, 2.1rem);
  line-height: 1.05;
  margin: 28px 0 0;
}

.cf-comb {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 54px;
}

.cf-comb span {
  display: block;
  width: 12px;
  background: var(--cf-ink);
  border-radius: 6px 6px 0 0;
}

.cf-comb span:nth-child(1) { height: 20%; }
.cf-comb span:nth-child(2) { height: 48%; }
.cf-comb span:nth-child(3) { height: 85%; }
.cf-comb span:nth-child(4) { height: 62%; }
.cf-comb span:nth-child(5) { height: 100%; background: var(--cf-orange); }
.cf-comb span:nth-child(6) { height: 74%; }
.cf-comb span:nth-child(7) { height: 38%; }
.cf-comb span:nth-child(8) { height: 56%; }

.cf-weather,
.cf-tour,
.cf-topics,
.cf-feature,
.cf-posts {
  max-width: 1180px;
  margin: 0 auto 22px;
}

.cf-weather {
  display: grid;
  grid-template-columns: 0.85fr 1.55fr;
  gap: 18px;
  align-items: stretch;
}

.cf-weather > div:first-child,
.cf-tour,
.cf-topics,
.cf-feature,
.cf-posts {
  background: var(--cf-panel);
  border: 2px solid var(--cf-rule);
  border-radius: var(--cf-radius);
}

.cf-weather > div:first-child {
  padding: 24px;
}

.cf-weather h2,
.cf-tour h2,
.cf-feature h2,
.cf-posts h2 {
  font-family: var(--cf-display);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.cf-weather h2 { font-size: clamp(2rem, 4vw, 4.2rem); }
.cf-feature h2, .cf-posts h2 { font-size: clamp(1.9rem, 3.5vw, 3.5rem); }

.cf-weather__cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cf-weather__cells article {
  background: var(--cf-blue);
  color: #101716;
  border: 2px solid var(--cf-ink);
  border-radius: 16px;
  padding: 18px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
}

.cf-weather__cells span {
  font-family: var(--cf-mono);
  font-size: 0.8rem;
  margin-bottom: auto;
}

.cf-weather__cells strong {
  font-family: var(--cf-display);
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 24px;
}

.cf-weather__cells p { margin: 10px 0 0; }

.cf-tour,
.cf-topics,
.cf-feature,
.cf-posts {
  padding: clamp(18px, 3vw, 34px);
}

.cf-tour__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 18px;
  border: 2px solid var(--cf-ink);
  border-radius: 16px;
  overflow: hidden;
}

.cf-station {
  padding: 20px;
  min-height: 210px;
  background: #d8e0d8;
  border-right: 2px solid var(--cf-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cf-station:last-child { border-right: 0; }
.cf-station--queue { background: #c6d3d0; }
.cf-station--handoff { background: #e0d389; }
.cf-station--release { background: #d7b59f; }

.cf-station b {
  font-family: var(--cf-display);
  font-size: 1.45rem;
  line-height: 1;
}

.cf-station span {
  color: #28332f;
}

.cf-chip-board {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cf-chip-board a,
.cf-chip-board span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 2px solid var(--cf-ink);
  border-radius: 999px;
  background: #f4f6f0;
  font-family: var(--cf-mono);
  font-size: 0.82rem;
  text-decoration: none;
}

.cf-chip-board a:nth-child(3n),
.cf-chip-board span:nth-child(3n) {
  background: var(--cf-yellow);
}

.cf-feature {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 24px;
  align-items: stretch;
  background: var(--cf-panel-dark);
  color: #edf2ec;
  border-color: var(--cf-panel-dark);
}

.cf-feature__mark {
  background: var(--cf-orange);
  color: #111817;
  border-radius: 12px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.cf-feature p:not(.cf-section-label) {
  max-width: 62ch;
  color: #d7dfd8;
  font-size: 1.08rem;
}

.cf-posts__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.cf-posts__head h2 { max-width: 13ch; }

.cf-card-rack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cf-post-card {
  min-width: 0;
}

.cf-post-card__link {
  min-height: 250px;
  display: grid;
  grid-template-columns: 42px 1fr;
  position: relative;
  background: #f3f5ef;
  border: 2px solid var(--cf-ink);
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cf-post-card__link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--cf-orange);
}

.cf-post-card__rail {
  background: #c6d0c8;
  border-right: 2px solid var(--cf-ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px;
}

.cf-post-card__rail span {
  display: block;
  height: 18px;
  border-radius: 4px;
  background: var(--cf-ink);
}

.cf-post-card__rail span:nth-child(2) { height: 32px; background: var(--cf-blue); }
.cf-post-card__rail span:nth-child(4) { height: 44px; background: var(--cf-orange); }

.cf-post-card__body {
  padding: 18px 18px 44px;
}

.cf-post-card h3 {
  font-family: var(--cf-display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 16px 0 10px;
}

.cf-post-card p {
  color: var(--cf-muted);
  margin: 0;
}

.cf-post-card__tag {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--cf-yellow);
  color: var(--cf-ink);
  border-top: 2px solid var(--cf-ink);
  border-left: 2px solid var(--cf-ink);
  padding: 7px 10px;
  border-radius: 12px 0 0 0;
}

.cf-article {
  max-width: 1220px;
  margin: 0 auto;
}

.cf-article-header {
  background: var(--cf-panel-dark);
  color: #eef3ed;
  border: 3px solid #111817;
  border-radius: 28px;
  padding: clamp(20px, 4vw, 48px);
  box-shadow: 10px 10px 0 var(--cf-shadow);
}

.cf-article-header__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.cf-back a {
  display: inline-flex;
  padding: 8px 11px;
  background: #eef3ed;
  color: var(--cf-ink);
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--cf-mono);
  font-size: 0.82rem;
}

.cf-load-ruler {
  display: grid;
  grid-template-columns: auto repeat(5, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--cf-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: #c7d1ca;
}

.cf-load-ruler i {
  display: block;
  height: 12px;
  border: 1px solid #9eaaa2;
  background: #394743;
}

.cf-load-ruler i:nth-of-type(4),
.cf-load-ruler i:nth-of-type(5) {
  background: var(--cf-orange);
  border-color: #eda37e;
}

.cf-load-ruler strong {
  color: #ffc9af;
  font-weight: 500;
}

.cf-article-header h1 {
  font-size: clamp(3rem, 8vw, 7.5rem);
  max-width: 11ch;
}

.cf-article-meta {
  margin-top: 22px;
  color: #cfd8d1;
  font-family: var(--cf-mono);
  font-size: 0.84rem;
}

.cf-article-frame {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: clamp(18px, 4vw, 54px);
  align-items: start;
  margin-top: 34px;
}

.cf-article-rail {
  position: sticky;
  top: 18px;
  background: var(--cf-yellow);
  border: 2px solid var(--cf-ink);
  border-radius: 18px;
  padding: 16px;
}

.cf-article-rail ol {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  counter-reset: station;
}

.cf-article-rail li {
  counter-increment: station;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(23,32,29,0.35);
  font-family: var(--cf-display);
  font-weight: 700;
}

.cf-article-rail li::before {
  content: counter(station, decimal-leading-zero);
  font-family: var(--cf-mono);
  font-size: 0.72rem;
  color: #5f542c;
}

.cf-comb--tight {
  height: 44px;
  gap: 4px;
}

.cf-comb--tight span {
  width: 10px;
}

.cf-article-body {
  background: var(--cf-panel);
  border: 2px solid var(--cf-rule);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 58px);
  font-size: clamp(1.03rem, 1.25vw, 1.17rem);
}

.cf-article-body > *:first-child { margin-top: 0; }
.cf-article-body > *:last-child { margin-bottom: 0; }

.cf-article-body p,
.cf-article-body ul,
.cf-article-body ol {
  max-width: 66ch;
}

.cf-article-body p {
  margin: 0 0 1.15em;
}

.cf-article-body h2,
.cf-article-body h3 {
  font-family: var(--cf-display);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 2em 0 0.55em;
  max-width: 17ch;
}

.cf-article-body h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.cf-article-body h3 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); }

.cf-article-body blockquote {
  margin: 2rem 0;
  padding: 18px 20px;
  border-left: 14px solid var(--cf-orange);
  background: #d7ded6;
  border-radius: 0 16px 16px 0;
  font-family: var(--cf-display);
  font-size: 1.35rem;
  line-height: 1.15;
}

.cf-article-body code {
  font-family: var(--cf-mono);
  background: #d9e0d8;
  padding: 0.12em 0.32em;
  border-radius: 5px;
}

.cf-article-body hr {
  border: 0;
  height: 2px;
  background: var(--cf-rule);
  margin: 2.2rem 0;
}

@media (max-width: 920px) {
  .cf-hero,
  .cf-weather,
  .cf-feature,
  .cf-article-frame {
    grid-template-columns: 1fr;
  }

  .cf-weather__cells,
  .cf-card-rack {
    grid-template-columns: 1fr;
  }

  .cf-tour__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cf-station:nth-child(2) { border-right: 0; }
  .cf-station:nth-child(1),
  .cf-station:nth-child(2) { border-bottom: 2px solid var(--cf-ink); }

  .cf-feature__mark {
    writing-mode: horizontal-tb;
    min-height: 54px;
  }

  .cf-article-rail {
    position: static;
  }
}

@media (max-width: 560px) {
  .cf-site {
    padding: 12px;
  }

  .cf-hero__plate,
  .cf-load-plate,
  .cf-article-header {
    box-shadow: 5px 5px 0 var(--cf-shadow);
  }

  .cf-hero h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

  .cf-tour__grid {
    grid-template-columns: 1fr;
  }

  .cf-station,
  .cf-station:nth-child(2) {
    border-right: 0;
    border-bottom: 2px solid var(--cf-ink);
    min-height: 160px;
  }

  .cf-station:last-child {
    border-bottom: 0;
  }

  .cf-posts__head,
  .cf-article-header__top {
    display: block;
  }

  .cf-kicker {
    margin-top: 14px;
  }
}