:root {
  --ink: #202522;
  --muted: #6c746e;
  --paper: #f7f6f2;
  --line: #d9dcd5;
  --white: #fffefa;
  --orange: #ee7658;
  --green: #b9e4d1;
  --yellow: #d8f36e;
  --dark: #29312f;
  --sans: "Manrope", "Noto Sans SC", sans-serif;
  --mono: "DM Mono", "Noto Sans SC", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.layout { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; width: min(1280px, calc(100% - 80px)); height: 74px; margin: auto; border-bottom: 1px solid var(--line); background: rgba(247, 246, 242, .95); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 245px; }
.brand strong { display: block; font-size: 15px; font-weight: 800; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.brand-mark { position: relative; display: inline-block; width: 28px; height: 28px; }
.brand-mark i { position: absolute; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; }
.brand-mark i:nth-child(1) { top: 1px; left: 1px; background: var(--orange); }
.brand-mark i:nth-child(2) { top: 14px; left: 2px; background: var(--yellow); }
.brand-mark i:nth-child(3) { top: 7px; left: 15px; background: var(--green); }
nav { display: flex; align-items: center; gap: 31px; height: 100%; }
nav a { position: relative; padding: 27px 0 25px; color: var(--muted); font-size: 12px; font-weight: 700; }
nav a:hover, nav a.active { color: var(--ink); }
nav a.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--orange); content: ""; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 245px; }
.icon-button { border: 0; background: transparent; color: var(--ink); font-size: 24px; line-height: 1; }
.profile-button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; background: transparent; color: var(--ink); font-size: 11px; font-weight: 700; }

