/*
Theme Name: Salontryon Studio
Theme URI: https://salontryonstudio.local
Author: Salontryon Studio
Description: A clean, editorial theme for Salontryon Studio. Turn photos into nail-art-inspired creations with a built-in creator, inspiration gallery, saved creations and a fully styled blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: salontryon
Tags: blog, portfolio, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens and base
   ========================================================================== */

:root {
	--paper: #fffaf8;
	--white: #fff;
	--ink: #111936;
	--muted: #6f6980;
	--rose: #6334f2;
	--rose-dark: #3b22c8;
	--blush: #f4edff;
	--lilac: #eeeaff;
	--line: #e5def2;
	--cream: #f8f3fb;
	--shadow: 0 18px 55px rgba(48, 34, 107, .11);
	--serif: 'Playfair Display', Georgia, serif;
	--sans: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(3.5rem, 6.2vw, 6.8rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(2.5rem, 4vw, 4.6rem); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: 1.5rem; }

.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); }
.muted { color: var(--muted); }
.shell { max-width: 1440px; margin: auto; padding: 0 clamp(22px, 5vw, 76px); }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--white); clip: auto !important; clip-path: none; color: var(--ink); display: block; height: auto; left: 8px; padding: 14px 20px; top: 8px; width: auto; z-index: 100; box-shadow: var(--shadow); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn { border: 1px solid transparent; border-radius: 5px; background: var(--rose); color: var(--white); padding: 15px 25px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: .87rem; transition: transform .25s, background .25s, box-shadow .25s; min-height: 49px; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); background: var(--rose-dark); box-shadow: 0 9px 20px rgba(99, 52, 242, .22); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--white); }
.btn.light { background: var(--white); color: var(--rose); }
.btn.text { background: transparent; color: var(--rose); padding-left: 0; padding-right: 0; }
.btn.text:hover { box-shadow: none; }
.btn.small { padding: 10px 17px; min-height: 40px; }
.icon-btn { background: none; border: 0; color: var(--rose); font-size: 1.3rem; line-height: 1; padding: 7px; }

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.topbar { height: 83px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 0; z-index: 30; }
.admin-bar .topbar { top: 32px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: clamp(146px, 15vw, 205px); height: 62px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-list a { font-size: .84rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--rose); }
.nav-list .sub-menu { display: none; }
.nav-cta { font-size: .8rem; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--ink); }

/* ==========================================================================
   Hero and before/after comparison
   ========================================================================== */

.hero { min-height: 650px; display: grid; grid-template-columns: 1fr 1.03fr; align-items: center; gap: 5vw; padding-top: 45px; padding-bottom: 64px; }
.hero-copy { max-width: 620px; }
.hero h1 { margin: 20px 0 25px; }
.hero h1 em { font-weight: 400; color: var(--rose); }
.hero-copy > p:not(.eyebrow) { font-size: 1.1rem; line-height: 1.8; color: var(--muted); max-width: 470px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.fine-print { font-size: .75rem; color: var(--muted); margin-top: 25px; }
.hero-art { position: relative; padding-right: 20px; padding-bottom: 20px; }

.comparison { position: relative; overflow: hidden; background: var(--blush); touch-action: none; user-select: none; }
.hero-comparison { height: min(590px, 42vw); min-height: 450px; border-radius: 160px 160px 8px 8px; box-shadow: var(--shadow); }
.comparison img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.comparison .after { clip-path: inset(0 0 0 var(--split, 50%)); }
.comparison .divider { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--white); transform: translateX(-50%); z-index: 2; pointer-events: none; }
.comparison .handle { position: absolute; left: var(--split, 50%); top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--rose); font-size: 1.2rem; box-shadow: 0 5px 24px rgba(0, 0, 0, .15); z-index: 3; pointer-events: none; }
.comparison input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.comparison .label { position: absolute; bottom: 18px; z-index: 3; background: rgba(255, 250, 248, .92); padding: 8px 11px; font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; pointer-events: none; }
.comparison .label.before-label { left: 17px; }
.comparison .label.after-label { right: 17px; }
.comparison-caption { position: absolute; right: -15px; bottom: -25px; z-index: 5; background: var(--white); padding: 18px 23px; box-shadow: var(--shadow); font-family: var(--serif); font-style: italic; font-size: 1.1rem; transform: rotate(-4deg); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-top: 95px; padding-bottom: 95px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 35px; }
.section-heading h2 { margin: 10px 0 0; }
.section-heading p { max-width: 480px; line-height: 1.7; }

