@import url("/assets/shared/common.css");

:root {
  --paper: #e8e1d2;
  --paper-light: #f6f0df;
  --ink: #17324d;
  --muted: #51606b;
  --accent: #d99a3d;
  --accent-dark: #9b5f14;
  --teal: #2e7b6e;
  --line: #c9c1b1;
  --white: #fffdf7;
  --mint: #dfeae4;
  --slate: #9ca8a8;
  --shadow: 0 24px 65px rgba(23, 50, 77, 0.13);
  --radius: 12px;
}

body {
  background:
    linear-gradient(rgba(23, 50, 77, 0.035) 1px, transparent 1px) 0 0 / 100% 34px,
    var(--paper-light);
}

.site-header {
  background: rgba(246, 240, 223, 0.97);
}

.brand {
  letter-spacing: -0.055em;
}

.brand span {
  color: var(--accent-dark);
}

.nav-list a[aria-current="page"] {
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7.4rem) 0 6rem;
}

.hero::before {
  position: absolute;
  inset: 0 auto 0 58%;
  width: 1px;
  background: rgba(23, 50, 77, 0.1);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-title {
  max-width: none;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 4.75rem);
}

.hero-title span,
.hero-title em {
  display: block;
  white-space: nowrap;
}

.hero-title em {
  color: var(--teal);
  font-style: normal;
}

.hero-lead {
  max-width: 59ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.13rem);
}

.hero-art {
  position: relative;
  padding: 1rem 1rem 1.2rem;
  border: 1px solid rgba(23, 50, 77, 0.28);
  border-radius: 18px 18px 18px 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-art::after {
  position: absolute;
  right: -1.1rem;
  bottom: -1.1rem;
  z-index: -1;
  width: 76%;
  height: 76%;
  border: 2px solid var(--accent);
  border-radius: 18px;
  content: "";
}

.file-label {
  position: absolute;
  top: -1rem;
  left: 1.2rem;
  z-index: 1;
  padding: 0.45rem 0.8rem;
  color: white;
  border-radius: 4px;
  background: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-art > p {
  max-width: 55ch;
  margin: 0.85rem 0 0;
  padding-inline: 0.35rem;
  color: var(--muted);
  font-family: "Lora", serif;
  font-size: 0.88rem;
  font-style: italic;
}

.framework-section {
  color: white;
  background: var(--ink);
}

.framework-layout,
.clarity-layout,
.roadmap-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 7vw, 6rem);
}

.framework-heading .eyebrow,
.clarity-copy .eyebrow {
  color: #efc98b;
}

.framework-heading h2,
.section-heading h2,
.clarity-copy h2,
.notice-card h2,
.roadmap-layout h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 3.7rem);
}

.framework-heading > p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.framework-list,
.roadmap-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.framework-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.framework-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.framework-list > li > span {
  color: var(--accent);
  font-family: "Lora", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.framework-list h3,
.framework-list p {
  margin: 0;
}

.framework-list p {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
}

.topic-section {
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 6rem);
  margin-bottom: 3rem;
}

.section-heading > p {
  color: var(--muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.topic-card {
  position: relative;
  display: flex;
  min-height: 335px;
  flex-direction: column;
  overflow: hidden;
  padding: 1.55rem;
  border: 1px solid rgba(23, 50, 77, 0.22);
  border-radius: 4px 22px 4px 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.topic-card::after {
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 10rem;
  height: 10rem;
  border: 1.2rem solid rgba(217, 154, 61, 0.18);
  border-radius: 50%;
  content: "";
}

.card-contract::after {
  border-color: rgba(46, 123, 110, 0.18);
  border-radius: 0;
  transform: rotate(22deg);
}

.card-care::after {
  border-color: rgba(23, 50, 77, 0.14);
}

.topic-code {
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topic-card h3 {
  max-width: 12ch;
  margin: 3rem 0 0.7rem;
  font-family: "Lora", serif;
  font-size: 1.55rem;
}

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

.topic-card a {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: auto;
  padding-top: 1.4rem;
  color: var(--teal);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
}

.clarity-section {
  color: white;
  background: var(--teal);
}

.clarity-layout {
  align-items: center;
}

.clarity-copy > p:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.check-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.check-board div {
  min-height: 155px;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.check-board strong,
.check-board span {
  display: block;
}

.check-board strong {
  color: #f5cf93;
  font-family: "Lora", serif;
  font-size: 1.45rem;
}

.check-board span {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.notice-section {
  background: var(--paper-light);
}

.notice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding: clamp(1.8rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-left: 8px solid var(--accent);
  border-radius: 4px 18px 18px 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.notice-mark {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-family: "Lora", serif;
  font-size: 2rem;
  font-weight: 700;
}

.notice-card > div > p:last-child {
  color: var(--muted);
}

.roadmap-section {
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(23, 50, 77, 0.06) 50%, transparent 50.2%),
    var(--paper-light);
}

.roadmap-list {
  counter-reset: roadmap;
}

.roadmap-list li {
  position: relative;
  min-height: 5rem;
  padding: 0 0 1.8rem 4rem;
  counter-increment: roadmap;
}

.roadmap-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: white;
  border-radius: 4px 12px 4px 4px;
  background: var(--ink);
  content: counter(roadmap, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 800;
}

.roadmap-list strong,
.roadmap-list span {
  display: block;
}

.roadmap-list span {
  margin-top: 0.25rem;
  color: var(--muted);
}

.cooperation-summary {
  background: var(--ink);
}

.cooperation-panel .eyebrow {
  color: #efc98b;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(217, 154, 61, 0.12) 1px, transparent 1px) 0 0 / 34px 100%,
    radial-gradient(circle at 88% 20%, rgba(46, 123, 110, 0.2), transparent 23rem),
    var(--paper-light);
}

.page-hero h1 {
  max-width: 16ch;
}

.update-box,
.article-aside,
.contact-note,
.contact-panel {
  border-radius: 4px 16px 4px 4px;
}

@media (max-width: 900px) {
  .hero-grid,
  .framework-layout,
  .section-heading,
  .clarity-layout,
  .roadmap-layout {
    grid-template-columns: 1fr;
  }

  .hero::before {
    display: none;
  }

  .hero-art {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 270px;
  }

  .roadmap-section {
    background: var(--paper-light);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 3.7rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3rem);
  }

  .hero-art {
    padding: 0.65rem;
  }

  .file-label {
    left: 0.65rem;
  }

  .check-board,
  .notice-card {
    grid-template-columns: 1fr;
  }

  .check-board div {
    min-height: 125px;
  }

  .check-board span {
    margin-top: 1rem;
  }
}
