:root {
  --night: #18212f;
  --night-soft: #344052;
  --paper: #f7f3eb;
  --paper-deep: #eee7da;
  --white: #fffdf8;
  --coral: #ef6b51;
  --coral-dark: #c84b35;
  --lime: #cddd57;
  --blue: #4f6f8d;
  --line: #d8d0c2;
  --muted: #69717b;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --page: 1180px;
  --reading: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--night);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
}

body::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--coral) 0 18%,
    var(--lime) 18% 36%,
    var(--night) 36% 54%
  );
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--coral-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--night);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(calc(100% - 40px), var(--page));
  margin-inline: auto;
}

.promo-note {
  padding: 8px 20px;
  color: #fff;
  background: var(--night);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.promo-note a {
  color: var(--lime);
}

.mast {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 235, 0.96);
  backdrop-filter: blur(10px);
}

.mast__row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.identity {
  color: var(--night);
  text-decoration: none;
}

.identity__name {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.identity__note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mast__links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mast__links a {
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.mast__links a:hover {
  color: var(--coral-dark);
}

.action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--night);
  padding: 10px 18px;
  color: var(--night);
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--night);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.action:hover {
  color: var(--night);
  box-shadow: 2px 2px 0 var(--night);
  transform: translate(2px, 2px);
}

.action--coral {
  color: #fff;
  background: var(--coral);
}

.action--coral:hover {
  color: #fff;
}

.action--plain {
  border-color: #fff;
  color: #fff;
  background: transparent;
  box-shadow: 4px 4px 0 var(--coral);
}

.action--plain:hover {
  color: #fff;
}

.mast__toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 2px solid var(--night);
  padding: 0;
  background: var(--lime);
  cursor: pointer;
}

.mast__toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--night);
}

.cover {
  border-bottom: 1px solid var(--line);
  padding: 56px 0 36px;
  background: var(--white);
}

.cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(350px, 0.94fr);
  align-items: center;
  gap: 56px;
}

.kicker {
  display: inline-block;
  margin: 0 0 18px;
  border: 1px solid var(--night);
  padding: 4px 10px;
  color: var(--night);
  background: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cover h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(40px, 5.3vw, 72px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.cover__intro {
  max-width: 690px;
  margin: 0 0 28px;
  color: var(--night-soft);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.48;
}

.cover__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.cover__visual {
  position: relative;
  margin: 0;
}

.cover__visual::before {
  content: "PRAXIS-GUIDE";
  position: absolute;
  z-index: 2;
  top: -15px;
  right: -12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(3deg);
}

.cover__visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--night);
  object-fit: cover;
}

.cover__visual figcaption {
  position: relative;
  z-index: 2;
  width: calc(100% - 30px);
  margin: -46px 15px 0;
  padding: 13px 16px;
  color: #fff;
  background: var(--night);
  font-size: 12px;
  line-height: 1.45;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.signal {
  padding: 23px 6vw;
  border-right: 1px solid var(--line);
}

.signal:last-child {
  border-right: 0;
}

.signal b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.signal span {
  color: var(--muted);
  font-size: 13px;
}

.story-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, var(--reading));
  justify-content: center;
  gap: 72px;
  padding: 64px 0 90px;
}

.contents {
  align-self: start;
  position: sticky;
  top: 106px;
}

.contents__title {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: nav;
}

.contents li {
  counter-increment: nav;
  border-top: 1px solid var(--line);
}

.contents a {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 8px;
  padding: 10px 0;
  color: var(--night-soft);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.contents a::before {
  content: counter(nav, decimal-leading-zero);
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 900;
}

.contents a:hover {
  color: var(--coral-dark);
}

.prose > p:first-child::first-letter {
  float: left;
  margin: 9px 10px 0 0;
  color: var(--coral);
  font-family: var(--display);
  font-size: 67px;
  line-height: 0.72;
}

.prose p {
  margin: 0 0 20px;
}

.prose h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.prose h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.chapter {
  scroll-margin-top: 105px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 5px solid var(--night);
}

.chapter__number {
  display: block;
  margin-bottom: 12px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fine-print {
  color: var(--muted);
  font-size: 13px;
}

.launch-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: launch;
}

.launch-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  counter-increment: launch;
}

.launch-list li::before {
  content: counter(launch);
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--night);
  border-radius: 50%;
  color: #fff;
  background: var(--night);
  font-weight: 900;
}

.toolkit,
.resource-rack,
.warning-box,
.choice-panel,
.brand-note {
  margin: 28px 0;
  border: 1px solid var(--line);
  padding: 24px 26px;
  background: var(--white);
}

.toolkit {
  border: 2px solid var(--night);
  box-shadow: 8px 8px 0 var(--lime);
}

.toolkit h3::before {
  content: "→";
  margin-right: 8px;
  color: var(--coral);
}

.toolkit ul,
.toolkit ol,
.warning-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.resource-rack {
  border-left: 7px solid var(--blue);
  background: #edf1f4;
}

