:root {
  color-scheme: light;
  --ink: #232239;
  --body: #49465e;
  --muted: #66627a;
  --paper: #f7f8fc;
  --white: #fff;
  --purple: #6855e8;
  --purple-deep: #5140c7;
  --lavender: #eeebff;
  --blue: #26a7e8;
  --coral: #ff7568;
  --yellow: #ffc857;
  --stroke: #e3e1ef;
  --shadow: 0 15px 36px #34285412;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background-color: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 300px; }
body { margin: 0; }
a { color: var(--purple-deep); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .43; cursor: default; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #503dd0; outline-offset: 3px; }
textarea, input:not([type=color]):not([type=range]):not([type=checkbox]):not([type=file]), select {
  min-width: 0; border: 1px solid #d9d5e8; border-radius: 8px; color: var(--ink); background: var(--white);
  padding: .63rem .72rem;
}
textarea { width: 100%; resize: vertical; line-height: 1.45; }
select { min-height: 42px; }
input[type=range], input[type=checkbox] { accent-color: var(--purple-deep); }
button[hidden], [hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Outfit", system-ui, sans-serif; }
.wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.wordmark { display: inline-flex; gap: 9px; align-items: center; color: var(--ink); text-decoration: none; flex: none; }
.wordmark span { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.065em; }
.wordmark .brand-dot { color: var(--purple-deep); }
.skip-link { position: fixed; top: 8px; left: 10px; transform: translateY(-150%); z-index: 10; color: white; background: var(--ink); padding: 12px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.muted { color: var(--muted); }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 44px; border-radius: 9px; padding: .63rem .95rem; border: 1px solid transparent;
  font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.button.primary { background: var(--purple-deep); border-color: var(--purple-deep); color: white; }
.button.primary:hover { background: #4333af; }
.button.quiet { background: white; border-color: var(--stroke); color: var(--ink); }
.button.quiet:hover { border-color: #a79ce1; background: #fbfaff; }
.button.big { min-height: 52px; padding-inline: 1.24rem; }
.icon-button {
  display: inline-grid; place-items: center; flex: none; min-width: 43px; min-height: 43px;
  font-family: system-ui, sans-serif; font-size: 23px; background: transparent; border: 1px solid var(--stroke); border-radius: 8px;
}
.icon-button:hover { background: var(--lavender); }
.site-header { background: var(--white); border-bottom: 1px solid var(--stroke); }
.site-header .wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.site-nav { display: flex; align-items: center; gap: 27px; }
.site-nav > a:not(.button) { text-decoration: none; color: var(--body); font-weight: 650; font-size: 14px; }
.site-nav > a:hover, .site-nav > a[aria-current=page] { color: var(--purple-deep); }
.site-footer { background: #211f36; color: #eeeafa; padding: 53px 0 28px; margin-top: 68px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(190px, 1.3fr) 1fr 1fr; gap: 30px; }
.site-footer .wordmark span { color: white; }
.site-footer .wordmark .brand-dot { color: #b5a9ff; }
.site-footer p { color: #cbc5dc; line-height: 1.55; margin: 12px 0 0; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer nav a { color: #f1edf9; text-decoration: none; width: max-content; max-width: 100%; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer nav button { background: transparent; border: 0; color: #f1edf9; text-align: left; padding: 0; width: max-content; }
.site-footer nav button:hover { text-decoration: underline; }
.site-footer small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid #47435d; color: #cbc5dc; }
.kicker { font-weight: 800; color: var(--purple-deep); text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; margin-bottom: 13px; }
.hero { overflow: hidden; background: #f4f0ff; border-bottom: 1px solid #e4dcfb; }
.hero .wrap { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; min-height: 545px; gap: 26px; }
.hero-copy { padding: 59px 0 65px; position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(3.7rem, 7.05vw, 6.85rem); line-height: .91; letter-spacing: -.064em; word-spacing: .06em; margin: 0 0 24px; font-weight: 780; }
.hero-copy h1 em { font-style: normal; color: var(--purple-deep); }
.hero-copy > p:not(.kicker) { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 30rem; line-height: 1.55; color: var(--body); margin-bottom: 25px; }
.hero-actions { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; }
.hero-actions > a:not(.button) { font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.hero-art { position: relative; height: 100%; min-height: 430px; isolation: isolate; }
.hero-orbit { position: absolute; left: 7%; right: 2%; top: 10%; bottom: 10%; transform: rotate(-10deg); border-radius: 50%; background: #e5dcfb; z-index: -1; }
.hero-print { position: absolute; object-fit: contain; width: min(40%, 249px); height: auto; box-shadow: 5px 14px 28px #24194632; }
.hero-print.retail { left: 10%; top: 16%; transform: rotate(-12deg); width: 40%; }
.hero-print.cafe { right: 9%; top: 15%; transform: rotate(13deg); width: 36%; }
.hero-print.gallery { left: 38%; bottom: 8%; transform: rotate(4deg); width: 34%; }
.hero-spark { position: absolute; color: var(--purple-deep); font-size: 42px; line-height: 1; }
.hero-spark.one { top: 13%; left: 57%; }
.hero-spark.two { bottom: 13%; right: 3%; color: #a25b38; font-size: 31px; }
.format-strip { background: var(--white); border-bottom: 1px solid var(--stroke); }
.format-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.format-link {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 19px 18px;
  text-decoration: none; color: var(--ink); min-height: 78px; border-right: 1px solid var(--stroke);
}
.format-link:first-child { padding-left: 0; }
.format-link:last-child { border-right: 0; padding-right: 0; }
.format-link:hover strong { color: var(--purple-deep); }
.format-link img { padding: 8px; background: #eeeafb; border-radius: 9px; width: 42px; height: 42px; }
.format-link strong, .format-link small { display: block; }
.format-link small { color: var(--muted); margin-top: 2px; }
.format-link .arrow { color: var(--purple-deep); font-size: 20px; }
.content-section { padding-top: 62px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 23px; }
.section-heading h2 { margin: 0 0 5px; font-size: clamp(2rem, 4.3vw, 3.3rem); line-height: 1; letter-spacing: -.055em; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.section-heading > a { flex: none; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.template-card { min-width: 0; overflow: hidden; border: 1px solid var(--stroke); border-radius: 13px; background: white; }
.template-card:hover { border-color: #b5a9ef; box-shadow: var(--shadow); }
.template-preview { display: grid; width: 100%; place-items: center; padding: 18px; height: clamp(210px, 27vw, 311px); background: var(--surface, #eeeaf9); border: 0; text-decoration: none; position: relative; }
.template-preview img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; box-shadow: 0 6px 15px #18121c25; }
.template-preview span {
  position: absolute; color: var(--ink); font-size: .77rem; font-weight: 700; padding: 5px 9px;
  border: 1px solid #352b4518; border-radius: 6px; bottom: 11px; right: 11px; background: #fffc;
}
.template-card .card-copy { padding: 16px 17px 19px; }
.template-card h3 { font-size: 1.32rem; margin: 0 0 4px; line-height: 1.12; letter-spacing: -.025em; }
.template-card p { margin: 0; line-height: 1.4; font-size: .84rem; color: var(--muted); }
.template-card h3 a { color: inherit; text-decoration: none; }
.template-card h3 a:hover { color: var(--purple-deep); }
.category-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.category-tiles a { min-height: 55px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--stroke); border-radius: 9px; padding: 12px 15px; color: var(--ink); background: white; text-decoration: none; font-weight: 720; }
.category-tiles a:hover { background: var(--lavender); }
.print-banner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 28px 31px; margin-top: 62px; border-radius: 13px; background: #e8f2fa; }
.print-banner h2 { font-size: 1.85rem; letter-spacing: -.035em; margin-bottom: 5px; }
.print-banner p { color: var(--body); margin: 0; line-height: 1.45; }
.page-intro { padding: 57px 0 30px; }
.page-intro h1 { font-size: clamp(2.55rem, 6.4vw, 5.15rem); line-height: .98; letter-spacing: -.065em; margin-bottom: 16px; font-weight: 770; }
.page-intro p:not(.kicker) { max-width: 65ch; font-size: 1.08rem; line-height: 1.57; color: var(--body); margin-bottom: 0; }
.breadcrumb { margin-bottom: 18px; font-size: .86rem; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; padding-block: 8px 20px; }
.filters input[type=search] { flex: 1 1 14rem; min-height: 44px; }
.filters select { min-width: 9rem; }
.results-line { font-size: .86rem; margin: 0 0 15px; color: var(--muted); }
.library-empty { padding: 26px; border-radius: 10px; background: white; border: 1px solid var(--stroke); }
.article { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 40px; }
.prose { min-width: 0; color: var(--body); }
.prose h2 { margin: 26px 0 9px; color: var(--ink); letter-spacing: -.025em; font-size: 1.65rem; }
.prose h3 { margin: 20px 0 8px; color: var(--ink); }
.prose p, .prose li { line-height: 1.65; }
.prose ul, .prose ol { padding-left: 1.45rem; }
.prose hr { border: 0; border-top: 1px solid var(--stroke); margin: 25px 0; }
.prose table { border-collapse: collapse; width: 100%; text-align: left; }
.prose th, .prose td { border: 1px solid var(--stroke); padding: .65rem .75rem; }
.prose th { background: var(--lavender); }
.prose .fold-diagram { display: flex; margin: 8px 0 18px; background: #eeeafd; border: 1px solid #9888cf; border-radius: 7px; overflow: hidden; color: var(--ink); }
.fold-diagram span { display: grid; place-items: center; text-align: center; min-height: 56px; padding: 6px; flex: var(--panel, 1); font-size: .8rem; }
.fold-diagram span + span { border-left: 2px dashed #a69abf; }
[data-ad-slot] { margin-block: 18px; }
.advertisement { background: #fff; border: 1px solid var(--stroke); border-radius: 8px; padding: 13px; }
.advertisement small { display: block; text-transform: uppercase; color: var(--muted); font-size: .68rem; letter-spacing: .09em; }
.advertisement a { display: flex; align-items: center; gap: 10px; margin-top: 5px; text-decoration: none; font-weight: 700; }
.advertisement img { width: min(125px, 40%); border-radius: 3px; }
.consent {
  position: fixed; z-index: 3; bottom: 15px; left: 50%; transform: translateX(-50%); width: min(650px, 94vw);
  border-radius: 11px; border: 1px solid var(--stroke); background: white; box-shadow: 0 8px 42px #211f3634;
  padding: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.consent p { margin: 0; flex: 1 1 190px; font-size: .9rem; color: var(--body); }
dialog { border: 1px solid var(--stroke); border-radius: 14px; max-width: min(650px, calc(100% - 24px)); width: 100%; max-height: min(92dvh, 860px); color: var(--ink); padding: 0; background: white; box-shadow: 0 26px 86px #17152a40; }
dialog::backdrop { background-color: #25203978; }
.dialog-inner { padding: 22px clamp(16px, 4vw, 27px) 24px; }
.dialog-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.dialog-title h2 { font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.dialog-title .icon-button { border-color: transparent; }
.preview-dialog img { max-height: min(48dvh, 465px); max-width: 100%; margin: auto; box-shadow: 0 8px 21px #231b2f25; }
.preview-art { background: var(--lavender); border-radius: 9px; padding: 15px; margin: 12px 0 14px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--stroke); background: #f1eff9; border-radius: 8px; }
.segmented button {
  min-height: 36px; border: 0; border-radius: 5px; padding: 5px 12px; background: transparent;
  font-weight: 690; color: var(--body); white-space: nowrap;
}
.segmented button[aria-pressed=true] { background: white; color: var(--purple-deep); box-shadow: 0 1px 4px #2d205c18; }
.segmented button:hover { color: var(--purple-deep); }
.field { display: grid; gap: 6px; font-size: .84rem; font-weight: 680; margin-bottom: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 11px; }
.action-row { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.form-message { min-height: 1em; font-size: .88rem; color: var(--body); margin: 10px 0 0; }
.saved-actions { margin-top: 12px; }
label.button[for="project-file"] { cursor: pointer; }
.action-row:has(#project-file:focus-visible) label[for="project-file"] { outline: 3px solid #503dd0; outline-offset: 3px; }
.notice { color: #602c17; background: #fff2db; padding: 10px 12px; border-radius: 8px; font-size: .86rem; line-height: 1.45; }
.notice ul { padding-left: 20px; margin: 5px 0 1px; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 48px); }
  .hero .wrap { min-height: 480px; }
  .hero-art { min-height: 390px; }
  .hero-copy h1 { font-size: clamp(3.6rem, 8.5vw, 5.2rem); }
  .template-grid { gap: 16px; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 34px); }
  .site-header .wrap { min-height: 64px; gap: 10px; }
  .site-nav { gap: 13px; }
  .site-nav > a:not(.button) { font-size: .82rem; }
  .site-nav .button { padding-inline: .62rem; min-height: 40px; }
  .site-nav .nav-print { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 43px 0 16px; }
  .hero-copy h1 { font-size: clamp(3rem, 11.5vw, 5.1rem); margin-bottom: 16px; }
  .hero-copy > p:not(.kicker) { margin-bottom: 18px; }
  .hero-art { min-height: min(78vw, 385px); width: min(100%, 500px); margin-inline: auto; }
  .hero-print.retail { top: 13%; left: 12%; width: 32%; }
  .hero-print.cafe { top: 12%; right: 12%; width: 29%; }
  .hero-print.gallery { bottom: 9%; left: 36%; width: 28%; }
  .hero-orbit { bottom: 8%; left: 10%; right: 8%; }
  .hero-spark.one { top: 8%; }
  .format-link { padding: 12px 8px; gap: 4px; grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: 70px; }
  .format-link:first-child { padding-left: 4px; }
  .format-link:last-child { padding-right: 4px; }
  .format-link small, .format-link .arrow { display: none; }
  .format-link strong { font-size: .78rem; }
  .format-link img { width: 31px; height: 31px; padding: 5px; }
  .content-section { padding-top: 39px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 17px; }
  .section-heading > .button { min-height: 38px; }
  .template-grid, .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .template-preview { height: clamp(145px, 38vw, 236px); padding: 11px; }
  .template-preview span { bottom: 6px; right: 6px; font-size: .66rem; }
  .template-card .card-copy { padding: 11px 10px 13px; }
  .template-card h3 { font-size: 1.04rem; }
  .template-card p { font-size: .74rem; }
  .category-tiles a { min-height: 45px; font-size: .83rem; }
  .print-banner { margin-top: 39px; grid-template-columns: 1fr; padding: 18px; gap: 12px; }
  .print-banner a { justify-self: start; }
  .site-footer { margin-top: 44px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 23px; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .page-intro { padding: 34px 0 23px; }
  .article { grid-template-columns: 1fr; gap: 20px; }
  textarea, input:not([type=color]):not([type=range]):not([type=checkbox]):not([type=file]), select { font-size: 16px; }
}
@media (max-width: 360px) {
  .wordmark span { font-size: 22px; }
  .site-nav { gap: 9px; }
  .site-nav > a:not(.button) { font-size: .76rem; }
  .site-nav .button { font-size: .76rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .template-card { transition: background-color .15s, border-color .15s, box-shadow .15s; }
}
