@import url('/assets/fonts/bricolage-grotesque/index.css');

:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --surface-2: #f3eee4;
  --text: #1f1b16;
  --muted: #6b6257;
  --border: #e4dccd;
  --accent: #e8553d;
  --accent-strong: #c9402a;
  --accent-soft: #fde4dc;
  --accent-text: #ffffff;
  --ok: #2e8b57;
  --ok-soft: #dff2e6;
  --bad: #c0392b;
  --bad-soft: #f8dedb;
  --warn: #b7791f;
  --warn-soft: #fbefd5;
  --shadow: 0 1px 2px rgb(31 27 22 / 6%), 0 4px 16px rgb(31 27 22 / 6%);
  --radius: 14px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --surface: #221e18;
    --surface-2: #2c271f;
    --text: #f3ede3;
    --muted: #a99f90;
    --border: #3a3329;
    --accent: #f06a52;
    --accent-strong: #ff8670;
    --accent-soft: #46241c;
    --ok: #5cc58a;
    --ok-soft: #1d3527;
    --bad: #f07163;
    --bad-soft: #43201c;
    --warn: #e0a84a;
    --warn-soft: #3d2f17;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--accent-strong);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}

/* The chip spins a notch, like it's being flipped between fingers. */
.brand:hover .brand-mark {
  transform: rotate(60deg);
}

.brand-name {
  font-family: 'Bricolage Grotesque Variable', var(--font);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand-name span {
  font-weight: 400;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark {
    transition: none;
  }
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.06s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  background: var(--surface-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.9rem;
  border-radius: 10px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

input:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
