/*
Theme Name: Webhaus
Theme URI: https://webhaus.info/
Author: Webhaus LLC
Description: The publisher's home page: the titles Webhaus publishes, its press releases, and a contact line. Direction B "Haus".
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: webhaus
*/

/* One look, light. Heavy black rules divide the page; the only colours are the three of the mark and the titles' own. */
:root {
	color-scheme: light;
	--bg: #e9ebee; --card: #ffffff; --ink: #14161a; --dim: #555b66; --soft: #cfd3d9;
	--red: #d8352a; --blue: #1d4fa3; --yellow: #f2b90f;
	--frame-bar: #dfe2e7; --frame-dot: #a9aeb8; --frame-url: #5d6370;
	--sans: "Jost", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--rule: 3px solid var(--ink);
	--hair: 1.5px solid var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
a { color: inherit; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 9; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* header */
.site-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 22px; border-bottom: var(--rule); }
.logo { display: flex; align-items: center; gap: 10px; font: 600 1.5rem/1 var(--sans); letter-spacing: .01em; text-transform: lowercase; text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 22px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* home: hero */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: end; padding-block: clamp(28px, 6vw, 72px); border-bottom: var(--rule); }
.hero h1 { margin: 0; font: 700 clamp(3.4rem, 13vw, 11rem)/.82 var(--sans); letter-spacing: -.04em; text-transform: lowercase; }
.hero p { margin: 22px 0 0; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.35; max-width: 31ch; font-weight: 500; text-wrap: balance; }
.hero svg { width: 100%; max-width: 420px; height: auto; justify-self: end; }

/* section heads */
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 28px 20px; }
.head h2, .head h1 { margin: 0; font: 700 clamp(1.6rem, 3.4vw, 2.6rem)/1 var(--sans); letter-spacing: -.02em; text-transform: lowercase; }
.head span, .head a { font-weight: 500; color: var(--dim); }

/* wordmarks, each in its title's own face */
.wm { font-weight: 700; line-height: 1.05; white-space: nowrap; }
.wm b { font-weight: inherit; color: var(--ac); }
.wm-sequoia { font-family: "Schibsted Grotesk", Arial, sans-serif; letter-spacing: -.01em; }
.wm-paris { font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.wm-anaheim { font-family: "Open Sans", Arial, sans-serif; font-weight: 300; text-transform: uppercase; letter-spacing: .12em; }
.wm-bavarian { font-family: "UnifrakturCook", Georgia, serif; font-size: 1.12em; }
.wm-longbeach { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; }
.wm-boracay { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }

/* titles */
.titles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: clamp(36px, 6vw, 72px); border-bottom: var(--rule); }
.title-card { background: var(--card); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.plate { background: var(--tb); color: var(--tf); padding: 22px 24px 0; display: grid; gap: 18px; overflow: hidden; }
.plate .wm { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.frame { display: block; background: #ffffff; border-radius: 6px 6px 0 0; overflow: hidden; text-decoration: none; transition: transform .3s; }
.title-card:hover .frame { transform: translateY(-6px); }
.frame-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: var(--frame-bar); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--frame-dot); }
.frame-bar span { margin-left: 8px; font: 400 11px/1 var(--mono); color: var(--frame-url); }
.frame img { display: block; width: 100%; aspect-ratio: 1200 / 560; object-fit: cover; object-position: top; }
.title-info { padding: 20px 24px 24px; display: grid; gap: 12px; align-content: start; }
.title-info p { margin: 0; font-size: 1.08rem; font-weight: 500; line-height: 1.35; }
.title-info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.title-info li { border: var(--hair); padding: 3px 10px; font-size: .88rem; font-weight: 500; }
.title-info a { justify-self: start; font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* press: the list, and the reading sheet */
.press { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 32px; padding-bottom: clamp(36px, 6vw, 72px); }
.press-list { display: grid; align-content: start; border-top: var(--hair); margin: 0; padding: 0; list-style: none; }
.press-list a { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px 12px; padding: 14px 12px 14px 0; border-bottom: var(--hair); text-decoration: none; }
.press-list i { width: 14px; height: 14px; margin-top: 5px; background: var(--tb, var(--ink)); grid-row: 1 / 3; }
.press-list li:nth-child(3n+1) i { border-radius: 50%; }
.press-list li:nth-child(3n) i { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.press-list time { font-size: .85rem; font-weight: 500; color: var(--dim); }
.press-list strong { font-weight: 600; line-height: 1.25; }
.press-list a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }
.press-list a[aria-current] { background: var(--ink); color: #e9ebee; padding-left: 12px; }
.press-list a[aria-current] time { color: var(--soft); }
.press-wide { grid-template-columns: minmax(0, 1fr); }

.sheet { background: var(--card); padding: clamp(22px, 4vw, 48px); align-self: start; min-width: 0; }
.kicker { margin: 0 0 16px; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.kicker i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.sheet h1, .sheet h2.sheet-title { margin: 0 0 20px; font: 600 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
.sheet h2.sheet-title a { text-decoration: none; }
.sheet h2.sheet-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: 64ch; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1em; }
.entry-content h2 { margin: 1.6em 0 .5em; font: 600 1.35rem/1.2 var(--sans); }
.entry-content a { text-decoration-thickness: 1.5px; }
.entry-content a:hover { color: var(--blue); }
.boiler { margin: 28px 0 0; padding-top: 16px; border-top: var(--hair); font-size: .92rem; color: var(--dim); max-width: 64ch; }

/* a release on its own page */
.release { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 20px 32px; padding-block: 28px clamp(36px, 6vw, 72px); align-items: start; }
.release aside { display: grid; gap: 20px; min-width: 0; }
.release aside .title-card:hover .frame { transform: none; }
.back { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.page-sheet { margin-block: 0 clamp(36px, 6vw, 72px); max-width: 860px; }

/* the line above the footer, and the footer */
.write { border-top: var(--rule); padding-block: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.write i { width: clamp(36px, 6vw, 64px); aspect-ratio: 1; background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.write p { margin: 0; font: 600 clamp(1.3rem, 3vw, 2.2rem)/1.15 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
.write a { text-decoration-thickness: 2px; text-underline-offset: 6px; }
.write a:hover { color: var(--blue); }
.site-foot { border-top: var(--rule); padding-block: 26px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-weight: 500; }
.site-foot p { margin: 0; }
.site-foot .quiet { flex-basis: 100%; font-size: .88rem; font-weight: 400; color: var(--dim); }
.site-foot .quiet a { text-decoration: none; }
.site-foot .quiet a:hover { text-decoration: underline; }

@media (max-width: 860px) {
	.hero, .titles, .press, .release { grid-template-columns: minmax(0, 1fr); }
	.hero svg { max-width: 220px; justify-self: start; }
	.press .sheet { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
