/* yrony v4 — plain pages (project posts, about me, imprint, data protection, links, 404).
   THESIS: a page you reach from a room is printed in the site's poster world, not in the old
   dark blog template: project posts, legal pages and the 404 on the projects room's cream paper
   with Klein blue ink and a red dot; about me as the reverse print (blue paper, cream ink).
   app.css / blocks.css / v31.css read their colours from tokens, so redefining the tokens here
   re-prints all of them; the rest of this file is type and the few colours they hard-code.
   Loaded last, on plain pages only (functions.php). Room colours for the bar, side panel and
   footer come from inc/rooms.php ('page' and 'about'). */

body[data-room="page"]{
  --ground:#efeadf;--cream:#1d1dcc;--amber:#ff2a1d;--wine:#ff2a1d;
  --c-82:rgba(29,29,204,.9);--c-58:rgba(29,29,204,.72);--c-17:rgba(29,29,204,.24);--c-10:rgba(29,29,204,.12);
  --accent:#ff2a1d!important;
  --sans:Archivo,ui-sans-serif,-apple-system,BlinkMacSystemFont,sans-serif;
  --mono:"Space Mono",ui-monospace,Menlo,monospace;
  --grid:rgba(29,29,204,.065);
  background-color:var(--ground);
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:6.25vw 6.25vw;
}
/* about me: the same print, reversed */
body[data-room="page"].slug-bio{
  --ground:#1d1dcc;--cream:#efeadf;
  --c-82:rgba(239,234,223,.92);--c-58:rgba(239,234,223,.74);--c-17:rgba(239,234,223,.26);--c-10:rgba(239,234,223,.14);
  --accent:#efeadf!important;--grid:rgba(239,234,223,.07);
}

/* the bar: Klein blue mark on paper, cream on the reverse */
body[data-room="page"] .bar a.logo img{filter:brightness(0) saturate(100%) invert(14%) sepia(97%) saturate(6000%) hue-rotate(244deg)}
body[data-room="page"].slug-bio .bar a.logo img{filter:invert(1)}

/* the title: the projects room's poster headline, at page scale */
body[data-room="page"] .page-head{border-bottom:2px solid var(--cream);padding-bottom:clamp(20px,2.4vw,34px)}
body[data-room="page"] .page-head h1{font-family:Archivo;font-stretch:125%;font-weight:900;font-variation-settings:normal;
  font-size:clamp(2.4rem,7.2vw,7.5rem);line-height:.86;letter-spacing:-.035em;text-transform:uppercase;color:var(--cream);
  overflow-wrap:anywhere;hyphens:auto}
