@font-face {
  font-family: Manrope;
  src: url("manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #20211f;
  --quiet: #545650;
  --paper: #fff;
  --soft: #f5f5f2;
  --edge: #deded8;
  --yellow: #ffdd2d;
  --gutter: clamp(20px, 4.45vw, 72px);
  font-family: Manrope, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2368bb; outline-offset: 4px; }
::selection { color: var(--ink); background: #ffe978; }
.wrap { width: min(1320px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; z-index: 20; top: 8px; left: 8px; padding: 10px 16px; background: var(--yellow); transform: translateY(-160%); }
.skip:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--edge); background: var(--paper); position: relative; z-index: 5; }
.masthead-inner, .footer-inner { display: flex; align-items: center; gap: 24px; }
.masthead-inner { min-height: 78px; justify-content: space-between; }
.brand { flex: none; display: inline-flex; gap: 8px; align-items: center; line-height: .94; font-size: 19px; font-weight: 800; letter-spacing: -.055em; }
.brand img { width: 36px; height: 36px; }
.desktop-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 33px); }
.desktop-nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav a[aria-current], .footer a:not(.brand):hover { text-decoration: underline; text-underline-offset: 5px; }
.header-program, .button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; border-radius: 11px; min-height: 48px; padding: 12px 20px; font-weight: 800; }
.header-program { font-size: 13px; min-height: 42px; border-radius: 9px; padding: 10px 15px; gap: 9px; background: var(--yellow); white-space: nowrap; }
.button.primary { background: var(--yellow); color: var(--ink); }
.button span, .header-program span, .link-arrow span { display: inline-block; font-size: 1.18em; line-height: 1; }
.primary:hover, .header-program:hover { background: #fbd119; }
.mobile-menu { display: none; }

.hero { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.95fr); align-items: center; gap: clamp(20px,3vw,50px); padding-block: clamp(26px,3.1vw,49px) 0; }
.hero-copy { padding-block: 12px clamp(35px,3.3vw,54px); }
.offer-lead { display: block; font-size: clamp(60px,6.4vw,94px); line-height: .97; font-weight: 800; letter-spacing: -.069em; }
.ink-line { display: inline-block; background-image: linear-gradient(to bottom, transparent 80%, var(--yellow) 80%, var(--yellow) 94%, transparent 94%); }
.offer-tail { display: block; font-size: clamp(24px,2.5vw,38px); line-height: 1.15; font-weight: 700; letter-spacing: -.047em; margin-top: .42em; text-wrap: balance; }
.hero-description { max-width: 49ch; margin-top: 22px; color: var(--quiet); font-size: clamp(16px,1.22vw,19px); line-height: 1.62; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.hero-actions .button { min-height: 52px; padding-inline: 23px; }
.text-action, .link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 750; }
.text-action { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #999b92; }
.text-action:hover { text-decoration-color: var(--ink); }
.hero-art { min-width: 0; width: 100%; max-width: 565px; height: clamp(395px,36.8vw,540px); justify-self: end; align-self: end; position: relative; overflow: hidden; isolation: isolate; }
.moon { position: absolute; width: 90%; aspect-ratio: 1; top: 2%; right: 5%; border-radius: 50%;
  background: linear-gradient(135deg,#ffe34cca,#ffdc3799 60%,#eab11c70), var(--yellow) url("moon.webp") 50% 50%/cover; }
.hero-portrait { position: absolute; width: 90%; height: auto; max-width: none; top: 0; right: 1.5%; }
.hero-art figcaption { position: absolute; left: 40%; bottom: 6%; padding-left: 11px; border-left: 3px solid var(--yellow); color: #fff; font-size: 15px; font-weight: 800; line-height: 1.3; text-shadow: 0 1px 4px #111c; }
.hero-art figcaption span { display: block; margin-top: 3px; color: #f0f0eb; font-size: 12px; font-weight: 500; }

.editorial { background: var(--soft); border-block: 1px solid #e7e7e2; padding-block: clamp(34px,3.7vw,58px) clamp(38px,4vw,64px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-heading h2, .resources h2 { font-size: clamp(30px,3.25vw,49px); font-weight: 800; letter-spacing: -.055em; }
.link-arrow { gap: 8px; white-space: nowrap; }
.link-arrow:hover, .source-link:hover, .source-links a:hover { text-decoration: underline; }
.story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px,1.8vw,28px); }
.home-stories { grid-template-columns: 1.15fr 1fr 1fr; }
.story { min-width: 0; display: flex; flex-direction: column; }
.story-photo { border-radius: 16px; overflow: hidden; background: #e7e7e2; }
.story-photo img, .calc-art { width: 100%; height: clamp(168px,15.8vw,232px); object-fit: cover; }
.story-copy { position: relative; padding: 17px 38px 0 0; }
.story-topic { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 750; line-height: 1.3; text-transform: uppercase; letter-spacing: .085em; color: var(--quiet); }
.story h3 { font-size: clamp(20px,1.8vw,28px); line-height: 1.22; font-weight: 760; letter-spacing: -.042em; text-wrap: pretty; }
.story-arrow { position: absolute; top: 17px; right: 0; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #bfc0b8; border-radius: 50%; line-height: 1; font-size: 17px; }
.story:hover .story-arrow, .story:focus-visible .story-arrow { background: var(--yellow); border-color: var(--yellow); }
.resources { padding-block: clamp(40px,4.5vw,72px); }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.resource { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--edge); border-radius: 16px; padding: clamp(18px,2.1vw,30px); }
.resource strong, .resource small { display: block; }
.resource strong { font-size: clamp(19px,1.6vw,23px); letter-spacing: -.035em; }
.resource small { font-size: 14px; color: var(--quiet); margin-top: 5px; }
.circle-arrow { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff0a0; font-size: 20px; line-height: 1; }
.resource:hover .circle-arrow { background: var(--yellow); }
.footer { background: var(--soft); border-top: 1px solid var(--edge); }
.footer-inner { padding-block: 32px; font-size: 13px; font-weight: 700; }
.footer p { margin-right: auto; line-height: 1.55; }
.footer p span { color: var(--quiet); font-weight: 500; }
.to-top { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--edge); border-radius: 50%; }

.inner-page { padding-block: 26px clamp(44px,6vw,88px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: center; font-size: 12px; line-height: 1.6; color: var(--quiet); margin-bottom: clamp(26px,3.1vw,47px); }
.breadcrumbs i { font-style: normal; color: #85867f; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-heading { max-width: 850px; }
.page-heading h1, .article-heading h1 { font-size: clamp(38px,4.55vw,69px); font-weight: 800; letter-spacing: -.057em; line-height: 1.06; }
.page-heading p, .lead { margin-top: 18px; max-width: 64ch; font-size: clamp(16px,1.35vw,20px); color: var(--quiet); }
.topic-links { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 28px; }
.topic-links a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 15px; border-radius: 99px; border: 1px solid var(--edge); font-size: 14px; font-weight: 650; }
.topic-links a[aria-current] { background: var(--yellow); border-color: var(--yellow); }
.topic-links a:hover { border-color: #888a80; }
.catalogue { row-gap: 36px; }
.story:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: clamp(24px,4vw,60px); align-items: center; border-block: 1px solid var(--edge); padding-block: 24px; }
.story:only-child .story-copy { padding: 0 40px 12px 0; }
.story:only-child .story-photo img, .story:only-child .calc-art { height: clamp(215px,22vw,310px); }
.story:only-child h3 { font-size: clamp(28px,3vw,44px); }
.calc-art { display: grid; place-items: center; background: #ffe977; }
.calc-shape { width: 82px; height: 104px; background: var(--ink); padding: 12px; border-radius: 13px; transform: rotate(-8deg); box-shadow: 5px 7px 0 #c8aa2e; }
.calc-shape i { display: block; background: #f8f8dc; border-radius: 3px; height: 22%; }
.calc-shape b { display: block; height: 64%; margin-top: 14%; background: radial-gradient(circle at 50% 50%, #ffdf48 33%, transparent 37%) 0 0 / 33.33% 50%; }

.article-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px,4.5vw,70px); align-items: center; }
.article-cover { width: 100%; height: clamp(245px,24vw,360px); object-fit: cover; border-radius: 18px; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 13px; color: var(--quiet); }
.article-meta a { font-weight: 700; border-bottom: 2px solid var(--yellow); }
.reading-grid { display: grid; grid-template-columns: minmax(180px,.48fr) minmax(0,1.52fr); gap: clamp(26px,6vw,88px); margin-top: 42px; border-top: 1px solid var(--edge); padding-top: 34px; }
.contents { position: sticky; top: 18px; align-self: start; display: grid; gap: 11px; justify-items: start; }
.contents h2 { font-size: 19px; letter-spacing: -.03em; margin-bottom: 5px; }
.contents a { font-size: 14px; color: var(--quiet); }
.contents a:hover { text-decoration: underline; }
.reading-column { max-width: 72ch; min-width: 0; }
.reading-column section { margin-bottom: 35px; scroll-margin-top: 16px; }
.reading-column h2 { font-size: clamp(25px,2.25vw,35px); font-weight: 750; line-height: 1.16; }
.reading-column p, .reading-column ol { margin: 14px 0 0; font-size: 17px; line-height: 1.69; }
.reading-column ol { padding-left: 1.4em; }
.reading-column li + li { margin-top: 9px; }
.source-link, .source-links a { display: inline-block; font-size: 13px; color: var(--quiet); text-decoration: underline; text-underline-offset: 3px; }
.source-link { margin-top: 10px; }
.program-box { background: var(--soft); border-radius: 19px; padding: clamp(20px,3vw,35px); }
.program-box h2 { font-size: clamp(24px,2.2vw,32px); }
.program-box .button { margin-top: 20px; font-size: 14px; }
.read-next { margin-top: 32px; }
.read-next h2 { font-size: 22px; margin-bottom: 13px; }
.next-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; padding-block: 10px; border-top: 1px solid var(--edge); font-weight: 650; }
.next-row:hover { text-decoration: underline; }

.calculator { display: grid; grid-template-columns: 1.15fr .85fr; align-items: start; gap: clamp(16px,3vw,42px); margin-top: 30px; }
.calculator form, .calc-result { padding: clamp(20px,3vw,37px); border-radius: 18px; }
.calculator form { background: var(--soft); }
.calculator fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.calculator legend, .calc-result h2 { padding: 0; font-size: 24px; font-weight: 780; letter-spacing: -.04em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 22px; }
.form-grid label, .form-grid .field { display: grid; align-content: start; gap: 6px; font-size: 14px; font-weight: 700; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select { display: block; min-width: 0; width: 100%; min-height: 46px; background: #fff; border: 1px solid #cccfc5; border-radius: 8px; padding: 9px 10px; font-size: 16px; font-weight: 500; }
.calc-result { background: #252621; color: #fff; min-height: 210px; }
.calc-result p { margin-top: 14px; color: #e4e5dc; }
.calc-result .energy { color: var(--yellow); margin-block: 16px; }
.energy strong { font-size: clamp(40px,5vw,68px); line-height: 1; letter-spacing: -.05em; }
.macro-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.macro-list div { border-top: 1px solid #64645c; padding-top: 10px; }
.macro-list dt { font-size: 13px; color: #dedfd3; }
.macro-list dd { font-size: clamp(17px,1.7vw,24px); margin-top: 3px; font-weight: 700; }
.calc-note { font-size: 14px; color: var(--quiet); margin-block: 18px; max-width: 85ch; }
.method-note { margin-block: 22px; border-block: 1px solid var(--edge); padding: 14px 0; }
.method-note summary { font-weight: 700; }
.method-note p { margin-top: 13px; max-width: 75ch; }

@media (min-width: 980px) and (prefers-reduced-motion: no-preference) {
  .moon { animation: moon-enter .64s cubic-bezier(.2,.8,.3,1) both; }
  .hero-portrait { animation: portrait-enter .52s .09s cubic-bezier(.2,.8,.3,1) backwards; }
  @keyframes moon-enter { from { transform: translate(15px,9px) scale(.94); opacity: .78; } to { transform: none; opacity: 1; } }
  @keyframes portrait-enter { from { transform: translateY(9px); opacity: .55; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: no-preference) {
  .story-photo img, .story-arrow, .circle-arrow, .primary span { transition: transform .22s ease, background-color .22s; }
  .story:hover .story-photo img { transform: scale(1.025); }
  .primary:hover span, .resource:hover .circle-arrow { transform: translateX(2px); }
  .calc-result [data-reveal] { animation: result-enter .22s ease-out; }
  @keyframes result-enter { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1000px) {
  .desktop-nav, .header-program { display: none; }
  .masthead-inner { min-height: 65px; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { display: flex; min-height: 44px; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-symbol { width: 17px; height: 10px; border-block: 2px solid currentColor; }
  .mobile-menu nav { position: absolute; top: calc(100% + 5px); right: 0; width: min(260px,calc(100vw - 40px)); padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--edge); box-shadow: 0 14px 36px #2526211a; }
  .mobile-menu nav a { display: block; padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 650; }
  .mobile-menu nav a:hover, .mobile-menu nav a[aria-current] { background: var(--soft); }
  .hero { grid-template-columns: 1.1fr .9fr; gap: 14px; }
  .hero-actions { gap: 8px 15px; }
  .hero-description { margin-top: 16px; }
  .footer-inner { gap: 18px; }
}
@media (max-width: 719px) {
  .wrap { width: calc(100% - 2 * var(--gutter)); }
  .masthead-inner { min-height: 61px; }
  .brand { gap: 7px; font-size: 16px; }
  .brand img { width: 31px; height: 31px; }
  .hero { grid-template-columns: 1fr; gap: 6px; padding-top: 27px; }
  .hero-copy { padding: 0; }
  .offer-lead { font-size: clamp(48px,11.9vw,75px); line-height: .99; }
  .offer-tail { font-size: clamp(22px,5.1vw,29px); margin-top: 9px; text-wrap: pretty; }
  .hero-description { font-size: 16px; line-height: 1.5; max-width: 47ch; margin-top: 13px; }
  .hero-actions { margin-top: 17px; column-gap: 12px; }
  .hero-actions .button { min-height: 46px; padding: 10px 14px; gap: 9px; font-size: 14px; }
  .text-action { font-size: 13px; }
  .hero-art { width: min(100%,390px); height: clamp(245px,68vw,323px); margin-top: 9px; justify-self: center; }
  .hero-art figcaption { font-size: 13px; bottom: 7%; }
  .hero-art figcaption span { font-size: 11px; }
  .moon { width: 83%; right: 8%; }
  .hero-portrait { width: 84%; right: 3%; }
  .section-heading { align-items: center; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 18px; }
  .section-heading h2, .resources h2 { font-size: clamp(29px,6.2vw,37px); }
  .link-arrow { font-size: 13px; }
  .story-grid, .home-stories, .resource-grid, .article-heading, .reading-grid, .calculator { grid-template-columns: 1fr; }
  .story-grid { gap: 25px; }
  .story-photo img, .calc-art { height: auto; aspect-ratio: 1.95; }
  .story h3 { font-size: 24px; }
  .story-copy { padding-top: 13px; }
  .resource-grid { gap: 10px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 12px; }
  .footer p { grid-column: 1 / -1; grid-row: 2; }
  .to-top { grid-column: 2; grid-row: 1; justify-self: end; }
  .inner-page { padding-top: 20px; }
  .topic-links { gap: 6px; }
  .topic-links a { font-size: 13px; padding-inline: 12px; min-height: 44px; }
  .story:only-child { display: flex; gap: 0; align-items: stretch; padding-top: 16px; }
  .story:only-child .story-copy { padding: 15px 40px 0 0; }
  .story:only-child .story-photo img, .story:only-child .calc-art { height: auto; aspect-ratio: 1.95; }
  .article-heading, .reading-grid { gap: 22px; }
  .article-cover { height: auto; aspect-ratio: 1.9; }
  .reading-grid { margin-top: 24px; padding-top: 23px; }
  .contents { position: static; gap: 7px; padding-bottom: 20px; border-bottom: 1px solid var(--edge); }
  .contents a { display: inline-flex; min-height: 34px; align-items: center; }
  .reading-column p, .reading-column ol { font-size: 16px; }
  .calc-result { min-height: 130px; }
}
@media (min-width: 480px) and (max-width: 719px) {
  .hero-art { justify-self: end; }
}
@media (max-width: 365px) {
  :root { --gutter: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-art { height: 220px; }
}
