@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/LibreBaskerville-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fffdf9;
  --surface: #f6e4d3;
  --text: #263033;
  --muted: #5a6366;
  --primary: #1ea5b5;
  --on-primary: #ffffff;
  --border: #d4d4d1;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

main {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1, h2, .name {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
}

h1 { font-size: 1.75rem; margin: 0 0 1.25rem; }
h2 { font-size: 1.35rem; margin: 1.5rem 0 0.5rem; }

.id {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.muted { color: var(--muted); }
.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1rem;
  margin-top: 1rem;
}
label { display: block; margin: 0.85rem 0 0.35rem; font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
}
textarea { min-height: 6rem; resize: vertical; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  cursor: pointer;
}
button.secondary, a.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
}
button:disabled { opacity: 0.6; cursor: default; }
.error { color: var(--danger); }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}
.row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
ul { padding-left: 1.1rem; }
a { color: var(--primary); }
