/* site/css/clay-shell.css — the theme's OWN few rules (not copied from the preview; tools/sync-from-preview.mjs leaves
   every site/css/clay-*.css alone). Loaded after all of the preview's stylesheets. Nothing here restyles a page the
   preview draws: it covers only what the preview never had.

   1. THE PLAIN VERSION of a page (.clay-plain): the words PHP prints inside #view for search engines, link previews and
      browsers without JavaScript. Hidden while the app is on its way (html.clay-js); the app then replaces it.
   2. A FRAME (.clay-frame): a page whose real content PHP prints and the app leaves alone.
   3. A BARE page (body.clay-bare): a page set to show without the menu and footer.
   4. The WordPress staff bar. */

/* ---- 1. the plain version ---- */
.clay-js .clay-plain{display:none}
.clay-plain{max-width:680px;margin:0 auto;padding:calc(var(--top) + 46px) var(--g) 80px;font-size:18px;line-height:1.7;color:var(--soft)}
.clay-plain h1{font-weight:200;font-size:clamp(44px,11vw,84px);line-height:.95;letter-spacing:-.035em;color:var(--text);text-transform:lowercase;margin:0 0 26px}
.clay-plain h2{font-weight:200;font-size:clamp(26px,6vw,36px);line-height:1.1;letter-spacing:-.02em;color:var(--text);text-transform:lowercase;margin:44px 0 12px}
.clay-plain p{margin:0 0 1em}
.clay-plain ul,.clay-plain ol{margin:0 0 1em;padding:0 0 0 1.15em}
.clay-plain li{margin:0 0 .45em}
.clay-plain a{color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.clay-plain img{height:auto;margin:0 0 1em}
.clay-plain nav{margin:44px 0 0}
.clay-plain form{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 1.4em}
.clay-plain input[type="search"]{flex:1 1 220px;min-height:48px;padding:0 14px;font:inherit;color:var(--text);background:transparent;border:1.5px solid var(--faint);border-radius:999px}
.clay-plain button{min-height:48px;padding:0 22px;font:inherit;color:var(--ink);background:var(--cream);border:0;border-radius:999px;cursor:pointer}

/* ---- 2. a frame ---- */
.clay-frame{position:relative;z-index:1;padding:calc(var(--top) + 46px) 0 70px;min-height:calc(var(--vh) * .6)}
.clay-frame__head{margin:0 0 30px}
.clay-frame__title{font-family:var(--f-house);font-weight:200;font-size:clamp(48px,13vw,120px);line-height:.9;letter-spacing:-.04em;color:var(--text);text-transform:lowercase;margin:0 0 0 -.04em}
.clay-frame__body{font-size:18px;line-height:1.7;color:var(--soft)}
.clay-frame__body img,.clay-frame__body iframe,.clay-frame__body video{max-width:100%}
.clay-frame__body img{height:auto}
/* a plain reading page wears the reading layout the preview's privacy page uses (.pp__read); these fill the gaps for
   pieces a WordPress page may hold that the policy does not */
.clay-frame__body.pp__read{margin-top:0}
.clay-frame__body.pp__read h2{font-weight:200;font-size:clamp(30px,7.6vw,44px);line-height:1.04;letter-spacing:-.03em;color:var(--text);text-transform:lowercase;margin:52px 0 16px}
.clay-frame__body.pp__read h3{font-weight:400;font-size:19px;line-height:1.3;color:var(--text);margin:26px 0 8px}
.clay-frame__body.pp__read ul,.clay-frame__body.pp__read ol{margin:0 0 1em;padding:0 0 0 1.15em;font-size:18px;line-height:1.6}
.clay-frame__body.pp__read li{margin:0 0 7px}
/* (review, 2026-12-01) inside a frame a link must LOOK like a link: the preview's stylesheet takes the underline off
   every link on the site (its own links are dressed as buttons, rows and arrows), which leaves a link inside a plain
   page's or a plugin's words with nothing to tell it from the text around it. Buttons keep their own look. */
.clay-frame a:not(.btn):not(.button):not(.more):not(.wp-block-button__link):not(.wp-element-button):not([role="button"]){text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
/* after a page change inside the app the keyboard's place is moved to #view (so a screen reader starts at the new page):
   that is a place to read from, not a button, and gets no ring drawn round the whole page */
#view:focus,#view:focus-visible{outline:none}
/* the app draws only the footer into #view on a frame: it must not hold a whole screen open above it */
body.clay-frame-page .view{min-height:0}

/* ---- 3. a bare page ---- */
body.clay-bare .top,body.clay-bare .bar,body.clay-bare .menu,body.clay-bare .foot,body.clay-bare .to-top{display:none!important}
body.clay-bare .clay-frame{padding-top:46px}

/* ---- 4. the staff bar ---- */
body.admin-bar .top{top:32px}
@media screen and (max-width:782px){body.admin-bar .top{top:46px}}
@media screen and (max-width:600px){body.admin-bar .top{top:0}}

/* ---- 5. pieces the drawing code draws only from real content or changed Settings (never with the preview's own) ---- */
/* an agency logo from the media library (Settings, "Agencies"): the footer sizes the four logos that come with the theme
   by name (night.css .ag--orrigami and the rest); one it does not know gets a plain middle size and can never spill */
.foot .ag--custom{--k:.6}
.foot .ag--custom .ag__logo img{max-width:min(220px,100%)}
/* a story that has its own words and no outside source: its paragraphs, in the reading layout (views.js, one story) */
.art .art__read.pp__read{margin-top:26px}
