/*
Theme Name: Smugsite
Theme URI: https://example.com/smugsite
Author: Ben
Description: A photography gallery theme in the spirit of SmugMug: galleries and nested collections, public / unlisted / password / private visibility, expiring share links, client accounts, protected original downloads (single + zip), justified/masonry/square grids and a keyboard + swipe lightbox.
Version: 1.5.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smugsite
Tags: photography, portfolio, gallery, grid-layout, custom-colors, custom-logo, custom-menu, featured-images
*/

/* ---------- Tokens ---------- */
:root {
	--smg-accent: #ffffff;
	--smg-on-accent: #000000;
	--smg-row: 260px;
	--smg-gap: 8px;
	--smg-bg: #f7f6f3;
	--smg-surface: #ffffff;
	--smg-text: #1b1c1e;
	--smg-muted: #6c6f75;
	--smg-line: #e4e2dd;
	--smg-radius: 10px;
	--smg-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--smg-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--smg-max: 1240px;
}
.smg-scheme-dark {
	--smg-bg: #000000;
	--smg-surface: #0c0c0e;
	--smg-text: #f2f0eb;
	--smg-muted: #8b8d92;
	--smg-line: #1f2023;
	color-scheme: dark;
}
.smg-scheme-dark .smg-badge--password { background: #2a2210; color: #f0d48a; border-color: #4a3c18; }
.smg-scheme-dark .smg-badge--private { background: #f2f0eb; color: #000; border-color: #f2f0eb; }
.smg-scheme-dark .smg-hero--image::after { background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, #000 100%); }
.smg-scheme-dark .smg-gate__card { box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--smg-bg);
	color: var(--smg-text);
	font: 16px/1.6 var(--smg-font);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--smg-text); text-decoration-color: currentColor; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: 1.35rem; }
:focus-visible { outline: 2px solid var(--smg-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; padding: 8px 12px; background: var(--smg-surface); }

.smg-wrap { width: min(100% - 2.5rem, var(--smg-max)); margin-inline: auto; }
.smg-wrap--narrow { --smg-max: 760px; }
.smg-wrap--wide { --smg-max: 1680px; width: min(100% - 1.5rem, var(--smg-max)); }
.smg-section { padding-block: clamp(2rem, 5vw, 4rem); }
.smg-section + .smg-section { padding-top: 0; }
.smg-center { text-align: center; }
.smg-empty, .smg-note { color: var(--smg-muted); }
.smg-note { font-size: .9rem; margin: .75rem 0 0; }
.smg-prose { max-width: 70ch; }
.smg-prose > :first-child { margin-top: 0; }
.smg-lede { color: var(--smg-muted); font-size: 1.05rem; }

/* ---------- Header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--smg-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--smg-line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.site-title { font-family: var(--smg-display); font-size: 1.35rem; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.site-brand { flex: none; display: flex; align-items: center; }
.custom-logo-link { display: block; }
.custom-logo { max-height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.site-nav__list { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-nav__list a { text-decoration: none; font-size: .95rem; color: var(--smg-muted); }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { color: var(--smg-text); }
.site-nav__list ul { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; color: inherit; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; margin: auto; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -7px; } .nav-toggle__bars::after { position: absolute; top: 7px; }
@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; inset: 64px 0 auto; background: var(--smg-surface); border-bottom: 1px solid var(--smg-line); }
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
	.site-nav__list a { display: block; padding: .6rem 0; }
}
.site-footer { border-top: 1px solid var(--smg-line); margin-top: 3rem; color: var(--smg-muted); font-size: .9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem; }
.site-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.site-footer__copy { margin: 0; }

/* ---------- Buttons, chips, badges ---------- */
.smg-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.05rem; border-radius: 999px; border: 1px solid var(--smg-accent); background: var(--smg-accent); color: var(--smg-on-accent); font: 500 .92rem/1 var(--smg-font); text-decoration: none; cursor: pointer; transition: filter .15s, background .15s; }
.smg-btn:hover { color: var(--smg-on-accent); filter: brightness(.9); }
.smg-btn--ghost { background: transparent; color: var(--smg-text); border-color: var(--smg-line); }
.smg-btn--ghost:hover { color: var(--smg-text); background: var(--smg-surface); filter: none; border-color: var(--smg-muted); }
.smg-btn--light { color: #fff; border-color: rgba(255,255,255,.5); }
.smg-btn--light:hover { color: var(--smg-text); background: #fff; }
.smg-btn.is-done { background: var(--smg-accent); color: var(--smg-on-accent); border-color: var(--smg-accent); }
.smg-icon { flex: none; }
.smg-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.smg-chip { padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--smg-line); font-size: .88rem; text-decoration: none; color: var(--smg-muted); }
.smg-chip:hover, .smg-chip.is-active { color: var(--smg-text); border-color: var(--smg-text); }
.smg-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--smg-surface); color: var(--smg-text); border: 1px solid var(--smg-line); }
.smg-badge .smg-icon { width: 12px; height: 12px; }
.smg-badge--private { background: #2b2d31; color: #fff; border-color: #2b2d31; }
.smg-badge--password { background: #fff4d6; color: #6b4b00; border-color: #f0dc9e; }

/* ---------- Page heads / crumbs ---------- */
.smg-page-head { margin-bottom: 2rem; }
.smg-page-title { font-family: var(--smg-display); font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.02em; margin: 0; }
.smg-crumbs { font-size: .85rem; color: var(--smg-muted); margin-bottom: .5rem; }
.smg-crumbs a { text-decoration: none; }
.smg-section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; }
.smg-section__head a { font-size: .92rem; color: var(--smg-muted); text-decoration: none; }

/* ---------- Hero ---------- */
.smg-hero { position: relative; padding: clamp(4rem, 12vw, 9rem) 0; overflow: hidden; }
.smg-hero--image { color: #fff; min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.smg-hero__media { position: absolute; inset: 0; }
.smg-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.smg-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6)); }
.smg-hero__inner { position: relative; z-index: 1; }
.smg-hero__title { font-family: var(--smg-display); font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -.03em; margin: 0 0 .25em; max-width: 14ch; }
.smg-hero__sub { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .85; margin: 0 0 1.5rem; }
.smg-hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0; }

