@import url('/assets/page-fonts.css');

:root {
  --paper: #f5f3eb;
  --ink: #111312;
  --muted: #575a55;
  --green: #3d9a42;
  --green-soft: #a8e3a2;
  --line: rgba(17, 19, 18, .25);
  --header: 64px;
  --page: clamp(20px, 3.6vw, 58px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper) url('/assets/paper-texture.webp') center / 760px auto repeat; font-family: 'Roboto Condensed', Arial, sans-serif; }
a { color: inherit; }
.page-header { position: fixed; z-index: 20; top: 0; left: 50%; width: min(100%, 1600px); height: var(--header); padding: 0 var(--page); display: flex; align-items: center; justify-content: space-between; transform: translateX(-50%); background: rgba(247,245,238,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.logo { display: inline-flex; align-items: center; padding: 4px 0; color: var(--green); font-family: 'Oswald', Arial, sans-serif; font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.button { position: relative; min-height: 52px; padding: 0 38px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #5d9f61; background: var(--green-soft); color: #122414; font-size: 20px; font-weight: 600; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out), opacity 180ms ease; }
.button:hover { background: #8fd689; border-color: #397e3e; }
.button:active { transform: translateY(1px) scale(.98); background: #80ca7b; }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.button[aria-disabled='true'] { cursor: not-allowed; opacity: .46; filter: grayscale(.45); pointer-events: none; }
.button[aria-busy='true'] { color: transparent; cursor: progress; pointer-events: none; }
.button[aria-busy='true']::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(18,36,20,.3); border-top-color: #122414; border-radius: 50%; animation: button-spin .7s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.page-header .button { min-height: 46px; padding: 0 28px; font-size: 17px; }
.page-main { width: min(100%, 1600px); margin: 0 auto; padding-top: var(--header); overflow: hidden; background: rgba(247,245,238,.28); }
.page-hero { min-height: 610px; padding: clamp(38px, 5vw, 72px) var(--page); display: grid; grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); align-items: center; gap: clamp(32px, 4vw, 72px); border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 15px; color: var(--green); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.page-hero h1 { max-width: 760px; margin: 0; font-family: 'Oswald', Arial, sans-serif; font-size: clamp(64px, 7vw, 112px); line-height: .92; font-weight: 700; letter-spacing: -.05em; }
.lead { max-width: 610px; margin: 26px 0 28px; color: #242723; font-size: clamp(19px, 1.5vw, 24px); line-height: 1.35; }
.hero-media { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); background: #fff; transform: rotate(.6deg); box-shadow: 14px 18px 0 rgba(61,154,66,.09); }
.hero-media::before { content: ''; position: absolute; z-index: 2; inset: 0; box-shadow: inset 0 0 0 10px rgba(255,255,255,.32); pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; z-index: 3; right: 12px; bottom: 12px; padding: 7px 10px; background: rgba(245,243,235,.9); border: 1px solid var(--line); font-size: 12px; }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.fact { min-height: 126px; padding: 26px var(--page); border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact span { display: block; margin-bottom: 7px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fact strong { font-family: 'Oswald', Arial, sans-serif; font-size: clamp(25px, 2vw, 34px); font-weight: 600; line-height: 1.1; }
.capabilities { padding: clamp(46px, 5vw, 74px) var(--page); border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: end; gap: 32px; margin-bottom: 34px; }
.section-heading h2 { max-width: 820px; margin: 0; font-family: 'Oswald', Arial, sans-serif; font-size: clamp(42px, 4.3vw, 68px); line-height: .98; letter-spacing: -.035em; }
.section-heading p { max-width: 500px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.45; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.detail { min-height: 250px; padding: 28px; border-right: 1px solid var(--line); background: rgba(255,255,255,.2); }
.detail:last-child { border-right: 0; }
.detail > span { color: var(--green); font-family: 'Oswald', Arial, sans-serif; font-size: 42px; line-height: 1; }
.detail h3 { margin: 28px 0 11px; font-family: 'Oswald', Arial, sans-serif; font-size: 29px; font-weight: 600; }
.detail p { margin: 0; color: #353834; font-size: 17px; line-height: 1.45; }
.example { padding: clamp(42px, 5vw, 72px) var(--page); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 5vw, 76px); align-items: center; border-bottom: 1px solid var(--line); }
.example-copy h2 { margin: 0 0 22px; font-family: 'Oswald', Arial, sans-serif; font-size: clamp(40px, 4vw, 62px); line-height: 1; }
.prompt-card { padding: 27px; border: 1px solid var(--line); background: rgba(255,255,255,.5); box-shadow: 9px 9px 0 rgba(61,154,66,.12); transform: rotate(-.7deg); }
.prompt-card small { color: var(--green); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.prompt-card p { margin: 18px 0 0; font-family: cursive; font-size: clamp(20px, 2vw, 28px); line-height: 1.35; }
.result-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.result-list li { padding: 18px 0; display: grid; grid-template-columns: 38px 1fr; gap: 14px; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.35; }
.result-list b { color: var(--green); font-family: 'Oswald', Arial, sans-serif; font-size: 24px; }
.topic-guide { padding: clamp(46px, 5vw, 74px) var(--page); border-bottom: 1px solid var(--line); }
.topic-guide > h2 { max-width: 900px; margin: 0 0 28px; font-family: 'Oswald', Arial, sans-serif; font-size: clamp(38px, 4vw, 60px); line-height: 1; letter-spacing: -.035em; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.topic-grid article { padding: 24px 28px 10px 0; }
.topic-grid h3 { margin: 0 0 10px; font-family: 'Oswald', Arial, sans-serif; font-size: 26px; font-weight: 600; }
.topic-grid p { max-width: 440px; margin: 0; color: #353834; font-size: 17px; line-height: 1.5; }
.breadcrumbs { margin: 0 0 15px; display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.related-links { padding: 28px var(--page); display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; border-bottom: 1px solid var(--line); }
.related-links > span { margin-right: 8px; color: var(--green); font-weight: 700; }
.related-links a { min-height: 40px; padding: 8px 13px; display: inline-flex; align-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.25); font-weight: 700; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease; }
.related-links a:hover { border-color: #5d9f61; background: rgba(168,227,162,.24); }
.faq { padding: clamp(44px, 5vw, 70px) var(--page); border-bottom: 1px solid var(--line); }
.faq > h2 { margin: 0 0 24px; font-family: 'Oswald', Arial, sans-serif; font-size: clamp(38px, 4vw, 58px); line-height: 1; }
.faq-list { max-width: 980px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 54px; padding: 15px 42px 15px 0; position: relative; display: flex; align-items: center; cursor: pointer; font-size: 18px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 8px; font-family: 'Oswald', Arial, sans-serif; font-size: 27px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { max-width: 760px; margin: 0; padding: 0 42px 18px 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.final-cta { padding: clamp(40px, 4.5vw, 68px) var(--page); display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); background: rgba(168,227,162,.22); }
.final-cta h2 { max-width: 760px; margin: 0; font-family: 'Oswald', Arial, sans-serif; font-size: clamp(36px, 3.8vw, 58px); line-height: 1; letter-spacing: -.035em; }
.final-cta div > p:last-child { max-width: 660px; margin: 15px 0 0; color: var(--muted); font-size: 18px; line-height: 1.45; }
.final-cta .button { flex: none; }
.page-footer { width: min(100%, 1600px); margin: 0 auto; padding: 0 var(--page) 24px; }
.page-footer-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.page-footer-nav a { min-height: 66px; padding: 12px 8px; display: grid; place-items: center; color: var(--ink); font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; transition: color 180ms ease, background-color 180ms ease; }
.page-footer-nav a:hover, .page-footer-nav a[aria-current='page'] { color: #1d6723; background: rgba(168,227,162,.18); }
.page-footer-meta { min-height: 86px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.footer-logo { display: flex; flex-direction: column; color: var(--green); font-family: 'Oswald', Arial, sans-serif; font-size: 28px; font-weight: 700; line-height: 1; text-decoration: none; }
.footer-logo small { margin-top: 3px; color: var(--ink); font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.page-footer-meta > span { font-size: 13px; }
.error-page { width: min(100%, 1600px); min-height: calc(100vh - var(--header)); margin: 0 auto; padding: calc(var(--header) + clamp(70px, 10vw, 140px)) var(--page) 80px; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; }
.error-page h1 { max-width: 900px; margin: 0; font-family: 'Oswald', Arial, sans-serif; font-size: clamp(58px, 8vw, 112px); line-height: .92; letter-spacing: -.05em; }
.error-page > p:not(.eyebrow) { max-width: 620px; margin: 24px 0 30px; color: var(--muted); font-size: 20px; line-height: 1.45; }

.hero-copy > *, .hero-media { opacity: 0; transform: translateY(18px); animation: page-enter 650ms var(--ease-out) forwards; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero-media { animation-delay: 120ms; }
@keyframes page-enter { to { opacity: 1; transform: translateY(0); } }

@media (hover: hover) and (pointer: fine) {
  .detail { transition: transform 180ms var(--ease-out), background-color 180ms ease; }
  .detail:hover { transform: translateY(-4px); background: rgba(255,255,255,.42); }
  .page-nav a:hover { color: #1d6723; }
}

@media (max-width: 1000px) {
  .page-hero { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: clamp(58px, 8vw, 82px); }
  .section-heading { grid-template-columns: 1fr; }
  .page-footer-nav { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --header: 56px; }
  .logo { font-size: 29px; }
  .page-header .button { min-height: 38px; padding: 0 16px; font-size: 15px; }
  .page-hero { min-height: 0; padding-top: 30px; padding-bottom: 36px; grid-template-columns: 1fr; gap: 28px; }
  .page-hero h1 { font-size: clamp(52px, 15vw, 76px); }
  .lead { margin-top: 19px; font-size: 18px; }
  .hero-media { width: 100%; max-height: 390px; }
  .quick-facts { grid-template-columns: 1fr; }
  .fact { min-height: 0; padding-top: 20px; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .details { grid-template-columns: 1fr; }
  .detail { min-height: 0; padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail:last-child { border-bottom: 0; }
  .detail h3 { margin-top: 18px; }
  .example { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-grid article { padding-right: 0; border-bottom: 1px solid var(--line); }
  .topic-grid article:last-child { border-bottom: 0; }
  .related-links { align-items: stretch; flex-direction: column; gap: 8px; }
  .related-links > span { margin: 0 0 3px; }
  .related-links a { width: 100%; }
  .final-cta { align-items: stretch; flex-direction: column; gap: 24px; }
  .final-cta .button { align-self: flex-start; }
  .page-footer { padding-left: 16px; padding-right: 16px; }
  .page-footer-nav { grid-template-columns: repeat(2, 1fr); }
  .page-footer-nav a { min-height: 54px; justify-items: start; text-align: left; }
}

@media (max-width: 390px) {
  :root { --page: 16px; }
  .page-hero h1 { font-size: 51px; }
  .button { width: 100%; }
  .page-header .button { width: auto; }
  .hero-media { box-shadow: 7px 9px 0 rgba(61,154,66,.09); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-media { opacity: 1; transform: none; animation: none; }
  .detail, .button { transition-duration: 0ms; }
}
