:root {
  --accent: #F76B15;
  --paper: #FFF7EE;
  --ink: #2A1D12;
  --card: #ffffff;
  --line: rgb(0 0 0 / 15%);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171a;
    --ink: #e8e6e3;
    --card: #1f2226;
    --line: rgb(255 255 255 / 18%);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 24px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgb(0 0 0 / 8%);
}

h1 {
  margin: 0;
  font-size: 32px;
  color: var(--accent);
}

.tagline {
  margin: 4px 0 0;
  opacity: 0.75;
}

.cat {
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

label,
.note,
footer {
  font-size: 13px;
  opacity: 0.65;
}

.row {
  display: flex;
  gap: 8px;
}

input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: calc(var(--radius) / 2);
}

input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

button,
.actions a {
  padding: 10px 16px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  border-radius: calc(var(--radius) / 2);
}

.form button {
  color: #ffffff;
  background: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.actions a,
.actions button {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.actions [hidden] {
  display: none;
}

.note {
  margin: 0;
}
