/*
Theme Name: Silvana Kreidli
Theme URI: https://silvanakreidli.com
Author: The website team
Description: Custom editorial theme for Silvana Kreidli, celebrity makeup artist. Black and white with champagne accents, warm ivory for About and Bridal. No page builder.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: silvana
*/

@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
	--black: #0b0b0b;
	--black-2: #151515;
	--white: #f7f4ef;
	--ivory: #efe7de;
	--ivory-2: #e8dfd4;
	--ink: #161412;
	--ink-soft: #4f4943;
	--grey: #a9a49e;
	--line-dark: rgba(255, 255, 255, .14);
	--line-light: rgba(22, 20, 18, .16);
	--champagne: #c9a96e;
	--champagne-soft: #dcc59a;
	--serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
	--gutter: max(20px, env(safe-area-inset-left, 0px));
	--gutter-r: max(20px, env(safe-area-inset-right, 0px));
	--max: 1320px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.sec { padding-block: clamp(72px, 10vw, 140px); }
.dark { background: var(--black); color: var(--white); }
.ivory { background: var(--ivory); color: var(--ink); }
.muted { color: var(--ink-soft); }
.dark .muted { color: var(--grey); }
.kicker { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; font-weight: 400; color: var(--ink-soft); }
.kicker a { text-decoration: none; }
.dark .kicker { color: var(--champagne-soft); }
.kicker.line { display: flex; align-items: center; gap: 22px; }
.kicker.line::after { content: ""; width: 72px; height: 1px; background: currentColor; opacity: .7; }
.spaced { font-size: 13px; letter-spacing: .42em; text-transform: uppercase; font-weight: 400; }
.h2 { font-size: clamp(34px, 4.4vw, 60px); }
.display { font-size: clamp(44px, 7vw, 96px); font-style: italic; letter-spacing: -.01em; }
.signoff { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 36px); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--champagne); color: var(--white); background: transparent; padding: 17px 30px; border-radius: 999px; font: 400 13px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s, color .3s; }
.btn:hover { background: var(--champagne); color: var(--black); }
.btn.square { border-radius: 0; padding: 20px 34px 20px 52px; }
.btn.square .arrow { font-size: 18px; letter-spacing: 0; margin-left: 10px; transition: transform .3s; }
.btn.square:hover .arrow { transform: translateX(4px); }
.btn.small { padding: 12px 26px; font-size: 12px; color: var(--champagne-soft); }
.btn.small:hover { color: var(--black); }
.btn.ink { border-color: var(--ink); color: var(--ink); }
.btn.ink:hover { background: var(--ink); color: var(--white); }
.link { color: inherit; text-decoration: none; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; border-bottom: 1px solid var(--champagne); padding-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
.actions.center { justify-content: center; }
.plain { text-decoration: none; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--black); color: var(--white); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { max-width: 1520px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.top.over { position: absolute; left: 0; right: 0; background: linear-gradient(180deg, rgba(11,11,11,.75), rgba(11,11,11,0)); }
.top.over.solid { position: fixed; background: rgba(11,11,11,.94); backdrop-filter: blur(8px); }
.mark img { width: clamp(150px, 15vw, 250px); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 3vw, 56px); }
.nav a { text-decoration: none; font-size: clamp(11px, 1vw, 13px); letter-spacing: .22em; text-transform: uppercase; color: var(--white); padding-block: 10px; position: relative; transition: color .2s; }
.nav a:hover { color: var(--champagne-soft); }
.nav a[aria-current="page"], .nav .current-menu-item > a { color: var(--champagne-soft); }
.nav a[aria-current="page"]::after, .nav .current-menu-item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--champagne); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px auto; transition: transform .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Light header on ivory pages (About, Bridal copy pages) */
.light-header .top { background: var(--ivory); color: var(--ink); }

.light-header .nav a { color: var(--ink); }
.light-header .nav a:hover, .light-header .nav a[aria-current="page"] { color: var(--ink); }
.light-header .nav a[aria-current="page"]::after { background: var(--ink); }
.light-header .btn.small { border-color: var(--ink); color: var(--ink); }
.light-header .btn.small:hover { background: var(--ink); color: var(--ivory); }

