:root {
  font:
    16px/1.7 system-ui,
    sans-serif;
  color: #19332f;
  background: #f6f8f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1120px;
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #dce5e0;
}
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}
a {
  color: #0f766e;
  text-underline-offset: 4px;
}
.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 22px;
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 25px;
}
p,
.muted {
  color: #60736d;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.prose {
  max-width: 800px;
}
.prose pre {
  overflow: auto;
  padding: 20px;
  background: #e8f3ee;
  border-radius: 10px;
}
.prose table {
  display: block;
  overflow: auto;
}
main {
  min-height: 60vh;
}
.card {
  border: 1px solid #dce5e0;
  padding: 24px;
  background: white;
  border-radius: 12px;
  margin: 18px 0;
}
.cover {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}
label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
}
input,
textarea,
select,
button {
  font: inherit;
}
input,
textarea,
select {
  padding: 10px;
  border: 1px solid #baccc1;
  border-radius: 7px;
  width: 100%;
  background: white;
}
textarea {
  font-family: monospace;
  resize: vertical;
}
button,
.button {
  display: inline-block;
  padding: 10px 16px;
  border: 0;
  border-radius: 7px;
  background: #0f766e;
  color: white;
  margin: 8px 8px 8px 0;
  cursor: pointer;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.small {
  font-size: 13px;
}
.preview {
  background: white;
  border: 1px solid #dce5e0;
  padding: 22px;
  border-radius: 10px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
}
.dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dashboard .card {
  margin: 0;
}
footer {
  border-top: 1px solid #dce5e0;
  font-size: 13px;
}
.error {
  color: #9b321f;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #b67e29;
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .grid,
  .dashboard {
    grid-template-columns: 1fr;
  }
  header {
    flex-wrap: wrap;
  }
  header,
  main,
  footer {
    padding: 20px;
  }
}

:root[data-theme="dark"] {
  color: #edf5f1;
  background: #101d1b;
  color-scheme: dark;
}
:root[data-theme="dark"] p,
:root[data-theme="dark"] .muted {
  color: #a6bbb2;
}
:root[data-theme="dark"] a {
  color: #83ddc0;
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .preview,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
  background: #172824;
  color: #edf5f1;
  border-color: #30463f;
}
:root[data-theme="dark"] .prose pre {
  background: #203b32;
}
