/*
Theme Name: The Welcome Rag
Theme URI: https://welcomerag.com
Author: Built for Strokinut
Description: A newsprint-styled publication theme. Front page runs as a live blog, monthly Issues collect the digest, gated sections sit behind age-verified membership, and a die-cut column slot runs alongside. Sponsored, not owned.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: welcome-rag
*/

/* ============================================================
   1. TOKENS
   ============================================================ */
:root{
  --paper:        #f5f5f3;
  --paper-warm:   #eeeeeb;
  --paper-deep:   #e4e4e0;
  --paper-edge:   #d6d6d1;

  --ink:          #16150f;
  --ink-body:     #2a2822;
  --ink-soft:     #5b5a52;
  --ink-faint:    #8b8a80;

  --rule:         #1a1913;
  --rule-hair:    rgba(26,25,19,.28);

  --spot:         #a8291b;   /* newspaper spot red */
  --spot-deep:    #7d1c12;

  --wet-tint:     206;       /* hue for the sheen */

  --measure:      66ch;
  --gutter:       clamp(1rem, 2.4vw, 2.25rem);
  --rule-w:       1px;

  --f-masthead:   "Playfair Display", "Old Standard TT", "Times New Roman", serif;
  --f-head:       "Playfair Display", Georgia, "Times New Roman", serif;
  --f-kicker:     "Archivo Narrow", "Oswald", "Helvetica Neue", Arial, sans-serif;
  --f-body:       "Libre Baskerville", Georgia, "Times New Roman", serif;
  --f-ui:         "Archivo Narrow", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   2. PAPER — base surface, fibre noise, halftone
   ============================================================ */
*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background-color:var(--paper);
  color:var(--ink-body);
  font-family:var(--f-body);
  font-size:clamp(15px,.55vw + 13.4px,17px);
  line-height:1.66;
  position:relative;
  overflow-x:hidden;
}

/* fibre grain — feTurbulence baked to a data URI, multiplied over the paper */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none; z-index:0;
  opacity:.5;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

/* halftone rosette — very faint, gives the eye something to catch at close range */
body::after{
  content:"";
  position:fixed; inset:0;
  pointer-events:none; z-index:0;
  opacity:.05;
  background-image:radial-gradient(circle at 50% 50%, var(--ink) .6px, transparent .65px);
  background-size:4px 4px;
}

/* ============================================================
   3. WET MARKS — the motif
   Translucent, pearlescent, slightly raised. Placed sparingly:
   one over the masthead corner, one bleeding off the column
   rule, one pooling near the sponsor slot. Abstract, glossy,
   never the loudest thing on the page.
   ============================================================ */
.wet-layer{
  position:absolute; inset:0;
  pointer-events:none;
  z-index:1;
  overflow:hidden;
  opacity:var(--wet-strength,1);
}
.wet{
  position:absolute;
  display:block;
  overflow:visible;
  pointer-events:none;
  opacity:var(--mark-opacity,1);
}

/* The four shading passes. Geometry lives in inc/marks.php; everything that
   makes it look wet happens here, so it can be re-tuned without regenerating. */
