:root {
  --ink: #101313;
  --teal: #0d5e56;
  --teal-soft: #d8efec;
  --blue: #173fd3;
  --orange: #ff5a12;
  --magenta: #f10a70;
  --yellow: #ffdd00;
  --paper: #ffffff;
  --muted: #626968;
  --hairline: rgba(13, 94, 86, 0.3);
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.idea-recipe {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.proof-page { overflow: hidden; }

.proof-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 0 24px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.proof-top::after {
  content: "";
  width: 18px;
  height: 8px;
  margin-right: 110px;
  background: var(--ink);
  box-shadow: 22px 0 var(--blue), 44px 0 var(--magenta), 66px 0 var(--yellow), 88px 0 var(--orange), 110px 0 var(--teal);
}

.proof-top span:last-child { margin-left: auto; margin-right: 22px; }

.sheet {
  position: relative;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.crop {
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.crop::before,
.crop::after { content: ""; position: absolute; background: var(--teal); }
.crop::before { width: 34px; height: 1px; top: 16px; left: 0; }
.crop::after { width: 1px; height: 34px; top: 0; left: 16px; }
.crop.tl { top: 20px; left: -42px; }
.crop.tr { top: 20px; right: -42px; }

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 72px;
  align-items: end;
  padding: 92px 0 78px;
  border-bottom: 1px solid var(--ink);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 42px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.register-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid var(--teal);
  border-radius: 50%;
}

.register-dot::before,
.register-dot::after { content: ""; position: absolute; background: var(--teal); }
.register-dot::before { width: 26px; height: 1px; left: -5px; top: 8px; }
.register-dot::after { width: 1px; height: 26px; left: 8px; top: -5px; }

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(68px, 10vw, 148px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .85;
}

.hero h1 .orange {
  display: inline-block;
  padding: .03em .08em .08em;
  color: var(--ink);
  background: var(--orange);
  transform: translateY(-.02em);
}

.hero h1 small {
  display: block;
  margin-top: 30px;
  color: var(--teal);
  font-size: .14em;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-note {
  align-self: center;
  padding: 24px 0 0 24px;
  border-top: 8px solid var(--blue);
  border-left: 1px solid var(--teal);
}

.hero-note strong { display: block; margin-bottom: 14px; font-size: 24px; letter-spacing: -.04em; }
.hero-note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero-note code { color: var(--teal); font-size: 11px; }

.section { padding: 108px 0; border-bottom: 1px solid var(--ink); }
.section-head { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 40px; margin-bottom: 62px; }
.section-no { color: var(--orange); font-size: 64px; font-weight: 900; letter-spacing: -.08em; line-height: .85; }
.section-title p { margin: 0 0 12px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-title h2 { max-width: 880px; margin: 0; font-size: clamp(36px, 5.8vw, 82px); font-weight: 900; letter-spacing: -.06em; line-height: .95; }

.recipe-thesis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.recipe-thesis > div { min-height: 300px; padding: 42px; background: var(--paper); }
.recipe-thesis blockquote { margin: 0; font-size: clamp(26px, 3.2vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.18; }
.recipe-thesis p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }

.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--teal); }
.mode { position: relative; min-height: 390px; padding: 34px; border-right: 1px solid var(--teal); overflow: hidden; }
.mode:last-child { border-right: 0; }
.mode::before { content: attr(data-letter); position: absolute; right: -16px; bottom: -70px; color: rgba(23, 63, 211, .08); font-size: 250px; font-weight: 900; letter-spacing: -.1em; line-height: 1; }
.mode:nth-child(2)::before { color: rgba(255, 90, 18, .09); }
.mode:nth-child(3)::before { color: rgba(13, 94, 86, .09); }
.mode small { color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.mode h3 { position: relative; margin: 74px 0 18px; font-size: 30px; letter-spacing: -.05em; line-height: 1; }
.mode p { position: relative; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.mode ul { position: relative; margin: 28px 0 0; padding: 0; list-style: none; font-size: 11px; font-weight: 700; }
.mode li { padding: 8px 0; border-top: 1px solid var(--hairline); }

.chapter { margin-top: 116px; }
.chapter:first-of-type { margin-top: 0; }
.chapter-head { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(240px, .55fr); gap: 24px; align-items: end; margin-bottom: 34px; }
.chapter-code { color: var(--orange); font-size: 56px; font-weight: 900; letter-spacing: -.08em; }
.chapter-head h3 { margin: 0; font-size: clamp(32px, 4.2vw, 60px); letter-spacing: -.055em; }
.chapter-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.works { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.work { border: 1px solid var(--ink); background: var(--paper); }
.work.cover { grid-column: 1 / -1; }
.work figure { margin: 0; background: #fff; border-bottom: 1px solid var(--ink); }
.work img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; }
.work-body { padding: 28px; }
.work-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.work-id { color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.work-mode { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.work h4 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.045em; line-height: 1.25; }
.work p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0 0; background: var(--hairline); border: 1px solid var(--hairline); }
.facts span { padding: 12px; background: var(--paper); color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.facts b { display: block; margin-top: 6px; color: var(--ink); font-size: 12px; letter-spacing: 0; text-transform: none; }
.qc { margin-top: 18px !important; padding-left: 15px; border-left: 5px solid var(--teal); color: var(--teal) !important; font-weight: 700; }
.work details { margin-top: 20px; border-top: 1px solid var(--ink); }
.work summary { padding: 16px 0 0; cursor: pointer; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.work pre { margin: 16px 0 0; padding: 18px; overflow: auto; color: var(--ink); background: #f3f8f7; white-space: pre-wrap; font: 10px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }

.rules { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--ink); }
.rule { min-height: 220px; padding: 24px; border-right: 1px solid var(--ink); }
.rule:last-child { border-right: 0; }
.rule b { display: block; margin-bottom: 55px; color: var(--orange); font-size: 24px; }
.rule strong { display: block; margin-bottom: 10px; font-size: 15px; }
.rule span { color: var(--muted); font-size: 11px; line-height: 1.65; }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 36px 0 70px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 56px; padding-top: 78px; }
  .recipe-thesis, .mode-grid { grid-template-columns: 1fr; }
  .mode { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--teal); }
  .mode:last-child { border-bottom: 0; }
  .chapter-head { grid-template-columns: 90px 1fr; }
  .chapter-head p { grid-column: 2; }
  .rules { grid-template-columns: 1fr 1fr; }
  .rule:nth-child(2n) { border-right: 0; }
  .rule { border-bottom: 1px solid var(--ink); }
}

@media (max-width: 640px) {
  .proof-top { padding: 0 14px; }
  .proof-top span:last-child { display: none; }
  .proof-top::after { width: 12px; height: 7px; margin-right: 70px; box-shadow: 14px 0 var(--blue), 28px 0 var(--magenta), 42px 0 var(--yellow), 56px 0 var(--orange), 70px 0 var(--teal); }
  .sheet { width: calc(100% - 24px); }
  .hero { padding: 70px 0 56px; }
  .hero h1 { font-size: 62px; }
  .hero-note { padding-left: 16px; }
  .section { padding: 76px 0; }
  .section-head { grid-template-columns: 70px 1fr; gap: 14px; margin-bottom: 42px; }
  .section-no { font-size: 42px; }
  .section-title h2 { font-size: 38px; }
  .recipe-thesis { grid-template-columns: 1fr; }
  .recipe-thesis > div { min-height: auto; padding: 26px; }
  .mode { padding: 26px; }
  .chapter { margin-top: 78px; }
  .chapter-head { grid-template-columns: 62px 1fr; }
  .chapter-code { font-size: 38px; }
  .chapter-head h3 { font-size: 30px; }
  .works { grid-template-columns: 1fr; gap: 18px; }
  .work.cover { grid-column: auto; }
  .work-body { padding: 20px; }
  .work h4 { font-size: 20px; }
  .rules { grid-template-columns: 1fr; }
  .rule { min-height: auto; border-right: 0; }
  .rule b { margin-bottom: 28px; }
  .footer { flex-direction: column; }
}

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