:root {
  color-scheme: light;
  --paper: #f5f5ee;
  --white: #fcfcf7;
  --ink: #252e22;
  --muted: #525c4e;
  --line: #d4d9ca;
  --green: #294637;
  --tint: #e5ebdb;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--green); }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid #427150; outline-offset: 3px; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  column-gap: 1.5rem; row-gap: .65rem; min-height: 4.8rem;
  padding: .85rem clamp(1.25rem, 5vw, 4.75rem); border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .65rem; text-decoration: none;
  color: var(--ink); font: 600 1.55rem/1 var(--serif); letter-spacing: -.05em;
}
.brand-mark {
  display: inline-block; width: 1rem; height: 1rem; border: 1px solid var(--green);
  border-radius: 50%; background: conic-gradient(from 45deg, transparent 0 25%, var(--green) 25% 50%, transparent 50% 75%, var(--green) 75%);
}
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); font-size: .9rem; }
nav a, .text-button { color: var(--muted); text-decoration: none; }
nav a[aria-current], nav a:hover, .text-button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.text-button { padding: 0; background: none; border: 0; cursor: pointer; }
h1 { margin: 0; font: 400 clamp(2.55rem, 6vw, 4.35rem)/.98 var(--serif); letter-spacing: -.055em; }
h2 { margin: 0; font-size: 1rem; font-weight: 650; }
.eyebrow { margin: 0 0 1.05rem; color: var(--green); text-transform: uppercase; font-size: .72rem; font-weight: 700; letter-spacing: .15em; }
.auth-shell {
  width: min(70rem, calc(100% - 2.5rem)); margin: clamp(2.25rem, 8vw, 7rem) auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
  border: 1px solid var(--line); background: var(--white);
}
.auth-panel { padding: clamp(1.5rem, 5vw, 4.8rem); }
.auth-panel h1 { max-width: 10ch; }
.stack { display: grid; gap: 1.3rem; }
.auth-form { margin-top: 2rem; }
label, legend { font-size: .9rem; font-weight: 650; }
legend { margin-bottom: .7rem; }
label > input:not([type=radio]) {
  display: block; width: 100%; margin-top: .45rem; padding: .72rem .8rem;
  border: 1px solid #aeb8a7; border-radius: .35rem; background: var(--white); color: var(--ink);
}
.muted { display: block; margin-top: .3rem; color: var(--muted); font-size: .84rem; font-weight: 400; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .65rem 1.2rem;
  background: var(--green); color: white; border: 1px solid var(--green); border-radius: .35rem;
  cursor: pointer; font-weight: 650;
}
.button:hover { background: #1b3528; }
.switch { margin: 1.5rem 0 0; color: var(--muted); font-size: .9rem; }
.switch a { font-weight: 650; text-underline-offset: .2em; }
.form-error { margin: 0; border-left: 3px solid #8e4037; padding: .55rem .75rem; color: #782f28; background: #fbede8; font-size: .88rem; }
.studio-art {
  position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 25% 16%, #c2d3a8, transparent 61%),
    radial-gradient(ellipse at 86% 80%, #304537, transparent 66%), #8fa481;
}
.studio-art i {
  position: absolute; display: block; width: 67%; aspect-ratio: 1; border: 1px solid #f4f9e1a0;
  border-radius: 48% 52% 48% 52%; transform: rotate(var(--angle)); mix-blend-mode: screen;
}
.studio-art i:nth-child(1) { --angle: 0deg; }
.studio-art i:nth-child(2) { --angle: 37deg; }
.studio-art i:nth-child(3) { --angle: 74deg; }
.studio-art i:nth-child(4) { --angle: 111deg; }
.studio-art b { display: block; width: .65rem; height: .65rem; background: #f4f9e1; border-radius: 50%; }
.studio-shell { width: min(44rem, calc(100% - 2.5rem)); margin: clamp(2.8rem, 9vw, 7rem) auto; }
.intro { color: var(--muted); margin: .8rem 0 2.25rem; line-height: 1.45; overflow-wrap: anywhere; }
.onboarding .stack { max-width: 34rem; }
.onboarding .button { justify-self: start; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.style-options { display: grid; gap: .55rem; }
.style-option {
  display: flex; align-items: center; gap: .75rem; padding: .8rem; background: var(--white);
  border: 1px solid var(--line); border-radius: .35rem; cursor: pointer;
}
.style-option:has(:checked) { border-color: var(--green); background: var(--tint); }
input[type=radio] { accent-color: var(--green); }
.balance { padding: 1.35rem 1.5rem; background: var(--tint); border: 1px solid var(--line); border-radius: .45rem; }
.credit-count { margin: .45rem 0 0; }
.credit-count strong { margin-right: .25rem; font: 400 3.25rem/1.05 var(--serif); }
.activity { margin-top: 2.5rem; }
.activity-list { list-style: none; margin: .75rem 0 0; padding: 0; }
.activity-list li {
  display: flex; justify-content: space-between; gap: 1.2rem; align-items: center;
  padding: .85rem 0; border-block: 1px solid var(--line); font-size: .93rem;
}
.activity-list time { display: block; margin-top: .28rem; color: var(--muted); font-size: .82rem; }
.amount { color: var(--green); font-weight: 700; }
.settings { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.settings div { display: grid; grid-template-columns: minmax(6rem, 1fr) 2fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.settings dt { color: var(--muted); }
.settings dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .studio-art { display: none; }
}