.mk__soak{ fill:rgba(104,95,70,.10); filter:blur(11px); mix-blend-mode:multiply; }  /* paper darkening around the mark */
.mk__body{ fill:rgba(150,140,110,.14); mix-blend-mode:multiply; filter:blur(1.2px); } /* the saturated area itself */
.mk__edge{ fill:none; stroke:rgba(108,99,74,.20); stroke-width:2; mix-blend-mode:multiply; filter:blur(1.6px); } /* tide line */
.mk__pool{ fill:rgba(255,253,244,.34); filter:blur(4px); }                          /* the thick part, sitting on top */
.mk__spec{ fill:#fff; filter:url(#wr-spec); mix-blend-mode:screen; opacity:.9; }    /* rim shine */
.mk__wet { fill:#fff; filter:url(#wr-wet);  mix-blend-mode:screen; opacity:.55; }   /* broad sheen in the pool */

/* placements — sparse, off the edges, sitting on the sheet itself */
.wet--masthead{ top:-3rem;    right:-4%;  width:min(340px,34vw); transform:rotate(-8deg);  --mark-opacity:.85; }
.wet--lede    { top:20%;      left:-8%;   width:min(280px,30vw); transform:rotate(148deg); --mark-opacity:.7; }
.wet--gutter  { top:47%;      right:-7%;  width:min(320px,34vw); transform:rotate(22deg);  --mark-opacity:.62; }
.wet--sponsor { top:72%;      left:9%;    width:min(200px,22vw); transform:rotate(-38deg); --mark-opacity:.5; }
.wet--footer  { bottom:-4rem; left:34%;   width:min(330px,38vw); transform:rotate(68deg);  --mark-opacity:.55; }
.wet--card    { top:-46%;     right:-16%; width:200px;           transform:rotate(-24deg); --mark-opacity:.5; }
.wet::after{ content:none; }

@media (max-width:700px){
  .wet--lede,.wet--gutter{ display:none; }
}

/* ============================================================
   4. SHELL
   ============================================================ */
.wrap{
  width:min(1180px,100% - 2*var(--gutter));
  margin-inline:auto;
  position:relative;
  z-index:2;
}
.sheet{
  position:relative;
  background:linear-gradient(178deg,var(--paper-warm),var(--paper) 22%,var(--paper) 78%,var(--paper-deep));
  box-shadow:
    0 0 0 1px var(--paper-edge),
    0 1px 0 rgba(255,255,255,.7) inset,
    0 22px 48px -30px rgba(20,19,15,.5);
  padding-block:clamp(1.5rem,3vw,2.75rem);
  padding-inline:clamp(1rem,3vw,3rem);
  margin-block:clamp(1rem,3vw,2.5rem);
}

/* ============================================================
   5. MASTHEAD
   ============================================================ */
.masthead{ position:relative; text-align:center; padding-top:.4rem; }

.masthead__ears{
  display:flex; justify-content:space-between; align-items:flex-end;
  font-family:var(--f-kicker);
  font-size:.66rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-soft);
  border-bottom:var(--rule-w) solid var(--rule-hair);
  padding-bottom:.45rem; margin-bottom:.9rem;
}
.masthead__ear{ flex:1; }
.masthead__ear--r{ text-align:right; }

.masthead__title{
  font-family:var(--f-masthead);
  font-weight:900;
  font-size:clamp(2.6rem,10.5vw,7rem);
  line-height:.86;
  letter-spacing:-.02em;
  color:var(--ink);
  margin:0;
  text-transform:uppercase;
  font-feature-settings:"liga" 1;
}
.masthead__title a{ color:inherit; text-decoration:none; }
.masthead__title .the{
  display:block;
  font-size:.24em; letter-spacing:.42em; text-indent:.42em;
  font-weight:700; margin-bottom:.35em; color:var(--ink-soft);
}

.masthead__strap{
  font-family:var(--f-kicker);
  text-transform:uppercase; letter-spacing:.2em;
  font-size:.68rem; color:var(--ink-soft);
  margin:.85rem 0 0;
}

.masthead__rules{ margin:1rem 0 .55rem; }
.masthead__rules hr{
  border:0; height:3px; background:var(--rule); margin:0;
}
.masthead__rules hr + hr{ height:1px; margin-top:2px; }

.dateline{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:.4rem 1rem;
  font-family:var(--f-kicker);
  font-size:.66rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-soft);
  border-bottom:2px solid var(--rule);
  padding-bottom:.5rem;
}

/* nav */
.rag-nav{ border-bottom:var(--rule-w) solid var(--rule-hair); }
.rag-nav ul{
  list-style:none; margin:0; padding:.6rem 0;
  display:flex; flex-wrap:wrap; justify-content:center; gap:.15rem 1.6rem;
  font-family:var(--f-kicker);
  text-transform:uppercase; letter-spacing:.13em; font-size:.74rem;
}
.rag-nav a{ color:var(--ink); text-decoration:none; padding:.2rem 0; border-bottom:2px solid transparent; }
.rag-nav a:hover,.rag-nav a:focus-visible{ border-bottom-color:var(--spot); color:var(--spot-deep); }
.rag-nav .is-locked::after{ content:"⌧"; margin-left:.35em; font-size:.85em; color:var(--ink-faint); }