/* ---------- Cards ---------- */
.smg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem 1.25rem; }
.smg-cards--collections { margin-bottom: 2.5rem; }
.smg-card__link { display: block; text-decoration: none; }
.smg-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--smg-radius); overflow: hidden; background: var(--smg-line); }
.smg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.smg-card__link:hover .smg-card__media img { transform: scale(1.04); }
.smg-card__media .smg-badge { position: absolute; top: .6rem; left: .6rem; }
.smg-card--collection .smg-card__media { box-shadow: 6px -6px 0 -1px var(--smg-bg), 6px -6px 0 0 var(--smg-line); margin: 6px 6px 0 0; }
.smg-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--smg-muted); }
.smg-card__title { font-size: 1.02rem; margin: .75rem 0 .15rem; }
.smg-card__meta { margin: 0; font-size: .85rem; color: var(--smg-muted); }

/* ---------- Single gallery ---------- */
.smg-gallery__head { padding-block: clamp(2rem, 5vw, 3.5rem) 1.75rem; }
.smg-gallery__titlebar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.smg-gallery__meta { color: var(--smg-muted); font-size: .92rem; margin: .4rem 0 1rem; }
.smg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.25rem; }
.smg-actions .smg-note { flex-basis: 100%; margin: 0; }
.smg-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.smg-share__link { font-size: .85rem; color: var(--smg-muted); text-decoration: none; padding: .35rem .6rem; border-radius: 6px; }
.smg-share__link:hover { background: var(--smg-surface); color: var(--smg-text); }

/* ---------- Grids ---------- */
.smg-grid { --g: var(--smg-gap); }
.smg-grid__item { margin: 0; position: relative; overflow: hidden; background: var(--smg-line); }
.smg-grid__link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.smg-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, transform .4s; }
.smg-grid__link:hover img { opacity: .92; }

/* Justified rows: each item grows in proportion to its aspect ratio. */
.smg-grid--justified { display: flex; flex-wrap: wrap; gap: var(--g); }
.smg-grid--justified .smg-grid__item { flex-grow: calc(var(--w) / var(--h) * 100); flex-basis: calc(var(--w) / var(--h) * var(--smg-row)); aspect-ratio: var(--w) / var(--h); max-height: calc(var(--smg-row) * 1.6); }
.smg-grid--justified::after { content: ""; flex-grow: 999999; }

