:root {
  --paper: #edeff2;
  --paper-2: #e3e7ec;
  --ink: #16213e;
  --ink-soft: #3c486b;
  --grey: #6b7280;
  --gold: #c8912f;
  --gold-bright: #e0a93f;
  --jade: #1f7a5c;
  --jade-dark: #18624a;
  --risk: #8e3b3b;
  --risk-light: #d98c8c;
  --hair: rgba(22, 33, 62, 0.18);

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .btn, .masthead, label, dt, .journal__head {
  font-family: var(--sans);
}

a { color: var(--ink); }

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter) 18px;
}

.wordmark {
  text-decoration: none;
  display: block;
  color: var(--paper);
}

.wordmark__name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.wordmark__rule {
  display: block;
  height: 3px;
  margin-top: 5px;
  background: var(--gold);
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}

.masthead__nav a {
  text-decoration: none;
  color: rgba(237, 239, 242, 0.72);
}

.masthead__nav a:hover { color: var(--paper); }

.masthead__cta {
  border: 1.5px solid rgba(237, 239, 242, 0.45);
  border-radius: 2px;
  padding: 7px 15px;
  color: var(--paper) !important;
}

.masthead__cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink) !important;
}

/* ---------- hero ---------- */

.hero-panel {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: start;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__lede {
  margin: 0 0 30px;
  max-width: 34em;
  font-size: 1.1rem;
  color: rgba(237, 239, 242, 0.76);
}

.hero__cite {
  margin: -14px 0 28px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  max-width: 32em;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(237, 239, 242, 0.58);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 13px 24px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.btn:hover { background: #0e162c; }

.hero .btn {
  background: var(--gold);
  color: var(--ink);
}

.hero .btn:hover { background: var(--gold-bright); }

.hero .link-plain {
  color: rgba(237, 239, 242, 0.8);
  border-bottom-color: var(--gold);
}

.hero .link-plain:hover { color: var(--paper); }

.link-plain {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 500;
}

.link-plain:hover { color: var(--ink); }

/* ---------- journal card ---------- */

.journal {
  margin: 0;
  background: rgba(237, 239, 242, 0.05);
  border: 1px solid rgba(237, 239, 242, 0.16);
  border-top: 3px solid var(--gold);
  padding: 20px 22px 18px;
}

.journal__head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(237, 239, 242, 0.16);
  color: var(--gold);
}

.journal__date { color: rgba(237, 239, 242, 0.5); font-weight: 500; }

.journal__rows {
  margin: 0;
  padding: 4px 0 0;
}

.journal__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(237, 239, 242, 0.1);
}

.journal__rows dt {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(237, 239, 242, 0.52);
  text-transform: none;
}

.journal__rows dd {
  margin: 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.is-risk { color: var(--risk-light); }

.journal__chart {
  display: block;
  width: 100%;
  height: 72px;
  margin: 18px 0 6px;
}

.journal__line { stroke: var(--gold); }
.journal__stop { stroke: var(--risk-light); }

.journal__note {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(237, 239, 242, 0.66);
}

@media (prefers-reduced-motion: no-preference) {
  .journal__line {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: draw 1.5s cubic-bezier(0.3, 0.7, 0.3, 1) 0.35s forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- structure ---------- */

.rule {
  max-width: var(--max);
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--hair);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px var(--gutter);
}

.section h2 {
  margin: 0 0 32px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.section--split h2 { margin-bottom: 18px; }

.method {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
}

.method__item h3,
.offer h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.method__item p,
.offer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 36em;
}

/* ---------- mentor ---------- */

.mentor__portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 3.4rem;
  letter-spacing: -0.04em;
  color: rgba(22, 33, 62, 0.22);
}

.mentor__body p { margin: 0 0 16px; max-width: 38em; }

.mentor__sign {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
}

/* ---------- offer ---------- */

.offer {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}

.offer li {
  padding: 26px 0;
  border-top: 1px solid var(--hair);
}

/* ---------- contact ---------- */

.contact__aside p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  max-width: 32em;
}

.contact__details {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15.5px;
}

.contact__details li {
  padding: 10px 0;
  border-top: 1px solid var(--hair);
  display: flex;
  gap: 14px;
}

.contact__details span {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--grey);
  min-width: 78px;
  padding-top: 3px;
}

.field { margin: 0 0 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 16.5px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--hair);
  border-radius: 2px;
  padding: 11px 12px;
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--jade);
  outline-offset: 1px;
  border-color: var(--jade);
}

.contact__form .btn { background: var(--jade); }
.contact__form .btn:hover { background: var(--jade-dark); }

#contact h2 { color: var(--jade); }

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.field-submit {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 24px 0 0;
}

.field-hint {
  font-size: 14px;
  color: var(--grey);
}

.notice {
  margin: 0 0 24px;
  padding: 13px 16px;
  background: #fbfcfd;
  border-left: 3px solid var(--jade);
  font-size: 16px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--hair);
  margin-top: 20px;
}

.footer > * {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer__brand {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  padding-top: 40px;
}

.footer__disclaimer {
  color: var(--grey);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 60em;
  margin: 10px auto 0;
}

.footer__meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--grey);
  padding-top: 20px;
  padding-bottom: 44px;
}

.footer__meta a { color: var(--grey); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero,
  .section--split { grid-template-columns: 1fr; gap: 40px; }
  .method,
  .offer { grid-template-columns: 1fr; gap: 0; }
  .method__item { padding: 22px 0; border-top: 1px solid var(--hair); }
  .method { gap: 0; }
  .mentor__portrait { max-width: 220px; aspect-ratio: 1 / 1; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .masthead { flex-wrap: wrap; gap: 14px; }
  .masthead__nav { gap: 18px; font-size: 14px; width: 100%; justify-content: space-between; }
  .hero { padding-top: 30px; padding-bottom: 44px; }
  .section { padding-top: 42px; padding-bottom: 42px; }
  .field-pair { grid-template-columns: 1fr; }
}