/* ============================================================
   6. FRONT PAGE GRID — live blog
   ============================================================ */
.front{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);
  gap:0 clamp(1.2rem,2.6vw,2.4rem);
  padding-top:1.4rem;
}
.front__main{ min-width:0; }
.front__rail{
  min-width:0;
  border-left:var(--rule-w) solid var(--rule-hair);
  padding-left:clamp(1.2rem,2.6vw,2.4rem);
}
@media (max-width:860px){
  .front{ grid-template-columns:1fr; }
  .front__rail{ border-left:0; padding-left:0; border-top:2px solid var(--rule); margin-top:1.8rem; padding-top:1.4rem; }
}

/* lede story */
.lede{ border-bottom:2px solid var(--rule); padding-bottom:1.5rem; margin-bottom:1.5rem; }
.kicker{
  font-family:var(--f-kicker);
  text-transform:uppercase; letter-spacing:.19em;
  font-size:.66rem; color:var(--spot); font-weight:700;
  margin:0 0 .5rem;
}
.lede__title{
  font-family:var(--f-head);
  font-weight:900; line-height:1.02;
  font-size:clamp(1.9rem,5.2vw,3.4rem);
  letter-spacing:-.015em;
  margin:0 0 .6rem; color:var(--ink);
}
.lede__title a{ color:inherit; text-decoration:none; }
.lede__title a:hover{ text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px; }
.standfirst{
  font-size:1.06rem; line-height:1.55; color:var(--ink-soft);
  margin:0 0 .9rem; max-width:52ch;
}
.byline{
  font-family:var(--f-kicker); text-transform:uppercase;
  letter-spacing:.14em; font-size:.64rem; color:var(--ink-faint);
  border-top:var(--rule-w) solid var(--rule-hair);
  border-bottom:var(--rule-w) solid var(--rule-hair);
  padding:.35rem 0; margin-bottom:1rem;
  display:flex; gap:1rem; flex-wrap:wrap;
}

/* drop cap on the first para of the lede and on single posts */
.dropcap > p:first-of-type::first-letter,
.entry__body > p:first-of-type::first-letter{
  float:left;
  font-family:var(--f-head);
  font-weight:900;
  font-size:3.5em;
  line-height:.78;
  padding:.06em .1em 0 0;
  color:var(--ink);
}

/* the running river of shorter posts */
.river{ column-count:2; column-gap:clamp(1.1rem,2.4vw,2rem); column-rule:var(--rule-w) solid var(--rule-hair); }
@media (max-width:620px){ .river{ column-count:1; } }
.river__item{ break-inside:avoid; padding-bottom:1.15rem; margin-bottom:1.15rem; border-bottom:var(--rule-w) dotted var(--rule-hair); }
.river__title{ font-family:var(--f-head); font-weight:700; font-size:1.16rem; line-height:1.18; margin:.15rem 0 .4rem; }
.river__title a{ color:var(--ink); text-decoration:none; }
.river__title a:hover{ color:var(--spot-deep); }
.river__meta{ font-family:var(--f-kicker); text-transform:uppercase; letter-spacing:.12em; font-size:.6rem; color:var(--ink-faint); }
.river__excerpt{ font-size:.92rem; margin:.4rem 0 0; color:var(--ink-body); }

