@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,100;9..144,900&family=IBM+Plex+Mono:wght@400;700&family=IBM+Plex+Sans:wght@100;200;800;900&display=swap');

:root {
  color-scheme: light;
  --substrate: #d9d9d9;
  --substrate-light: #efefeb;
  --forest: #073b2c;
  --forest-deep: #03271d;
  --chlorophyll: #b8f23d;
  --solar: #ffd84a;
  --oxide: #ee673d;
  --glass: #68d6c5;
  --ink: #10251d;
  --muted: #526159;
  --white: #f8f8f3;
  --sans: 'IBM Plex Sans', sans-serif;
  --display: 'Fraunces', serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 216, 74, .95) 0 9rem, transparent 9.1rem),
    linear-gradient(112deg, transparent 0 74%, rgba(7, 59, 44, .09) 74% 75%, transparent 75%),
    linear-gradient(68deg, transparent 0 18%, rgba(7, 59, 44, .05) 18% 18.5%, transparent 18.5%),
    var(--substrate);
  font-family: var(--sans);
  font-weight: 200;
}
a { color: inherit; }
.skip-link { position: fixed; z-index: 20; top: .75rem; left: .75rem; padding: .8rem 1rem; color: var(--white); background: var(--forest); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header, .site-footer, .hero, .tools { width: min(1480px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--forest); }
.wordmark { display: inline-flex; gap: .8rem; align-items: center; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.wordmark__mark { display: grid; width: 2.5rem; aspect-ratio: 1; place-items: center; color: var(--chlorophyll); background: var(--forest); font: 700 .72rem var(--mono); letter-spacing: -.08em; }
.site-header__status { display: flex; gap: .6rem; align-items: center; margin: 0; font: 700 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.site-header__status span { width: .65rem; aspect-ratio: 1; border-radius: 50%; background: var(--oxide); box-shadow: 0 0 0 5px rgba(238, 103, 61, .18); }
.site-header__status--active span { background: var(--chlorophyll); box-shadow: 0 0 0 5px rgba(184, 242, 61, .2); }

.hero { position: relative; min-height: 720px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 310px); gap: 3rem; align-items: center; padding: 7rem 0 6rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; z-index: -1; right: 11%; top: 17%; width: min(36vw, 520px); aspect-ratio: 1; border: 2px solid var(--forest); border-radius: 62% 38% 18% 82%; rotate: -13deg; }
.hero::after { content: ''; position: absolute; z-index: -2; right: 0; bottom: 7%; width: min(20vw, 300px); aspect-ratio: 1; background: var(--glass); clip-path: polygon(50% 0, 88% 12%, 100% 50%, 86% 86%, 50% 100%, 12% 88%, 0 50%, 14% 14%); mix-blend-mode: multiply; }
.hero__index, .kicker, .hero__note span, .section-heading p, .tool-card__topline { font: 700 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero__index { position: absolute; top: 2rem; right: 0; color: var(--forest); }
.kicker { margin: 0 0 1.6rem; color: var(--forest); }
h1 { position: relative; z-index: 1; max-width: 1080px; margin: 0; font-size: clamp(4.5rem, 11vw, 10.5rem); line-height: .72; letter-spacing: -.09em; font-weight: 900; }
h1 em { color: var(--forest); font-family: var(--display); font-weight: 100; letter-spacing: -.06em; }
.hero__intro { position: relative; z-index: 1; max-width: 620px; margin: 3.2rem 0 0 20%; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.52; }
.hero__note { position: relative; z-index: 2; align-self: end; margin-bottom: 2rem; padding: 1.35rem; color: var(--white); background: var(--forest); rotate: 2deg; box-shadow: 8px 8px 0 var(--chlorophyll); }
.hero__note::before { content: ''; position: absolute; top: -9px; left: 50%; width: 70px; height: 18px; background: rgba(255, 216, 74, .68); rotate: -4deg; }
.hero__note p { margin: .9rem 0 0; font-size: .95rem; line-height: 1.5; }

.auth-shell { width: min(920px, calc(100% - 3rem)); margin: 0 auto 5rem; }
.auth-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 3rem; padding: 2rem; border: 2px solid var(--forest); background: rgba(248, 248, 243, .78); box-shadow: 10px 10px 0 var(--glass); }
.auth-panel__copy h2, .auth-bar h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .82; letter-spacing: -.08em; font-weight: 900; }
.auth-panel__copy p:last-child { max-width: 34ch; font-size: 1.08rem; line-height: 1.5; }
.auth-form { display: grid; gap: .85rem; align-content: start; }
.auth-form label { display: grid; gap: .35rem; font: 700 .72rem var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.auth-form input { width: 100%; padding: .85rem .8rem; color: var(--ink); border: 2px solid var(--forest); border-radius: 0; background: var(--white); font: 200 1rem var(--sans); }
.auth-form input:focus { outline: 3px solid var(--oxide); outline-offset: 2px; }
.auth-form small { font: 200 .78rem var(--sans); letter-spacing: 0; text-transform: none; }
.auth-button { margin-top: .4rem; padding: .95rem 1rem; color: var(--white); border: 2px solid var(--forest); background: var(--forest); font: 800 .82rem var(--mono); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.auth-button:hover, .auth-button:focus-visible { color: var(--forest); background: var(--chlorophyll); }
.auth-button:disabled { opacity: .55; cursor: wait; }
.auth-form__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: .35rem; }
.auth-form__links button, .auth-text-button { padding: 0; color: var(--forest); border: 0; background: transparent; font: 700 .7rem var(--mono); text-align: left; text-decoration: underline; cursor: pointer; }
.auth-form__message { margin: 0; padding: .8rem; color: var(--forest-deep); border-left: 5px solid var(--oxide); background: rgba(238, 103, 61, .16); font-size: .9rem; line-height: 1.45; }
.auth-bar { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 1.3rem 1.5rem; border: 2px solid var(--forest); background: var(--chlorophyll); }
.auth-bar__actions { display: flex; align-items: center; gap: 1rem; font: 700 .7rem var(--mono); }
.auth-shell__loading { padding: 1.3rem 1.5rem; border: 2px solid var(--forest); background: var(--chlorophyll); font: 700 .75rem var(--mono); text-transform: uppercase; }

.tools { padding: 5.5rem 0 9rem; border-top: 2px solid var(--forest); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; align-items: end; margin-bottom: 2.3rem; }
.section-heading p, .section-heading h2 { margin: 0; }
.section-heading h2 { font-size: clamp(3rem, 7vw, 7rem); line-height: .8; letter-spacing: -.08em; font-weight: 900; }
.tool-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.tool-card { position: relative; min-height: 440px; display: flex; flex-direction: column; grid-column: span 5; padding: 1.5rem; overflow: hidden; border: 2px solid var(--forest); background: var(--solar); transition: translate 180ms ease, box-shadow 180ms ease; }
.tool-card:nth-child(2) { min-height: 540px; grid-column: span 7; color: var(--white); background: var(--forest); }
.tool-card:nth-child(3) { min-height: 390px; grid-column: 4 / span 9; margin-top: -5rem; background: var(--glass); }
.tool-card::before { content: ''; position: absolute; right: -3rem; bottom: 5rem; width: 11rem; aspect-ratio: 1; border: 2px solid currentColor; border-radius: 64% 36% 70% 30%; rotate: 24deg; opacity: .2; }
.tool-card:nth-child(2)::after { content: ''; position: absolute; top: 28%; right: 12%; width: 5rem; aspect-ratio: 1; border-radius: 50%; background: var(--chlorophyll); box-shadow: -52px 58px 0 var(--glass), 42px 94px 0 var(--oxide); }
.tool-card:hover, .tool-card:focus-within { z-index: 3; translate: -5px -5px; box-shadow: 10px 10px 0 var(--oxide); }
.tool-card__topline { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 1rem; }
.tool-card__number { font-weight: 700; }
.tool-card__eyebrow { max-width: 18ch; text-align: right; }
.tool-card h2 { position: relative; z-index: 2; max-width: 9ch; margin: 4.5rem 0 1.25rem; font-size: clamp(3rem, 6vw, 6.8rem); line-height: .78; letter-spacing: -.085em; font-weight: 900; }
.tool-card:nth-child(2) h2 { max-width: 7ch; }
.tool-card p { position: relative; z-index: 2; max-width: 40ch; margin: 0; font-size: 1rem; line-height: 1.52; }
.tool-card:nth-child(2) p { max-width: 33ch; color: rgba(248, 248, 243, .82); }
.tool-card__link { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1.15rem; border-top: 2px solid currentColor; font-weight: 800; text-decoration: none; }
.tool-card__link::before { content: ''; position: absolute; inset: .6rem -.5rem -.5rem; }
.tool-card__link:focus-visible { outline: 4px solid var(--oxide); outline-offset: 8px; }
.tool-card__arrow { display: grid; width: 2.55rem; aspect-ratio: 1; place-items: center; color: var(--chlorophyll); background: var(--forest); font-size: 1.15rem; }
.tool-card:nth-child(2) .tool-card__arrow { color: var(--forest); background: var(--chlorophyll); }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 0 2.5rem; border-top: 2px solid var(--forest); font: 700 .68rem var(--mono); text-transform: uppercase; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { min-height: 680px; grid-template-columns: 1fr; gap: 3rem; }
  .hero__note { max-width: 360px; }
  .tool-card, .tool-card:nth-child(2), .tool-card:nth-child(3) { min-height: 420px; grid-column: span 12; margin-top: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .auth-panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .auth-bar { align-items: start; flex-direction: column; }
}

@media (max-width: 600px) {
  .site-header, .site-footer, .hero, .tools { width: calc(100% - 1.5rem); }
  .site-header__status { font-size: 0; }
  .hero { min-height: auto; padding-top: 7rem; }
  .hero__index { left: 0; right: auto; }
  h1 { font-size: clamp(4.5rem, 24vw, 7rem); }
  .hero__intro { margin-left: 0; }
  .section-heading, .site-footer { align-items: flex-start; flex-direction: column; }
  .tool-card h2 { margin-top: 3.5rem; }
  .auth-shell { width: calc(100% - 1.5rem); }
  .auth-panel { padding: 1.2rem; }
  .auth-bar__actions { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy, .hero__note, .tool-card { animation: rise 650ms both cubic-bezier(.16, .8, .24, 1); }
  .hero__note { animation-delay: 120ms; }
  .tool-card:nth-child(1) { animation-delay: 80ms; }
  .tool-card:nth-child(2) { animation-delay: 160ms; }
  .tool-card:nth-child(3) { animation-delay: 240ms; }
}
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