/* Masonry columns. */
.smg-grid--masonry { columns: calc(var(--smg-row) * 1.1); column-gap: var(--g); }
.smg-grid--masonry .smg-grid__item { break-inside: avoid; margin-bottom: var(--g); aspect-ratio: var(--w) / var(--h); }

/* Square tiles. */
.smg-grid--square { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--smg-row), 45vw), 1fr)); gap: var(--g); }
.smg-grid--square .smg-grid__item { aspect-ratio: 1; }

@media (max-width: 600px) {
	.smg-grid--justified .smg-grid__item { flex-basis: calc(var(--w) / var(--h) * 140px); }
	.smg-grid--masonry { columns: 2; }
}

/* ---------- Gate ---------- */
.smg-gate { position: relative; min-height: 70vh; display: grid; place-items: center; padding: 3rem 1.25rem; overflow: hidden; }
.smg-gate__bg { position: absolute; inset: -40px; }
.smg-gate__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.1); opacity: .55; transform: scale(1.1); }
.smg-gate__card { position: relative; width: min(100%, 420px); background: var(--smg-surface); border: 1px solid var(--smg-line); border-radius: 16px; padding: 2.25rem 2rem; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.smg-gate__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--smg-bg); color: var(--smg-accent); margin-bottom: 1rem; }
.smg-gate__title { font-family: var(--smg-display); font-size: 1.6rem; }
.smg-gate__error { color: #b42318; font-weight: 500; }
.smg-gate__form { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.smg-gate__form .smg-btn { justify-content: center; }
input[type="password"], input[type="text"], input[type="email"], input[type="search"] { width: 100%; padding: .7rem .9rem; border-radius: 8px; border: 1px solid var(--smg-line); background: var(--smg-bg); color: var(--smg-text); font: inherit; }
input:focus { outline: none; border-color: var(--smg-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--smg-accent) 25%, transparent); }

/* ---------- Client login ---------- */
.smg-login { max-width: 380px; background: var(--smg-surface); border: 1px solid var(--smg-line); border-radius: 14px; padding: 1.75rem; }
.smg-login label { display: block; font-size: .88rem; margin-bottom: .3rem; }
.smg-login p { margin: 0 0 1rem; }
.smg-login .login-remember label { display: flex; gap: .4rem; align-items: center; }
.smg-login input[type="submit"] { padding: .65rem 1.2rem; border-radius: 999px; border: 0; background: var(--smg-accent); color: var(--smg-on-accent); font: 500 .95rem var(--smg-font); cursor: pointer; }

/* ---------- Posts + pagination ---------- */
.smg-posts { display: grid; gap: 2.5rem; }
.smg-posts:has(.smg-card) { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem 1.25rem; }
.smg-post__thumb img { border-radius: var(--smg-radius); margin-bottom: 1rem; }
.smg-post__title { font-size: 1.5rem; }
.smg-post__title a { text-decoration: none; }
.smg-pagination { margin-top: 2.5rem; }
.smg-pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.smg-pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--smg-line); border-radius: 8px; text-decoration: none; font-size: .9rem; }
.smg-pagination .current { background: var(--smg-text); color: var(--smg-bg); border-color: var(--smg-text); }

/* ---------- Lightbox ---------- */
.smg-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(8,8,10,.96); color: #fff; display: none; grid-template-rows: auto 1fr auto; }
.smg-lb.is-open { display: grid; }
.smg-lb__bar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; gap: 1rem; font-size: .9rem; }
.smg-lb__count { opacity: .7; font-variant-numeric: tabular-nums; }
.smg-lb__tools { display: flex; gap: .5rem; align-items: center; }
.smg-lb__btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; text-decoration: none; font-size: 1.4rem; line-height: 1; }
.smg-lb__btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.smg-lb__btn[hidden] { display: none; }
.smg-lb__stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.smg-lb__img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.smg-lb__img.is-loading { opacity: .25; }
.smg-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.smg-lb__nav--prev { left: 1rem; } .smg-lb__nav--next { right: 1rem; }
.smg-lb__caption { text-align: center; padding: .75rem 1rem 1.25rem; font-size: .92rem; opacity: .8; min-height: 2.5rem; }
@media (max-width: 600px) { .smg-lb__nav { display: none; } }
body.smg-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* ---------- Header actions ---------- */
.site-header__inner { gap: 1.5rem; }
.site-nav { margin-left: auto; }
.site-header__actions { display: flex; align-items: center; gap: .9rem; }
.site-header__actions:empty { display: none; }
.site-header__link { font-size: .92rem; color: var(--smg-muted); text-decoration: none; }
.smg-btn--sm { padding: .45rem .9rem; font-size: .85rem; }
.smg-btn--lg { padding: .85rem 1.4rem; font-size: 1rem; }
@media (max-width: 720px) { .site-header__actions .site-header__link { display: none; } }