/* live ticker strip */
.ticker{
  border-top:2px solid var(--rule); border-bottom:2px solid var(--rule);
  padding:.5rem 0; margin:0 0 1.4rem;
  display:flex; align-items:baseline; gap:.9rem;
  font-family:var(--f-kicker); font-size:.7rem;
  text-transform:uppercase; letter-spacing:.14em;
}
.ticker__flag{
  background:var(--spot); color:var(--paper);
  padding:.18rem .5rem; font-weight:700; letter-spacing:.16em;
  white-space:nowrap;
}
.ticker__items{ color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ============================================================
   7. THE CUTOUT — "Coming Together with DoubleA"
   A die-cut insert. Dashed scissor rule, slight rotation, its
   own paper stock, sits in the rail like a clipped column.
   ============================================================ */
.cutout{
  position:relative;
  background:
    linear-gradient(184deg,#fbf8ee,#f0ece0);
  border:2px dashed rgba(26,25,19,.45);
  padding:1.15rem 1.15rem 1.3rem;
  margin:0 0 1.8rem;
  transform:rotate(-1.1deg);
  box-shadow:0 10px 24px -18px rgba(20,19,15,.65);
}
.cutout::before{
  content:"✂";
  position:absolute; top:-.72rem; left:.85rem;
  background:var(--paper-warm);
  font-size:.95rem; line-height:1; padding:0 .28rem;
  color:var(--ink-soft);
}
.cutout__flag{
  font-family:var(--f-kicker);
  text-transform:uppercase; letter-spacing:.17em;
  font-size:.6rem; color:var(--spot); font-weight:700;
  margin:0 0 .3rem;
}
.cutout__title{
  font-family:var(--f-head); font-weight:900;
  font-size:1.42rem; line-height:1.05; margin:0 0 .1rem; color:var(--ink);
}
.cutout__title small{ display:block; font-family:var(--f-kicker); font-weight:400; font-size:.58rem; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-faint); margin-top:.45rem; }
.cutout__rule{ border:0; border-top:var(--rule-w) solid var(--rule-hair); margin:.7rem 0; }
.cutout__body{ font-size:.92rem; line-height:1.6; }
.cutout__body p{ margin:0 0 .7rem; }
.cutout__sig{
  font-family:var(--f-head); font-style:italic;
  font-size:1rem; color:var(--ink-soft); margin-top:.6rem;
}
.cutout__more{
  font-family:var(--f-kicker); text-transform:uppercase;
  letter-spacing:.14em; font-size:.62rem;
  color:var(--spot-deep); text-decoration:none; border-bottom:1px solid currentColor;
}

/* ============================================================
   8. RAIL BLOCKS — issues, subscribe, sponsor
   ============================================================ */
.block{ margin:0 0 1.9rem; }
.block__head{
  font-family:var(--f-kicker);
  text-transform:uppercase; letter-spacing:.18em; font-size:.66rem;
  font-weight:700; color:var(--ink);
  border-bottom:2px solid var(--rule); padding-bottom:.35rem; margin:0 0 .8rem;
  display:flex; justify-content:space-between; align-items:baseline; gap:.5rem;
}
.block__head a{ color:var(--spot-deep); text-decoration:none; font-size:.9em; }

.issue-list{ list-style:none; margin:0; padding:0; }
.issue-list li{ border-bottom:var(--rule-w) dotted var(--rule-hair); padding:.5rem 0; display:flex; gap:.7rem; align-items:baseline; }
.issue-list .no{ font-family:var(--f-kicker); font-size:.62rem; letter-spacing:.12em; color:var(--ink-faint); white-space:nowrap; }
.issue-list a{ color:var(--ink); text-decoration:none; font-size:.95rem; }
.issue-list a:hover{ color:var(--spot-deep); }

/* subscribe */
.subscribe{
  border:2px solid var(--rule);
  padding:1.05rem 1rem 1.15rem;
  background:rgba(255,255,255,.42);
}
.subscribe h3{ font-family:var(--f-head); font-weight:900; font-size:1.3rem; line-height:1.1; margin:.1rem 0 .4rem; }
.subscribe p{ font-size:.87rem; color:var(--ink-soft); margin:0 0 .8rem; }
.subscribe form{ display:flex; flex-direction:column; gap:.5rem; }
.subscribe input[type=email]{
  font-family:var(--f-body); font-size:.95rem;
  padding:.6rem .65rem; border:1px solid var(--rule); background:var(--paper);
  color:var(--ink); width:100%;
}
.subscribe button, .btn{
  font-family:var(--f-kicker); text-transform:uppercase; letter-spacing:.15em;
  font-size:.72rem; font-weight:700;
  background:var(--ink); color:var(--paper);
  border:0; padding:.68rem 1rem; cursor:pointer;
  text-decoration:none; display:inline-block; text-align:center;
}
.subscribe button:hover,.btn:hover{ background:var(--spot-deep); }
.subscribe .small{ font-size:.68rem; color:var(--ink-faint); margin:.55rem 0 0; line-height:1.4; }

/* sponsor — one slot, clearly labelled, never disguised as editorial */
.sponsor{ position:relative; }
.sponsor__label{
  font-family:var(--f-kicker); text-transform:uppercase;
  letter-spacing:.22em; font-size:.56rem; color:var(--ink-faint);
  border-top:var(--rule-w) solid var(--rule-hair);
  border-bottom:var(--rule-w) solid var(--rule-hair);
  padding:.3rem 0; margin:0 0 .75rem; text-align:center;
}
.sponsor__card{
  border:1px solid var(--rule-hair);
  background:linear-gradient(170deg,rgba(255,255,255,.6),rgba(255,255,255,.15));
  padding:1.1rem 1rem 1.2rem; text-align:center;
}
.sponsor__brand{
  font-family:var(--f-head); font-weight:900; letter-spacing:.02em;
  font-size:1.35rem; margin:0 0 .3rem; color:var(--ink);
}
.sponsor__line{ font-size:.88rem; color:var(--ink-soft); margin:0 0 .9rem; }

/* the house-ad band: on the front page the sponsor sits full width under the
   grid, so the rail does not tower over the main column and leave dead paper */
.house{
  border-top:3px double var(--rule);
  margin-top:2rem; padding-top:1.4rem;
}
.house .sponsor__label{ max-width:30ch; margin-inline:auto .75rem; margin-inline:auto; }
.house .sponsor__card{
  display:flex; align-items:center; justify-content:center;
  flex-wrap:wrap; gap:.5rem 1.6rem;
  text-align:left; padding:1.2rem clamp(1rem,3vw,2rem);
}
.house .sponsor__brand{ margin:0; }
.house .sponsor__line{ margin:0; max-width:46ch; }
.house .sponsor__cta{ margin:0; }
.house .wet--card{ top:-72%; right:-5%; width:250px; }
@media (max-width:620px){
  .house .sponsor__card{ text-align:center; }
}

/* end-of-column ornament, so the main column stops rather than just running out */
.tailpiece{
  text-align:center; color:var(--ink-faint);
  font-size:.66rem; letter-spacing:.9em; text-indent:.9em;
  margin:1.7rem 0 0;
}

/* ============================================================
   9. GATE — age-verified members only
   ============================================================ */
.gate{
  border:2px solid var(--rule);
  background:
    repeating-linear-gradient(45deg,
      rgba(26,25,19,.045) 0 12px,
      transparent 12px 24px),
    rgba(255,255,255,.5);
  padding:clamp(1.3rem,3vw,2.2rem);
  text-align:center;
  margin:2rem 0;
}
.gate__mark{
  font-family:var(--f-kicker); font-weight:700;
  display:inline-block; border:2px solid var(--rule);
  border-radius:50%; width:3.2rem; height:3.2rem; line-height:2.95rem;
  font-size:1rem; letter-spacing:.02em; margin-bottom:.85rem;
}
.gate h2{ font-family:var(--f-head); font-weight:900; font-size:clamp(1.3rem,3.4vw,1.9rem); margin:0 0 .5rem; }
.gate p{ max-width:48ch; margin:0 auto .6rem; color:var(--ink-soft); font-size:.95rem; }
.gate__actions{ display:flex; gap:.6rem; justify-content:center; flex-wrap:wrap; margin-top:1rem; }
.gate__note{ font-size:.7rem; color:var(--ink-faint); margin-top:1rem; }

.locked-teaser{ position:relative; max-height:11rem; overflow:hidden; }
.locked-teaser::after{
  content:""; position:absolute; inset:auto 0 0 0; height:7rem;
  background:linear-gradient(to bottom,rgba(243,241,234,0),var(--paper));
}

/* gallery grid (gated) */
.plate-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1.1rem; margin:1.5rem 0; }
.plate{ border:1px solid var(--rule-hair); background:rgba(255,255,255,.4); padding:.55rem .55rem .7rem; }
.plate img{ width:100%; height:auto; display:block; filter:grayscale(.12) contrast(1.03); }
.plate figcaption{ font-family:var(--f-kicker); text-transform:uppercase; letter-spacing:.1em; font-size:.58rem; color:var(--ink-faint); margin-top:.45rem; }

