/*
Theme Name: Rebekka Karijord
Theme URI: https://rebekkakarijord.com
Author: OONA
Description: Custom theme for rebekkakarijord.com — Film & TV, Releases, Live, About and Contact.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: rk
*/

:root {
	--ink: #141315;
	--ink-deep: #0E0D0F;
	--bone: #EFEAE2;
	--soft: #CFC8BD;
	--muted: #A8A29A;
	--muted-dark: #5E5850;
	--text-dark: #3B3733;
	--line: #2A282B;
	--line-light: #CFC8BD;
	--accent: #D8A07A;
	--accent-dark: #8A4F2C;
	--serif: 'Instrument Serif', Georgia, serif;
	--sans: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--gutter: 48px;
	--max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--bone);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--bone); color: var(--ink); padding: 8px 16px; clip: auto; width: auto; height: auto; }

/* Light sections & pages */
.is-light, body.rk-light { background: var(--bone); color: var(--ink); }
.is-light a:hover, body.rk-light a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: 120px var(--gutter); }

/* Type */
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.is-light .eyebrow, body.rk-light .eyebrow { color: var(--muted-dark); }
.page-title { font-family: var(--serif); font-size: clamp(64px, 10vw, 140px); line-height: 0.9; letter-spacing: -0.02em; }
.section-title { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.caps-link { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.meta { font-size: 14px; color: var(--muted); }
.is-light .meta, body.rk-light .meta { color: var(--muted-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid currentColor; transition: background .2s, color .2s; }
.btn:hover { background: var(--bone); color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--bone); }
.is-light .btn:not(.btn--solid):hover, body.rk-light .btn:not(.btn--solid):hover { background: var(--ink); color: var(--bone); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 28px var(--gutter); }
body.rk-light .site-header { border-bottom: 1px solid #D6CFC4; }
.site-title { font-family: var(--serif); font-size: 26px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav a[aria-current="page"] { color: var(--accent); }
body.rk-light .site-nav .current-menu-item > a, body.rk-light .site-nav a[aria-current="page"] { color: var(--accent-dark); }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--bone); padding: 40px var(--gutter); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 28px; }
.site-footer .copy { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Home hero */
.hero { display: flex; flex-wrap: wrap; }
.hero__name { flex: 1 1 420px; display: flex; align-items: flex-end; padding: 48px var(--gutter); }
.hero__name h1 { font-family: var(--serif); font-size: clamp(72px, 9.2vw, 132px); line-height: 0.9; letter-spacing: -0.02em; }
.hero__photo { flex: 1.35 1 480px; position: relative; }
.hero__photo img { width: 100%; height: min(880px, 92vh); object-fit: cover; object-position: 50% 40%; }
.credit { position: absolute; right: 20px; bottom: 16px; font-size: 12px; background: rgba(20,19,21,.55); color: var(--bone); padding: 4px 10px; }

/* Featured release (home) */
.feature .wrap { max-width: 1100px; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.feature__cover { flex: 1 1 400px; max-width: 520px; }
.feature__cover img, .cover-placeholder { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #2B2A30; }
.feature__text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; }
.feature__title { font-family: var(--serif); font-size: clamp(52px, 6vw, 84px); line-height: 0.95; }
.subtitle { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--text-dark); }
.feature .btn-row { padding-top: 8px; }

/* Live list */
.live .wrap { display: flex; flex-wrap: wrap; gap: 64px; }
.live__head { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.live__head h2 { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.live__list { flex: 2 1 520px; display: flex; flex-direction: column; }
.show { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.show__date { flex: 0 0 160px; font-size: 14px; letter-spacing: 0.08em; color: var(--muted); }
.show__place { flex: 1 1 220px; display: flex; flex-direction: column; }
.show__city { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.show__venue { font-size: 14px; color: var(--muted); }
.live__empty { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); }
.live__image img, .live__image .ph { width: 100%; aspect-ratio: 16 / 5; max-height: 420px; object-fit: cover; object-position: 50% 22%; background: #2E3A44; }
@media (max-width: 720px) { .live__image img { aspect-ratio: 16 / 9; } }

/* Grids (Film & TV, Releases) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 56px 28px; }
.tile { display: flex; flex-direction: column; gap: 14px; }
.tile__img { aspect-ratio: 1 / 1; background: #2B2A30; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.tile:hover .tile__img img { transform: scale(1.03); }
.tile__title { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.tile__meta { font-size: 14px; color: var(--muted); }
.is-light .tile__meta, body.rk-light .tile__meta { color: var(--muted-dark); }
.grid-block { display: flex; flex-direction: column; gap: 40px; }
.grid-block__title { padding-top: 32px; border-top: 1px solid var(--line); }
body.rk-light .grid-block__title { border-top-color: var(--line-light); }
.page-head { padding: 96px var(--gutter) 72px; }
.page-body { padding: 0 var(--gutter) 120px; }

/* Single release */
.release { padding: 72px var(--gutter) 120px; }
.release__back { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); }
.release__grid { display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; margin-top: 40px; }
.release__cover { flex: 1 1 440px; }
.release__cover img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.release__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 24px; }
.release__title { font-family: var(--serif); font-size: clamp(56px, 6.5vw, 88px); line-height: 0.92; letter-spacing: -0.01em; }
.release__body { display: flex; flex-direction: column; gap: 16px; color: var(--text-dark); }
.release__body p:first-child { font-size: 18px; }
.pullquote { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.pullquote p { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.pullquote cite { font-style: normal; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); }
.list-block h2 { margin: 0 0 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dark); }
.tracklist { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.tracklist li { display: flex; gap: 20px; padding: 10px 0; border-top: 1px solid #DDD6CB; font-size: 17px; counter-increment: t; }
.tracklist li::before { content: counter(t, decimal-leading-zero); flex: 0 0 28px; font-size: 14px; color: var(--muted-dark); padding-top: 3px; }
.credits div { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 10px 0; border-top: 1px solid #DDD6CB; }
.credits dt { flex: 0 0 200px; font-size: 14px; color: var(--muted-dark); }
.credits dd { flex: 1 1 240px; margin: 0; font-size: 15px; }
.more { background: var(--ink); color: var(--bone); padding: 96px var(--gutter); }
.more .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }

/* About / generic page */
.about__grid { display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; }
.about__photo { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.about__photo img { width: 100%; max-height: 820px; object-fit: cover; }
.about__photo figcaption { font-size: 12px; color: var(--muted); }
.about__text { flex: 1.15 1 460px; max-width: 640px; display: flex; flex-direction: column; gap: 24px; font-size: 17px; line-height: 1.75; color: var(--soft); }
.about__text strong { font-weight: 500; color: var(--bone); }
.about__text .btn-row { padding-top: 12px; color: var(--bone); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; }
.contact__photo { flex: 1 1 460px; position: relative; }
.contact__photo img { width: 100%; height: 100%; min-height: 640px; max-height: 960px; object-fit: cover; object-position: 50% 30%; }
.contact__credit { left: 20px; right: auto; }
.contact__body { flex: 1 1 460px; display: flex; flex-direction: column; gap: 48px; padding: 72px 64px; }
.contact__groups { display: flex; flex-direction: column; gap: 44px; }
.contact__group { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact__group h2 { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.contact__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 32px; }
.contact__card { display: flex; flex-direction: column; gap: 4px; }
.contact__card .label { font-size: 13px; color: var(--muted); }
.contact__card .name { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.contact__card a { color: var(--soft); }

.band { padding: 96px var(--gutter); }
.band .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.band p { font-family: var(--serif); font-size: 40px; line-height: 1.1; }

.entry-content > * + * { margin-top: 1em; }

@media (max-width: 720px) {
	:root { --gutter: 20px; }
	.section, .band, .more { padding-top: 72px; padding-bottom: 72px; }
	.site-nav ul { gap: 18px; font-size: 12px; }
	.hero__photo img { height: 70vh; }
	.contact__body { padding: 48px var(--gutter); }
	.contact__photo img { min-height: 420px; }
	.page-head { padding-top: 56px; padding-bottom: 40px; }
	.show__date { flex-basis: 100%; }
	.credits dt { flex-basis: 100%; }
}

/* Phones: one-line menu, two-column grids, no repeated name on the home page. */
@media (max-width: 720px) {
	.site-header { padding-top: 20px; padding-bottom: 20px; gap: 10px; }
	.site-nav ul { gap: 0 16px; font-size: 11px; letter-spacing: 0.1em; }
	.home .site-header .site-title { display: none; }
	.hero__name { padding-top: 24px; padding-bottom: 32px; }
	.grid, .more .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
	.tile { gap: 10px; }
	.tile__title { font-size: 19px; }
	.tile__meta { font-size: 12px; line-height: 1.4; }
	.feature .wrap, .release__grid, .about__grid { gap: 40px; }
	.band p { font-size: 32px; }
}
