:root {
  color-scheme: light;
  --paper: #fffdf8;
  --ivory: #f7f3eb;
  --sand: #ebe3d6;
  --taupe: #aa9070;
  --taupe-dark: #80664a;
  --olive: #626353;
  --ink: #24231f;
  --muted: #69665f;
  --line: #ded6ca;
  --danger: #963f35;
  --shadow-sm: 0 10px 30px rgba(55, 47, 37, .08);
  --shadow-lg: 0 28px 70px rgba(55, 47, 37, .14);
  --radius: 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--paper); line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.05; }
h1 { margin-bottom: 1.35rem; font-size: clamp(2.8rem, 6vw, 5.4rem); letter-spacing: -.035em; }
h2 { margin-bottom: 1rem; font-size: clamp(2.25rem, 4.5vw, 3.8rem); letter-spacing: -.025em; }
h3 { margin-bottom: .65rem; font-size: 1.65rem; }
button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #8b6848; outline-offset: 3px; }
.shell { width: min(100% - 3rem, 1240px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .75rem 1rem; color: #fff; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow { margin-bottom: .8rem; color: var(--taupe-dark); font-size: .7rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.text-link { color: var(--taupe-dark); font-size: .78rem; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3rem; }
.text-link--arrow { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.text-link--arrow span { font-size: 1.25rem; font-weight: 400; }

.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1.25rem; border: 1px solid var(--taupe); border-radius: 5px; color: #fff; background: var(--taupe); cursor: pointer; font-size: .76rem; font-weight: 700; letter-spacing: .015em; text-align: center; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { border-color: var(--taupe-dark); background: var(--taupe-dark); transform: translateY(-1px); }
.button--small { min-height: 2.55rem; padding: .55rem .95rem; }
.button--quiet, .button--secondary { color: var(--ink); border-color: var(--line); background: transparent; }
.button--quiet:hover, .button--secondary:hover { color: var(--ink); border-color: var(--taupe); background: var(--ivory); }
.button--card { width: 100%; min-height: 2.65rem; margin-top: .35rem; }
.button--danger { border-color: var(--danger); background: var(--danger); }
.button--disabled { opacity: .65; cursor: not-allowed; transform: none; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .96); }
.site-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.site-nav { display: flex; align-items: center; gap: clamp(.8rem, 1.7vw, 1.55rem); color: #4e4b45; font-size: .72rem; }
.site-nav > a:not(.button) { padding-block: 1.65rem; border-bottom: 1px solid transparent; }
.site-nav > a:not(.button):hover { color: var(--taupe-dark); border-color: var(--taupe); }
.menu-button { display: none; border: 0; background: transparent; }

@media (min-width: 781px) {
  .site-header .site-nav { font-size: .77rem; font-weight: 500; }
}

.home-page { padding-bottom: 0; }
.hero { min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: stretch; margin-top: 1.5rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.hero__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 5.5rem); }
.hero h1 { max-width: 600px; font-size: clamp(3.2rem, 4.6vw, 4.2rem); }
.hero__description { max-width: 520px; margin-bottom: 1.75rem; color: var(--muted); font-size: .93rem; line-height: 1.75; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero__assurances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 3rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero__assurances strong, .hero__assurances span { display: block; }
.hero__assurances strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 700; }
.hero__assurances span { color: var(--muted); font-size: .62rem; line-height: 1.45; }
.hero__visual { position: relative; min-height: 500px; margin: 0; overflow: hidden; }
.hero__visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 59% center; }
.hero__visual figcaption { position: absolute; right: 1.25rem; bottom: 1.25rem; padding: .55rem .7rem; color: #fff; background: rgba(36, 35, 31, .76); font-size: .63rem; }

.home-section { padding: clamp(5rem, 9vw, 8rem) 0; }
.section-heading { max-width: 700px; }
.section-heading > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; line-height: 1.8; }
.section-heading--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading--split > div { max-width: 680px; }
.section-heading--center { margin-inline: auto; text-align: center; }

.design-showcase { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); padding: clamp(4rem, 8vw, 7rem); margin-inline: calc(50% - 50vw); background: #f1ece3; }
.design-showcase__copy { justify-self: end; }
.design-showcase__gallery { width: min(100%, 680px); display: grid; grid-template-columns: 1.25fr .8fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.showcase-card { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 8px solid var(--paper); box-shadow: var(--shadow-sm); }
.showcase-card--large { grid-row: 1 / 3; }
.showcase-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.showcase-card figcaption { position: absolute; right: .6rem; bottom: .6rem; padding: .35rem .5rem; color: #fff; background: rgba(36, 35, 31, .72); font-size: .57rem; text-transform: uppercase; }

.editor-story { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(2.5rem, 7vw, 6rem); padding: clamp(5rem, 9vw, 8rem) 0; }
.editor-story__copy > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.check-list { display: grid; gap: .65rem; margin: 1.5rem 0 2rem; padding: 0; color: var(--muted); font-size: .78rem; list-style: none; }
.check-list li::before { margin-right: .65rem; color: var(--olive); content: "✓"; font-weight: 700; }
.editor-story__mockup { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); }
.editor-story__toolbar { min-height: 42px; display: flex; align-items: center; gap: .4rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.editor-story__toolbar span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--sand); }
.editor-story__toolbar b { margin-left: auto; color: var(--muted); font-size: .55rem; text-transform: uppercase; }
.editor-story__body { min-height: 420px; display: grid; grid-template-columns: 155px 1fr; }
.editor-story__fields { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1rem; border-right: 1px solid var(--line); background: #fbfaf7; }
.editor-story__fields span { height: 2.2rem; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.editor-story__canvas { display: grid; place-items: center; padding: 2rem; background: var(--ivory); }
.editor-story__invitation { position: relative; width: min(58%, 230px); box-shadow: var(--shadow-sm); }
.editor-story__invitation > img { width: 100%; height: auto; display: block; }
.editor-story__invitation > div { position: absolute; inset: 28% 15% 18%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #4d5045; font-family: Georgia, "Times New Roman", serif; }
.editor-story__invitation strong { font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 400; line-height: .95; }
.editor-story__invitation i { color: #a49c8e; font-size: 1.15rem; }
.editor-story__invitation small { margin-top: 1rem; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .36rem; letter-spacing: .13em; }

.process { border-top: 1px solid var(--line); }
.process__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 3rem 0 0; padding: 0; list-style: none; }
.process__steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.5rem 2rem; border-left: 1px solid var(--line); }
.process__steps li:last-child { border-right: 1px solid var(--line); }
.process__steps > li > span { color: var(--taupe); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.process__steps h3 { font-size: 1.5rem; }
.process__steps p { margin: 0; color: var(--muted); font-size: .76rem; }
.category-discovery { border-top: 1px solid var(--line); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.5rem; background: var(--line); border: 1px solid var(--line); }
.category-tile { position: relative; min-height: 210px; padding: 2rem; background: var(--paper); transition: background-color .2s ease; }
.category-tile:hover { background: var(--ivory); }
.category-tile > span { color: var(--taupe-dark); font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.category-tile h3 { margin-top: 2rem; font-size: 2rem; }
.category-tile p { color: var(--muted); font-size: .75rem; }
.category-tile b { position: absolute; right: 1.5rem; bottom: 1.25rem; font-weight: 400; }
.section-links { display: flex; gap: 1.25rem; font-size: .75rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25rem; }
.knowledge { border-top: 1px solid var(--line); }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.knowledge-card { min-height: 235px; display: flex; flex-direction: column; padding: 2rem; border: 1px solid var(--line); background: #fff; }
.knowledge-card h3 { font-size: 1.6rem; }
.knowledge-card > p:not(.eyebrow) { color: var(--muted); font-size: .76rem; }
.knowledge-card .text-link { margin-top: auto; }
.home-cta { padding: clamp(4rem, 8vw, 6.5rem) 2rem; margin-inline: calc(50% - 50vw); background: var(--sand); text-align: center; }
.home-cta h2 { margin-inline: auto; }
.home-cta > p:not(.eyebrow) { color: var(--muted); }

.breadcrumbs { padding-top: 1.2rem; color: var(--muted); font-size: .68rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: .45rem; content: "/"; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: .2rem; }
.public-page { padding: 1rem 0 6rem; }
.public-page__header { max-width: 780px; margin: 4.5rem auto 4rem; text-align: center; }
.public-page__header h1 { margin-inline: auto; }
.public-page__header > p:last-child { color: var(--muted); font-size: .92rem; line-height: 1.75; }
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; margin-top: 2.25rem; }
.template-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.template-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.template-card__image { display: block; aspect-ratio: 720 / 1015; overflow: hidden; background: var(--ivory); }
.template-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.template-card:hover .template-card__image img { transform: scale(1.015); }
.template-card__placeholder, .template-detail__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--taupe); font-family: Georgia, "Times New Roman", serif; font-size: 4rem; }
.template-card__content { padding: 1rem; }
.template-card__content h2, .template-card__content h3 { margin-bottom: .4rem; font-size: 1.45rem; }
.template-card__content > p:not(.template-card__category) { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .68rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.template-card__category { margin-bottom: .35rem; color: var(--taupe-dark); font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.empty-state { padding: 2.5rem; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.empty-state--refined { margin-top: 2rem; background: var(--ivory); }
.empty-state h2, .empty-state h3 { color: var(--ink); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 3rem; font-size: .72rem; }
.pagination a, .pagination span { min-width: 2.5rem; min-height: 2.5rem; display: inline-grid; place-items: center; padding: .35rem .65rem; border: 1px solid var(--line); }
.pagination span { color: #fff; background: var(--taupe-dark); }
.markdown-content, .safe-markdown { color: var(--muted); font-family: Inter, "Segoe UI", Arial, sans-serif; }
.markdown-content { max-width: 800px; margin: 3rem auto; }
.markdown-content h2, .markdown-content h3, .safe-markdown h2, .safe-markdown h3 { color: var(--ink); }
.markdown-content a, .safe-markdown a { color: var(--taupe-dark); text-decoration: underline; }

.template-detail { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(3rem, 8vw, 7rem); margin: 3rem auto 0; }
.template-detail__preview { aspect-ratio: .707; overflow: hidden; border: 10px solid #fff; outline: 1px solid var(--line); background: var(--ivory); box-shadow: var(--shadow-lg); }
.template-detail__preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.template-detail__content h1 { font-size: clamp(3rem, 5.5vw, 5rem); }
.template-detail__description { max-width: 570px; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.template-facts { display: flex; flex-wrap: wrap; gap: 1.75rem; margin: 2rem 0; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.template-facts div { min-width: 6rem; }
.template-facts dt { color: var(--muted); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.template-facts dd { margin: .15rem 0 0; font-size: .78rem; font-weight: 700; }
.template-detail__privacy, .template-detail__note { max-width: 520px; color: var(--muted); font-size: .67rem; }
.template-detail__note { margin-top: .75rem; }
.similar-templates { margin-top: 6rem; }

.editor-page { padding: 2rem 0 6rem; }
.editor-header { max-width: 760px; margin: 1rem 0 2.25rem; }
.editor-header h1 { margin-bottom: .8rem; font-size: clamp(2.5rem, 4vw, 3.7rem); }
.editor-header > p:not(.eyebrow) { color: var(--muted); font-size: .8rem; }
.editor-workspace { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr); grid-template-areas: "form preview"; align-items: start; gap: 1.5rem; }
.editor-preview-panel, .editor-form-panel { min-width: 0; padding: clamp(1rem, 2.2vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.editor-preview-panel { grid-area: preview; position: sticky; top: 1rem; }
.editor-form-panel { grid-area: form; display: grid; gap: 1rem; }
.editor-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.editor-panel-heading h2 { margin-bottom: 1rem; font-size: 2rem; }
.editor-canvas { width: 100%; overflow: hidden; border: 1px solid var(--line); background: var(--ivory); }
.editor-canvas svg { width: 100%; height: auto; display: block; }
.editor-status, .editor-size-summary, .editor-notice, .editor-field small { color: var(--muted); font-size: .67rem; }
.editor-status { flex: 0 0 auto; }
.editor-field { display: grid; min-width: 0; gap: .4rem; }
.editor-field label { font-size: .72rem; font-weight: 700; }
.editor-field input, .editor-field textarea, .editor-field select, .form-group input, .form-group textarea, .form-group select { width: 100%; min-width: 0; min-height: 2.85rem; padding: .65rem .75rem; border: 1px solid #c9beb0; border-radius: 4px; color: var(--ink); background: #fff; }
.editor-field textarea, .form-group textarea { resize: vertical; }
.required-marker, .editor-field-warning, .field-validation, .validation-summary { color: var(--danger); }
.editor-field-warning { margin: 0; font-size: .67rem; }
.editor-notice, .editor-error { padding: .8rem 1rem; border: 1px solid #c7a76b; background: #fff8e7; }
.editor-error { margin-bottom: 1rem; border-color: #b95d52; color: #842f28; background: #fff0ed; }
.editor-actions { display: flex; flex-wrap: wrap; gap: .55rem; padding-top: .5rem; }
.editor-actions .button { min-width: 8rem; }
.editor-actions .button:disabled { opacity: .62; cursor: wait; transform: none; }
.editor-export-note { margin: 0; color: var(--muted); font-size: .67rem; }

.content-listing, .content-detail { width: min(100% - 1rem, 1080px); margin: 0 auto; padding: 1rem 0 6rem; }
.content-heading { max-width: 780px; margin: 4rem 0 3rem; }
.content-heading h1 { font-size: clamp(2.8rem, 5.4vw, 4.8rem); }
.content-listing .content-heading { margin: 3.5rem 0 2.6rem; }
.content-heading > p:not(.eyebrow), .content-lead { color: var(--muted); font-size: .9rem; line-height: 1.8; }
.content-heading time, .content-card time { color: var(--taupe-dark); font-size: .62rem; font-weight: 700; letter-spacing: .08em; }
.content-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.content-card { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.content-card > div { padding: 1.35rem; }
.content-card h2 { margin-top: .75rem; font-size: 1.75rem; }
.content-card p { color: var(--muted); font-size: .75rem; }
.content-card img, .content-hero { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.content-detail { max-width: 860px; }
.content-detail .content-heading h1 { font-size: clamp(2.8rem, 5.4vw, 4.8rem); }
.content-body { margin: 3rem 0; font-size: .92rem; line-height: 1.85; }
.content-body h2 { margin-top: 2.5rem; }
.content-cta { margin-top: 3rem; padding: 2rem; background: var(--ivory); }
.content-cta p { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; }

.site-footer { border-top: 1px solid var(--line); background: #f6f1e9; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 3rem; padding-block: 4rem; }
.site-footer__brand > p { max-width: 300px; margin: 1.25rem 0 0; color: var(--muted); font-size: .7rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .55rem; font-size: .68rem; }
.site-footer nav h2 { margin-bottom: .5rem; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-footer nav a:hover { color: var(--taupe-dark); text-decoration: underline; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .6rem; }
.site-footer__bottom p { margin: 0; }

.admin-body { background: linear-gradient(135deg, #f1ece3, #fffdf8 58%); }
.admin-shell { width: min(100% - 2.5rem, 1180px); min-height: 100vh; margin: 0 auto; padding: 1.5rem 0 4rem; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.admin-header__actions { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .7rem; }
.admin-header__actions form { margin: 0; }
.admin-content { padding-top: clamp(2rem, 6vw, 4.5rem); }
.admin-auth, .admin-panel { max-width: 580px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.8rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 248, .94); box-shadow: var(--shadow-lg); }
.admin-panel { max-width: 900px; }
.admin-panel--wide { max-width: 1180px; }
.admin-auth h1, .admin-panel h1 { font-size: clamp(2.5rem, 4vw, 3.8rem); }
.admin-auth > p, .admin-panel > p { color: var(--muted); font-size: .8rem; }
.admin-form { display: grid; gap: 1rem; margin-top: 2rem; }
.admin-auth__trust { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.25rem 0 0; }
.admin-auth__trust span { padding: .32rem .55rem; border: 1px solid var(--line); color: var(--muted); background: var(--ivory); font-size: .58rem; }
.asset-guidance { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; padding: .85rem; border: 1px solid var(--line); color: var(--muted); background: var(--ivory); font-size: .62rem; }
.asset-guidance strong { width: 100%; color: var(--ink); }
.asset-guidance span { padding-right: .7rem; border-right: 1px solid var(--line); }
.form-group { display: grid; gap: .4rem; }
.form-group label { font-size: .72rem; font-weight: 700; }
.form-group small, .checkbox-row small, .media-note { color: var(--muted); font-size: .67rem; }
.checkbox-row { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .72rem; }
.checkbox-row input { width: 1rem; height: 1rem; }
.validation-summary ul { margin: 0; padding-left: 1.2rem; }
.secret-key, .recovery-codes { padding: 1rem; border: 1px dashed var(--taupe); background: #fff; }
.secret-key code, .recovery-codes code { color: #4c3328; font-family: Consolas, monospace; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; list-style: none; }
.recovery-codes li { padding: .45rem; background: var(--ivory); text-align: center; }
.admin-placeholder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.admin-placeholder-grid article { padding: 1.2rem; border: 1px solid var(--line); background: #fff; }
.admin-placeholder-grid h2 { margin: 0; font-size: 1.4rem; }
.admin-placeholder-grid p { margin: .25rem 0 0; color: var(--muted); font-size: .72rem; }
.admin-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.admin-page-heading h1 { margin-bottom: .75rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .7rem; }
.admin-table th, .admin-table td { padding: .8rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.admin-actions form { margin: 0; }
.admin-actions button, .danger-link { padding: 0; border: 0; color: var(--taupe-dark); background: transparent; cursor: pointer; font: inherit; text-decoration: underline; }
.danger-link { color: var(--danger) !important; }
.badge { display: inline-block; margin: .1rem; padding: .18rem .45rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .62rem; white-space: nowrap; }
.alert { margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); }
.alert--success { border-color: #76a47f; background: #edf8ef; }
.alert--warning { border-color: #c89d54; background: #fff7df; }
.alert--error { border-color: #b95d52; background: #fff0ee; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.admin-preview-image, .admin-media-preview img { display: block; width: min(100%, 420px); max-height: 560px; margin: 1rem auto; object-fit: contain; }
.placeholder-page { min-height: 60vh; display: grid; max-width: 720px; align-content: center; justify-items: start; padding-block: 5rem; }
.placeholder-page > p:not(.eyebrow) { color: var(--muted); }

.template-designer.admin-panel--wide { width: min(100% - 2rem, 1760px); max-width: 1760px; }
.template-designer__heading { margin-bottom: 1.25rem; }
.template-designer__workspace { display: grid; grid-template-columns: minmax(210px, 250px) minmax(500px, 1fr) minmax(290px, 330px); gap: 1rem; align-items: start; }
.template-designer__sidebar, .template-designer__preview, .template-designer__properties { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgb(33 29 25 / 5%); }
.template-designer__preview { background: var(--ivory); }
.template-designer__properties fieldset { display: grid; gap: .8rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.template-designer__properties textarea { resize: vertical; }
.designer-empty-selection { padding: 1rem; border: 1px dashed var(--line); background: var(--ivory); color: var(--muted); font-size: .72rem; }
.designer-add-text { width: 100%; }
.designer-layers-heading { margin-top: 1.25rem; }
.designer-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; padding: .5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.designer-toolbar__group { display: flex; align-items: center; gap: .3rem; }
.designer-toolbar button, .designer-toolbar select, .designer-order-actions button, .designer-alignment button { min-height: 2rem; padding: .36rem .55rem; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; font-size: .62rem; }
.designer-toolbar button:hover:not(:disabled), .designer-order-actions button:hover:not(:disabled), .designer-alignment button:hover:not(:disabled) { border-color: var(--wine); color: var(--wine); }
.designer-toolbar button:disabled, .designer-order-actions button:disabled { cursor: not-allowed; opacity: .42; }
.designer-toolbar__zoom select { min-width: 72px; }
.template-designer__canvas { display: grid; place-items: start center; min-height: 420px; max-height: 76vh; overflow: auto; border: 1px solid var(--line); background: #d8d4cc; outline: none; }
.template-designer__canvas:focus-visible { box-shadow: 0 0 0 3px rgb(116 38 55 / 22%); }
.template-designer__canvas svg { display: block; flex: none; width: 100%; max-width: none; height: auto; touch-action: none; background: #fff; box-shadow: var(--shadow-lg); }
.template-designer__canvas[data-zoom="50"] svg { width: 50%; }
.template-designer__canvas[data-zoom="75"] svg { width: 75%; }
.template-designer__canvas[data-zoom="100"] svg { width: 100%; }
.template-designer__canvas[data-zoom="125"] svg { width: 125%; }
.template-designer__canvas[data-zoom="150"] svg { width: 150%; }
.designer-field-list { display: grid; gap: .45rem; max-height: 55vh; margin-block: .85rem; overflow-y: auto; }
.designer-field-item { display: grid; gap: .15rem; width: 100%; padding: .68rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.designer-field-item strong { overflow: hidden; font-family: var(--font-sans); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.designer-field-item span { overflow: hidden; color: var(--muted); font-family: var(--font-sans); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.designer-field-item--selected { border-color: var(--wine); background: #f8edef; box-shadow: inset 3px 0 var(--wine); }
.designer-order-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.designer-order-actions button { flex: 1; }
.designer-selection { fill: rgb(116 38 55 / 6%); stroke: var(--wine); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: move; }
.designer-hit-area { fill: transparent; stroke: transparent; cursor: move; }
.designer-resize-handle { fill: #fff; stroke: var(--wine); stroke-width: 2; vector-effect: non-scaling-stroke; }
.designer-resize-handle--n, .designer-resize-handle--s { cursor: ns-resize; }
.designer-resize-handle--e, .designer-resize-handle--w { cursor: ew-resize; }
.designer-resize-handle--ne, .designer-resize-handle--sw { cursor: nesw-resize; }
.designer-resize-handle--nw, .designer-resize-handle--se { cursor: nwse-resize; }
.designer-guide { stroke: var(--wine); stroke-width: 1; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; pointer-events: none; }
.designer-control-label { display: block; margin-bottom: .35rem; font-size: .68rem; font-weight: 700; }
.designer-alignment { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.designer-alignment button.is-active { border-color: var(--wine); background: var(--wine); color: #fff; }
.designer-color-control { display: grid; grid-template-columns: 46px 1fr; gap: .5rem; }
.designer-color-control input[type="color"] { width: 46px; min-height: 42px; padding: .2rem; }
.designer-advanced { border-top: 1px solid var(--line); }
.designer-advanced summary { padding-block: .9rem; cursor: pointer; font-size: .7rem; font-weight: 700; }
.designer-advanced__body { display: grid; gap: .8rem; padding-top: .25rem; }
.designer-geometry.form-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.designer-save-bar { position: sticky; bottom: 0; z-index: 5; margin-top: 1rem; padding: .5rem 1rem; border: 1px solid var(--line); background: rgb(255 253 249 / 94%); backdrop-filter: blur(10px); }

@media (max-width: 1020px) {
  .site-nav { gap: .75rem; }
  .site-nav > a:not(.button) { font-size: .65rem; }
  .hero { min-height: 590px; }
  .hero__content { padding: 3rem; }
  .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .design-showcase { padding-inline: 3rem; }
  .site-footer__grid { grid-template-columns: 1.5fr repeat(2, 1fr); gap: 1.5rem; }
  .template-designer__workspace { grid-template-columns: minmax(180px, .7fr) minmax(360px, 1.5fr); }
  .template-designer__properties { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .shell { width: min(100% - 2rem, 700px); }
  .site-header__inner { min-height: 68px; }
  .menu-button { width: 2.75rem; height: 2.75rem; display: grid; place-content: center; gap: .3rem; cursor: pointer; }
  .menu-button span:not(.sr-only) { width: 1.3rem; display: block; border-top: 2px solid var(--ink); }
  .site-nav { position: absolute; top: 68px; right: 1rem; left: 1rem; z-index: 10; display: none; flex-direction: column; align-items: stretch; gap: .15rem; padding: .75rem; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-lg); }
  .site-nav--open { display: flex; }
  .site-nav > a:not(.button) { padding: .75rem; border: 0; font-size: .72rem; }
  .hero { grid-template-columns: 1fr; margin-top: 1rem; }
  .hero__content { padding: 3.5rem 2rem; text-align: center; }
  .hero__description { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { min-height: 440px; }
  .hero__assurances { text-align: left; }
  .section-heading--split { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .design-showcase, .editor-story { grid-template-columns: 1fr; }
  .design-showcase { padding: 4.5rem 2rem; }
  .design-showcase__copy { justify-self: auto; }
  .process__steps { grid-template-columns: 1fr; }
  .process__steps li, .process__steps li:last-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .category-grid, .knowledge-grid, .content-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-detail { grid-template-columns: 1fr; }
  .template-detail__preview { width: min(100%, 490px); margin-inline: auto; }
  .editor-workspace { grid-template-columns: 1fr; grid-template-areas: "preview" "form"; }
  .editor-preview-panel { position: static; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-header__actions { width: 100%; flex-wrap: wrap; }
  .admin-placeholder-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid--four { grid-template-columns: 1fr; }
  .admin-page-heading { flex-direction: column; }
  .recovery-codes { grid-template-columns: 1fr; }
  .template-designer__workspace { grid-template-columns: 1fr; }
  .template-designer__preview { grid-row: 1; }
  .template-designer__properties { grid-column: auto; }
  .designer-field-list { max-height: 280px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.35rem; }
  .hero__content { padding: 2.5rem 1.25rem; }
  .hero h1 { font-size: 2.65rem; }
  .hero__description { margin-bottom: 1.35rem; }
  .hero__visual { min-height: 350px; }
  .hero__visual img { object-position: 62% center; }
  .hero__actions .button { width: 100%; }
  .hero__assurances { grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: 2rem; padding-top: 1rem; text-align: center; }
  .hero__assurances strong { font-size: 1.05rem; }
  .home-section { padding-block: 4rem; }
  .design-showcase { padding-inline: 1rem; }
  .design-showcase__gallery { grid-template-columns: 1fr 1fr; }
  .showcase-card--large { grid-column: 1 / -1; grid-row: auto; max-height: 440px; }
  .editor-story__body { grid-template-columns: 88px 1fr; min-height: 320px; }
  .editor-story__fields { padding-inline: .55rem; }
  .editor-story__canvas { padding: 1rem; }
  .editor-story__invitation { width: 82%; }
  .category-grid, .knowledge-grid, .content-card-grid, .template-grid { grid-template-columns: 1fr; }
  .public-page { padding-top: .5rem; }
  .public-page__header { margin: 3rem auto; }
  .template-facts { gap: 1rem; }
  .editor-page { padding-top: 1rem; }
  .editor-preview-panel, .editor-form-panel { padding: .85rem; }
  .editor-panel-heading { display: block; }
  .editor-actions .button { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; padding-block: 3rem; }
  .site-footer__brand { grid-column: auto; }
  .site-footer__bottom { align-items: center; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Public UI V2 — reference-accurate wedding product presentation */
:root {
  --paper: #fffdf9;
  --ivory: #faf6f0;
  --sand: #eee7dd;
  --taupe: #8e465e;
  --taupe-dark: #702c3a;
  --olive: #25483d;
  --ink: #222321;
  --muted: #69645f;
  --line: #e4ddd4;
  --wine: #762f40;
  --wine-dark: #5e2331;
  --forest: #173d34;
  --soft-shadow: 0 18px 55px rgba(49, 38, 31, .10);
  --product-shadow: 0 22px 48px rgba(42, 32, 25, .20);
  --radius: 14px;
}

body { background: #fffdfa; }
.shell { width: min(100% - 3rem, 1440px); }
.button { min-height: 3.15rem; padding-inline: 1.45rem; border-color: var(--wine); border-radius: 6px; background: var(--wine); }
.button:hover { border-color: var(--wine-dark); background: var(--wine-dark); }
.button--quiet { color: var(--ink); border-color: #8f8982; background: rgba(255,255,255,.55); }
.button--quiet:hover { border-color: var(--wine); background: #fff; }
.button--light { color: var(--ink); border-color: #fff; background: #fff; }
.button--light:hover { color: #fff; border-color: var(--wine); background: var(--wine); }
.eyebrow { color: #81515a; font-size: .69rem; letter-spacing: .17em; }
.text-link { color: var(--wine); }

.site-header { border-color: #eee8e1; background: rgba(255, 253, 250, .98); }
.site-header__inner { min-height: 88px; gap: 2rem; }
.brand { flex: 0 0 auto; }
.brand__logo { width: 148px; height: auto; display: block; }
.site-nav { margin-left: auto; gap: clamp(.9rem, 1.55vw, 1.65rem); color: #292826; font-size: .75rem; font-weight: 600; }
.site-nav > a:not(.button) { padding-block: 2.05rem; }
.site-nav .button { min-height: 2.85rem; padding-inline: 1.25rem; }

.home-page--v2 { padding: 1.5rem 0 0; }
.hero-v2 { min-height: 590px; display: grid; grid-template-columns: minmax(430px, .9fr) minmax(0, 1.1fr); overflow: hidden; border-radius: 12px; background: #fbf6ef; }
.hero-v2__content { z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(3.2rem, 5vw, 5.5rem) clamp(2.6rem, 4vw, 4.4rem); }
.hero-v2 h1 { max-width: 610px; margin-bottom: 1.35rem; font-size: clamp(3.35rem, 4.2vw, 4.65rem); line-height: 1.02; }
.hero-v2 h1 span { display: block; white-space: nowrap; }
.hero-v2__description { max-width: 520px; margin-bottom: 1.75rem; color: #4f4c48; font-size: .94rem; line-height: 1.75; }
.hero-v2__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-v2__actions .button { gap: 1rem; }
.hero-v2__trust { display: grid; grid-template-columns: 2.4rem auto; grid-template-rows: auto auto; column-gap: .75rem; width: fit-content; margin: 2.1rem 0 0; color: var(--muted); font-size: .69rem; line-height: 1.25; }
.hero-v2__trust > span:first-child { grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--wine); font-size: 1.25rem; background: #fff; }
.hero-v2__trust strong { color: var(--ink); font-size: .76rem; }
.hero-v2__visual { position: relative; min-height: 590px; margin: 0; isolation: isolate; overflow: hidden; }
.hero-v2__environment { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.hero-v2__cards { position: absolute; inset: 3.5% 3% 2%; }
.hero-v2__card { position: absolute; width: clamp(190px, 29%, 278px); height: auto; display: block; border: 7px solid rgba(255,255,255,.88); box-shadow: var(--product-shadow); object-fit: cover; }
.hero-v2__card--left { top: 15%; left: 8%; transform: rotate(-7deg); }
.hero-v2__card--center { top: 5%; left: 37%; z-index: 3; width: clamp(220px, 34%, 320px); }
.hero-v2__card--right { top: 15%; right: 2%; transform: rotate(7deg); }

.feature-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; overflow: hidden; border: 1px solid #eee7df; border-radius: 0 0 12px 12px; background: rgba(255,255,255,.94); box-shadow: 0 12px 32px rgba(51,41,34,.05); }
.feature-strip article { min-width: 0; display: grid; grid-template-columns: 3.5rem 1fr; align-items: center; gap: 1rem; padding: 2rem clamp(1rem, 2vw, 2.2rem); }
.feature-strip article + article { border-left: 1px solid var(--line); }
.feature-strip__icon, .process-v2__icon { display: grid; place-items: center; border-radius: 50%; background: #f2efea; }
.feature-strip__icon { width: 3.5rem; height: 3.5rem; }
.feature-strip svg, .process-v2 svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
.feature-strip h2, .trust-strip h2 { margin: 0 0 .28rem; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .79rem; font-weight: 700; letter-spacing: 0; }
.feature-strip p, .trust-strip p { margin: 0; color: var(--muted); font-size: .66rem; line-height: 1.55; }

.popular-section { display: grid; grid-template-columns: minmax(190px, 245px) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); padding: clamp(4.8rem, 7vw, 7rem) 0; }
.popular-section__heading { align-self: center; }
.popular-section__heading h2 { margin-bottom: 1.8rem; font-size: clamp(2.65rem, 3.3vw, 3.8rem); }
.popular-section__heading .button { min-height: 2.8rem; padding-inline: 1.15rem; }
.popular-section__rail { min-width: 0; }
.popular-section__rail .template-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.05rem; margin: 0; }
.popular-section__rail .template-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.popular-section__rail .template-card:hover { box-shadow: none; }
.popular-section__rail .template-card__image { border-radius: 10px; box-shadow: 0 9px 25px rgba(45,35,29,.08); }
.popular-section__rail .template-card__content { padding: .8rem 0 0; }
.popular-section__rail .template-card__content h3 { margin-bottom: .12rem; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .77rem; font-weight: 700; line-height: 1.35; }
.popular-section__rail .template-card__category { color: var(--muted); font-size: .59rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.popular-section__rail .template-card__content > p:not(.template-card__category), .popular-section__rail .button--card { display: none; }

.process-v2 { padding: clamp(3.5rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem); border: 1px solid #f0ebe5; border-radius: 12px; background: #fcf9f5; }
.process-v2 .section-heading h2 { font-size: clamp(2.4rem, 3.2vw, 3.5rem); }
.process-v2__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.process-v2__steps li { position: relative; display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 1.4rem; }
.process-v2__steps li:not(:last-child)::after { position: absolute; top: 50%; right: -2.7rem; width: 2rem; border-top: 1px dashed #cfc6bc; content: ""; }
.process-v2__icon { width: 5.5rem; height: 5.5rem; }
.process-v2__icon svg { width: 2.2rem; height: 2.2rem; }
.process-v2__steps b { color: var(--ink); font-size: .71rem; }
.process-v2__steps h3 { margin: .25rem 0 .45rem; font-size: 1.27rem; }
.process-v2__steps p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }

.home-cta-v2 { min-height: 390px; display: grid; grid-template-columns: .8fr 1.2fr; margin-top: 3rem; overflow: hidden; border-radius: 12px; color: #fff; background: var(--forest); }
.home-cta-v2__copy { z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 5vw, 5.5rem); }
.home-cta-v2__copy .eyebrow { color: #dbc7bb; }
.home-cta-v2__copy h2 { margin-bottom: 1rem; font-size: clamp(2.7rem, 3.8vw, 4rem); }
.home-cta-v2__copy > p:not(.eyebrow) { max-width: 410px; margin-bottom: 1.6rem; color: #e6ebe7; font-size: .8rem; }
.home-cta-v2__copy .button { align-self: flex-start; }
.home-cta-v2__visual { position: relative; min-height: 390px; margin: 0; overflow: hidden; }
.home-cta-v2__environment { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-cta-v2__invitation { position: absolute; top: -8%; right: 16%; width: min(35%, 280px); border: 7px solid rgba(255,255,255,.9); box-shadow: var(--product-shadow); transform: rotate(8deg); }

.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 2rem; border-bottom: 1px solid var(--line); }
.trust-strip article { display: grid; grid-template-columns: 2.8rem 1fr; align-items: center; gap: 1rem; padding: 2rem clamp(1rem, 2vw, 2.25rem); }
.trust-strip article > span { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: Georgia, serif; font-size: 1.2rem; }

.home-page--v2 .home-section { padding-block: clamp(4rem, 6vw, 6rem); }
.home-page--v2 .category-discovery, .home-page--v2 .knowledge { border-top: 0; }
.home-page--v2 .category-tile, .home-page--v2 .knowledge-card { border-radius: 8px; }

.public-page { padding-bottom: 5rem; }
.public-page__header { margin: 3.5rem auto 3rem; }
.public-page__header h1 { font-size: clamp(3.3rem, 5.1vw, 5.2rem); }
.public-page--listing .template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.35rem; }
.public-page--listing .template-card { border: 0; background: transparent; }
.public-page--listing .template-card__image { border-radius: 10px; box-shadow: 0 12px 32px rgba(45,35,29,.09); }
.public-page--listing .template-card__content { padding: 1rem .15rem 0; }
.public-page--listing .template-card__content h2, .public-page--listing .template-card__content h3 { font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .92rem; font-weight: 700; }
.public-page--listing .button--card { min-height: 2.65rem; margin-top: .65rem; color: var(--wine); border-color: #b99aa3; background: transparent; }
.public-page--listing .button--card:hover { color: #fff; background: var(--wine); }
.development-note { margin: 2rem auto 0; color: var(--muted); font-size: .82rem; text-align: center; }
.template-detail { align-items: start; padding: 2.5rem clamp(1rem, 4vw, 4rem); border-radius: 12px; background: #faf6f0; }
.template-detail__preview { border-width: 7px; border-radius: 4px; }
.template-detail__content { position: sticky; top: 1.5rem; padding-top: 2rem; }
.template-detail__content h1 { font-size: clamp(3.1rem, 5vw, 5.1rem); }
.template-detail__content .button { margin-top: .4rem; }

.editor-page--v2 .editor-header { max-width: 860px; }
.editor-page--v2 .editor-header h1 { color: var(--ink); }
.editor-page--v2 .editor-preview-panel, .editor-page--v2 .editor-form-panel { border-color: #e9e1d7; border-radius: 10px; box-shadow: 0 12px 38px rgba(45,35,29,.07); }
.editor-page--v2 .editor-preview-panel { background: #f8f3ec; }
.editor-page--v2 .editor-canvas { background: #ede6dc; }

.content-heading .eyebrow, .content-card time { color: var(--wine); }
.content-card { border-radius: 9px; }
.content-cta { border-left: 3px solid var(--wine); }

.site-footer { background: #f5efe8; }
.site-footer__brand .brand__logo { width: 190px; }

@media (min-width: 1181px) {
  .site-header__inner { width: min(100% - 2.7rem, 1440px); }
  .public-page--listing .public-page__header--listing { margin-top: 3.05rem; margin-bottom: 2.65rem; }
  .public-page--detail .template-detail { margin-top: 2.7rem; }
  .editor-page--v2 .editor-header h1 { font-size: clamp(2.35rem, 3.7vw, 3.45rem); }
}

@media (max-width: 1180px) {
  .site-header__inner { gap: 1rem; }
  .brand__logo { width: 138px; }
  .site-nav { gap: .8rem; font-size: .67rem; }
  .hero-v2 { grid-template-columns: minmax(390px, .88fr) minmax(0, 1.12fr); }
  .hero-v2__content { padding-inline: 2.5rem; }
  .feature-strip article { grid-template-columns: 2.9rem 1fr; padding-inline: 1rem; }
  .feature-strip__icon { width: 2.9rem; height: 2.9rem; }
  .process-v2__steps { gap: 2rem; }
  .process-v2__steps li { grid-template-columns: 4.3rem 1fr; }
  .process-v2__icon { width: 4.3rem; height: 4.3rem; }
  .process-v2__steps li:not(:last-child)::after { display: none; }
}

@media (max-width: 900px) {
  .hero-v2 { grid-template-columns: 1fr; }
  .hero-v2__content { padding: 3.6rem 3rem 2.5rem; }
  .hero-v2 h1 { font-size: clamp(3.25rem, 8vw, 4.8rem); }
  .hero-v2__visual { min-height: 500px; }
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-strip article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .feature-strip article:nth-child(4) { border-top: 1px solid var(--line); }
  .popular-section { grid-template-columns: 1fr; }
  .popular-section__heading br { display: none; }
  .popular-section__rail .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-v2__steps { grid-template-columns: 1fr; }
  .process-v2__steps li { grid-template-columns: 5rem 1fr; }
  .process-v2__icon { width: 5rem; height: 5rem; }
  .home-cta-v2 { grid-template-columns: 1fr; }
  .home-cta-v2__visual { min-height: 360px; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-page--listing .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .shell { width: min(100% - 2rem, 720px); }
  .site-header__inner { min-height: 72px; }
  .brand__logo { width: 132px; }
  .site-nav { top: 72px; }
  .home-page--v2 { padding-top: 1rem; }
  .popular-section__rail .template-grid { display: flex; gap: 1rem; overflow-x: auto; padding: 0 0 1rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .popular-section__rail .template-card { flex: 0 0 min(42vw, 240px); scroll-snap-align: start; }
  .public-page--listing .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-detail { padding: 1.5rem; }
  .template-detail__content { position: static; padding-top: 0; }
}

@media (max-width: 540px) {
  .shell { width: min(100% - 1.5rem, 500px); }
  .site-header__inner { min-height: 68px; }
  .brand__logo { width: 120px; }
  .site-nav { top: 68px; right: .75rem; left: .75rem; }
  .hero-v2 { min-height: 0; border-radius: 9px; }
  .hero-v2__content { padding: 2.5rem 1.25rem 1.7rem; text-align: left; }
  .hero-v2 h1 { margin-bottom: 1rem; font-size: clamp(2.72rem, 12.1vw, 3.3rem); line-height: .99; }
  .hero-v2 h1 span { white-space: normal; }
  .hero-v2__description { margin-bottom: 1.2rem; font-size: .83rem; line-height: 1.6; }
  .hero-v2__actions { display: grid; grid-template-columns: 1fr; }
  .hero-v2__actions .button { width: 100%; }
  .hero-v2__trust { margin-top: 1.35rem; }
  .hero-v2__visual { min-height: 350px; }
  .hero-v2__cards { inset: 3% 0 1%; }
  .hero-v2__card { width: 34%; border-width: 4px; }
  .hero-v2__card--left { top: 17%; left: 2%; }
  .hero-v2__card--center { top: 5%; left: 34%; width: 39%; }
  .hero-v2__card--right { top: 17%; right: -2%; }
  .feature-strip { grid-template-columns: 1fr; border-radius: 0 0 9px 9px; }
  .feature-strip article { grid-template-columns: 3.15rem 1fr; padding: 1.2rem; }
  .feature-strip article + article, .feature-strip article:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .feature-strip__icon { width: 3.15rem; height: 3.15rem; }
  .popular-section { padding-block: 4rem; gap: 1.7rem; }
  .popular-section__heading h2 { margin-bottom: 1.25rem; font-size: 2.65rem; }
  .popular-section__rail .template-card { flex-basis: 72vw; }
  .process-v2 { padding: 3.2rem 1.25rem; }
  .process-v2 .section-heading h2 { font-size: 2.45rem; }
  .process-v2__steps { margin-top: 2.2rem; }
  .process-v2__steps li { grid-template-columns: 4.4rem 1fr; }
  .process-v2__icon { width: 4.4rem; height: 4.4rem; }
  .home-cta-v2 { margin-top: 2rem; }
  .home-cta-v2__copy { padding: 3rem 1.5rem; }
  .home-cta-v2__copy h2 { font-size: 2.7rem; }
  .home-cta-v2__visual { min-height: 290px; }
  .home-cta-v2__invitation { top: -7%; right: 13%; width: 39%; border-width: 4px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip article { padding: 1.35rem 1rem; }
  .public-page__header { margin: 2.5rem auto; text-align: left; }
  .public-page__header h1 { font-size: 3rem; }
  .public-page--listing .template-grid { grid-template-columns: 1fr; gap: 2rem; }
  .public-page--listing .template-card { width: min(100%, 340px); margin-inline: auto; }
  .template-detail { padding: 1rem; }
  .template-detail__content h1 { font-size: 3rem; }
  .site-footer__brand .brand__logo { width: 170px; }
}