/* ============================================================
   10. ARTICLE
   ============================================================ */
.entry{ padding-top:1.4rem; }
.entry__head{ border-bottom:2px solid var(--rule); padding-bottom:1.1rem; margin-bottom:1.4rem; max-width:var(--measure); }
.entry__title{ font-family:var(--f-head); font-weight:900; line-height:1.04; font-size:clamp(1.8rem,4.6vw,3rem); margin:.3rem 0 .5rem; color:var(--ink); }
.entry__body{ max-width:var(--measure); }
.entry__body p{ margin:0 0 1.1rem; }
.entry__body h2{ font-family:var(--f-head); font-weight:900; font-size:1.5rem; margin:2rem 0 .6rem; }
.entry__body h3{ font-family:var(--f-kicker); text-transform:uppercase; letter-spacing:.14em; font-size:.85rem; margin:1.7rem 0 .5rem; }
.entry__body a{ color:var(--spot-deep); text-decoration-thickness:1px; text-underline-offset:2px; }
.entry__body blockquote{
  margin:1.6rem 0; padding:.2rem 0 .2rem 1.2rem;
  border-left:3px solid var(--spot);
  font-family:var(--f-head); font-style:italic; font-size:1.18rem; color:var(--ink);
}
.entry__body img{ max-width:100%; height:auto; }
.entry__body hr{ border:0; border-top:var(--rule-w) solid var(--rule-hair); margin:2rem 0; }

