:root {
    --paper: #fdf9f4;
    --paper-deep: #f2ece4;
    --paper-soft: #f7f3ee;
    --ink: #1c1c19;
    --ink-soft: #444748;
    --red: #a73821;
    --red-dark: #7d1d0c;
    --white: #fffdf9;
    --line: rgba(28, 28, 25, 0.14);
    --display: "Playfair Display", Georgia, serif;
    --body: "Source Serif 4", Georgia, serif;
    --label: "IBM Plex Sans", Arial, sans-serif;
    --shell: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body,
button {
    font-synthesis: none;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    color: white;
    background: var(--ink);
    font-family: var(--label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: translateY(-90px);
}

.skip-link:focus {
    transform: translateY(0);
}

.shell,
.project-hero,
.project-section,
.footer-shell {
    width: min(calc(100% - 96px), var(--shell));
    margin-inline: auto;
}

.eyebrow,
.section-number,
.project-meta,
.tag-list,
.hero-note,
.breadcrumb,
.flow-step,
.prompt-label,
.copy-button,
.button,
.project-link,
.site-footer,
.fact-label {
    font-family: var(--label);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--red);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--display);
}

h1 {
    margin-bottom: 20px;
    font-size: clamp(54px, 8vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(31px, 4vw, 45px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 23px;
    line-height: 1.25;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 34px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.breadcrumb a {
    text-decoration-color: rgba(167, 56, 33, 0.45);
    text-underline-offset: 0.25em;
}

.index-hero {
    padding-block: 72px 46px;
    border-bottom: 1px solid var(--line);
}

.index-hero h1 {
    max-width: 740px;
}

.index-intro {
    max-width: 680px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 20px;
}

.index-note {
    max-width: 620px;
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 16px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding-block: 52px 96px;
}

.resource-card {
    position: relative;
    display: flex;
    min-height: 360px;
    padding: 34px;
    border: 1px solid var(--line);
    flex-direction: column;
    background:
        linear-gradient(rgba(28, 28, 25, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 28, 25, 0.035) 1px, transparent 1px),
        var(--white);
    background-size: 40px 40px;
    transition: border-color 180ms ease, transform 180ms ease;
}

.resource-card:only-child {
    grid-column: 1 / -1;
    min-height: 320px;
}

.resource-card:only-child .resource-tagline {
    max-width: 720px;
    font-size: 19px;
}

.resource-card.featured::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    left: -1px;
    height: 3px;
    background: var(--red);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: space-between;
    margin-bottom: 52px;
    color: var(--red);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.resource-card h2 {
    margin-bottom: 12px;
    font-size: 38px;
}

.resource-tagline {
    max-width: 570px;
    margin-bottom: 28px;
    color: var(--ink-soft);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 24px;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 4px 8px;
    border: 1px solid var(--line);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}

.project-link {
    min-height: 44px;
    color: var(--red);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    line-height: 44px;
    text-decoration: none;
    text-transform: uppercase;
}

.project-link.secondary {
    color: var(--ink-soft);
}

.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(40px, 7vw, 88px);
    align-items: end;
    padding-block: 48px 64px;
    border-bottom: 1px solid var(--line);
}

.hero-lede {
    max-width: 730px;
    margin-bottom: 30px;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--red);
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--red);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
    border-color: var(--red-dark);
    background: var(--red-dark);
}

.button.secondary {
    color: var(--ink);
    background: transparent;
    border-color: var(--line);
}

