:root {
  color-scheme: light;
  --bg: #f5efe3;
  --panel: rgba(255, 252, 246, 0.88);
  --panel-edge: rgba(92, 69, 43, 0.18);
  --ink: #261b14;
  --muted: #6b584a;
  --accent: #a4461f;
  --accent-deep: #7d3212;
  --accent-soft: #e4b08f;
  --shadow: 0 22px 60px rgba(64, 34, 13, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(216, 174, 140, 0.45), transparent 36%),
    radial-gradient(circle at bottom right, rgba(120, 70, 45, 0.16), transparent 28%),
    linear-gradient(180deg, #f9f3e9 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.shell {
  width: min(900px, calc(100vw - 32px));
  margin: 32px auto;
}

.panel {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.eyebrow,
h1,
.intro,
.status,
.details,
.field span,
.button,
textarea,
select,
input {
  margin: 0;
}

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

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin-top: 8px;
}

.intro {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-top: 14px;
}

.toolbar {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

textarea,
select,
input,
.button,
audio {
  width: 100%;
}

textarea,
select,
input {
  border: 1px solid rgba(91, 63, 40, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
}

textarea:focus,
select:focus,
input:focus {
  border-color: rgba(164, 70, 31, 0.55);
  box-shadow: 0 0 0 4px rgba(164, 70, 31, 0.12);
  outline: none;
}

.field-large {
  margin-top: 18px;
}

textarea {
  min-height: 340px;
  line-height: 1.55;
  resize: vertical;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 20px;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #c55b28 100%);
  color: #fff8f1;
}

.button-secondary {
  background: rgba(110, 84, 63, 0.1);
  color: var(--ink);
}

audio {
  margin-top: 18px;
  border-radius: 999px;
}

.status-block {
  margin-top: 18px;
}

.status {
  font-size: 1rem;
  font-weight: 700;
}

.details {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 18px, 900px);
    margin: 9px auto;
  }

  .panel {
    border-radius: 20px;
    padding: 18px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  textarea {
    min-height: 280px;
  }
}

