@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700;9..144,850&family=Source+Sans+3:wght@400;550;650;750;850&display=swap");

:root {
  --paper: #f7f0e4;
  --paper-soft: #fffaf1;
  --ink: #172134;
  --muted: #647086;
  --line: #dfd1bd;
  --blue: #244f9e;
  --blue-dark: #193a7a;
  --red: #c7472d;
  --green: #6f8065;
  --gold: #d5a741;
  --shadow: 0 24px 70px rgba(31, 38, 58, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(199, 71, 45, 0.14), transparent 28%),
    radial-gradient(circle at 90% 2%, rgba(36, 79, 158, 0.16), transparent 30%),
    linear-gradient(180deg, var(--paper) 0%, #f2e8d8 58%, #ebdfcc 100%);
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(23, 33, 52, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 52, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.site-shell { position: relative; overflow: hidden; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 240, 228, 0.82);
  border-bottom: 1px solid rgba(223, 209, 189, 0.72);
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.12rem;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--paper-soft);
  background: conic-gradient(from 210deg, var(--red), var(--gold), var(--blue), var(--red));
  box-shadow: 0 14px 32px rgba(36, 79, 158, 0.22);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334158;
  font-size: 0.96rem;
  font-weight: 650;
}
.nav-links a { transition: color 160ms ease; }
.nav-links a:hover { color: var(--blue); }
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-cta,
.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.nav-cta,
.button.primary {
  color: #fffaf1;
  background: var(--ink);
  box-shadow: 0 16px 34px rgba(23, 33, 52, 0.22);
}
.button.secondary {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid var(--line);
}
.nav-cta:hover,
.button:hover { transform: translateY(-2px); }
.cta-mobile { display: none; }

.language-switcher {
  position: relative;
  z-index: 40;
  font-size: 0.84rem;
  color: #334158;
}
.language-menu { position: relative; }
.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(223, 209, 189, 0.95);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 10px 24px rgba(31, 38, 58, 0.08);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:hover {
  color: var(--blue);
  background: rgba(255, 250, 241, 0.95);
}
.flag {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1;
}
.current-label {
  color: var(--ink);
  font-weight: 850;
}
.chevron {
  color: var(--muted);
  font-size: 0.72rem;
}
.language-menu[open] .chevron { transform: rotate(180deg); }
.language-options {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 190px;
  max-width: calc(100vw - 28px);
  padding: 7px;
  border: 1px solid rgba(223, 209, 189, 0.95);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.98);
  box-shadow: 0 22px 52px rgba(31, 38, 58, 0.16);
}
.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  color: #334158;
  font-weight: 750;
  white-space: nowrap;
}
.language-option:hover,
.language-option.is-current {
  color: var(--blue-dark);
  background: rgba(36, 79, 158, 0.09);
}

.hero {
  padding: 82px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.78fr);
  gap: 54px;
  align-items: center;
}
.hero h1,
.page-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  margin: 0;
  max-width: 940px;
}
.hero h1 span,
.page-hero h1 span { color: var(--red); }
.lede {
  max-width: 690px;
  margin: 28px 0 0;
  font-size: clamp(1.08rem, 1.6vw, 1.26rem);
  color: #3f4a5e;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
  max-width: 760px;
}
.proof-item {
  border-left: 3px solid var(--red);
  padding: 7px 0 8px 14px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}
.proof-item strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
}

.letter-board {
  position: relative;
  min-height: 560px;
}
.paper-card {
  position: relative;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 241, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(223, 209, 189, 0.9);
  transform: rotate(-1.5deg);
}
.paper-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(100, 112, 134, 0.24);
  border-radius: 24px;
  pointer-events: none;
}
.paper-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.paper-top strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}
.tone-stamp {
  color: var(--red);
  border: 2px solid rgba(199, 71, 45, 0.42);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(5deg);
}
.line { height: 12px; border-radius: 99px; background: #e8dcc8; margin: 18px 0; }
.line.short { width: 66%; }
.line.mid { width: 82%; }
.edit-note {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  color: #27406b;
  background: rgba(36, 79, 158, 0.1);
  border: 1px solid rgba(36, 79, 158, 0.18);
  font-weight: 700;
}
.floating-panel {
  position: absolute;
  right: -6px;
  bottom: 26px;
  width: min(300px, 82%);
  border-radius: 26px;
  padding: 22px;
  color: #fffaf1;
  background: #172134;
  box-shadow: 0 24px 56px rgba(23, 33, 52, 0.28);
}
.floating-panel h3 { margin: 0 0 12px; font-size: 1.05rem; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 250, 241, 0.84); }
.check-list li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 99px; margin-top: 10px; background: var(--gold); }

.section { padding: 76px 0; }
.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 0;
}
.section-intro { max-width: 720px; color: var(--muted); font-size: 1.08rem; margin: 18px 0 0; }