.how { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 55px; }
.step { border-top: 1px solid var(--line); padding-top: 25px; }
.step-number { color: var(--rose); font-family: var(--serif); font-size: 2rem; }
.step h3 { margin: 20px 0 10px; }
.step p { color: var(--muted); line-height: 1.7; }

.banner { background: var(--lilac); text-align: center; padding: 80px 20px; }
.banner h2 { margin: 12px auto 25px; max-width: 700px; }

.page-heading { text-align: center; padding: 64px 0 38px; }
.page-heading h1 { font-size: clamp(2.8rem, 5vw, 5rem); margin: 10px 0 15px; }
.page-heading p { color: var(--muted); line-height: 1.7; }
.page-heading .eyebrow,
.generation .eyebrow,
.result > .eyebrow,
.workspace-top .eyebrow,
.error-404 .eyebrow { color: var(--rose); }

/* ==========================================================================
   Inspiration gallery
   ========================================================================== */

.gallery-grid { columns: 4 220px; column-gap: 17px; }
.gallery-grid.full { padding-bottom: 100px; }
.gallery-card { break-inside: avoid; margin: 0 0 17px; position: relative; background: var(--white); border: 1px solid var(--line); overflow: hidden; border-radius: 6px; }
.gallery-card img { width: 100%; object-fit: cover; object-position: center; transition: transform .45s; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card .gallery-info { padding: 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gallery-card h3 { font-size: 1.12rem; margin: 0; }
.gallery-card small { color: var(--muted); font-size: .68rem; }
.gallery-card .gallery-actions { display: flex; gap: 6px; align-items: center; }
.gallery-card .similar { display: inline-block; font-size: .69rem; color: var(--rose); font-weight: 700; background: none; border: 0; padding: 8px 0; }

.category-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.category-intro p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.65; }

/* ==========================================================================
   Creator
   ========================================================================== */

.creator { max-width: 1080px; margin: auto; padding-bottom: 105px; }
.upload-zone { border: 2px dashed #c5b5ec; background: var(--white); border-radius: 8px; min-height: 370px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; transition: background .2s, border-color .2s; cursor: pointer; }
.upload-zone.dragging { background: var(--blush); border-color: var(--rose); }
.upload-mark { display: grid; place-items: center; width: 70px; height: 70px; background: var(--blush); border-radius: 50%; font-size: 1.7rem; color: var(--rose); margin-bottom: 20px; }
.upload-zone h2 { font-size: 2rem; margin: 0 0 8px; }
.upload-zone p { color: var(--muted); margin: 0 0 25px; }
.upload-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.formats { font-size: .73rem; color: var(--muted); margin-top: 23px !important; }

.creator-work { display: none; }
.creator-work.visible { display: block; }
.workspace-top { display: grid; grid-template-columns: 260px 1fr; gap: 35px; padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 55px; align-items: center; }
.workspace-top img { width: 100%; height: 205px; object-fit: cover; border-radius: 4px; }
.workspace-top h3 { margin-bottom: 9px; }
.workspace-top p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

.block { margin: 55px 0; }
.block-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.number { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: var(--white); border-radius: 50%; font-size: .8rem; }
.block h2 { font-size: 2.15rem; margin: 0; }
.block > p { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.style-card { border: 2px solid transparent; background: var(--white); padding: 6px 6px 12px; text-align: left; border-radius: 6px; min-width: 0; transition: transform .2s, border-color .2s; box-shadow: 0 2px 16px rgba(77, 42, 53, .05); }
.style-card:hover { transform: translateY(-3px); }
.style-card.selected, .choice.selected { border-color: var(--rose); }
.style-card img { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: 3px; }
.style-card span { display: block; font-size: .76rem; font-weight: 700; margin: 10px 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.style-card small { display: block; color: var(--muted); font-size: .65rem; line-height: 1.45; margin: 5px 5px 0; }

.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { border: 2px solid var(--line); border-radius: 6px; background: var(--white); padding: 20px; text-align: left; transition: border-color .2s, transform .2s; }
.choice:hover { transform: translateY(-2px); }
.choice strong { font-size: .92rem; display: block; margin-bottom: 7px; }
.choice span { font-size: .77rem; color: var(--muted); line-height: 1.5; display: block; }

.customize { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.control-group { margin-bottom: 23px; }
.control-group label, .prompt-label { font-size: .82rem; font-weight: 700; display: block; margin-bottom: 13px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 10px 13px; font-size: .78rem; color: var(--ink); min-height: 40px; }
.pill.selected { border-color: var(--rose); background: var(--blush); color: var(--rose); font-weight: 700; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--swatch); border: 1px solid rgba(0, 0, 0, .12); vertical-align: middle; margin-right: 6px; }
.custom-color { width: 36px; height: 36px; border: 0; padding: 0; background: transparent; vertical-align: middle; }
.prompt { width: 100%; min-height: 110px; border: 1px solid var(--line); background: var(--white); padding: 15px; border-radius: 5px; resize: vertical; color: var(--ink); }
.prompt:focus { outline: 2px solid var(--rose); outline-offset: 1px; }

.generate-row { border-top: 1px solid var(--line); padding-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.generate-row p { color: var(--muted); font-size: .8rem; margin: 0; }
.generate-row .btn { min-width: 205px; }
.sticky-create { display: none; }

.generation, .result { display: none; text-align: center; padding: 60px 0 110px; }
.generation.visible, .result.visible { display: block; }
.generation h2, .result h2 { margin: 12px 0; }
.generation p, .result > p { color: var(--muted); }
.loading-art { width: min(320px, 75vw); aspect-ratio: 4 / 5; overflow: hidden; margin: 35px auto; border-radius: 150px 150px 5px 5px; position: relative; }
.loading-art img { width: 100%; height: 100%; object-fit: cover; filter: blur(5px); }
.loading-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, .65) 48%, transparent 70%); animation: shimmer 2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.result-comparison { height: min(70vw, 650px); max-width: 520px; margin: 30px auto; border-radius: 7px; }
.result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.result .alt-title { font-family: var(--serif); font-size: 1.5rem; margin: 60px 0 20px; }
.alt-styles { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.alt-styles .style-card { width: 120px; }

/* ==========================================================================
   My Creations
   ========================================================================== */

.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 100px; }
.creation-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.creation-card > img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.creation-card-body { padding: 17px; }
.creation-card-body h3 { font-size: 1.2rem; margin: 0 0 5px; }
.creation-card-body p { font-size: .7rem; color: var(--muted); }
.creation-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.creation-actions button { border: 0; background: var(--blush); color: var(--rose); padding: 7px 9px; font-size: .68rem; border-radius: 3px; }
.empty-state { text-align: center; padding: 90px 25px 120px; }
.empty-state .upload-mark { margin: 0 auto 20px; }
.empty-state h2 { font-size: 2.5rem; }
.empty-state p { color: var(--muted); }

.notice { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--white); padding: 12px 19px; border-radius: 5px; z-index: 70; pointer-events: none; transition: all .3s; font-size: .82rem; text-align: center; }
.notice.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Blog: cards and index
   ========================================================================== */

.journal { border-top: 1px solid var(--line); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-index .post-grid { padding-bottom: 40px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blush); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.post-card:hover .post-card-media img { transform: scale(1.035); }
.post-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 3rem; color: var(--rose); background: linear-gradient(135deg, var(--blush), var(--lilac)); }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .72rem; color: var(--muted); }
.post-meta .cat a { color: var(--rose); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .66rem; }
.post-meta .sep { opacity: .5; }
.post-card h3 { font-size: 1.45rem; line-height: 1.25; margin: 0; }
.post-card h3 a:hover { color: var(--rose); }
.post-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: 0; }
.post-card .read-more { margin-top: auto; padding-top: 6px; font-size: .8rem; font-weight: 700; color: var(--rose); }