@media (max-width: 980px) {
	.menu-btn { display: block; }
	.nav { position: fixed; inset: 0; z-index: -1; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
	.nav ul { flex-direction: column; align-items: center; gap: 30px; }
	.nav a { font-family: var(--serif); font-size: 32px; letter-spacing: .02em; text-transform: none; color: var(--white) !important; }
	.menu-open .nav { opacity: 1; visibility: visible; }
	.menu-open .top { color: var(--white); background: transparent; }
	.menu-open.light-header .mark img { filter: invert(1) brightness(1.6); }
	.menu-open .btn.small { border-color: var(--champagne); color: var(--champagne-soft); }
	.top .wrap { padding-block: 16px; }
}

/* ---------- Home hero (Silvana's approved mock-up) ---------- */
.hero { position: relative; min-height: 100svh; background: var(--black); color: var(--white); overflow: hidden; display: flex; align-items: center; }
.hero-photo { position: absolute; top: 0; bottom: 0; right: 0; width: 64%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.88); }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(90deg, var(--black) 0%, rgba(11,11,11,.82) 14%, rgba(11,11,11,.25) 38%, rgba(11,11,11,0) 60%),
		linear-gradient(0deg, rgba(11,11,11,.7) 0%, rgba(11,11,11,0) 24%),
		radial-gradient(120% 90% at 55% 40%, rgba(11,11,11,0) 45%, rgba(11,11,11,.55) 100%); }
.hero-copy { position: relative; z-index: 2; padding: 120px var(--gutter-r) 120px max(var(--gutter), 7vw); max-width: 760px; }
.hero-name { font-optical-sizing: none; font-variation-settings: "opsz" 30; font-size: clamp(58px, 7vw, 120px); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1.02; color: #f3ece2; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero-title { margin-top: 30px; font-size: clamp(12px, 1.05vw, 15px); letter-spacing: .5em; text-transform: uppercase; line-height: 2.1; color: #ece5da; }
.hero .rule { display: block; width: 104px; height: 1px; background: var(--champagne); margin: 40px 0 38px; }
.hero-slogan { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.1vw, 50px); line-height: 1.1; margin-bottom: 48px; color: #f3ece2; }
.hero-down { position: absolute; z-index: 2; left: 50%; bottom: 34px; width: 36px; margin-left: -18px; color: var(--white); opacity: .85; animation: nudge 2.4s ease-in-out infinite; }
@keyframes rise { from { opacity: .001; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 820px) {
	/* Mobile is composed on purpose: photo first, name and words below it. */
	.hero { display: block; min-height: 0; }
	.hero-photo { position: relative; width: 100%; height: min(118vw, 82svh); }
	.hero-photo img { object-position: 50% 16% !important; }
	.hero-photo::before { background: linear-gradient(0deg, var(--black) 0%, rgba(11,11,11,.55) 22%, rgba(11,11,11,0) 48%), linear-gradient(180deg, rgba(11,11,11,.6) 0%, rgba(11,11,11,0) 20%); }
	.hero-copy { margin-top: -120px; padding: 0 var(--gutter-r) 72px var(--gutter); }
	.hero-name { font-size: clamp(50px, 15vw, 74px); }
	.hero-title { letter-spacing: .34em; margin-top: 22px; }
	.hero .rule { margin: 28px 0 26px; }
	.hero-slogan { margin-bottom: 34px; }
	.hero-down { display: none; }
}

/* ---------- Sections ---------- */
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .kicker { margin-bottom: 16px; }
.sec-head.center .kicker { justify-content: center; }

.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.cats.big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.cat { position: relative; display: block; text-decoration: none; color: var(--white); overflow: hidden; background: var(--black-2); }
.cat-photo { display: block; aspect-ratio: 3 / 4; }
.cats.big .cat-photo { aspect-ratio: 4 / 5; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: grayscale(.15); }
.cat:hover .cat-photo img { transform: scale(1.04); filter: grayscale(0); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,11,.7) 0%, rgba(11,11,11,0) 45%); }
.cat-name { position: absolute; z-index: 1; left: 24px; bottom: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 40px); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cats.big { grid-template-columns: 1fr; } }

