:root {
  --ink: #1c1915;
  --muted: #5e584e;
  --paper: #f3efe6;
  --card: #fffdf8;
  --line: #e3dccf;
  --rust: #9a3412;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.brand { font-family: Georgia, "Iowan Old Style", serif; font-size: 24px; text-decoration: none; letter-spacing: -0.03em; }
.nav { display: flex; gap: 16px; font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
main { padding: 28px 0 64px; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: 46px; line-height: 1.05; margin: 0 0 12px; }
.lede { font-size: 18px; max-width: 40rem; color: var(--muted); }
.kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; color: var(--rust); margin: 0 0 8px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}
.card h2 { font-size: 24px; margin: 0; }
.card > a:not(.btn) { color: inherit; text-decoration: none; display: grid; gap: 8px; }
.card .btn { margin-top: auto; align-self: start; }
.price { font-family: Georgia, serif; font-size: 28px; }
.muted { color: var(--muted); }
.pill { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
button, .btn {
  background: var(--ink);
  color: #f7f4ee;
  border: 0;
  padding: 10px 14px;
  font: inherit;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
form.stack { display: grid; gap: 10px; max-width: 460px; }
label { display: grid; gap: 4px; font-size: 14px; }
input, textarea, select {
  font: inherit;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.prose { max-width: 42rem; }
.prose h2 { margin-top: 28px; }
.license {
  border-left: 4px solid var(--rust);
  background: #fff;
  padding: 12px 14px;
  margin: 16px 0;
}
.preview {
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  background: white;
}
.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 14px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.flash { background: #fff; border: 1px solid var(--line); padding: 10px 12px; }
@media (max-width: 800px) {
  h1 { font-size: 34px; }
  .grid { grid-template-columns: 1fr; }
  .top { align-items: flex-start; gap: 10px; flex-direction: column; }
}
