:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --line: #e5e5e5;
  --accent: #1a1a1a;
  --error: #b00020;
  --success: #1b6e2c;
  --radius: 6px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}
a:hover { opacity: 0.65; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.content {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.center {
  text-align: center;
}

h1, h2 {
  font-weight: 600;
  margin-top: 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }

p { margin: 0.5rem 0; }

.muted { color: var(--muted); font-size: 0.95rem; }
.error { color: var(--error); }
.success { color: var(--success); }

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

label.radio {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--fg);
  transition: border-color var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--fg);
}

textarea { min-height: 90px; }

button, .button {
  display: inline-block;
  font: inherit;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background var(--transition), color var(--transition);
}

button:hover, .button:hover {
  background: #fff;
  color: var(--fg);
}

button.danger {
  background: #fff;
  color: var(--error);
  border-color: var(--error);
}
button.danger:hover {
  background: var(--error);
  color: #fff;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
legend { padding: 0 0.5rem; font-weight: 600; }

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

table.data {
  width: 100%;
  border-collapse: collapse;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
table.data th { font-weight: 600; }

code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  background: #f5f5f5;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

.info-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3rem;
}

@media (max-width: 600px) {
  .content { padding: 0 1rem; margin: 1rem auto; }
  .card { padding: 1.5rem; }
  .site-header { padding: 1rem; }
}
