/*
Theme Name: Evan Ras: Frame
Theme URI: https://evanras.com/
Author: Dependent Media
Author URI: https://dependentmedia.com/
Description: Light, photo-led block theme for model and musician Evan Ras. Built 2026-11 to the Sierra direction, adapted to a portfolio: paper-white pages, the portraits carry the design, one rotating home photo with its own pause button, a sticky header with the agency link and Book Evan, a two-button phone bar. Details from the trade: film-roll frame numbers, contact-sheet strips, "end of roll" at the foot of each page. No page builder.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: er-frame
*/

@font-face { font-family: "Bricolage Grotesque"; src: url(assets/fonts/bricolage-grotesque-latin.woff2) format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(assets/fonts/instrument-sans-latin.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
	--ink: #121212;
	--text: #2b2926;
	--mute: #5b564d;
	--line: #cfc7b8;
	--paper: #f4f0e8;
	--card: #ebe5d9;
	--white: #fff;
	--red: #c0201a;
	--red-dark: #8f1712;
	--gut: 16px;
	--wide: 1280px;
	--pad: max(var(--gut), calc((100% - var(--wide)) / 2));
	--sec: clamp(48px, 6vw, 92px);
	--display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
	--body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--head-h: 68px;
}
@media (min-width: 600px) { :root { --gut: 24px; } }
@media (min-width: 1000px) { :root { --gut: 40px; --head-h: 84px; } }

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
strong { font-weight: 700; color: var(--ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.er-skip { position: absolute; left: 8px; top: 8px; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.er-skip:focus { clip-path: none; width: auto; height: auto; }
.er-ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.er-bar__menu .er-ico--close, .er-banner__pause .er-ico--play { display: none; }

.er-kicker { font: 600 .78rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red-dark); margin: 0 0 1rem; display: flex; align-items: center; gap: 12px; }
.er-kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }

/* buttons: square, ruled, no pill */
.er-btn { display: inline-flex; align-items: center; gap: 10px; font: 600 .82rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 16px 22px; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 0; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.er-btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.er-btn--line { background: transparent; color: var(--ink); }
.er-btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.er-btn .er-ico { width: 1.3em; height: 1.3em; }

/* ---------- header ---------- */
.er-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.er-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0,0,0,.25); }
.er-bar__in { display: flex; align-items: center; gap: 20px; height: var(--head-h); padding: 0 var(--pad); max-width: none; }
.er-brand { font: 800 1.45rem/.85 var(--display); letter-spacing: -.04em; text-transform: uppercase; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.er-brand__b { color: var(--red); }
@media (min-width: 1000px) { .er-brand { flex-direction: row; gap: .3em; align-items: baseline; font-size: 1.65rem; line-height: 1; } }
.er-nav { display: none; margin-left: auto; }
.er-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.er-menu__link { display: block; padding: 10px 14px; font: 600 .82rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.er-menu__link:hover, .er-menu__link[aria-current="page"] { border-bottom-color: var(--red); color: var(--ink); }
.er-bar__cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.er-bar__agency { display: none; align-items: center; gap: 6px; font: 500 .85rem/1 var(--body); color: var(--text); text-decoration: none; }
.er-bar__agency:hover { color: var(--red-dark); text-decoration: underline; }
.er-bar__book { display: none; padding: 13px 18px; }
.er-bar__menu { display: flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--ink); color: var(--ink); padding: 10px 14px; font: 600 .82rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
.er-bar__menu[aria-expanded="true"] .er-ico--menu { display: none; }
.er-bar__menu[aria-expanded="true"] .er-ico--close { display: block; }
.er-panel { border-top: 1px solid var(--line); background: var(--paper); padding: 8px var(--gut) 20px; }
.er-panel[hidden] { display: none; }
.er-menu--panel { flex-direction: column; gap: 0; }
.er-menu--panel .er-menu__link { padding: 16px 0; font-size: 1.3rem; font-family: var(--display); text-transform: none; letter-spacing: -.01em; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) {
	.er-nav { display: block; }
	.er-bar__cta { margin-left: 0; }
	.er-bar__agency, .er-bar__book { display: inline-flex; }
	.er-bar__menu, .er-panel { display: none !important; }
}

/* ---------- page shell ---------- */
.er-main { padding-bottom: 8px; }
.er-sec { padding: var(--sec) var(--pad) 0; }
.er-sec--tight { padding-top: clamp(32px, 4vw, 56px); }
.er-head { padding-top: clamp(40px, 5vw, 76px); }
.er-head h1 { margin-bottom: .25em; }
.er-lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--ink); max-width: 38em; }
.er-prose { max-width: 760px; margin-left: var(--pad); margin-right: auto; }
.er-prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.er-prose h2:first-child { margin-top: 0; }
.er-prose ul { padding-left: 1.2em; }
.er-prose li { margin-bottom: .4em; }
.er-rise { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.er-rise.is-in { opacity: 1; transform: none; }

/* ---------- home hero ---------- */
.er-hero { display: grid; gap: 28px; padding: clamp(28px, 4vw, 56px) var(--pad) 0; align-items: end; }
.er-hero__h1 { font-size: clamp(4.2rem, 17vw, 14rem); line-height: .8; letter-spacing: -.055em; font-weight: 800; text-transform: uppercase; margin: 0 0 .22em -.04em; display: flex; flex-direction: column; }
.er-hero__h1 span:last-child { color: var(--red); }
.er-hero__lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 26em; color: var(--ink); line-height: 1.45; }
.er-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 0; }
@media (min-width: 1000px) {
	.er-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; }
	.er-hero__h1 { font-size: clamp(7rem, 12.6vw, 13.5rem); }
}
.er-banner { position: relative; }
.er-banner__stage { position: relative; aspect-ratio: 4 / 5; background: var(--card); border: 1px solid var(--ink); padding: 8px; background-clip: padding-box; }
.er-banner__stage::before { content: ""; position: absolute; inset: 8px; background: var(--card); }
.er-banner__slide { position: absolute; inset: 8px; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.er-banner__slide.is-on { opacity: 1; }
.er-banner__slide .er-img { width: 100%; height: 100%; object-fit: cover; }
.er-banner__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; font: 600 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.er-banner__cap { margin: 0; color: var(--mute); min-width: 0; }
.er-banner__ctl { display: flex; align-items: center; gap: 4px; }
.er-banner__dot, .er-banner__pause { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; color: var(--ink); font: 600 .8rem/1 var(--body); letter-spacing: .08em; cursor: pointer; border-radius: 0; }
.er-banner__dot[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.er-banner__dot:hover, .er-banner__pause:hover { border-color: var(--red); }
.er-banner__pause { margin-left: 8px; border-color: var(--line); }
.er-banner__pause.is-paused .er-ico--pause { display: none; }
.er-banner__pause.is-paused .er-ico--play { display: block; }
@media (prefers-reduced-motion: reduce) { .er-banner__slide { transition: none; } .er-rise { opacity: 1; transform: none; transition: none; } }

/* ---------- contact sheet strip ---------- */
.er-secthead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 24px; }
.er-secthead h2 { margin: 0; }
.er-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: f; }
.er-strip__f a { display: block; color: var(--ink); text-decoration: none; background: var(--ink); padding: 8px 8px 0; }
.er-strip__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--card); }
.er-strip__img .er-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.er-strip__f a:hover .er-strip__img .er-img { transform: scale(1.03); }
.er-strip__n { display: flex; justify-content: space-between; color: var(--paper); font: 500 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 10px 2px 11px; }
.er-strip__n b { color: #f08a82; font-weight: 700; }
@media (min-width: 700px) { .er-strip { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .er-strip__img .er-img { transition: none; } }

/* ---------- sets ---------- */
.er-sets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.er-sets a { display: block; text-decoration: none; color: var(--ink); }
.er-sets__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--ink); background: var(--card); }
.er-sets__img .er-img { width: 100%; height: 100%; object-fit: cover; }
.er-sets__h { display: flex; align-items: center; justify-content: space-between; font: 700 1.15rem/1 var(--display); letter-spacing: -.01em; padding: 12px 0 0; border-top: 0; }
.er-sets a:hover .er-sets__h { color: var(--red-dark); }
.er-sets a:hover .er-ico { transform: translateX(4px); }
.er-sets .er-ico { transition: transform .2s; }
@media (min-width: 700px) { .er-sets { grid-template-columns: repeat(5, 1fr); } }

