:root {
  --bg: #f4efe6;
  --panel: #fffaf1;
  --ink: #1f1f1a;
  --muted: #665f52;
  --line: #d9cfbf;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --danger: #9f1239;
  --danger-soft: #fff1f2;
  --success: #166534;
  --success-soft: #ecfdf3;
  --warning-soft: #fff7ed;
  --shadow: 0 24px 60px rgba(60, 45, 25, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f2e9 0%, #efe5d3 100%);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

main.shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.card {
  background: rgba(255, 250, 241, 0.95);
  border: 1px solid rgba(217, 207, 191, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.hero {
  margin-top: 5vh;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 0.9rem;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

h2 {
  font-size: 1.5rem;
}

.lede,
.hint,
label,
input,
button,
a,
code {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.lede,
.hint {
  color: var(--muted);
  line-height: 1.6;
}

.actions,
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.actions {
  margin-top: 1.5rem;
}

.button,
button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button.primary,
button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.28);
}

.button.secondary,
button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.layout {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
}

label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

input[type="text"],
input[type="file"] {
  width: 100%;
  border: 1px solid #cbbda6;
  background: #fffdf8;
  border-radius: 14px;
  font-size: 1rem;
  padding: 0.9rem 1rem;
}

input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.field {
  margin-bottom: 1rem;
}

.notice {
  border-radius: 16px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.notice.error {
  border-color: #fda4af;
  background: var(--danger-soft);
  color: var(--danger);
}

.notice.success {
  border-color: #86efac;
  background: var(--success-soft);
  color: var(--success);
}

.notice.warning {
  border-color: #fdba74;
  background: var(--warning-soft);
}

.hidden {
  display: none !important;
}

.mono {
  font-family: "SFMono-Regular", "Menlo", monospace;
}

.meta-list {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.45rem;
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  text-align: right;
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.25rem;
  }
}
