/* Same palette and type as ahazarika.com. Fonts are self-hosted copies of the site's (SIL Open Font License). */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-opsz-wdth-wght.woff") format("woff"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-wght.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #F3F4F1; --white: #FFFFFF; --ink: #121417; --muted: #555B57; --line: #DCDFD8;
  --pine: #0E3B33; --mint: #CDE7DC; --accent: #F25C2A; --accent-ink: #1A0A03;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); }
a { color: var(--pine); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(720px, 100% - 32px); margin: 0 auto; padding: clamp(28px, 6vw, 64px) 0 64px; }
.brand { font: 700 15px var(--display); letter-spacing: .02em; text-decoration: none; color: var(--pine); }
h1, h2 { font-family: var(--display); line-height: 1.1; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); margin-top: 18px; }
h2 { font-size: 1.5rem; }
.step { font-size: 1.15rem; margin-top: 28px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.muted, .small { color: var(--muted); }
.small { font-size: 14px; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; overscroll-behavior-x: contain; scrollbar-width: thin; }
.day { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.day[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--white); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 8px; }
.time { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: 600 16px var(--body); cursor: pointer; transition: transform 160ms var(--ease-out), border-color 160ms; }
.time:hover { border-color: var(--pine); }
.time:active, .day:active, .btn:active { transform: scale(.97); }

form { display: grid; gap: 14px; }
.chosen { font: 700 1.2rem var(--display); background: var(--mint); color: var(--pine); border-radius: 12px; padding: 12px 16px; margin: 0; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label i { font-weight: 400; color: var(--muted); font-style: normal; }
input, textarea { font: inherit; font-size: 16px; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); width: 100%; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error { color: #B42318; font-weight: 600; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: 700 16px var(--body); text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), background 160ms; }
.btn:hover { background: #FF6D3B; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.link { background: none; border: 0; padding: 6px; color: var(--pine); font: 600 15px var(--body); text-decoration: underline; cursor: pointer; }
#done { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
