:root {
  color-scheme: light;
  --ink: #121212;
  --muted: #5f625d;
  --line: #dedbd2;
  --panel: #ffffff;
  --band: #f5f1e8;
  --accent: #0f4b44;
  --accent-dark: #092f2b;
  --gold: #c8a84d;
  --rust: #b45b2c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfaf7;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 30px clamp(18px, 4vw, 56px);
  background: #ffffff;
  border-bottom: 1px solid #cbc6b8;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h3 {
  font-size: 1.08rem;
}

.print-button,
button {
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.print-button:hover,
button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px) 56px;
}

.intro-band {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 12px 28px rgba(18, 18, 18, 0.04);
}

.intro-band p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.content-stack {
  display: grid;
  gap: 14px;
}

.section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(18, 18, 18, 0.035);
}

.section::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--gold), var(--rust));
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.section-body {
  margin-top: 14px;
}

.section-body p {
  margin: 0 0 12px;
}

.section-body ul {
  margin: 8px 0 0 22px;
  padding: 0;
}

.theme-toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.theme-toggle:hover {
  background: transparent;
}

.chevron {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #c8c1ae;
  border-radius: 6px;
  color: var(--accent);
  flex: 0 0 auto;
}

.theme-summary {
  margin: 14px 0 12px;
  max-width: 760px;
  color: #333632;
  font-size: 1.02rem;
}

.reveal-button {
  display: inline-flex;
  width: auto;
  align-items: center;
  margin-bottom: 6px;
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.reveal-button:hover {
  color: #ffffff;
}

.comment-area {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.comment-form {
  display: none;
  margin-top: 12px;
}

.comment-form.is-open {
  display: block;
}

textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  background: #ffffff;
}

textarea:focus {
  outline: 2px solid rgba(200, 168, 77, 0.45);
  border-color: var(--gold);
}

.save-status {
  min-height: 22px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-grid {
  display: grid;
  gap: 22px;
}

.table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--band);
}

@media (max-width: 640px) {
  .topbar,
  .section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .print-button,
  button {
    width: 100%;
    text-align: center;
  }
}
