:root {
  --ink: #1e2a2a; --muted: #586665; --line: #d5dddb; --teal: #1f5f5b; --teal-dark: #174946; --teal-soft: #e3efed;
  --coral: #c9583c; --paper: #faf7f2; --card: #ffffff; --radius: 10px; --max: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
header.site { background: var(--card); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--teal); text-decoration: none; letter-spacing: .01em; }
nav a { margin-left: 18px; text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:first-child { margin-left: 0; }
main { padding: 36px 0 56px; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); line-height: 1.15; margin: 0 0 14px; color: var(--teal-dark); letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin: 40px 0 12px; color: var(--teal-dark); }
h3 { font-size: 1.05rem; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding: 0; margin: 20px 0 0; list-style: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card img { border: 1px solid var(--line); border-radius: 6px; background: #fff; aspect-ratio: 595 / 842; object-fit: cover; object-position: top; width: 100%; }
.card h3 { margin: 6px 0 0; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card a.more { margin-top: auto; font-weight: 600; }
.tool { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; margin-top: 24px; }
@media (max-width: 820px) { .tool { grid-template-columns: 1fr; } }
form.gen { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
form.gen label { display: block; font-weight: 600; font-size: .95rem; margin: 14px 0 6px; }
form.gen label:first-child { margin-top: 0; }
input, select, textarea { width: 100%; font: inherit; color: inherit; padding: 10px 12px; border: 1px solid #aebbb9; border-radius: 8px; background: #fff; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #7fb8b2; outline-offset: 2px; }
textarea { min-height: 150px; resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
button { font: inherit; font-weight: 700; padding: 12px 18px; border-radius: 8px; border: 2px solid var(--teal); cursor: pointer; }
button.primary { background: var(--teal); color: #fff; }
button.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
button.ghost { background: #fff; color: var(--teal); }
.status { margin: 14px 0 0; font-size: .95rem; min-height: 1.4em; }
.status.error { color: #a12b12; font-weight: 600; }
.sample { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.sample figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.thanks { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--teal-soft); border: 1px solid #b9d6d2; }
.thanks[hidden] { display: none; }
.product { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--coral); border-radius: var(--radius); padding: 18px 20px; margin-top: 14px; }
.product p { margin: 6px 0 10px; color: var(--muted); }
.btn { display: inline-block; background: var(--coral); color: #fff; font-weight: 700; text-decoration: none; padding: 10px 16px; border-radius: 8px; }
.btn:hover { color: #fff; filter: brightness(.93); }
ol.steps, ul.notes { padding-left: 22px; max-width: 68ch; }
ol.steps li, ul.notes li { margin-bottom: 8px; }
.faq h3 { margin-top: 18px; }
.faq p { max-width: 68ch; color: var(--muted); }
.note { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 36px; padding-top: 14px; max-width: 72ch; }
.prose { max-width: 70ch; }
footer.site { border-top: 1px solid var(--line); background: var(--card); padding: 26px 0 34px; font-size: .9rem; color: var(--muted); }
footer.site a { margin-right: 16px; }
footer.site p { margin: 8px 0 0; }
.sr { position: absolute; left: -9999px; }
