:root {
  --bg: #f5efe6;
  --surface: rgba(255, 251, 246, 0.92);
  --surface-strong: #fffdf9;
  --text: #271e18;
  --muted: #715d4f;
  --line: rgba(39, 30, 24, 0.12);
  --accent: #9b3d23;
  --accent-dark: #742b17;
  --shadow: 0 18px 50px rgba(62, 38, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(155, 61, 35, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(104, 137, 92, 0.2), transparent 24%),
    linear-gradient(180deg, #f7f1e8 0%, #efe2d3 100%);
}

body.viewer-body {
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.shell--narrow {
  width: min(860px, calc(100% - 32px));
}

.hero,
.panel,
.card,
.empty {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border-radius: 28px;
}

.hero--compact {
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--accent);
}

h1,
h2 {
  margin: 0;
  line-height: 0.95;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  max-width: 9ch;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.lead,
.card p,
.status,
label span,
input,
textarea,
.card__meta,
.card__link,
.section-head,
.empty {
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.lead {
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.02rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--accent);
  color: white;
  font: 600 0.95rem "Segoe UI", Tahoma, sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card,
.empty,
.panel {
  border-radius: 24px;
}

.card {
  padding: 22px;
}

.card__meta {
  margin-bottom: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0;
}

.card__link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
}

.panel {
  padding: 24px;
  margin-top: 20px;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.95rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.98rem;
}

textarea {
  resize: vertical;
}

.status {
  margin-top: 16px;
  min-height: 24px;
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.list {
  display: grid;
  gap: 14px;
}

.list-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.list-item__title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.list-item__meta {
  color: var(--muted);
  font: 0.92rem "Segoe UI", Tahoma, sans-serif;
}

.list-item__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button--small {
  padding: 10px 14px;
  font-size: 0.88rem;
}

.empty {
  padding: 22px;
  color: var(--muted);
}

.presentation-stage {
  width: 100vw;
  height: 100vh;
}

.presentation-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

@media (max-width: 720px) {
  .hero {
    align-items: start;
    flex-direction: column;
  }

  h1 {
    max-width: 12ch;
  }
}