.post-card.featured { grid-column: 1 / -1; flex-direction: row; }
.post-card.featured .post-card-media { flex: 1.2; aspect-ratio: auto; min-height: 380px; }
.post-card.featured .post-card-body { flex: 1; padding: clamp(28px, 4vw, 56px); justify-content: center; }
.post-card.featured h3 { font-size: clamp(2rem, 3vw, 2.8rem); }
.post-card.featured p { font-size: 1rem; }

.no-results { text-align: center; padding: 40px 0 120px; }
.no-results p { color: var(--muted); }
.no-results .search-form { max-width: 440px; margin: 25px auto 0; }

/* Pagination */
.pagination, .post-navigation { padding: 10px 0 100px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--white); font-size: .85rem; font-weight: 600; color: var(--ink); }
.pagination .page-numbers:hover { border-color: var(--rose); color: var(--rose); }
.pagination .page-numbers.current { background: var(--rose); border-color: var(--rose); color: var(--white); }
.pagination .page-numbers.dots { border: 0; background: none; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; min-height: 49px; border: 1px solid var(--line); background: var(--white); border-radius: 5px; padding: 0 16px; color: var(--ink); }
.search-form input[type="search"]:focus { outline: 2px solid var(--rose); outline-offset: 1px; }

/* ==========================================================================
   Blog: single post and page content
   ========================================================================== */