.overline { margin: 0 0 20px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.overline::before { display: inline-block; width: 25px; height: 1px; margin: 0 9px 3px 0; background: var(--orange); content: ""; vertical-align: middle; }
.plain-link { border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: 11px; font-weight: 800; }

.guide-entry { padding: 42px 0 0; }
.guide-card { display: grid; grid-template-columns: 185px 1fr auto; align-items: center; min-height: 128px; gap: 30px; border: 1px solid #678f85; padding: 28px 30px; background: #91b6ac; transition: background-color .2s ease, border-color .2s ease; }
.guide-card:hover { border-color: #567f75; background: #87aca2; }
.guide-index { align-self: start; color: #25483f; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.guide-copy { display: grid; gap: 4px; }
.guide-copy strong { font-size: 25px; letter-spacing: -.05em; }
.guide-copy small { color: #25483f; font-size: 12px; }
.guide-arrow { font-size: 27px; }

.hero { display: grid; grid-template-columns: .92fr 1.08fr; gap: 84px; align-items: center; padding: 76px 0 84px; }
.hero h1 { margin: 0 0 24px; font-size: 56px; line-height: 1.06; letter-spacing: -.06em; font-weight: 900; }
.hero h1 span { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: 0; }
.hero-value { max-width: 395px; margin: 0 0 30px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero-value strong { color: var(--ink); font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.solid-button { display: inline-flex; align-items: center; gap: 16px; border: 0; padding: 13px 18px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; }
.solid-button:hover { background: #111614; }
.hero-visual img { display: block; width: 100%; height: 320px; object-fit: cover; filter: saturate(.65); }
.hero-caption { display: flex; justify-content: space-between; padding: 15px 2px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; }
.hero-caption span { position: relative; padding-bottom: 12px; }
.hero-caption span::before { position: absolute; bottom: -4px; left: 50%; width: 7px; height: 7px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); content: ""; transform: translateX(-50%); }

.ask-section { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(300px, .95fr); column-gap: 36px; align-items: start; padding: 28px 0 30px; border-block: 1px solid var(--line); }
.ask-index { display: flex; align-items: center; gap: 13px; padding-top: 5px; color: var(--muted); }
.ask-index span { color: var(--orange); font-family: var(--mono); font-size: 11px; }
.ask-index small { font-size: 11px; }
.ask-heading h2 { margin: 0 0 3px; font-size: 26px; letter-spacing: -.06em; white-space: nowrap; }
.ask-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.ask-form { display: flex; align-items: center; border-bottom: 1px solid var(--ink); }
.ask-form input { width: 100%; border: 0; outline: 0; padding: 12px 3px; background: transparent; color: var(--ink); font-size: 13px; }
.ask-form input::placeholder { color: #9ba29c; }
.ask-form button { border: 0; background: transparent; font-size: 23px; }
.suggestions { display: flex; gap: 7px; margin-top: 16px; }
.suggestions button { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; background: transparent; color: var(--muted); font-size: 10px; }
.suggestions button:hover { border-color: var(--ink); color: var(--ink); }

.modules { padding-top: 88px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.section-head h2 { margin: 0; font-size: 35px; line-height: 1.1; letter-spacing: -.07em; }
.section-head > p { max-width: 260px; margin: 0; color: var(--muted); font-size: 11px; }
.module-board { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; height: 526px; }
.module-column { display: grid; min-width: 0; min-height: 0; gap: 24px; }
.module-column-left { grid-template-rows: 4fr 3fr; }
.module-column-right { grid-template-rows: 3fr 4fr; }
.module { display: flex; min-height: 0; flex-direction: column; border: 1px solid var(--line); padding: 18px 19px 20px; background: var(--white); transition: transform .2s, box-shadow .2s; }
.module:hover { transform: translateY(-4px); box-shadow: 6px 7px 0 rgba(32, 37, 34, .08); }
.module:not(.green):not(.orange):not(.dark) { border-color: #d0d5cd; background: #e9eee8; box-shadow: 6px 7px 0 rgba(32, 37, 34, .08); }
.module-icon { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 14px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--mono); font-size: 14px; }
.chat-icon { border-radius: 7px; }
.topic-icon { border: 0; font-size: 24px; }
.visual-icon { border-style: dashed; }
.module-number { color: var(--orange); font-family: var(--mono); font-size: 8px; }
.module h3 { margin: 12px 0 5px; font-size: 23px; letter-spacing: -.06em; }
.module p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.module-link { margin-top: auto; font-size: 10px; font-weight: 800; }
.module.green { border-color: var(--green); background: var(--green); }
.module.green .module-number, .module.green p { color: #587466; }
.module.orange { border-color: var(--orange); background: var(--orange); }
.module.orange .module-number, .module.orange p { color: #6e382e; }
.module.dark { border-color: var(--dark); background: var(--dark); color: var(--white); }
.module.dark .module-number, .module.dark p { color: #afc0b7; }
.module.dark .module-link { color: var(--yellow); }

.topics { padding-top: 88px; border-top: 1px solid var(--line); margin-top: 88px; }
.topic-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; }
.topic-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 286px; border: 1px solid var(--line); background: var(--white); }
.topic-image { position: relative; min-height: 286px; overflow: hidden; background: var(--dark); }
.topic-image::after { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(41, 49, 47, .66), rgba(41, 49, 47, .26)); content: ""; }
.topic-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.65); }
.topic-image span { position: absolute; z-index: 1; top: 22px; left: 20px; color: var(--white); font-family: var(--mono); font-size: 9px; }
.topic-copy { display: flex; flex-direction: column; justify-content: space-between; padding: 27px 28px 25px; }
.topic-copy p { margin: 0; color: var(--orange); font-size: 11px; }
.topic-copy strong { display: block; margin-top: 12px; font-size: 27px; line-height: 1.18; letter-spacing: -.06em; }
.topic-copy small { display: block; margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.topic-copy b { width: fit-content; border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: 11px; }
.topic-list { border-top: 1px solid var(--line); }
.topic-list a { display: grid; grid-template-columns: 45px 1fr 150px 25px; align-items: center; min-height: 95px; border-bottom: 1px solid var(--line); }
.topic-list a > span { color: var(--orange); font-family: var(--mono); font-size: 10px; }
.topic-list strong { font-size: 15px; }
.topic-list small { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.topic-list b { font-size: 18px; font-weight: 400; }
.topic-list a:hover strong { color: var(--orange); }

.footer { display: flex; align-items: center; justify-content: space-between; margin-top: 88px; padding: 27px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer strong { color: var(--ink); }
.footer-links { display: flex; gap: 26px; align-items: center; }
.footer-links button { border: 0; padding: 0; background: transparent; color: inherit; font-size: inherit; }
.footer-links a:hover, .footer-links button:hover { color: var(--ink); }

.dialog-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(32, 37, 34, .46); }
.dialog-backdrop[hidden] { display: none; }
.dialog { position: relative; width: min(520px, 100%); border: 1px solid var(--line); padding: 36px; background: var(--paper); box-shadow: 10px 10px 0 rgba(32, 37, 34, .18); }
.dialog h2 { margin: 0 0 10px; font-size: 31px; letter-spacing: -.06em; }
.dialog-note, .prologue-dialog p:not(.overline) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.dialog-close { position: absolute; top: 17px; right: 19px; border: 0; background: transparent; color: var(--ink); font-size: 24px; line-height: 1; }
.search-form { display: flex; margin-top: 28px; border-bottom: 1px solid var(--ink); }
.search-form input { width: 100%; border: 0; outline: 0; padding: 12px 2px; background: transparent; }
.search-form button { border: 0; background: transparent; font-weight: 700; }
.search-results { display: grid; gap: 8px; margin-top: 18px; }
.search-results button { border: 1px solid var(--line); padding: 11px 13px; background: var(--white); text-align: left; font-size: 12px; }
.search-results button:hover { border-color: var(--ink); }
.auth-actions { display: flex; gap: 10px; margin-top: 28px; }
.outline-button { border: 1px solid var(--ink); padding: 12px 20px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; }
.prologue-dialog { width: min(650px, 100%); }
.prologue-dialog p:not(.overline) + p:not(.overline) { margin-top: 13px; }
.prologue-dialog .plain-link { display: inline-block; margin-top: 25px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; padding: 12px 15px; background: var(--ink); color: var(--white); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  nav { gap: 16px; }
  .brand, .header-tools { min-width: 190px; }
  .hero { gap: 48px; }
  .topic-list a { grid-template-columns: 34px 1fr 116px 20px; }
}

@media (max-width: 820px) {
  .layout, .site-header { width: min(100% - 36px, 600px); }
  .site-header { height: auto; min-height: 68px; flex-wrap: wrap; padding: 11px 0; gap: 8px; }
  .brand { min-width: auto; }
  nav { order: 3; width: 100%; height: 33px; justify-content: space-between; overflow-x: auto; gap: 18px; }
  nav a { flex: 0 0 auto; padding: 6px 0 8px; font-size: 11px; }
  .header-tools { min-width: auto; }
  .guide-card { grid-template-columns: 1fr auto; gap: 14px; }
  .guide-index { grid-column: 1 / 3; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding: 57px 0 62px; }
  .hero h1 { font-size: 48px; }
  .hero-visual img { height: 290px; }
  .ask-section { grid-template-columns: 1fr; gap: 18px; }
  .ask-index { padding-top: 0; }
  .ask-heading h2 { white-space: normal; }
  .suggestions { flex-wrap: wrap; }
  .module-board { height: auto; grid-template-columns: 1fr; }
  .module-column { height: 450px; }
  .topic-layout { grid-template-columns: 1fr; }
  .topic-list a { grid-template-columns: 45px 1fr 150px 25px; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 43px; }
  .hero-value { font-size: 13px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .guide-copy strong { font-size: 21px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head h2 { font-size: 31px; }
  .module-column { height: 520px; }
  .topic-feature { grid-template-columns: 1fr; }
  .topic-image { min-height: 220px; }
  .topic-copy { min-height: 245px; }
  .topic-list a { grid-template-columns: 35px 1fr 22px; gap: 8px; padding: 11px 0; }
  .topic-list small { grid-column: 2; grid-row: 2; }
  .topic-list b { grid-column: 3; grid-row: 1 / 3; }
  .footer { align-items: flex-start; flex-direction: column; gap: 15px; margin-top: 58px; }
}