/* issue (monthly digest) */
.issue-head{ text-align:center; border-bottom:3px double var(--rule); padding-bottom:1.2rem; margin-bottom:1.6rem; }
.issue-head .no{ font-family:var(--f-kicker); letter-spacing:.24em; text-transform:uppercase; font-size:.68rem; color:var(--spot); }
.issue-head h1{ font-family:var(--f-head); font-weight:900; font-size:clamp(2rem,5.5vw,3.2rem); margin:.4rem 0 .2rem; line-height:1.02; }
.issue-toc{ list-style:none; padding:0; margin:0 auto 2rem; max-width:44ch; }
.issue-toc li{ display:flex; gap:.6rem; align-items:baseline; padding:.35rem 0; border-bottom:var(--rule-w) dotted var(--rule-hair); font-size:.95rem; }
.issue-toc .dots{ flex:1; border-bottom:1px dotted var(--rule-hair); transform:translateY(-.25rem); }

/* ============================================================
   11. FOOTER
   ============================================================ */
.colophon{
  position:relative;
  border-top:3px double var(--rule);
  margin-top:2.5rem; padding-top:1.3rem;
  font-family:var(--f-kicker); font-size:.66rem;
  text-transform:uppercase; letter-spacing:.13em; color:var(--ink-soft);
}
.colophon__grid{ display:flex; flex-wrap:wrap; gap:1rem 2.4rem; justify-content:space-between; }
.colophon a{ color:var(--ink-soft); text-decoration:none; border-bottom:1px solid transparent; }
.colophon a:hover{ border-bottom-color:var(--spot); }
.colophon__legal{ margin-top:1.1rem; font-size:.6rem; color:var(--ink-faint); letter-spacing:.1em; max-width:70ch; line-height:1.7; text-transform:none; }

/* ============================================================
   12. UTILITY
   ============================================================ */
