:root {
    --ink: #24231f;
    --paper: #eeeae1;
    --white: #fbfaf6;
    --rust: #b64d39;
    --olive: #78825b;
    --line: rgba(36,35,31,.18);
    --muted: #6f6c64;
    --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.site-header { width: min(1440px, calc(100% - 48px)); height: 84px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.brand { width: max-content; display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand em { font-family: var(--serif); font-weight: 400; }
.brand-icon { width: 31px; height: 35px; overflow: hidden; display: grid; place-items: center; transform: rotate(-4deg); border: 1px solid var(--ink); background: var(--ink); }
.brand-icon i { color: var(--paper); font-family: var(--serif); font-size: 6px; font-style: normal; letter-spacing: -.05em; writing-mode: vertical-rl; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { position: relative; color: #535149; font-size: 12px; font-weight: 700; text-decoration: none; }
.site-header nav a::after { content: ""; position: absolute; right: 100%; bottom: -7px; left: 0; height: 1px; background: var(--ink); transition: right .2s; }
.site-header nav a:hover::after, .site-header nav a[aria-current="page"]::after { right: 0; }
.header-cta { justify-self: end; font-size: 12px; font-weight: 800; text-decoration: none; }
.header-cta span { width: 27px; height: 27px; margin-left: 7px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; }

.hero { width: min(1360px, calc(100% - 48px)); min-height: 700px; margin: auto; padding: 85px 4vw 95px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 8vw; }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 9px; color: #67645d; font-size: 10px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 1px; background: currentColor; }
h1, .section-heading h2, .benefit-intro h2, .ideas-section h2, .faq-section h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; line-height: .93; }
h1 { max-width: 730px; font-size: clamp(61px, 7vw, 105px); }
.hero-intro { max-width: 620px; margin: 30px 0 0; color: #5e5b54; font-size: 19px; line-height: 1.6; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 24px; }
.button { border: 0; cursor: pointer; font-weight: 800; text-decoration: none; }
.button-dark { padding: 16px 20px; display: inline-flex; align-items: center; gap: 34px; border-radius: 4px; background: var(--ink); color: white; box-shadow: 5px 5px 0 var(--rust); }
.private-note { color: #747169; font-size: 11px; font-weight: 650; }
.private-note i { width: 7px; height: 7px; margin-right: 6px; display: inline-block; border-radius: 50%; background: #53834d; }

.hero-portrait { position: relative; min-height: 520px; }
.paper-shadow { position: absolute; z-index: 0; width: 64%; aspect-ratio: 4/5; right: 9%; top: 8%; transform: rotate(6deg); background: var(--olive); box-shadow: 0 25px 50px rgba(32,28,22,.2); }
.portrait-paper { position: absolute; z-index: 1; width: 64%; aspect-ratio: 4/5; left: 11%; top: 2%; padding: 6% 6% 7%; display: flex; flex-direction: column; transform: rotate(-4deg); background: #f7f1e5; box-shadow: 0 30px 70px rgba(42,36,28,.18); }
.word-face { position: relative; flex: 1; overflow: hidden; border-radius: 48% 48% 43% 43%; background: #d5a892; clip-path: polygon(18% 3%, 78% 0, 94% 20%, 87% 71%, 68% 100%, 26% 94%, 7% 64%, 4% 26%); }
.word-face::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 35% 40%, #efe1d0 0 7%, transparent 8%), radial-gradient(circle at 67% 40%, #efe1d0 0 7%, transparent 8%), radial-gradient(ellipse at 50% 75%, #8e5044 0 12%, transparent 13%), linear-gradient(115deg, #553a32 0 22%, transparent 23% 76%, #553a32 77%); mix-blend-mode: multiply; opacity: .7; }
.word-face span { position: relative; z-index: 1; width: 130%; display: block; color: rgba(44,32,27,.68); font-size: clamp(5px, .55vw, 8px); font-weight: 800; line-height: 1.35; white-space: nowrap; transform: translateX(calc((var(--i) % 3) * -8%)); }
.portrait-paper > strong { margin-top: 6%; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .05em; text-align: center; }
.portrait-paper > small { margin-top: 3px; color: #78736a; font-size: 6px; font-weight: 800; letter-spacing: .16em; text-align: center; }
.corner-note { position: absolute; z-index: 3; right: 1%; bottom: 8%; padding: 13px; transform: rotate(7deg); border: 1px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--ink); font-size: 8px; font-weight: 900; letter-spacing: .14em; line-height: 1.4; }

.studio-section { padding: 95px max(24px, calc((100vw - 1320px)/2)) 105px; background: #20211e; color: white; }
.section-heading { margin-bottom: 45px; display: grid; grid-template-columns: .7fr 1.3fr .7fr; align-items: end; gap: 28px; }
.section-heading .eyebrow { align-self: start; color: #aaa99f; }
.section-heading h2 { font-size: clamp(46px, 5vw, 74px); }
.section-heading > p:last-child { margin: 0; color: #aaa99f; font-size: 13px; }
.studio { overflow: hidden; display: grid; grid-template-columns: minmax(380px,.83fr) minmax(520px,1.17fr); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: #2a2b27; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.controls-panel { color: var(--ink); background: #f6f1e8; }
.control-block { padding: 23px 25px; display: grid; grid-template-columns: 38px 1fr; gap: 11px; border-bottom: 1px solid var(--line); }
.step { padding-top: 2px; color: #99958b; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.control-block label, .label-row label { display: block; margin-bottom: 9px; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.control-block label small { color: #99958d; font-weight: 500; letter-spacing: 0; text-transform: none; }
.photo-drop { width: 100%; min-height: 88px; padding: 14px; display: grid; grid-template-columns: 35px 1fr; align-items: center; border: 1px dashed #aaa69b; border-radius: 7px; background: rgba(255,255,255,.55); color: var(--ink); cursor: pointer; text-align: left; }
.photo-drop .upload-symbol { grid-row: 1/3; font-size: 27px; font-weight: 300; }
.photo-drop strong { font-size: 12px; }
.photo-drop small { color: #89867d; font-size: 9px; }
.remove-link { margin-top: 7px; padding: 0; border: 0; background: none; color: #a34c3d; cursor: pointer; font-size: 9px; text-decoration: underline; }
.demo-link { margin-top: 8px; padding: 0; border: 0; background: none; color: #56534c; cursor: pointer; font-size: 9px; font-weight: 800; text-decoration: underline; }
textarea, input[type="text"], select { width: 100%; color: var(--ink); background: white; border: 1px solid #cecac0; border-radius: 6px; outline: none; }
textarea { min-height: 105px; padding: 12px; resize: vertical; font-family: var(--serif); font-size: 15px; line-height: 1.45; }
input[type="text"], select { height: 39px; padding: 0 10px; font-size: 11px; }
textarea:focus, input:focus, select:focus { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(182,77,57,.12); }
.field-wrap > small { display: block; margin-top: 6px; color: #8e8a81; font-size: 8px; }
.label-row { display: flex; justify-content: space-between; }
.label-row small { color: #807d74; font-size: 9px; }
.style-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.style-option { position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 7px; background: var(--style-bg); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.style-option::before { content: "Aa Aa\A Aa Aa\A Aa Aa"; position: absolute; inset: 12%; color: var(--style-ink); font-family: var(--style-font); font-size: clamp(7px,.75vw,11px); font-weight: 800; line-height: 1.05; white-space: pre; }
.style-option::after { content: ""; position: absolute; right: 8%; bottom: 8%; width: 25%; aspect-ratio: 1; border-radius: 50%; background: var(--style-accent); }
.style-option.active { border-color: var(--ink); box-shadow: 0 0 0 2px #f6f1e8, 0 0 0 4px var(--ink); }
.range-grid { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 9px 13px; }
.range-grid label { margin: 0; color: #706d65; font-size: 9px; }
.range-grid output { float: right; color: var(--ink); }
input[type="range"] { width: 100%; accent-color: var(--rust); }
.colour-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.colour-row label { margin: 0; display: flex; align-items: center; gap: 6px; color: #77736b; cursor: pointer; font-size: 8px; }
input[type="color"] { width: 29px; height: 29px; padding: 2px; border: 1px solid #bdb9ae; border-radius: 50%; background: white; cursor: pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.poster-fields { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 8px 12px; }
.poster-fields label { margin: 0; color: #76736b; font-size: 8px; }

.preview-panel { min-width: 0; padding: 22px 27px 18px; display: grid; grid-template-rows: auto minmax(570px,1fr) auto auto; background: #282a26; }
.preview-toolbar { padding-bottom: 16px; display: flex; justify-content: space-between; color: #a3a39a; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.preview-toolbar i { width: 6px; height: 6px; margin-right: 6px; display: inline-block; border-radius: 50%; background: #a7bc64; box-shadow: 0 0 9px #a7bc64; }
.canvas-stage { position: relative; min-width: 0; min-height: 570px; padding: 27px; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #181916; background-image: linear-gradient(45deg,#20211e 25%,transparent 25%),linear-gradient(-45deg,#20211e 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#20211e 75%),linear-gradient(-45deg,transparent 75%,#20211e 75%); background-size: 18px 18px; background-position: 0 0,0 9px,9px -9px,-9px 0; }
#portrait-canvas { display: block; max-width: 100%; max-height: 660px; background: #f4efe5; box-shadow: 0 20px 55px rgba(0,0,0,.45); }
.empty-overlay { position: absolute; z-index: 2; width: min(320px,80%); padding: 35px; display: grid; justify-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(30,31,28,.9); color: white; text-align: center; }
.empty-overlay > span { width: 45px; height: 45px; margin-bottom: 13px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-size: 23px; font-weight: 300; }
.empty-overlay strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.empty-overlay small { margin-top: 6px; color: #94958e; font-size: 9px; }
.preview-actions { padding-top: 17px; display: flex; align-items: center; gap: 8px; }
.export-types { display: flex; gap: 5px; margin-right: auto; }
.export-types button, .save-button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; background: transparent; color: #92938c; cursor: pointer; font-size: 8px; font-weight: 850; }
.export-types button.active { background: white; color: var(--ink); }
.save-button { padding: 11px 13px; color: white; }
.download-button { min-width: 205px; padding: 12px 16px; display: flex; justify-content: space-between; border-radius: 5px; background: #c5dc77; color: var(--ink); }
.download-button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .45; }
.render-note { margin: 10px 0 0; color: #777870; font-size: 8px; text-align: right; }

.saved-settings { margin-top: 42px; padding-top: 35px; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; border-top: 1px solid rgba(255,255,255,.14); }
.saved-settings .eyebrow { margin-bottom: 10px; color: #94958d; }
.saved-settings h3 { margin: 0; font-family: var(--serif); font-size: 36px; font-weight: 400; letter-spacing: -.04em; }
.saved-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.saved-recipe { padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: #292a27; }
.saved-recipe strong { overflow: hidden; display: block; font-family: var(--serif); font-size: 15px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.saved-recipe span { color: #85867e; font-size: 8px; }
.saved-recipe div { margin-top: 9px; display: flex; gap: 5px; }
.saved-recipe button { flex: 1; padding: 5px; border: 1px solid rgba(255,255,255,.14); border-radius: 3px; background: none; color: white; cursor: pointer; font-size: 8px; }
.saved-recipe button:last-child { flex: 0 0 26px; color: #d18d81; }
.saved-empty { grid-column: 2; margin: 0; padding: 20px; border: 1px dashed rgba(255,255,255,.15); border-radius: 7px; color: #82837c; font-size: 10px; text-align: center; }

.benefits { padding: 110px max(24px,calc((100vw - 1260px)/2)); }
.benefit-intro { max-width: 840px; }
.benefit-intro h2, .ideas-section h2, .faq-section h2 { font-size: clamp(48px,5.5vw,80px); }
.benefit-intro > p:last-child { max-width: 650px; margin: 25px 0 0; color: var(--muted); font-size: 18px; }
.feature-grid { margin-top: 68px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid article { min-height: 260px; padding: 25px 34px 35px 0; border-right: 1px solid var(--line); }
.feature-grid article + article { padding-left: 34px; }
.feature-grid article:last-child { border-right: 0; }
.feature-grid article > span { color: #96928a; font-size: 9px; font-weight: 800; }
.feature-grid h3 { margin: 70px 0 11px; font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -.035em; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.ideas-section { padding: 105px max(24px,calc((100vw - 1260px)/2)); background: #d9d2c4; }
.ideas-section > h2 { max-width: 800px; }
.idea-links { margin-top: 60px; display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); }
.idea-links a { min-height: 130px; padding: 20px 22px 22px 0; display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); text-decoration: none; }
.idea-links a:nth-child(odd) { padding-right: 35px; border-right: 1px solid var(--line); }
.idea-links a:nth-child(even) { padding-left: 35px; }
.idea-links span { color: #77736b; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.idea-links strong { grid-column: 1; align-self: end; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.idea-links i { grid-column: 2; grid-row: 1/3; align-self: center; font-style: normal; }
.faq-section { padding: 105px max(24px,calc((100vw - 1260px)/2)); display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; background: #f5f1e9; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 22px 0; display: flex; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
details[open] summary span { transform: rotate(45deg); }
details p { margin: -5px 45px 22px 0; color: var(--muted); font-size: 13px; }
footer { padding: 52px max(24px,calc((100vw - 1320px)/2)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; background: var(--ink); color: white; }
.footer-brand .brand-icon { border-color: white; background: white; }
.footer-brand .brand-icon i { color: var(--ink); }
footer > p { margin: 0; justify-self: end; color: #aaa79f; font-family: var(--serif); font-style: italic; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
footer nav a { color: #aaa79f; font-size: 9px; text-decoration: none; }
footer small { justify-self: end; color: #77756f; font-size: 9px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; padding: 11px 16px; transform: translate(-50%,25px); border-radius: 5px; background: var(--ink); color: white; opacity: 0; pointer-events: none; transition: .22s; font-size: 11px; font-weight: 750; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1080px) {
    .site-header { grid-template-columns: 1fr auto; }
    .site-header nav { display: none; }
    .hero { grid-template-columns: 1fr .75fr; gap: 30px; }
    .studio { grid-template-columns: 1fr; }
    .preview-panel { min-height: 790px; }
    .section-heading { grid-template-columns: .65fr 1.35fr; }
    .section-heading > p:last-child { display: none; }
}

@media (max-width: 720px) {
    .site-header { width: calc(100% - 30px); height: 70px; }
    .header-cta { font-size: 0; }
    .header-cta span { font-size: 12px; }
    .hero { width: calc(100% - 30px); min-height: auto; padding: 62px 5px 75px; grid-template-columns: 1fr; }
    h1 { font-size: clamp(55px,16.5vw,75px); }
    .hero-intro { font-size: 16px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-portrait { min-height: 480px; margin-top: 35px; }
    .section-heading { grid-template-columns: 1fr; }
    .section-heading h2 { font-size: 47px; }
    .control-block { padding: 21px 15px; grid-template-columns: 28px 1fr; }
    .style-grid { grid-template-columns: repeat(4,1fr); }
    .range-grid { grid-template-columns: 1fr; }
    .poster-fields { grid-template-columns: 1fr; }
    .preview-panel { min-height: 620px; padding: 18px 13px; grid-template-rows: auto minmax(420px,1fr) auto auto; }
    .canvas-stage { min-height: 420px; padding: 15px; }
    #portrait-canvas { max-height: 520px; }
    .preview-actions { flex-wrap: wrap; }
    .export-types { margin-right: 0; }
    .save-button { margin-left: auto; }
    .download-button { width: 100%; }
    .render-note { text-align: center; }
    .saved-settings { grid-template-columns: 1fr; }
    .saved-list { grid-template-columns: repeat(2,1fr); }
    .saved-empty { grid-column: 1; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid article, .feature-grid article + article { min-height: auto; padding: 24px 0 32px; border-right: 0; border-bottom: 1px solid var(--line); }
    .feature-grid h3 { margin-top: 30px; }
    .idea-links, .faq-section { grid-template-columns: 1fr; }
    .idea-links a:nth-child(odd), .idea-links a:nth-child(even) { padding: 20px 0; border-right: 0; }
    footer { grid-template-columns: 1fr; }
    footer > p, footer small { justify-self: start; }
}

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