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

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171613;
  --paper: #f5f1e8;
  --line: rgba(23, 22, 19, 0.18);
  --muted: #6f6b62;
  --manrope: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font-family: var(--manrope); color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body, button, input, textarea, select { font: inherit; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
:focus-visible { outline: 3px solid #2878ff; outline-offset: 3px; }
[hidden] { display: none !important; }

.eyebrow { margin: 0 0 1rem; font-size: .72rem; line-height: 1.2; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.button { display: inline-flex; min-height: 3.5rem; align-items: center; justify-content: space-between; gap: 2rem; padding: .95rem 1.2rem; border: 1px solid currentColor; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.button-dark:hover { background: #34322d; }
.button-wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; border-bottom: 1px solid currentColor; font-size: .8rem; font-weight: 700; }

.site-page { opacity: .01; transition: opacity .45s ease; }
.site-page.content-ready, .site-page.content-error { opacity: 1; }

/* Authentication */
.auth-page { min-height: 100vh; min-height: 100svh; background: #ece9e1; }
.auth-shell { display: grid; min-height: 100vh; min-height: 100svh; grid-template-columns: minmax(0, 1.4fr) minmax(22rem, .6fr); }
.auth-intro { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(3rem, 8vw, 8rem); color: #fff9ed; background: #171613; }
.auth-intro::before { content: ""; position: absolute; inset: -20%; opacity: .18; background: repeating-radial-gradient(circle at 24% 70%, transparent 0 72px, #f2a61b 73px 75px, transparent 76px 105px); transform: rotate(-8deg); }
.auth-intro > * { position: relative; z-index: 1; }
.auth-kicker { display: flex; align-items: center; gap: .75rem; margin-bottom: clamp(3rem, 9vh, 8rem); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.auth-kicker span { width: 1.6rem; height: 1px; background: #f2a61b; }
.auth-intro h1 { max-width: 11ch; margin: 0; font-family: var(--condensed); font-size: clamp(4.5rem, 8.4vw, 9.5rem); font-weight: 900; letter-spacing: -.045em; line-height: .82; text-transform: uppercase; }
.auth-intro h1::first-line { color: #f2a61b; }
.auth-intro p { max-width: 38rem; margin: 2.5rem 0 0; color: #c9c4b9; font-size: clamp(.95rem, 1.25vw, 1.15rem); line-height: 1.7; }
.auth-intro .text-link { margin-top: 2rem; width: fit-content; color: #f2a61b; }
.auth-motif { display: flex; align-items: end; gap: .5rem; position: absolute; right: 7%; bottom: 8%; height: 4rem; }
.auth-motif span { display: block; width: clamp(3rem, 5vw, 7rem); height: .75rem; background: #f2a61b; border-radius: 99px; }
.auth-motif span:nth-child(2) { height: 1.6rem; background: #e94b35; transform: translateY(-.25rem); }
.auth-motif span:nth-child(3) { height: 1rem; background: #5f773b; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 5.5rem); background: #fffdf7; }
.lock-mark { position: relative; width: 3.5rem; height: 3.5rem; margin-bottom: 3.5rem; border: 2px solid var(--ink); border-radius: 50%; }
.lock-mark::before { content: ""; position: absolute; top: .7rem; left: 1.1rem; width: 1rem; height: .9rem; border: 2px solid var(--ink); border-bottom: 0; border-radius: 1rem 1rem 0 0; }
.lock-mark span { position: absolute; left: .9rem; bottom: .65rem; width: 1.4rem; height: 1.15rem; background: var(--ink); border-radius: .15rem; }
.editor-lock { background: #f2a61b; }
.auth-panel h2 { margin: 0; font-family: var(--condensed); font-size: clamp(3rem, 5vw, 5rem); font-weight: 900; letter-spacing: -.035em; line-height: .9; text-transform: uppercase; }
.auth-panel > .muted { max-width: 27rem; margin: 1rem 0 2.5rem; font-size: .92rem; line-height: 1.6; }
.auth-form label { display: block; margin-bottom: .65rem; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.password-field { display: grid; grid-template-columns: 1fr auto; margin-bottom: .5rem; border: 1px solid #c7c2b8; background: #fff; }
.password-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.password-field input { width: 100%; min-width: 0; height: 3.8rem; padding: 0 1rem; border: 0; outline: 0; background: transparent; }
.show-password { padding: 0 1rem; cursor: pointer; color: #5d5a53; background: transparent; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.form-error { min-height: 1.6rem; margin: .5rem 0 .7rem; color: #b52d1f; font-size: .82rem; font-weight: 650; }
.auth-footnote { margin: 1.5rem 0 0; color: #8a867d; font-size: .68rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.is-loading { cursor: wait; opacity: .65; }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: 42svh; justify-content: flex-end; padding: 2rem 1.5rem 3rem; }
  .auth-kicker { margin-bottom: 2rem; }
  .auth-intro h1 { font-size: clamp(4rem, 17vw, 6.5rem); }
  .auth-intro p { margin-top: 1.4rem; }
  .auth-motif { display: none; }
  .auth-panel { min-height: 58svh; padding: 3rem 1.5rem; }
  .lock-mark { margin-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