.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; top:.5rem; left:.5rem; z-index:99; background:var(--ink); color:var(--paper); padding:.6rem 1rem; width:auto; height:auto; clip:auto; }
:focus-visible{ outline:2px solid var(--spot); outline-offset:2px; }
img{ max-width:100%; height:auto; }

@media print{
  body::before,body::after,.wet-layer{ display:none; }
  .sheet{ box-shadow:none; }
}

/* ============================================================
   13. PAPER DIALS
   The mark artwork and its shading now live in section 3 and in
   inc/marks.php. What is left here is the two Customizer dials.
   ============================================================ */
body::before{ opacity:var(--grain-strength,.5); }

.wr-defs{ position:absolute; width:0; height:0; overflow:hidden; }

/* ============================================================
   14. FURNITURE THE TEMPLATES ASK FOR
   ============================================================ */
.dateline__item{ white-space:nowrap; }
.dateline__item--price{ font-weight:700; color:var(--ink); }

.masthead__title{ position:relative; z-index:2; }

.ticker__track{ display:inline-block; white-space:nowrap; }
@media (prefers-reduced-motion:no-preference){
  .ticker__items{ overflow:hidden; }
  .ticker__track{ animation:wr-ticker 38s linear infinite; }
  @keyframes wr-ticker{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
}
.ticker__track span{ padding-right:2.6rem; }

/* cutout */
/* mixed case here on purpose — "DOUBLEA" set in caps reads as one word */
.cutout__with{ display:block; font-family:var(--f-kicker); font-weight:400; font-size:.66rem; letter-spacing:.16em; text-transform:none; color:var(--ink-faint); margin-top:.45rem; }
.cutout__hed{ font-family:var(--f-head); font-weight:700; font-size:1.02rem; line-height:1.2; margin:0 0 .5rem; }
.cutout__hed a{ color:var(--ink); text-decoration:none; }
.cutout__hed a:hover{ color:var(--spot-deep); }
.cutout__more{ display:block; margin-top:.7rem; }
.cutout__more a{ font-family:var(--f-kicker); text-transform:uppercase; letter-spacing:.14em; font-size:.62rem; color:var(--spot-deep); text-decoration:none; border-bottom:1px solid currentColor; }

/* subscribe */
.subscribe__head{ font-family:var(--f-head); font-weight:900; font-size:1.3rem; line-height:1.1; margin:.1rem 0 .4rem; }
.subscribe__blurb{ font-size:.87rem; color:var(--ink-soft); margin:0 0 .8rem; }
.subscribe__form{ display:flex; flex-direction:column; gap:.5rem; }
.subscribe__input{ font-family:var(--f-body); font-size:.95rem; padding:.6rem .65rem; border:1px solid var(--rule); background:var(--paper); color:var(--ink); width:100%; }
.subscribe__small{ font-size:.68rem!important; color:var(--ink-faint); margin:.55rem 0 0!important; line-height:1.4; }
.subscribe__msg{ font-size:.78rem!important; margin:.4rem 0 0!important; }
.subscribe__msg.is-good{ color:var(--ink); font-weight:700; }
.subscribe__msg.is-bad{ color:var(--spot-deep); font-weight:700; }
.subscribe--compact{ border-width:1px; }

/* buttons */
.btn--solid{ background:var(--spot); }
.btn--solid:hover{ background:var(--spot-deep); }
.btn:focus-visible{ outline-offset:3px; }

/* sponsor */
.sponsor__card{ position:relative; overflow:hidden; }
.sponsor__cta{ margin:0!important; }
.sponsor__note{ font-family:var(--f-kicker); text-transform:uppercase; letter-spacing:.16em; font-size:.54rem; color:var(--ink-faint); text-align:center; margin:.6rem 0 0; }

/* gate */
.gate__head{ font-family:var(--f-head); font-weight:900; font-size:clamp(1.3rem,3.4vw,1.9rem); margin:0 0 .5rem; }
.gate__error{ color:var(--spot-deep)!important; font-weight:700; }
.gate__form{ display:flex; flex-direction:column; align-items:center; gap:.7rem; }
.gate__check{ display:flex; gap:.55rem; align-items:flex-start; text-align:left; max-width:34ch; font-size:.86rem; color:var(--ink-body); }
.gate__check input{ margin-top:.28rem; flex:none; }

/* frosted thumbnails on locked items */
.wr-figure{ margin:0 0 1rem; }
.wr-figure img{ display:block; width:100%; height:auto; }
.is-frosted{ filter:blur(16px) grayscale(.4) contrast(.9); transform:scale(1.04); }
.wr-figure:has(.is-frosted){ overflow:hidden; position:relative; }
.wr-figure:has(.is-frosted)::after{
  content:"18+";
  position:absolute; inset:auto .5rem .5rem auto;
  font-family:var(--f-kicker); font-size:.6rem; letter-spacing:.14em; font-weight:700;
  background:var(--ink); color:var(--paper); padding:.2rem .45rem;
}

/* plates */
.plate{ position:relative; }
.plate--locked{ overflow:hidden; }
.plate--locked img,
.plate--locked svg{ filter:blur(18px) grayscale(.5); }
.plate--locked a{ display:block; overflow:hidden; }
.plate--locked a img{ transform:scale(1.09); }
.plate--locked::after{
  content:"18+";
  position:absolute; top:.45rem; right:.45rem;
  font-family:var(--f-kicker); font-size:.56rem; font-weight:700; letter-spacing:.14em;
  background:var(--ink); color:var(--paper); padding:.15rem .4rem;
}
.plate__lock{ font-family:var(--f-kicker); text-transform:uppercase; letter-spacing:.14em; font-size:.58rem; color:var(--ink-faint); display:block; margin-top:.4rem; }

/* pagination */
.rag-pagination{ border-top:2px solid var(--rule); margin-top:2rem; padding-top:1rem; font-family:var(--f-kicker); text-transform:uppercase; letter-spacing:.14em; font-size:.68rem; }
.rag-pagination .nav-links{ display:flex; gap:1rem; flex-wrap:wrap; justify-content:space-between; }
.rag-pagination a{ color:var(--spot-deep); text-decoration:none; }
.rag-pagination .current{ color:var(--ink); font-weight:700; }

/* archive furniture */
.page-head{ border-bottom:3px double var(--rule); padding-bottom:1rem; margin-bottom:1.6rem; }
.page-head__kicker{ font-family:var(--f-kicker); text-transform:uppercase; letter-spacing:.2em; font-size:.62rem; color:var(--spot); margin:0 0 .4rem; }
.page-head__title{ font-family:var(--f-head); font-weight:900; font-size:clamp(1.8rem,4.6vw,3rem); line-height:1.04; margin:0; }
.page-head__blurb{ max-width:56ch; color:var(--ink-soft); margin:.6rem 0 0; }

.issue-card{ border-bottom:var(--rule-w) solid var(--rule-hair); padding:1.1rem 0; display:grid; grid-template-columns:auto 1fr; gap:0 1.4rem; }
.issue-card__no{ font-family:var(--f-kicker); letter-spacing:.18em; font-size:.66rem; color:var(--spot); padding-top:.35rem; }
.issue-card__title{ font-family:var(--f-head); font-weight:900; font-size:1.5rem; line-height:1.1; margin:0 0 .3rem; }
.issue-card__title a{ color:var(--ink); text-decoration:none; }
@media (max-width:560px){ .issue-card{ grid-template-columns:1fr; } }

.entry__footer{ border-top:2px solid var(--rule); margin-top:2rem; padding-top:1rem; }
.entry__nav{ display:flex; justify-content:space-between; gap:1rem; font-family:var(--f-kicker); text-transform:uppercase; letter-spacing:.13em; font-size:.66rem; }
.entry__nav a{ color:var(--spot-deep); text-decoration:none; }

.notfound{ text-align:center; padding:3rem 0 4rem; }
.notfound__no{ font-family:var(--f-masthead); font-weight:900; font-size:clamp(4rem,18vw,10rem); line-height:.8; color:var(--ink); margin:0; }
