/*
Theme Name: Réhn
Theme URI: https://réhn.com
Author: EG Media
Author URI: https://egmedia.dk
Description: One pager til Réhn cashmere. Editorial hero, launch-tilmelding, About us, kollektion og nyhedsbrev. Billeder og info redigeres under Udseende › Tilpas › Réhn forside.
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rehn
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/newsreader-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300; font-display: swap; src: url("assets/fonts/newsreader-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/urbanist-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/urbanist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/urbanist-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--ground: #F6F4F0;
	--sand: #ECE8E1;
	--stone: #E6E2DB;
	--oat: #D9D0C3;
	--mist: #E1E4E5;
	--line: #E2DDD5;
	--ink: #1D1D1B;
	--text: #3A3733;
	--muted: #5C5852;
	--footer-muted: #B9B3AA;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gutter: clamp(20px, 5.5vw, 80px);
	--section: clamp(72px, 9.7vw, 140px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--muted); }
em { font-style: italic; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; }
[id] { scroll-margin-top: 24px; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* ---------- Type ---------- */
.micro { font-size: 11px; line-height: 1.55; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; }
.eyebrow, .label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.3vw, 76px); line-height: 1.03; letter-spacing: -0.01em; }
.display--m { font-size: clamp(38px, 3.9vw, 56px); line-height: 1.05; }
.display--s { font-size: clamp(32px, 3vw, 44px); line-height: 1.1; }
.lead { font-size: clamp(16px, 1.25vw, 18px); color: var(--text); }
.body { color: var(--text); }
.fineprint { font-size: 13px; color: var(--muted); }
.error { color: #8A2A1B; font-size: 15px; margin-bottom: 20px; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-block; border: 0; background: var(--ink); color: #fff; padding: 18px 36px; font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s ease; }
.btn:hover, .btn:focus-visible { background: #3A3733; color: #fff; }
.link { font-size: 14px; letter-spacing: 0.06em; text-underline-offset: 6px; }
.underline { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

/* ---------- Images / placeholders ---------- */
.rehn-img { width: 100%; height: 100%; object-fit: cover; }
.rehn-ph { width: 100%; height: 100%; background: var(--oat); position: relative; }
.rehn-ph span { position: absolute; left: 20px; bottom: 16px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #4A463F; }

/* ---------- Hero ---------- */
.hero { --hero-h: max(560px, min(100svh, 62.5vw)); position: relative; height: var(--hero-h); overflow: hidden; color: #fff; background: #6F675D; }
.hero__media { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero__col .rehn-img, .about__media .rehn-img { position: absolute; inset: 0; }
.hero__col { position: relative; overflow: hidden; }
.hero__col--left .rehn-ph { background: #6F675D; }
.hero__col--right .rehn-ph { background: #7C8586; }
.hero .rehn-ph span { color: rgba(255,255,255,.75); top: 92px; bottom: auto; left: 40px; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.22)); pointer-events: none; }
.hero__top { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 32px 40px; }
.hero__top a { color: #fff; text-decoration: none; }
.hero__top a:hover { opacity: .75; }
.hero__nav { display: flex; gap: 28px; }
.hero__cta { display: flex; justify-content: flex-end; }
.hero__notes { position: absolute; z-index: 2; left: 40px; right: 40px; top: 140px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero__note-right { grid-column: 4; max-width: 300px; }
.hero__logo { position: absolute; z-index: 2; left: 40px; bottom: 40px; width: min(calc(100% - 80px), calc((var(--hero-h) - 250px) * 2.31)); margin: 0; line-height: 0; }
.hero__logo svg { width: 100%; height: auto; }

/* ---------- Intro ---------- */
.intro { padding-top: 120px; padding-bottom: 120px; align-items: end; }
.intro__head { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 24px; }
.intro__body { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 32px; }

/* ---------- Facts ---------- */
.facts { background: var(--sand); padding-top: 44px; padding-bottom: 44px; display: flex; flex-wrap: wrap; gap: 40px; }
.facts > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fact { font-family: var(--serif); font-size: clamp(22px, 1.95vw, 28px); line-height: 1.2; }

/* ---------- Sign-up ---------- */
.signup { padding-top: var(--section); padding-bottom: var(--section); }
.signup__text { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 28px; }
.signup__form { grid-column: 7 / span 6; padding-top: 12px; }
.form { display: flex; flex-direction: column; gap: 32px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 10px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.field input, .field select { width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 10px 0; font-family: var(--sans); font-size: 17px; font-weight: 300; letter-spacing: 0; text-transform: none; color: var(--ink); -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231D1D1B'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; }
.field input::placeholder { color: #8A857D; }
.field input:focus, .field select:focus { outline: none; border-bottom-width: 2px; padding-bottom: 9px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.form__foot { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; flex-direction: column; gap: 16px; padding: 40px; background: var(--sand); }

/* ---------- Words ---------- */
.words { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px var(--gutter); display: flex; justify-content: center; flex-wrap: wrap; column-gap: clamp(22px, 5vw, 72px); row-gap: 10px; font-size: 15px; letter-spacing: 0.24em; color: var(--muted); font-weight: 400; }

/* ---------- About ---------- */
.about { padding-top: var(--section); padding-bottom: var(--section); align-items: center; }
.about__media { grid-column: 1 / span 5; aspect-ratio: 4 / 5.3; position: relative; overflow: hidden; }
.about__media .rehn-ph { background: var(--mist); }
.about__text { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 24px; }
.about__text .display { margin-bottom: 8px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1.2; padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.signature .label { font-family: var(--sans); font-style: normal; font-size: 12px; }

/* ---------- Collection ---------- */
.collection { padding-bottom: var(--section); display: flex; flex-direction: column; gap: 40px; }
.collection__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.collection__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.collection__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.style { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.style .rehn-img, .style .rehn-ph { aspect-ratio: 3 / 4; height: auto; }
.style:nth-child(2) .rehn-ph { background: var(--stone); }
.style:nth-child(3) .rehn-ph { background: var(--mist); }
.style figcaption { font-size: 15px; letter-spacing: 0.06em; font-weight: 400; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--sand); padding: 110px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.newsletter__form { display: flex; gap: 16px; align-items: flex-end; width: min(620px, 100%); padding-top: 12px; text-align: left; }
.newsletter__form .field { flex: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ground); padding: 80px var(--gutter) 48px; }
.site-footer a { color: var(--ground); text-decoration: none; }
.site-footer a:hover { color: var(--footer-muted); }
.site-footer .label { color: var(--footer-muted); }
.site-footer__grid { display: grid; grid-template-columns: 4fr 3fr 3fr 2fr; gap: 24px; }
.site-footer__logo svg { width: 150px; height: auto; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer__bottom { margin-top: 96px; border-top: 1px solid #3A3733; padding-top: 24px; font-size: 13px; letter-spacing: 0.06em; color: var(--footer-muted); }

/* ---------- Sub pages ---------- */
.site-header { padding: 28px var(--gutter); border-bottom: 1px solid var(--line); display: flex; justify-content: center; }
.site-header__logo svg { width: 120px; height: auto; }
.page { padding-top: 80px; padding-bottom: 120px; max-width: 820px; margin: 0 auto; }
.page__content { margin-top: 40px; color: var(--text); }
.page__content h2 { font-family: var(--serif); font-size: 30px; margin: 40px 0 12px; }
.page__content p, .page__content ul { margin: 0 0 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
	.hero__top > span, .hero__note-right { display: none; }
	.hero__notes { grid-template-columns: 1fr; }
	.hero { --hero-h: max(620px, min(100svh, 90vw)); }
	.intro__head, .intro__body, .signup__text, .signup__form { grid-column: 1 / -1; }
	.intro__body { margin-top: 32px; }
	.signup__form { margin-top: 48px; }
	.facts { gap: 28px; }
	.facts > div { flex: 1 1 40%; }
	.collection__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
	.hide-sm { display: none !important; }
	.hero { height: 100svh; min-height: 620px; max-height: 900px; }
	.hero__media { grid-template-columns: minmax(0, 1fr); }
	.hero__col--left { display: none; }
	.hero__top { grid-template-columns: 1fr; padding: 22px 20px; }
	.hero__cta { justify-content: flex-start; }
	.hero__notes { left: 20px; right: 20px; top: auto; bottom: calc((100vw - 40px) * 0.433 + 44px); grid-template-columns: 1fr; }
	.hero__logo { left: 20px; bottom: 24px; width: calc(100% - 40px); }
	.intro { padding-top: 64px; padding-bottom: 64px; }
	.about__media, .about__text { grid-column: 1 / -1; }
	.about__text { margin-top: 40px; }
	.collection__grid, .collection__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.collection__grid--3 .style:nth-child(3) { grid-column: span 2; }
	.collection__grid--3 .style:nth-child(3) .rehn-img, .collection__grid--3 .style:nth-child(3) .rehn-ph { aspect-ratio: 3 / 2; }
	.newsletter { padding-top: 64px; padding-bottom: 64px; align-items: stretch; text-align: left; }
	.newsletter__form { flex-direction: column; align-items: stretch; }
	.site-footer { padding-top: 48px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.site-footer__bottom { margin-top: 48px; }
	.btn { text-align: center; }
	.intro .btn, .form .btn { width: 100%; }
	.form__foot { align-items: stretch; }
}

@media (max-width: 520px) {
	.form__row { grid-template-columns: 1fr; }
	.facts { gap: 24px; }
	.words { font-size: 13px; letter-spacing: 0.2em; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