.resource-rack h3 {
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-rack ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-rack li {
  margin-top: 11px;
}

.label {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.label--partner {
  color: var(--night);
  background: var(--lime);
}

.editor-quote {
  margin: 32px 0;
  padding: 3px 0 3px 26px;
  border-left: 8px solid var(--coral);
  color: var(--night-soft);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
}

.program-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 34px -40px;
  padding: 30px 40px;
  color: #fff;
  background: var(--night);
}

.program-band p {
  margin: 0;
}

.article-photo {
  margin: 34px 0;
}

.article-photo img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.article-photo figcaption {
  padding: 9px 0;
  color: var(--muted);
  font-size: 12px;
}

.warning-box {
  border: 2px solid var(--coral);
  background: #fff2ed;
}

.warning-box h3 {
  color: var(--coral-dark);
}

.route-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 25px 0;
}

.route-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.route-card--focus {
  border: 2px solid var(--night);
  background: var(--lime);
}

.route-card small {
  display: block;
  margin-bottom: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-card h3 {
  font-size: 16px;
}

.route-card p {
  margin: 0;
  color: var(--night-soft);
  font-size: 13px;
  line-height: 1.5;
}

.choice-panel {
  padding: 36px;
  border: 0;
  color: #fff;
  background: var(--coral);
  text-align: center;
}

.choice-panel h2 {
  margin-bottom: 15px;
  color: #fff;
}

.choice-panel p {
  max-width: 610px;
  margin-inline: auto;
}

.choice-panel .fine-print {
  margin-top: 18px;
  color: #fff;
  opacity: 0.86;
}

.brand-note {
  color: var(--muted);
  background: transparent;
  font-size: 14px;
}

.page-top {
  padding: 58px 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.page-top__inner,
.legal-copy {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

.crumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.page-top h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 62px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.page-top p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
}

.legal-copy {
  padding: 48px 0 80px;
}

.legal-copy h2 {
  margin: 38px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: -0.035em;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p,
.legal-copy li {
  color: var(--night-soft);
}

.legal-copy code {
  padding: 2px 5px;
  background: var(--paper-deep);
}

.contact-sheet {
  display: grid;
  grid-template-columns: 150px 1fr;
  margin: 0;
  border-top: 2px solid var(--night);
}

.contact-sheet dt,
.contact-sheet dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-sheet dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-end {
  padding: 48px 0 22px;
  color: #cfd4dc;
  background: var(--night);
}

.site-end__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 55px;
}

.site-end__brand {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: -0.05em;
}

.site-end p {
  margin: 0 0 12px;
  font-size: 13px;
}

.site-end h2 {
  margin: 0 0 13px;
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-end ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-end li {
  margin: 7px 0;
}

.site-end a {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.site-end a:hover {
  color: var(--lime);
}

.site-end__base {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #909aa8;
  font-size: 12px;
}

.consent {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  width: min(calc(100% - 36px), 480px);
  border: 2px solid var(--night);
  padding: 19px;
  background: var(--white);
  box-shadow: 9px 9px 0 var(--night);
}

.consent[hidden] {
  display: none;
}

.consent p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
}

.consent__buttons {
  display: flex;
  gap: 10px;
}

.consent button {
  min-height: 38px;
  border: 2px solid var(--night);
  padding: 7px 13px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.consent button:last-child {
  background: var(--lime);
}

@media (max-width: 980px) {
  .cover__grid {
    grid-template-columns: 1fr;
  }

  .cover__visual {
    max-width: 680px;
  }

  .cover__visual img {
    aspect-ratio: 16 / 9;
  }

  .story-layout {
    grid-template-columns: minmax(0, var(--reading));
  }

  .contents {
    position: static;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .contents ol {
    columns: 2;
    column-gap: 28px;
  }

  .site-end__grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--page));
  }

  .mast__row {
    min-height: 66px;
  }

  .identity__note {
    display: none;
  }

  .mast__toggle {
    display: block;
  }

  .mast__links {
    display: none;
    position: absolute;
    top: 66px;
    right: 14px;
    left: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 2px solid var(--night);
    padding: 8px;
    background: var(--white);
    box-shadow: 7px 7px 0 var(--night);
  }

  .mast__links.is-open {
    display: flex;
  }

  .mast__links a {
    display: block;
    padding: 10px;
  }

  .cover {
    padding-top: 38px;
  }

  .cover__grid {
    gap: 35px;
  }

  .cover h1 {
    font-size: clamp(38px, 12vw, 55px);
  }

  .cover__visual::before {
    right: 2px;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .signal {
    padding: 15px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-layout {
    padding: 38px 0 65px;
  }

  .contents ol {
    columns: 1;
  }

  .chapter {
    margin-top: 48px;
  }

  .program-band {
    grid-template-columns: 1fr;
    margin-inline: 0;
    padding: 24px;
  }

  .route-cards {
    grid-template-columns: 1fr;
  }

  .choice-panel {
    padding: 28px 20px;
  }

  .site-end__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-sheet {
    grid-template-columns: 1fr;
  }

  .contact-sheet dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .contact-sheet dd {
    padding-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .action {
    transition: none;
  }
}