/* ---------- Platform landing ---------- */
.smg-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--smg-muted); margin: 0 0 1rem; }
.smg-landing__hero { padding-block: clamp(5rem, 14vw, 10rem) clamp(3rem, 8vw, 6rem); }
.smg-landing__title { font-family: var(--smg-display); font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: .98; letter-spacing: -.035em; font-weight: 500; max-width: 13ch; margin: 0 0 1.5rem; }
.smg-landing__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--smg-muted); max-width: 46ch; margin: 0 0 2.25rem; }
.smg-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--smg-line); padding-bottom: 5rem; }
.smg-feature { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--smg-line); }
.smg-feature__n { font: 500 .75rem var(--smg-font); color: var(--smg-muted); letter-spacing: .1em; }
.smg-feature h3 { font-family: var(--smg-display); font-weight: 500; font-size: 1.45rem; margin: .8rem 0 .5rem; }
.smg-feature p { color: var(--smg-muted); margin: 0; max-width: 36ch; }

/* Landing hero image */
.smg-landing__top { position: relative; overflow: hidden; }
.smg-landing__top.has-image { min-height: min(92vh, 860px); display: flex; align-items: flex-end; }
.smg-landing__media { position: absolute; inset: 0; }
.smg-landing__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.smg-landing__top.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%), linear-gradient(180deg, rgba(0,0,0,0) 55%, #000 100%); }
.smg-landing__top.has-image .smg-landing__hero { position: relative; z-index: 1; color: #fff; }
.smg-landing__top.has-image .smg-landing__sub { color: rgba(255,255,255,.82); }
.smg-landing__top.has-image .smg-eyebrow { color: rgba(255,255,255,.7); }
.smg-landing__top.has-image .smg-btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.smg-landing__top.has-image + .smg-features { margin-top: 2rem; }
@media (max-width: 720px) {
	.smg-landing__top.has-image { min-height: 82vh; }
	.smg-landing__media img { object-position: 72% center; }
	.smg-landing__top.has-image::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.85) 78%, #000 100%); }
}

/* Landing showcase rows */
.smg-showcase { display: flex; flex-direction: column; gap: clamp(3rem, 8vw, 7rem); padding-block: clamp(3rem, 8vw, 6rem); }
.smg-showcase__row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.smg-showcase__row.is-flipped { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.smg-showcase__row.is-flipped .smg-showcase__media { order: 2; }
.smg-showcase__media { margin: 0; border-radius: 14px; overflow: hidden; background: var(--smg-surface); aspect-ratio: 16 / 9; }
.smg-showcase__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.smg-showcase__row:hover .smg-showcase__media img { transform: scale(1.03); }
.smg-showcase__text h2 { font-family: var(--smg-display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -.025em; margin: .9rem 0 1rem; }
.smg-showcase__text p { color: var(--smg-muted); font-size: 1.05rem; max-width: 40ch; margin: 0; }
@media (max-width: 900px) {
	.smg-showcase__row, .smg-showcase__row.is-flipped { grid-template-columns: 1fr; }
	.smg-showcase__row.is-flipped .smg-showcase__media { order: 0; }
}

/* ---------- Gallery audio player ---------- */
.smg-audio { margin-top: 1.5rem; background: var(--smg-surface); border: 1px solid var(--smg-line); border-radius: 14px; overflow: hidden; max-width: 760px; }
.smg-audio__main { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; }
.smg-audio__btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--smg-accent); color: var(--smg-on-accent); cursor: pointer; }
.smg-audio__btn--sm { width: 34px; height: 34px; background: transparent; color: var(--smg-muted); }
.smg-audio__btn--sm:hover { color: var(--smg-text); background: var(--smg-line); }
.smg-audio__play .i-pause { display: none; }
.smg-audio.is-playing .smg-audio__play .i-play { display: none; }
.smg-audio.is-playing .smg-audio__play .i-pause { display: block; }
.smg-audio__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.smg-audio__title { font-size: .92rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smg-audio__bar { position: relative; height: 4px; border-radius: 4px; background: var(--smg-line); cursor: pointer; }
.smg-audio__bar::before { content: ""; position: absolute; inset: -8px 0; }
.smg-audio__bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--smg-text); }
.smg-audio__bar:focus-visible { outline: 2px solid var(--smg-accent); outline-offset: 4px; }
.smg-audio__time { flex: none; font-size: .78rem; color: var(--smg-muted); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.smg-audio__list { list-style: none; margin: 0; padding: .25rem .5rem .6rem; border-top: 1px solid var(--smg-line); max-height: 280px; overflow: auto; }
.smg-audio__list li { display: flex; align-items: center; }
.smg-audio__track { flex: 1; display: flex; align-items: center; gap: .75rem; padding: .55rem .5rem; border: 0; background: none; color: var(--smg-muted); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; border-radius: 8px; min-width: 0; }
.smg-audio__track:hover { background: var(--smg-line); color: var(--smg-text); }
.smg-audio__track.is-current { color: var(--smg-text); font-weight: 500; }
.smg-audio__n { width: 1.5em; text-align: right; font-variant-numeric: tabular-nums; opacity: .6; }
.smg-audio__name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smg-audio__len { font-size: .8rem; opacity: .7; font-variant-numeric: tabular-nums; }
.smg-audio__dl { display: grid; place-items: center; width: 34px; height: 34px; color: var(--smg-muted); border-radius: 50%; }
.smg-audio__dl:hover { color: var(--smg-text); background: var(--smg-line); }
@media (max-width: 600px) { .smg-audio__time { display: none; } }

/* ---------- Pricing ---------- */
.smg-pricing { padding-block: clamp(3rem, 8vw, 6rem); scroll-margin-top: 80px; }
.smg-pricing__head { text-align: center; margin: 0 auto 2.5rem; max-width: 640px; }
.smg-pricing__head h2 { font-family: var(--smg-display); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.025em; margin: 0 0 .75rem; }
.smg-pricing__head .smg-landing__sub { margin: 0 auto; }
.smg-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
@media (max-width: 900px) { .smg-plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.smg-plan { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.75rem 1.5rem; border: 1px solid var(--smg-line); border-radius: 16px; background: var(--smg-surface); }
.smg-plan.is-featured { border-color: var(--smg-text); }
.smg-plan__flag { position: absolute; top: -11px; left: 1.5rem; padding: .2rem .65rem; border-radius: 999px; background: var(--smg-text); color: var(--smg-bg); font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.smg-plan__name { font-family: var(--smg-display); font-weight: 500; font-size: 1.5rem; margin: 0; }
.smg-plan__price { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; margin: .25rem 0 0; }
.smg-plan__tag { color: var(--smg-muted); margin: 0 0 .75rem; font-size: .95rem; }
.smg-plan__list { list-style: none; margin: 0 0 1.5rem; padding: 1rem 0 0; border-top: 1px solid var(--smg-line); display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; flex: 1; }
.smg-plan__list li { display: flex; gap: .6rem; }
.smg-plan__list li::before { content: "✓"; color: var(--smg-muted); flex: none; }
.smg-btn--block { width: 100%; justify-content: center; }

/* "Made with" badge on Personal sites */
.smg-madewith { position: fixed; right: 14px; bottom: 14px; z-index: 40; padding: .45rem .8rem; border-radius: 999px; background: rgba(0,0,0,.82); color: #f2f0eb; border: 1px solid #2a2a2e; font-size: .78rem; text-decoration: none; backdrop-filter: blur(8px); }
.smg-madewith:hover { color: #fff; border-color: #f2f0eb; }