.entry-header { text-align: center; max-width: 900px; margin: auto; padding: 64px 0 40px; }
.entry-header .post-meta { justify-content: center; margin-bottom: 18px; }
.entry-title { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.08; margin: 0 0 20px; }
.entry-header .excerpt { color: var(--muted); font-size: 1.1rem; line-height: 1.75; max-width: 640px; margin: 0 auto; }
.entry-hero { max-width: 1180px; margin: 0 auto 60px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.entry-hero img { width: 100%; max-height: 640px; object-fit: cover; }

.entry-content { max-width: 720px; margin: 0 auto; font-size: 1.08rem; line-height: 1.85; color: #2b2f4a; }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin: 1.8em 0 .6em; color: var(--ink); }
.entry-content h3 { font-size: 1.6rem; margin: 1.6em 0 .5em; color: var(--ink); }
.entry-content h4 { font-size: 1.3rem; margin: 1.4em 0 .5em; color: var(--ink); }
.entry-content a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: var(--rose-dark); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--rose); }
.entry-content img { border-radius: 6px; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 2em 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--rose); font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.5; color: var(--ink); }
.entry-content blockquote cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: .8rem; color: var(--muted); }
.entry-content .wp-block-pullquote { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2em 0; text-align: center; }
.entry-content .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.entry-content hr, .entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 3em auto; }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.entry-content code { background: var(--blush); padding: 2px 6px; border-radius: 3px; }
.entry-content pre { background: var(--ink); color: var(--paper); padding: 22px; border-radius: 6px; overflow-x: auto; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; }
.entry-content th { font-weight: 700; }
.entry-content figcaption, .wp-caption-text { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 10px; }
.entry-content .wp-block-button__link { background: var(--rose); color: var(--white); border-radius: 5px; padding: 14px 24px; font-weight: 700; font-size: .87rem; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--rose-dark); color: var(--white); }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

