:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --ink: #1c1612;
  --muted: #4a4038;
  --line: #e4d8c8;
  --link: #7a1f12;
  --form: #1c1612;
  --form-text: #f6f1e7;
  --form-line: #5c5146;
  --card: #fffaf3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 "Segoe UI", "Helvetica Neue", sans-serif;
}

main { flex: 1; }

img, video { max-width: 100%; height: auto; }

a { color: var(--link); }

a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
}

.skip:focus { top: 0.5rem; z-index: 3; }

.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }

.site-header, .site-footer { border-color: var(--line); border-style: solid; }

.site-header { border-width: 0 0 1px; }

.site-footer { border-width: 1px 0 0; margin-top: 3rem; padding: 1.5rem 0 2.5rem; }

.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  color: inherit;
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav, .footer-inner nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; }

.nav a, .footer-inner a { color: inherit; }

.footer-inner p { margin: 0; color: var(--muted); max-width: 36rem; }

main { padding-bottom: 1rem; }

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin: 0 0 0.6rem; }

h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); margin: 2.2rem 0 0.6rem; }

h3 { font-size: 1.25rem; margin: 1.4rem 0 0.3rem; }

.lede, .crumbs, .form-note, .fine { color: var(--muted); }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 1.5rem 0 0.5rem;
}

.prose { max-width: 68ch; }

.prose p, .prose li { max-width: 68ch; }

.generator, .panel {
  background: var(--form);
  color: var(--form-text);
  border-radius: 18px;
  padding: 1.1rem;
}

.generator a { color: #f0c36a; }

.generator .form-note,
.generator .form-kicker { color: #f3e6d4; }

.form-kicker, .eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.generator label, .pay-box label { display: grid; gap: 0.3rem; margin: 0.8rem 0; }

.generator input, .generator textarea, .generator select, .pay-box input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: white;
  border: 1px solid var(--form-line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

button, .button {
  display: inline-block;
  background: var(--form-text);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: wait; }

.form-status, .pay-note { min-height: 1.5rem; }

.result, .work { margin-top: 1rem; }

.storyboard { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.section { padding-top: 0.4rem; }

.cards, .examples { display: grid; gap: 0.9rem; }

.card, .tool-card, .work, details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.work { color: var(--ink); }

.tool-card h2 { margin-top: 0; }

details summary { cursor: pointer; font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }

table { width: 100%; border-collapse: collapse; }

th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }

.plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }

.plan .price { font-family: Georgia, serif; font-size: 2rem; margin: 0.2rem 0; }

.checkout { min-height: 2.5rem; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

@media (max-width: 800px) {
  .hero, .plans, .header-inner, .footer-inner { grid-template-columns: 1fr; display: grid; }
  .split { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}