body[data-room="page"] .page-head .kicker{margin:0 0 clamp(12px,1.4vw,20px);font:700 12px/1 "Space Mono",monospace;letter-spacing:.16em;text-transform:uppercase}
body[data-room="page"] .page-head .kicker a{color:var(--cream);text-decoration:none;display:inline-flex;align-items:center;gap:10px;padding:8px 0}
body[data-room="page"] .page-head .kicker a::before{content:"";width:9px;height:9px;border-radius:50%;background:#ff2a1d}
body[data-room="page"] .page-head .kicker a:hover{text-decoration:underline;text-underline-offset:4px}

/* theme.json still gives every heading its old cream: on paper they take the print colour */
body[data-room="page"] :is(h1,h2,h3,h4,h5,h6){color:var(--cream)}
/* 404: the same poster headline, and the room list in the poster cut */
body[data-room="page"] .lost-h{font-family:Archivo;font-stretch:125%;font-weight:900;font-variation-settings:normal;text-transform:uppercase;letter-spacing:-.035em}
body[data-room="page"] .lost{border-bottom:0}
body[data-room="page"] .lost-links{border-top:2px solid var(--cream)}
body[data-room="page"] .lost-links a{font-family:Archivo;font-stretch:125%;font-weight:800;font-variation-settings:normal;text-transform:uppercase;letter-spacing:-.02em}
body[data-room="page"] .lost-links a:hover{color:#ff2a1d}

/* reading: Archivo at its normal width for prose, the poster cut for headings */
body[data-room="page"] .yr-content :is(h1,h2,h3,h4){font-family:Archivo;font-stretch:125%;font-weight:900;font-variation-settings:normal;text-transform:uppercase;letter-spacing:-.025em;line-height:.95}
body[data-room="page"] .yr-content h4{font-stretch:100%;font-weight:800;letter-spacing:0;text-transform:none}
body[data-room="page"] .yr-content .is-style-lead,body[data-room="page"] .yr-content p.has-large-font-size{font-variation-settings:normal;font-weight:500;letter-spacing:-.02em}
body[data-room="page"] .yr-content a{color:var(--cream);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
body[data-room="page"] .yr-content a:hover{color:#ff2a1d}
body[data-room="page"].slug-bio .yr-content a:hover{color:var(--cream);text-decoration-thickness:2px}
body[data-room="page"] .yr-content :is(figcaption,th,.mono){color:var(--c-58)}

/* pictures sit in the projects room's blue frame */
body[data-room="page"] .yr-content :is(.wp-block-image img,.proj-hero img){border:2px solid var(--cream)}
body[data-room="page"] :is(.sq,.vid,.show,.slab,.door-img,.hf-img){background:var(--c-10)}

/* buttons and the "say hello" line: blue on paper, red on hover */
body[data-room="page"] .yr-content :is(.wp-block-button__link,.cta a){background:var(--cream);color:var(--ground);text-decoration:none;
  font:700 13px/1 "Space Mono",monospace;letter-spacing:.12em;text-transform:uppercase;padding:16px 22px;border-radius:0}
body[data-room="page"] .yr-content :is(.wp-block-button__link,.cta a):hover{background:#ff2a1d;color:#efeadf}
body[data-room="page"] .yr-content .is-style-outline .wp-block-button__link{background:transparent;color:var(--cream);border:2px solid var(--cream)}
body[data-room="page"].slug-bio .yr-content :is(.wp-block-button__link,.cta a):hover{background:#ff2a1d;color:#efeadf}
body[data-room="page"] .yr-content .cta{border:2px solid var(--cream)}
body[data-room="page"] .yr-content .cta p{font-family:Archivo;font-stretch:125%;font-weight:900;font-variation-settings:normal;text-transform:uppercase;letter-spacing:-.025em}

/* about me: facts and the work list in the poster's mono */
body[data-room="page"] .yr-content .facts dt{color:var(--c-58)}
body[data-room="page"] .yr-content .facts a{color:var(--cream)}
body[data-room="page"] .yr-content .cv{border-top:2px solid var(--cream)}
body[data-room="page"] .yr-content .cv li{border-bottom-color:var(--c-17)}
body[data-room="page"] .yr-content .cv .y{color:var(--cream);font-weight:700}

/* legal text arrives as preformatted blocks: set it as reading text, not as code */
body[data-room="page"] .yr-content pre.wp-block-preformatted{font-family:var(--sans);font-size:1.0625rem;line-height:1.65;color:var(--c-82);
  background:none;border:0;border-left:2px solid var(--cream);padding:0 0 0 clamp(14px,1.8vw,22px);max-width:68ch;overflow-x:visible}

/* the click-to-load players: paper frame, red play */
body[data-room="page"] .yr-content .yr-consent{background:var(--c-10);border:2px solid var(--cream)}
body[data-room="page"] .yr-content .yr-consent:hover{background:var(--c-17);border-color:#ff2a1d}
body[data-room="page"] .yr-consent-play{background:#ff2a1d;color:#efeadf}

body[data-room="page"] ::selection{background:#ff2a1d;color:#efeadf}

/* about me on one screen, like the landing (Ron, 21.10: "everything visible as soon as you're on it"):
   the room is exactly the screen tall, the portrait takes whatever height is left after the title, and
   the type sizes follow the screen's height as well as its width. The footer waits below. */
body[data-room="page"].slug-bio #app{box-sizing:border-box;height:100vh;height:100svh;display:flex;flex-direction:column}
body.admin-bar[data-room="page"].slug-bio #app{height:calc(100svh - 32px)}
@media (max-width:782px){body.admin-bar[data-room="page"].slug-bio #app{height:calc(100svh - 46px)}}
body[data-room="page"].slug-bio .page-head{flex:none;padding-top:0;padding-bottom:clamp(10px,2svh,30px)}
body[data-room="page"].slug-bio .page-head h1{font-size:clamp(2rem,min(7.2vw,10svh),7.5rem)}
body[data-room="page"].slug-bio .yr-content{flex:1;min-height:0;display:flex;flex-direction:column;padding:clamp(14px,3.4svh,48px) var(--pad)}
body[data-room="page"].slug-bio .yr-content>*{margin:0}
body[data-room="page"].slug-bio .wp-block-columns.is-style-bio{flex:1;min-height:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(20px,4vw,80px);align-items:center;margin:0}
body[data-room="page"].slug-bio .is-style-bio>.wp-block-column{min-height:0;margin:0}
body[data-room="page"].slug-bio .is-style-bio>.wp-block-column:first-child{position:static;height:100%;display:flex}
body[data-room="page"].slug-bio .is-style-bio .wp-block-image{height:100%;margin:0}
body[data-room="page"].slug-bio .is-style-bio .wp-block-image img{height:100%;width:auto;max-width:42vw;aspect-ratio:2/3;object-fit:cover;object-position:50% 25%;display:block}
body[data-room="page"].slug-bio .is-style-bio>.wp-block-column:last-child{max-width:56ch}
body[data-room="page"].slug-bio .is-style-bio .is-style-lead{font-size:clamp(1.15rem,min(2.4vw,4.4svh),2.6rem);line-height:1.15;margin:0 0 clamp(10px,2.2svh,28px)}
body[data-room="page"].slug-bio .is-style-bio p:not(.is-style-lead){font-size:clamp(14px,min(1.35vw,2.4svh),23px);line-height:1.5;margin:0}
body[data-room="page"].slug-bio .yrb-cta .cta{margin-top:clamp(16px,4.4svh,56px);padding:clamp(14px,3svh,40px) clamp(16px,2.4vw,40px);gap:12px clamp(18px,3vw,40px)}
body[data-room="page"].slug-bio .yrb-cta .cta p{font-size:clamp(1.1rem,min(2.2vw,3.8svh),2.2rem)}
body[data-room="page"].slug-bio .yrb-cta{padding:0}
/* portrait phones and tablets: the portrait becomes a band across the top, the words below it */
@media (max-width:900px) and (orientation:portrait){
  body[data-room="page"].slug-bio .wp-block-columns.is-style-bio{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;align-items:stretch;gap:clamp(12px,2.4svh,32px)}
  body[data-room="page"].slug-bio .is-style-bio>.wp-block-column:first-child{display:block}
  body[data-room="page"].slug-bio .is-style-bio .wp-block-image img{width:100%;max-width:none;aspect-ratio:auto;object-position:50% 22%}
  body[data-room="page"].slug-bio .is-style-bio p:not(.is-style-lead){font-size:clamp(13px,2.05svh,19px);line-height:1.45}
  body[data-room="page"].slug-bio .is-style-bio .is-style-lead{font-size:clamp(1.05rem,3svh,1.9rem)}
  body[data-room="page"].slug-bio .yrb-cta .cta{padding:clamp(10px,1.8svh,24px) clamp(12px,3vw,24px)}
  body[data-room="page"].slug-bio .yrb-cta .cta p{font-size:clamp(1rem,2.6svh,1.6rem)}
  body[data-room="page"].slug-bio .yrb-cta .cta a{padding:12px 16px}
}