.philosophy { text-align: center; }
.philosophy .kicker { margin-bottom: 26px; }
.philosophy blockquote { margin: 0 0 28px; font-family: var(--serif); font-style: italic; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.15; }
.philosophy .muted { max-width: 34em; margin: 0 auto 36px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-copy .kicker { margin-bottom: 20px; }
.split-copy .muted { margin-top: 24px; max-width: 30em; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.closing { text-align: center; }
.closing .h2 { font-style: italic; margin: 18px 0 20px; }
.closing .btn { margin-top: 34px; }

/* ---------- About (Silvana's approved mock-up) ---------- */
.about { background: var(--ivory); }
.about-hero { display: grid; grid-template-columns: 58% 42%; min-height: min(90svh, 900px); align-items: center; position: relative; overflow: hidden; }
.about-portrait { align-self: stretch; position: relative; }
.about-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; mix-blend-mode: multiply; }
.about-intro { position: relative; padding: 64px max(var(--gutter-r), 5vw) 64px clamp(24px, 3vw, 56px); }
.about-name { font-style: italic; font-size: clamp(64px, 8.2vw, 136px); line-height: .98; letter-spacing: -.015em; margin: 26px 0 34px; }
.about-name span { display: block; }
.about-name span + span { padding-left: .5em; }
.about-intro .spaced { line-height: 2.1; }
.about-quote { margin: 48px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.45; text-align: center; max-width: 18em; }
.about-body { display: grid; grid-template-columns: 42% 58%; border-top: 1px solid var(--line-light); background: var(--ivory-2); }
.about-text { padding: clamp(56px, 7vw, 100px) clamp(24px, 4vw, 64px) clamp(56px, 7vw, 100px) max(var(--gutter), 6vw); }
.about-text p:not(.kicker) { max-width: 28em; margin-top: 18px; color: var(--ink); letter-spacing: .02em; }
.about-text .kicker.gap { margin-top: 64px; }
.about-h2 { font-style: italic; font-size: clamp(44px, 5vw, 76px); line-height: 1.04; margin: 30px 0 14px; }
.about-photo2 { position: relative; min-height: 520px; }
.about-photo2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; mix-blend-mode: multiply; }
.about-bride { text-align: center; padding: clamp(64px, 8vw, 110px) var(--gutter-r) clamp(40px, 5vw, 64px) var(--gutter); max-width: 900px; margin: 0 auto; }
.about-bride p:first-child { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.45; }
.about-bride .signoff { margin-top: 30px; }
.strip { list-style: none; margin: 0 auto; padding: 34px var(--gutter-r) 40px var(--gutter); max-width: 1240px; border-top: 1px solid var(--line-light); display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 0; font-size: 12px; letter-spacing: .36em; text-transform: uppercase; }
.strip li + li::before { content: "/"; margin: 0 clamp(18px, 4vw, 52px); letter-spacing: 0; }
@media (max-width: 900px) {
	.about-hero { grid-template-columns: 1fr; min-height: 0; }
	.about-portrait { aspect-ratio: 4 / 4.6; }
	.about-intro { padding: 40px var(--gutter-r) 64px var(--gutter); }
	.about-quote { text-align: left; }
	.about-body { grid-template-columns: 1fr; }
	.about-photo2 { min-height: 0; aspect-ratio: 4 / 5; order: -1; }
	.about-text { padding: 56px var(--gutter-r) 64px var(--gutter); }
	.strip { flex-direction: column; align-items: center; }
	.strip li + li::before { display: none; }
}