.alignwide { max-width: 1080px; margin-left: 50%; transform: translateX(-50%); width: min(1080px, 92vw); }
.alignfull { max-width: none; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content::after { content: ''; display: table; clear: both; }

.entry-footer { max-width: 720px; margin: 50px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-block; background: var(--blush); color: var(--rose); padding: 7px 12px; border-radius: 4px; font-size: .75rem; font-weight: 600; }
.page-links { max-width: 720px; margin: 20px auto; font-weight: 600; }

.post-navigation { max-width: 1080px; margin: 60px auto 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 30px; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { display: block; }
.post-navigation .nav-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin-bottom: 8px; }
.post-navigation .nav-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.post-navigation a:hover .nav-title { color: var(--rose); }

.related { background: var(--white); border-top: 1px solid var(--line); }

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area { max-width: 720px; margin: 0 auto; padding-bottom: 100px; }
.comments-title, .comment-reply-title { font-size: 2rem; margin: 0 0 25px; }
.comment-list { list-style: none; margin: 0 0 50px; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(18px, 4vw, 40px); }
.comment-body { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 22px; margin-bottom: 16px; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .72rem; color: var(--muted); margin-left: auto; }
.comment-content { line-height: 1.75; font-size: .95rem; }
.reply a { font-size: .78rem; font-weight: 700; color: var(--rose); }
.comment-form label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 8px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 5px; padding: 13px 15px; color: var(--ink); }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.comment-form p { margin-bottom: 18px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: center; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form .submit { border: 0; border-radius: 5px; background: var(--rose); color: var(--white); padding: 15px 25px; font-weight: 700; font-size: .87rem; min-height: 49px; }
.comment-form .submit:hover { background: var(--rose-dark); }

/* ==========================================================================
   404
   ========================================================================== */

.error-404 { text-align: center; padding-top: 110px; padding-bottom: 140px; }
.error-404 .big { font-family: var(--serif); font-size: clamp(6rem, 16vw, 12rem); line-height: 1; color: var(--rose); margin: 0 0 18px; }
.error-404 p { color: var(--muted); }
.error-404 .hero-actions { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .8rem; }
.footer .brand img { width: 170px; height: 54px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 950px) {
	.hero { grid-template-columns: 1fr 1fr; gap: 25px; }
	.hero h1 { font-size: 3.6rem; }
	.nav-list { gap: 14px; }
	.nav-cta { display: none; }
	.style-grid { grid-template-columns: repeat(3, 1fr); }
	.gallery-grid { columns: 3 190px; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.post-card.featured { flex-direction: column; }
	.post-card.featured .post-card-media { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 782px) {
	.admin-bar .topbar { top: 46px; }
}

@media (max-width: 700px) {
	.topbar { height: 66px; }
	.brand img { width: 142px; height: 48px; }
	.menu-toggle { display: block; }
	.nav { display: none; position: absolute; top: 65px; left: 0; right: 0; background: var(--paper); padding: 18px 23px 23px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.nav.open { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 18px; }
	.nav-list a { font-size: .95rem; }
	.hero { display: flex; flex-direction: column; padding-top: 46px; padding-bottom: 50px; min-height: 0; gap: 35px; }
	.hero h1 { font-size: clamp(3.4rem, 12vw, 5rem); }
	.hero-copy > p:not(.eyebrow) { font-size: 1rem; }
	.hero-art { width: 100%; padding-right: 8px; }
	.hero-comparison { height: 470px; min-height: 0; }
	.section { padding-top: 65px; padding-bottom: 65px; }
	.section-heading { display: block; }
	.steps { grid-template-columns: 1fr; gap: 25px; }
	.gallery-grid { columns: 2 140px; column-gap: 10px; }
	.gallery-card { margin-bottom: 10px; }
	.gallery-card .gallery-info { padding: 10px; align-items: flex-start; }
	.gallery-card h3 { font-size: .95rem; }
	.gallery-card .similar { font-size: .63rem; }
	.page-heading { padding: 42px 0 25px; }
	.upload-zone { min-height: 340px; }
	.workspace-top { grid-template-columns: 95px 1fr; gap: 16px; padding: 12px; }
	.workspace-top img { height: 100px; }
	.workspace-top h3 { font-size: 1.15rem; }
	.workspace-top p { display: none; }
	.block { margin: 42px 0; }
	.block h2 { font-size: 1.8rem; }
	.style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
	.style-card { padding: 4px 4px 8px; }
	.style-card span { font-size: .72rem; margin: 8px 3px 0; white-space: normal; }
	.style-card small { font-size: .59rem; margin: 4px 3px 2px; }
	.category-intro { display: block; }
	.category-intro p { margin-top: 10px; margin-bottom: 14px; }
	.art-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.choice { padding: 13px; }
	.choice strong { font-size: .82rem; }
	.choice span { font-size: .68rem; }
	.customize { grid-template-columns: 1fr; gap: 0; }
	.generate-row { padding-bottom: 65px; }
	.generate-row p { display: none; }
	.generate-row .btn { width: 100%; }
	.sticky-create { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
	.sticky-create .btn { width: 100%; }
	.dashboard-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.footer { flex-direction: column; text-align: center; }
	.result-comparison { height: 480px; }
	.comparison-caption { right: 0; }
	.result-actions .btn { flex: 1 1 42%; }
	.post-grid { grid-template-columns: 1fr; gap: 20px; }
	.entry-header { padding: 42px 0 28px; }
	.entry-hero { margin-bottom: 36px; border-radius: 0; margin-left: calc(-1 * clamp(22px, 5vw, 76px)); margin-right: calc(-1 * clamp(22px, 5vw, 76px)); }
	.entry-content { font-size: 1rem; }
	.alignleft, .alignright { float: none; margin: 0 0 1.4em; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.search-form { flex-direction: column; }
}

@media (max-width: 400px) {
	.art-grid { grid-template-columns: 1fr 1fr; }
	.dashboard-grid { grid-template-columns: 1fr; }
	.hero-actions .btn { flex: 1; }
	.hero-comparison { height: 400px; }
}

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