@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #151a16;
  --forest: #1b261e;
  --paper: #eee9dc;
  --paper-deep: #ded8c9;
  --sage: #a6b09a;
  --acid: #d7e49a;
  --line: rgba(21, 26, 22, .2);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
button, input { font: inherit; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--acid); transition: top .2s; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; z-index: 20; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 3vw; color: var(--paper); transition: background .3s, color .3s, padding .3s; }
.site-header.scrolled { padding-block: .9rem; color: var(--ink); background: rgba(238,233,220,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: .86rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.brand-mark { width: 2rem; fill: currentColor; }
.site-nav { display: flex; align-items: center; gap: 2rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.3rem; height: 1px; background: currentColor; transition: right .25s; }
.site-nav a:hover::after { right: 0; }
.nav-cta { padding: .65rem 1rem; border: 1px solid currentColor; }
.menu-toggle { display: none; border: 0; background: none; color: inherit; }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: center; color: var(--paper); background: var(--forest); padding: 9rem 7vw 5rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 45%, rgba(173,186,150,.18), transparent 26%), linear-gradient(115deg, #111713, #243127 65%, #151b17); }
.hero-grain { position: absolute; inset: 0; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E"); }
.hero-copy { position: relative; z-index: 2; width: min(690px, 62vw); }
.eyebrow, .section-number { margin: 0 0 1.8rem; font-size: .71rem; font-weight: 500; letter-spacing: .21em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(4.8rem, 9.5vw, 10.4rem); font-weight: 400; line-height: .76; letter-spacing: -.045em; }
.hero h1 em { margin-left: .65em; color: var(--acid); font-weight: 400; }
.hero-intro { width: min(440px, 80%); margin: 3.2rem 0 2rem; color: rgba(238,233,220,.75); font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 300; }
.text-link { display: inline-flex; gap: .8rem; text-underline-offset: .4rem; font-size: .79rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-bird { position: absolute; z-index: 1; right: -5vw; top: 14%; width: min(56vw, 820px); opacity: .87; transform: rotate(-4deg); }
.bird-shadow { fill: rgba(5,8,6,.54); }
.bird-line { fill: none; stroke: rgba(215,228,154,.3); stroke-width: 1.4; }
.flight-lines span { position: absolute; z-index: 1; width: 22vw; height: 1px; background: rgba(238,233,220,.18); transform: rotate(-18deg); }
.flight-lines span:nth-child(1) { right: 8%; top: 20%; }.flight-lines span:nth-child(2) { right: 0; top: 26%; }.flight-lines span:nth-child(3) { right: 18%; bottom: 19%; }
.hero-note { position: absolute; z-index: 2; right: 3vw; bottom: 3rem; writing-mode: vertical-rl; font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; opacity: .6; }

.section { padding: 9rem 7vw; }
.manifesto { border-bottom: 1px solid var(--line); }
.manifesto-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10vw; }
.manifesto h2, .section-heading h2, .dispatch-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(3.5rem, 6.5vw, 7.5rem); font-weight: 400; line-height: .95; letter-spacing: -.035em; }
.manifesto-copy { padding-top: 1rem; max-width: 540px; }
.manifesto-copy .lead { margin-top: 0; font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.8rem); line-height: 1.1; }
.manifesto-copy p:last-child { max-width: 440px; margin-top: 2rem; color: rgba(21,26,22,.7); }

.principles { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; background: var(--paper-deep); }
.section-heading { position: sticky; top: 8rem; align-self: start; }
.principle { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1.6rem; align-items: start; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle > span:first-child { padding-top: .45rem; font-size: .68rem; }
.principle h3 { margin: 0 0 .5rem; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; }
.principle p { max-width: 420px; margin: 0; color: rgba(21,26,22,.65); }
.principle-symbol { font-family: var(--serif); font-size: 2rem; color: #59664f; }

.practice { background: var(--ink); }
.practice-card { min-height: 600px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 6vw, 6rem); background: var(--acid); }
.practice blockquote { max-width: 1050px; margin: 4rem 0; font-family: var(--serif); font-size: clamp(3.5rem, 7.2vw, 8rem); line-height: .92; letter-spacing: -.035em; }
.practice-footer { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.practice-footer p { max-width: 330px; margin: 0; }
.practice-footer svg { width: 7rem; fill: var(--ink); }

.dispatches { display: grid; grid-template-columns: 1fr .8fr; gap: 10vw; align-items: end; }
.signup label { display: block; margin-bottom: 1rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.input-row { display: flex; border-bottom: 1px solid var(--ink); }
.input-row input { min-width: 0; flex: 1; padding: 1rem 0; border: 0; outline: 0; background: transparent; font-family: var(--serif); font-size: 1.7rem; }
.input-row button { padding: 0 0 0 1.5rem; border: 0; background: transparent; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; }
.form-note { color: rgba(21,26,22,.55); font-size: .76rem; }
.form-note.success { color: #335024; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2rem 3vw; border-top: 1px solid var(--line); font-size: .69rem; letter-spacing: .09em; text-transform: uppercase; }
footer p { margin: 0; } footer p:last-child { text-align: right; }

.profile-menu { position: relative; }
.profile-trigger { display: flex; align-items: center; gap: .55rem; padding: .25rem .4rem; border: 0; color: inherit; background: transparent; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.profile-trigger img { width: 1.9rem; height: 1.9rem; border-radius: 50%; object-fit: cover; }
.profile-chevron { font-size: 1rem; transition: transform .2s; }
.profile-menu.open .profile-chevron { transform: rotate(180deg); }
.profile-dropdown { position: absolute; top: calc(100% + .8rem); right: 0; width: 13rem; padding: .45rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.profile-dropdown[hidden] { display: none; }
.profile-dropdown a, .profile-dropdown button { display: block; width: 100%; padding: .75rem .8rem; border: 0; color: inherit; background: transparent; text-align: left; text-decoration: none; font: inherit; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.profile-dropdown a:hover, .profile-dropdown button:hover, .profile-dropdown a:focus-visible, .profile-dropdown button:focus-visible { background: var(--paper-deep); outline: none; }
.profile-dropdown button { border-top: 1px solid var(--line); }

.account-page { min-height: 100svh; color: var(--paper); background: var(--forest); }
.account-header { color: var(--paper); }
.account-shell { min-height: 100svh; display: grid; place-items: center; padding: 8rem 5vw 4rem; background: radial-gradient(circle at 50% 40%, rgba(166,176,154,.18), transparent 30%), var(--forest); }
.account-card { width: min(520px, 100%); padding: clamp(2rem, 5vw, 4rem); color: var(--ink); background: var(--paper); text-align: center; }
.account-card h1 { margin: 1.2rem 0 .25rem; font-family: var(--serif); font-size: 3.5rem; font-weight: 400; }
.account-card > p { margin: .35rem 0; }
.account-avatar { width: 6rem; height: 6rem; margin: 0 auto; border-radius: 50%; object-fit: cover; }
.account-card .member-since { margin: 1.5rem 0 2rem; color: rgba(21,26,22,.55); font-size: .75rem; }
.account-loading { color: rgba(238,233,220,.7); }
.profile-card { width: min(720px, 100%); padding: clamp(2rem, 5vw, 4rem); color: var(--ink); background: var(--paper); }
.profile-heading { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.profile-heading .section-number { margin-bottom: .5rem; }
.profile-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; line-height: 1; }
.profile-heading p:last-child { margin: .6rem 0 0; color: rgba(21,26,22,.6); }
.profile-form { display: grid; margin-top: 2rem; }
.profile-form label { margin-top: 1.2rem; font-size: .7rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.profile-form input { padding: .9rem 0; border: 0; border-bottom: 1px solid var(--line); outline: none; background: transparent; font-family: var(--serif); font-size: 1.5rem; }
.profile-form input:focus { border-color: var(--ink); }
.profile-form input[readonly] { color: rgba(21,26,22,.55); }
.field-note { margin: .45rem 0 0; color: rgba(21,26,22,.5); font-size: .72rem; }
.profile-form .login-button { margin-top: 2rem; }
.profile-status { min-height: 1.4rem; color: #335024; font-size: .75rem; }
.profile-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: rgba(21,26,22,.55); font-size: .72rem; }
.text-button { padding: 0; border: 0; color: var(--ink); background: transparent; text-decoration: underline; text-underline-offset: .25rem; cursor: pointer; }
.login-page { min-height: 100svh; color: var(--paper); background: var(--forest); }
.login-header { color: var(--paper); }
.back-link { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; text-underline-offset: .35rem; }
.login-shell { min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-intro { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 9rem 8vw 5rem; background: radial-gradient(circle at 70% 45%, rgba(166,176,154,.22), transparent 32%), #172019; }
.login-intro::after { content: ""; position: absolute; width: 30rem; height: 30rem; right: -13rem; bottom: -10rem; border: 1px solid rgba(215,228,154,.25); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(215,228,154,.025), 0 0 0 10rem rgba(215,228,154,.02); }
.login-intro h1 { position: relative; z-index: 1; margin: 0; font-family: var(--serif); font-size: clamp(5rem, 9vw, 9rem); font-weight: 400; line-height: .78; letter-spacing: -.045em; }
.login-intro h1 em { color: var(--acid); font-weight: 400; }
.login-intro > p:last-child { position: relative; z-index: 1; max-width: 390px; margin-top: 3rem; color: rgba(238,233,220,.68); }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 9rem clamp(2rem, 7vw, 8rem) 5rem; color: var(--ink); background: var(--paper); }
.login-panel h2 { margin: 0 0 2.5rem; font-family: var(--serif); font-size: 4rem; font-weight: 400; }
.login-form { display: grid; gap: .7rem; }
.login-explainer { max-width: 34rem; margin: -1rem 0 2rem; color: rgba(21,26,22,.65); }
.google-button { display: flex; align-items: center; justify-content: center; gap: .9rem; width: 100%; padding: 1rem 1.2rem; border: 1px solid var(--line); color: var(--ink); background: #fff; text-decoration: none; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.google-button:hover { border-color: var(--ink); box-shadow: 0 4px 18px rgba(21,26,22,.1); }
.google-button svg { width: 1.3rem; }
.privacy-note { margin-top: 1.5rem; color: rgba(21,26,22,.55); font-size: .72rem; line-height: 1.6; }
.auth-message { padding: .85rem 1rem; color: #742d23; background: #ead6cf; font-size: .78rem; }
.login-form > label { margin-top: .8rem; font-size: .69rem; letter-spacing: .14em; text-transform: uppercase; }
.login-form > input { width: 100%; padding: 1rem 0; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: transparent; font-family: var(--serif); font-size: 1.45rem; }
.login-form > input:focus { border-color: var(--ink); }
.login-options { display: flex; justify-content: space-between; margin: 1rem 0; font-size: .75rem; }
.login-options label { display: flex; gap: .5rem; align-items: center; }
.login-options a, .signup-prompt a { text-underline-offset: .25rem; }
.login-button { display: flex; justify-content: space-between; padding: 1rem 1.2rem; border: 0; color: var(--paper); background: var(--ink); letter-spacing: .13em; text-transform: uppercase; cursor: pointer; }
.login-button:hover { background: #2c382f; }
.login-status { min-height: 1.5em; color: rgba(21,26,22,.55); font-size: .72rem; }
.signup-prompt { margin-top: 2rem; font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 800px) {
  .site-header { padding: 1.2rem 5vw; }
  .menu-toggle { z-index: 2; display: grid; gap: 4px; width: 2.5rem; padding: .6rem; }
  .menu-toggle span:not(.sr-only) { display: block; height: 1px; background: currentColor; }
  .site-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; background: var(--forest); color: var(--paper); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav a { font-family: var(--serif); font-size: 2.3rem; text-transform: none; letter-spacing: 0; }
  .nav-cta { border: 0; }
  .hero { padding-inline: 5vw; align-items: end; padding-bottom: 8rem; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(4.1rem, 21vw, 7rem); }
  .hero h1 em { margin-left: .2em; }
  .hero-bird { top: 12%; right: -25%; width: 110vw; opacity: .5; }
  .hero-intro { width: 90%; }
  .section { padding: 6rem 5vw; }
  .manifesto-grid, .principles, .dispatches { grid-template-columns: 1fr; gap: 4rem; }
  .section-heading { position: static; }
  .practice { padding: 1rem; }
  .practice-card { min-height: 72svh; }
  .practice-footer svg { width: 5rem; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p:last-child { text-align: left; }
  .login-header { background: transparent; }
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { min-height: 52svh; padding: 8rem 5vw 4rem; }
  .login-panel { min-height: 70svh; padding: 5rem 5vw; }
}