.path-grid,
.article-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.path-card,
.article-card,
.resource-card {
  position: relative;
  min-height: 250px;
  border-radius: var(--radius-lg);
  padding: 28px;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(223, 209, 189, 0.86);
  box-shadow: 0 16px 44px rgba(31, 38, 58, 0.08);
  overflow: hidden;
}
.path-card::after,
.article-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -44px;
  bottom: -54px;
  border-radius: 50%;
  background: rgba(199, 71, 45, 0.1);
}
.card-number {
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: rgba(36, 79, 158, 0.2);
}
.card-title { font-size: 1.42rem; line-height: 1.12; margin: 18px 0 10px; letter-spacing: -0.03em; }
.card-copy { color: var(--muted); margin: 0 0 18px; }
.text-link { color: var(--blue); font-weight: 850; }
.text-link:hover { color: var(--red); }

.workbench {
  border-radius: 42px;
  padding: clamp(28px, 5vw, 54px);
  background: #172134;
  color: #fffaf1;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.workbench::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 167, 65, 0.28), transparent 67%);
}
.workbench-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}
.workbench .section-title { color: #fffaf1; }
.workbench p { color: rgba(255, 250, 241, 0.75); }
.tabs { display: grid; gap: 12px; margin-top: 24px; }
.tab {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.12);
}
.tab strong { color: #fffaf1; }
.tab span { color: rgba(255, 250, 241, 0.56); }
.editor {
  border-radius: 28px;
  background: #fffaf1;
  color: var(--ink);
  padding: 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}
.editor-toolbar {
  display: flex;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.dot { width: 12px; height: 12px; border-radius: 99px; background: #d9c7af; }
.dot:nth-child(1) { background: var(--red); }
.dot:nth-child(2) { background: var(--gold); }
.dot:nth-child(3) { background: var(--green); }
.editor h3 { font-family: "Fraunces", Georgia, serif; font-size: 2rem; line-height: 1.05; letter-spacing: -0.05em; }
.editor-block { border-left: 4px solid var(--blue); padding-left: 18px; color: #3f4a5e; }
.score-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.score { border-radius: 16px; padding: 14px; background: #f0e5d4; }
.score strong { display: block; font-size: 1.4rem; color: var(--blue); }
.score span { font-size: 0.84rem; color: var(--muted); font-weight: 700; }

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 46px;
  align-items: start;
}
.list-panel {
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 241, 0.7);
  border: 1px solid rgba(223, 209, 189, 0.86);
  padding: 30px;
}
.list-panel ol,
.article-body ol,
.article-body ul { padding-left: 1.2rem; }
.list-panel li,
.article-body li { margin: 12px 0; }

.page-hero { padding: 76px 0 42px; }
.article-body {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 0 72px;
}
.article-body h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 58px 0 14px;
}
.article-body h3 { font-size: 1.35rem; margin: 28px 0 8px; }
.article-body p { color: #3f4a5e; font-size: 1.08rem; }
.article-body .note {
  border-radius: 22px;
  padding: 22px;
  background: rgba(36, 79, 158, 0.1);
  border: 1px solid rgba(36, 79, 158, 0.18);
  color: #27406b;
  font-weight: 700;
}
.prompt-box {
  border-radius: 24px;
  padding: 24px;
  background: #172134;
  color: #fffaf1;
  box-shadow: var(--shadow);
  white-space: pre-wrap;
}

.footer {
  padding: 54px 0 70px;
  background: rgba(23, 33, 52, 0.96);
  color: rgba(255, 250, 241, 0.72);
}
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer strong { color: #fffaf1; font-size: 1.15rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 750; }
.footer a { color: rgba(255, 250, 241, 0.86); }
.copyright {
  margin-top: 28px;
  font-size: 0.9rem;
  color: rgba(255, 250, 241, 0.56);
}

@media (max-width: 900px) {
  .nav { align-items: flex-start; padding: 16px 0; }
  .nav-links { display: none; }
  .hero-grid,
  .workbench-grid,
  .split { grid-template-columns: 1fr; }
  .letter-board { min-height: auto; }
  .floating-panel { position: relative; inset: auto; margin: -18px auto 0; width: calc(100% - 28px); }
  .path-grid,
  .article-grid,
  .resource-grid { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav {
    min-height: 64px;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
  }
  .brand {
    min-width: 0;
    gap: 9px;
    font-size: 0.98rem;
    line-height: 1.15;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    flex: 0 0 36px;
  }
  .nav-cta {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 15px;
    font-size: 1.18rem;
    line-height: 1;
    box-shadow: 0 12px 26px rgba(23, 33, 52, 0.2);
  }
  .nav-actions {
    gap: 7px;
    flex: 0 0 auto;
  }
  .language-menu summary {
    min-height: 42px;
    padding: 0 10px;
  }
  .language-options {
    right: -49px;
    min-width: 180px;
  }
  .current-label { display: none; }
  .cta-desktop { display: none; }
  .cta-mobile { display: inline; transform: translateY(-1px); }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-actions .button {
    max-width: 100%;
  }
  .hero { padding-top: 48px; }
  .hero h1,
  .page-hero h1 { font-size: clamp(3.2rem, 18vw, 4.7rem); }
  .paper-card { padding: 24px; }
  .score-row { grid-template-columns: 1fr; }
}
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