/* ---------- Bridal ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 120px); }
.page-hero .display { font-size: clamp(40px, 5.4vw, 80px); margin: 22px 0 40px; }
.prose p { margin-top: 22px; }
.prose.center p { margin-left: auto; margin-right: auto; max-width: 36em; }
.prose .sk-lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.35; font-style: italic; margin-top: 0; }
.prose .sk-closing { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); margin-top: 48px; }
.prose .signoff { margin: 20px 0 40px; }

/* ---------- Portfolio galleries: asymmetrical magazine layout ---------- */
.cat-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; margin-top: 32px; }
.cat-tabs a { text-decoration: none; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 6px; border-bottom: 1px solid transparent; }
.cat-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--champagne); }
.gallery-body .wp-block-gallery.sk-editorial,
.gallery-body .sk-editorial { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(12px, 2vw, 28px) !important; margin: 0; }
.gallery-body .sk-editorial > figure.wp-block-image { width: auto !important; margin: 0 !important; grid-column: span 4; aspect-ratio: 4 / 5; overflow: hidden; }
.gallery-body .sk-editorial > figure.wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; cursor: zoom-in; }
.gallery-body .sk-editorial > figure:nth-child(7n+1) { grid-column: span 7; grid-row: span 2; aspect-ratio: auto; }
.gallery-body .sk-editorial > figure:nth-child(7n+2), .gallery-body .sk-editorial > figure:nth-child(7n+3) { grid-column: span 5; }
.gallery-body .sk-editorial > figure:nth-child(7n+4), .gallery-body .sk-editorial > figure:nth-child(7n+5), .gallery-body .sk-editorial > figure:nth-child(7n+6) { grid-column: span 4; }
.gallery-body .sk-editorial > figure:nth-child(7n+7) { grid-column: 3 / span 8; aspect-ratio: 3 / 2; }
.gallery-body figcaption { display: none; }
@media (max-width: 700px) {
	.gallery-body .sk-editorial > figure.wp-block-image, .gallery-body .sk-editorial > figure:nth-child(n) { grid-column: span 6; grid-row: auto; aspect-ratio: 4 / 5; }
	.gallery-body .sk-editorial > figure:nth-child(3n+1) { grid-column: 1 / -1; }
}
.empty, .next { margin-top: 48px; }

/* ---------- Contact, shop ---------- */
.contact .display, .soon-page .display { margin: 18px 0 24px; }
.contact-list { list-style: none; margin: 64px auto 0; padding: 0; max-width: 520px; border-top: 1px solid var(--line-dark); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.contact-list span { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--grey); }
.contact-list a { text-decoration: none; }
.soon-page { min-height: 60vh; display: flex; align-items: center; }
.soon-page .link { display: inline-block; margin-top: 32px; }

/* ---------- Footer ---------- */
.foot { background: var(--black); color: var(--white); padding: 72px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-dark); }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-brand img { width: 220px; }
.foot .slogan { font-family: var(--serif); font-style: italic; font-size: 22px; margin-top: 18px; color: var(--champagne-soft); }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-nav a, .foot-contact a { text-decoration: none; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.foot-nav a:hover, .foot-contact a:hover { color: var(--white); }
.foot-nav a[aria-current="page"]::after { display: none; }
.foot-contact { display: grid; gap: 10px; align-content: start; }
.foot-contact a:last-child { text-transform: none; letter-spacing: .04em; }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; letter-spacing: .14em; color: var(--grey); }
.soon { text-decoration: none; text-transform: uppercase; letter-spacing: .24em; }
.soon em { font-family: var(--serif); text-transform: none; letter-spacing: .02em; color: var(--champagne-soft); margin-left: 6px; }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr; } }

/* ---------- Image viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(8,8,8,.96); display: flex; align-items: center; justify-content: center; }
.viewer[hidden] { display: none; }
.viewer img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.viewer button { position: absolute; background: none; border: 0; color: var(--white); font-size: 30px; width: 56px; height: 56px; cursor: pointer; }
.viewer-close { top: 16px; right: 16px; }
.viewer-prev { left: 12px; top: 50%; margin-top: -28px; }
.viewer-next { right: 12px; top: 50%; margin-top: -28px; }

/* WordPress core alignment helpers */
.alignwide { max-width: var(--max); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* Logged-in admins: keep the header below the WordPress toolbar. */
.admin-bar .top { top: 32px; }
.admin-bar .top.over { top: 32px; }
@media (max-width: 782px) { .admin-bar .top, .admin-bar .top.over { top: 46px; } }

/* About photos: always keep Silvana's head in frame (the seated photo is shown whole). */
.about-portrait img { object-position: 50% 6%; }
.about-photo2 { min-height: min(92vh, 980px); }
.about-photo2 img { object-fit: contain; object-position: 50% 50%; padding: 40px 0; }
@media (max-width: 900px) { .about-photo2 { min-height: 0; aspect-ratio: 2 / 3; } .about-photo2 img { padding: 16px 0 0; } }