.button.secondary:hover {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.hero-note {
    margin: 0;
    color: var(--ink-soft);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.hero-example-link {
    display: inline-flex;
    min-height: 44px;
    margin-top: 10px;
    align-items: center;
    gap: 7px;
    color: var(--red);
    font-family: var(--label);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration-color: rgba(167, 56, 33, 0.45);
    text-underline-offset: 0.25em;
    text-transform: uppercase;
}

.hero-register {
    padding: 28px;
    border-block: 1px solid var(--ink);
}

.register-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding-block: 13px;
    border-bottom: 1px solid var(--line);
}

.register-row:last-child {
    border-bottom: 0;
}

.fact-label {
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.register-row strong {
    font-size: 15px;
}

.project-section {
    display: grid;
    grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1.58fr);
    gap: clamp(32px, 7vw, 92px);
    padding-block: 72px;
    border-bottom: 1px solid var(--line);
}

.section-number {
    display: block;
    margin-bottom: 18px;
    color: var(--red);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.section-copy {
    max-width: 760px;
}

.section-copy > :last-child {
    margin-bottom: 0;
}

.honest-note {
    margin: 34px 0 0;
    padding: 26px 28px;
    border-left: 3px solid var(--red);
    background: var(--paper-deep);
}

.steps {
    margin: 30px 0;
    padding-left: 24px;
}

.steps li {
    margin-bottom: 16px;
    padding-left: 8px;
}

.prompt-box {
    margin-block: 28px;
    border: 1px solid var(--ink);
    background: var(--white);
}

.prompt-toolbar {
    display: flex;
    min-height: 48px;
    padding-inline: 18px 10px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
}

.prompt-label,
.copy-button {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.copy-button {
    min-width: 88px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    color: var(--red);
    background: transparent;
    cursor: pointer;
}

.project-prompt {
    margin: 0;
    padding: 24px;
    font-family: var(--label);
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.cost-callout {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--red-dark);
    font-family: var(--display);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 700;
}

.flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 34px 0 24px;
    padding: 0;
    list-style: none;
}

.flow-step {
    position: relative;
    min-height: 112px;
    padding: 18px 14px;
    border-block: 1px solid var(--ink);
    border-left: 1px solid var(--line);
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 1.5;
    text-transform: uppercase;
}

.flow-step:last-child {
    border-right: 1px solid var(--line);
}

.flow-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    z-index: 2;
    right: -9px;
    padding: 2px;
    color: var(--red);
    background: var(--paper);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.design-gallery {
    --demo-bg: #f5f1e8;
    --demo-ink: #2a2622;
    --demo-muted: #756d62;
    --demo-accent: #b4532a;
    --demo-accent-2: #d98b3f;
    --demo-card: #fffdf8;
    --demo-line: #ddd3c2;
    --demo-heading: Georgia, serif;
    --demo-body: Georgia, serif;
    margin-top: 30px;
    border: 1px solid var(--ink);
    background: var(--white);
}

.design-controls {
    padding: 16px 18px;
    color: var(--white);
    background: var(--ink);
}

.design-controls fieldset {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.design-controls fieldset + fieldset {
    margin-top: 12px;
}

.design-controls legend {
    float: left;
    padding-top: 9px;
    color: rgba(255, 253, 249, 0.58);
    font-family: var(--label);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.design-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.design-options button {
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 253, 249, 0.22);
    color: rgba(255, 253, 249, 0.78);
    background: transparent;
    cursor: pointer;
    font-family: var(--label);
    font-size: 10px;
    font-weight: 500;
}

.design-options button[aria-pressed="true"] {
    border-color: var(--white);
    color: var(--ink);
    background: var(--white);
}

.palette-options button {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.palette-dot {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.palette-dot.ink { background: linear-gradient(135deg, #fff 50%, #c0271e 50%); }
.palette-dot.warm { background: linear-gradient(135deg, #f5f1e8 50%, #b4532a 50%); }
.palette-dot.cool { background: linear-gradient(135deg, #f4f6f9 50%, #2563b8 50%); }
.palette-dot.forest { background: linear-gradient(135deg, #f1f4ee 50%, #2f6b3f 50%); }
.palette-dot.signal { background: linear-gradient(135deg, #faf9fb 50%, #e5004c 50%); }

.design-canvas {
    min-height: 520px;
    padding: clamp(28px, 5vw, 54px);
    color: var(--demo-ink);
    background: var(--demo-bg);
    font-family: var(--demo-body);
    transition: color 180ms ease, background-color 180ms ease;
}

.demo-masthead {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--demo-line);
}

.demo-masthead strong,
.demo-cover h3,
.demo-stories strong {
    font-family: var(--demo-heading);
}

.demo-masthead time,
.demo-cover > span,
.demo-stories article > span {
    color: var(--demo-muted);
    font-size: 10px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.demo-cover {
    padding-block: 34px;
}

.demo-cover > span,
.demo-stories article > span {
    color: var(--demo-accent);
    font-weight: 700;
}

.demo-cover h3 {
    max-width: 610px;
    margin: 9px 0 10px;
    font-size: clamp(29px, 4vw, 43px);
    line-height: 1.08;
}

.demo-cover p,
.demo-stories p {
    margin: 0;
    color: var(--demo-muted);
}

.demo-stories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.demo-stories article {
    padding: 20px;
    border: 1px solid var(--demo-line);
    background: var(--demo-card);
}

.demo-stories strong {
    display: block;
    margin-block: 8px;
    font-size: 19px;
    line-height: 1.25;
}

.demo-stories p {
    font-size: 14px;
    line-height: 1.5;
}

.design-selection {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    font-family: var(--label);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.design-selection small {
    color: var(--ink-soft);
    font: inherit;
    font-weight: 400;
}

.design-gallery[data-palette="ink"] { --demo-bg: #fff; --demo-ink: #141414; --demo-muted: #6b6b6b; --demo-accent: #c0271e; --demo-accent-2: #f0663e; --demo-card: #fafafa; --demo-line: #e2e2e2; }
.design-gallery[data-palette="cool"] { --demo-bg: #f4f6f9; --demo-ink: #1a2230; --demo-muted: #5c6b7f; --demo-accent: #2563b8; --demo-accent-2: #38bdf8; --demo-card: #fbfcfd; --demo-line: #d8dfe8; }
.design-gallery[data-palette="forest"] { --demo-bg: #f1f4ee; --demo-ink: #1f2a22; --demo-muted: #5e6d5e; --demo-accent: #2f6b3f; --demo-accent-2: #7cc06a; --demo-card: #fbfcf8; --demo-line: #d9e0d4; }
.design-gallery[data-palette="signal"] { --demo-bg: #faf9fb; --demo-ink: #101014; --demo-muted: #6a6a75; --demo-accent: #e5004c; --demo-accent-2: #ff6a2b; --demo-card: #fff; --demo-line: #e4e4e9; }

.design-gallery[data-style="editorial"] { --demo-heading: "Iowan Old Style", Georgia, serif; --demo-body: "Iowan Old Style", Georgia, serif; }
.design-gallery[data-style="modern"] { --demo-heading: Arial, sans-serif; --demo-body: Arial, sans-serif; }
.design-gallery[data-style="modern"] .demo-cover h3 { font-size: clamp(35px, 5vw, 54px); font-weight: 800; letter-spacing: -0.04em; }
.design-gallery[data-style="modern"] .demo-stories article { padding-inline: 0; border-width: 2px 0 0; background: transparent; }
.design-gallery[data-style="technical"] { --demo-heading: ui-monospace, Menlo, monospace; --demo-body: ui-monospace, Menlo, monospace; }
.design-gallery[data-style="technical"] .demo-cover h3 { font-size: clamp(25px, 3.5vw, 35px); }
.design-gallery[data-style="technical"] .demo-cover > span::before { content: "// "; }
.design-gallery[data-style="technical"] .demo-stories article { border-left: 3px solid var(--demo-accent); }
.design-gallery[data-style="magazine"] { --demo-heading: Didot, "Bodoni MT", Georgia, serif; --demo-body: Georgia, serif; }
.design-gallery[data-style="magazine"] .demo-cover h3 { font-size: clamp(38px, 5vw, 58px); font-weight: 500; letter-spacing: -0.035em; }
.design-gallery[data-style="magazine"] .demo-cover p { font-style: italic; }
.design-gallery[data-style="magazine"] .demo-stories article { padding-inline: 0; border-width: 1px 0 0; background: transparent; }
.design-gallery[data-style="minimal"] { --demo-heading: Arial, sans-serif; --demo-body: Arial, sans-serif; }
.design-gallery[data-style="minimal"] .design-canvas { max-width: 610px; margin-inline: auto; }
.design-gallery[data-style="minimal"] .demo-cover h3 { font-size: clamp(27px, 3.5vw, 37px); font-weight: 600; }
.design-gallery[data-style="minimal"] .demo-stories { grid-template-columns: 1fr; }
.design-gallery[data-style="minimal"] .demo-stories article { padding-inline: 0; border-width: 0 0 1px; background: transparent; }
.design-gallery[data-style="newsprint"] { --demo-heading: Georgia, serif; --demo-body: Georgia, serif; }
.design-gallery[data-style="newsprint"] .demo-masthead strong { font-size: 22px; text-transform: uppercase; }
.design-gallery[data-style="newsprint"] .demo-cover { border-bottom: 3px double var(--demo-ink); text-align: center; }
.design-gallery[data-style="newsprint"] .demo-cover h3 { margin-inline: auto; }
.design-gallery[data-style="newsprint"] .demo-stories { gap: 0; }
.design-gallery[data-style="newsprint"] .demo-stories article { border: 0; background: transparent; }
.design-gallery[data-style="newsprint"] .demo-stories article + article { border-left: 1px solid var(--demo-line); }

.audience-card {
    padding: 26px;
    border-top: 3px solid var(--red);
    background: var(--white);
}

.audience-card.no {
    border-color: var(--ink-soft);
}

.audience-card p {
    margin: 0;
}

.example-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.live-example {
    display: flex;
    min-width: 0;
    min-height: 310px;
    border: 1px solid var(--ink);
    flex-direction: column;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
    transition: border-color 180ms ease, transform 180ms ease;
}

.live-example:only-child {
    grid-column: 1 / -1;
}

.live-example-band {
    display: flex;
    min-height: 48px;
    padding: 12px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--white);
    background: var(--red);
    font-family: var(--label);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.live-example-band > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d8f0d3;
    box-shadow: 0 0 0 4px rgba(216, 240, 211, 0.16);
}

.live-example-body {
    display: flex;
    min-height: 262px;
    padding: clamp(28px, 5vw, 44px);
    flex: 1;
    flex-direction: column;
    background:
        linear-gradient(rgba(255, 253, 249, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 253, 249, 0.055) 1px, transparent 1px),
        var(--ink);
    background-size: 36px 36px;
}

.live-example-owner {
    margin: 0 0 22px;
    color: rgba(255, 253, 249, 0.62);
    font-family: var(--label);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.live-example-owner a,
.live-example-actions a {
    text-decoration-color: rgba(255, 253, 249, 0.42);
    text-underline-offset: 0.25em;
}

.live-example h3 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.live-example h3 a {
    text-decoration: none;
}

.live-example-description {
    margin: 12px 0 0;
    color: rgba(255, 253, 249, 0.72);
    font-family: var(--label);
    font-size: 13px;
}

.live-example-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    margin-top: auto;
    padding-top: 34px;
}

.live-example-actions a {
    color: var(--white);
    font-family: var(--label);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.example-note {
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-family: var(--label);
    font-size: 11px;
    line-height: 1.55;
}

.inline-link {
    color: var(--red);
    text-decoration-color: rgba(167, 56, 33, 0.5);
    text-underline-offset: 0.18em;
}

.faq-list {
    margin: 0;
    border-top: 1px solid var(--line);
}

.faq-list div {
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
}

.faq-list dt {
    margin-bottom: 8px;
    font-weight: 700;
}

.faq-list dd {
    margin: 0;
    color: var(--ink-soft);
}

.feedback-band {
    color: var(--white);
    background: var(--ink);
}

.feedback-band .project-section {
    border: 0;
}

.feedback-band .section-number,
.feedback-band .eyebrow {
    color: rgba(255, 253, 249, 0.65);
}

.feedback-band .button.secondary {
    color: var(--white);
    border-color: rgba(255, 253, 249, 0.35);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--paper-soft);
}

.footer-shell {
    padding-block: 54px 32px;
}

.footer-name {
    display: inline-block;
    margin-bottom: 30px;
    font-family: var(--display);
    font-size: 27px;
    font-style: italic;
    font-weight: 700;
    text-decoration: none;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 30px;
}

.site-footer nav a {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid rgba(28, 28, 25, 0.08);
}

.footer-bottom p {
    margin: 0;
    color: rgba(68, 71, 72, 0.55);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
    .resource-card:hover {
        border-color: rgba(167, 56, 33, 0.55);
        transform: translateY(-3px);
    }

    .live-example:hover {
        border-color: var(--red);
        transform: translateY(-3px);
    }

}

@media (max-width: 850px) {
    .shell,
    .project-hero,
    .project-section,
    .footer-shell {
        width: min(calc(100% - 48px), var(--shell));
    }

    .resource-grid,
    .example-gallery,
    .project-hero,
    .project-section {
        grid-template-columns: 1fr;
    }

    .resource-grid {
        padding-block: 40px 72px;
    }

    .project-hero {
        gap: 36px;
        padding-block: 32px 48px;
    }

    .project-section {
        gap: 14px;
        padding-block: 52px;
    }

    .flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .flow-step:nth-child(3) {
        border-right: 1px solid var(--line);
    }

    .flow-step:nth-child(n + 4) {
        border-top: 0;
    }

    .flow-step:nth-child(3)::after {
        display: none;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .index-hero {
        padding-block: 48px 36px;
    }

    .resource-card {
        min-height: 330px;
        padding: 26px;
    }

    .live-example-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-meta {
        margin-bottom: 36px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-register {
        padding: 22px 0;
    }

    .flow {
        grid-template-columns: 1fr;
    }

    .flow-step,
    .flow-step:nth-child(n + 4) {
        min-height: 74px;
        border-top: 0;
        border-right: 1px solid var(--line);
    }

    .flow-step:first-child {
        border-top: 1px solid var(--ink);
    }

    .flow-step:not(:last-child)::after,
    .flow-step:nth-child(3)::after {
        right: auto;
        bottom: -13px;
        left: 18px;
        display: block;
        content: "↓";
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .design-controls fieldset {
        grid-template-columns: 1fr;
    }

    .design-controls legend {
        float: none;
        padding: 0;
    }

    .design-canvas {
        min-height: 0;
        padding: 24px 18px;
    }

    .demo-stories,
    .design-gallery[data-style="newsprint"] .demo-stories {
        grid-template-columns: 1fr;
    }

    .design-gallery[data-style="newsprint"] .demo-stories article + article {
        border-top: 1px solid var(--demo-line);
        border-left: 0;
    }

    .design-selection {
        align-items: flex-start;
        flex-direction: column;
    }

    .prompt-toolbar {
        padding-left: 14px;
    }

    .project-prompt {
        padding: 20px;
        font-size: 13px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .resource-card:hover {
        transform: none;
    }

}