/* ---------- two panels: runway + music ---------- */
.er-two { display: grid; gap: 14px; }
.er-panelcard { border: 1px solid var(--ink); background: var(--white); padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.er-panelcard h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }
.er-panelcard p { margin: 0; }
.er-panelcard--music { grid-template-columns: 112px 1fr; align-items: start; }
.er-panelcard--music .er-panelcard__art { grid-row: 1 / span 3; }
.er-panelcard--music .er-btn, .er-panelcard .er-btn { justify-self: start; }
.er-panelcard__art .er-img { width: 100%; height: auto; border: 1px solid var(--ink); }
@media (min-width: 900px) { .er-two { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */
.er-cta { display: grid; gap: 22px; border-top: 2px solid var(--ink); padding-top: 32px; }
.er-cta h2 { margin-bottom: .2em; }
.er-cta p { margin: 0; max-width: 30em; }
.er-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .er-cta { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- gallery ---------- */
.er-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.er-chip { min-height: 44px; padding: 0 18px; background: transparent; color: var(--ink); border: 1px solid var(--ink); font: 600 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
.er-chip:hover { border-color: var(--red); }
.er-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.er-count { font: 500 .8rem/1 var(--body); letter-spacing: .08em; color: var(--mute); margin: 0 0 18px; min-height: 1em; }
.er-gal { columns: 2; column-gap: 10px; }
.er-g { break-inside: avoid; margin: 0 0 10px; background: var(--ink); padding: 8px 8px 0; scroll-margin-top: calc(var(--head-h) + 12px); }
.er-g[hidden] { display: none; }
.er-g a { display: block; background: var(--card); }
.er-g .er-img { width: 100%; height: auto; }
.er-g figcaption { color: var(--paper); font: 500 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 10px 2px 11px; }
.er-g figcaption b { color: #f08a82; margin-right: 8px; }
@media (min-width: 700px) { .er-gal { columns: 3; } }
@media (min-width: 1100px) { .er-gal { columns: 4; column-gap: 12px; } .er-g { margin-bottom: 12px; } }
.er-lb { border: 0; padding: 0; background: rgba(18,18,18,.96); color: var(--paper); width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; }
.er-lb::backdrop { background: rgba(18,18,18,.96); }
.er-lb__in { height: 100%; display: grid; grid-template-rows: 1fr auto auto; gap: 10px; padding: 16px; }
.er-lb img { max-width: 100%; max-height: 100%; margin: auto; width: auto; height: auto; object-fit: contain; min-height: 0; }
.er-lb__cap { margin: 0; text-align: center; font-size: .95rem; }
.er-lb__bar { display: flex; align-items: center; justify-content: center; gap: 8px; }
.er-lb__n { font: 500 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; margin-right: 12px; }
.er-lb__btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--paper); border: 1px solid var(--paper); cursor: pointer; border-radius: 0; }
.er-lb__btn:hover { background: var(--red); border-color: var(--red); }
.er-lb__btn:focus-visible { outline-color: #fff; }

/* ---------- runway ---------- */
.er-clips { display: grid; gap: 28px; }
.er-clip { margin: 0; }
.er-clip__box { aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--ink); }
.er-clip iframe { width: 100%; height: 100%; border: 0; display: block; }
.er-clip figcaption { font: 500 .78rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-top: 10px; }
@media (min-width: 900px) { .er-clips { grid-template-columns: 1fr 1fr; } }

/* ---------- music ---------- */
.er-album { display: grid; gap: 28px; align-items: start; }
.er-album__art { margin: 0; border: 1px solid var(--ink); }
.er-album__art .er-img { width: 100%; height: auto; }
.er-album__h { font-size: clamp(5rem, 16vw, 11rem); line-height: .8; letter-spacing: -.06em; text-transform: uppercase; margin: 0 0 .15em -.03em; color: var(--red); }
.er-album__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.er-track { margin-top: 28px; border-top: 2px solid var(--ink); padding-top: 16px; }
.er-track__h { font: 700 1rem/1.2 var(--display); margin: 0 0 10px; }
.er-track audio { width: 100%; max-width: 560px; }
@media (min-width: 800px) { .er-album { grid-template-columns: minmax(0, 420px) 1fr; gap: 56px; } }

/* ---------- contact ---------- */
.er-split { display: grid; gap: 36px; align-items: start; }
.er-ccard { border: 1px solid var(--ink); background: var(--white); padding: 24px; }
.er-ccard__h { font: 600 .78rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red-dark); margin: 0 0 8px; }
.er-ccard h2.er-ccard__h:not(:first-child) { margin-top: 22px; }
.er-ccard ul { list-style: none; margin: 0; padding: 0; }
.er-ccard li { margin-bottom: 6px; }
.er-ccard__photo { margin: 0 0 24px; border: 1px solid var(--ink); }
@media (min-width: 900px) { .er-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; } }
.er-nf .nf-form-fields-required { font-size: .9rem; color: var(--mute); margin-bottom: 14px; }
.er-nf .nf-field-label label { font: 600 .78rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.er-nf input[type=text], .er-nf input[type=email], .er-nf input[type=tel], .er-nf textarea, .er-nf select { width: 100%; font: 400 1.05rem/1.4 var(--body); padding: 14px 14px; background: var(--white); border: 1px solid var(--ink); border-radius: 0; color: var(--ink); }
.er-nf input:focus-visible, .er-nf textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.er-nf .nf-field-container { margin-bottom: 18px; }
.er-nf input[type=submit], .er-nf input[type=button] { font: 600 .82rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); padding: 17px 26px; border-radius: 0; cursor: pointer; }
.er-nf input[type=submit]:hover { background: var(--red); border-color: var(--red); color: #fff; }
.er-nf .nf-error-msg, .er-nf .nf-form-errors { color: var(--red-dark); font-weight: 600; font-size: .95rem; }
.er-nf .nf-error input, .er-nf .nf-error textarea { border: 2px solid var(--red-dark); }
.er-thanks { border: 1px solid var(--ink); background: var(--white); padding: clamp(24px, 4vw, 44px); }
.er-thanks:focus { outline: none; }
.er-thanks__check { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); margin-bottom: 18px; }
.er-thanks__check .er-ico { width: 30px; height: 30px; stroke-width: 2.4; }
.er-thanks ol { padding-left: 1.2em; }

/* ---------- footer ---------- */
.er-foot { background: var(--ink); color: #d9d4c9; margin-top: var(--sec); }
.er-foot a { color: var(--paper); }
.er-foot a:hover { color: #f08a82; }
.er-foot__in { padding: clamp(40px, 5vw, 72px) var(--pad) 24px; }
.er-foot__name { font: 800 clamp(3.6rem, 15vw, 11rem)/.8 var(--display); letter-spacing: -.055em; text-transform: uppercase; color: var(--paper); margin: 0 0 clamp(28px, 4vw, 48px); }
.er-foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 640px; }
.er-foot__h { font: 600 .75rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #f08a82; margin: 0 0 14px; }
.er-foot__col ul { list-style: none; margin: 0; padding: 0; }
.er-foot__col li { margin-bottom: 8px; }
.er-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px var(--pad) 22px; border-top: 1px solid #3a3835; font-size: .9rem; }
.er-foot__base p { margin: 0; }
.er-credit a { text-decoration: underline; }
.er-end { display: flex; align-items: center; gap: 14px; margin: var(--sec) var(--pad) 0; font: 600 .7rem/1 var(--body); letter-spacing: .22em; color: var(--mute); }
.er-end span { flex: 1; height: 1px; background: var(--line); }

/* phones: bottom bar, exactly two buttons */
.er-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-top: 1px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.er-callbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font: 600 .82rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.er-callbar__agency { color: var(--ink); }
.er-callbar__book { background: var(--ink); color: var(--paper); }
@media (max-width: 999px) { body { padding-bottom: 58px; } }
@media (min-width: 1000px) { .er-callbar { display: none; } }
.er-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }
