/* The Dunk Dynasty Register — newsprint column-flow register */

:root{
  --ink:#1A1A1A;
  --ink-soft:#4A463F;
  --red:#B0221D;
  --cream:#F1ECDF;
  --cream-deep:#E6DFCD;
  --rule:#C9C0AA;
  --measure:72rem;
}

*,*::before,*::after{box-sizing:border-box}

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

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:"Noto Serif",Georgia,"Times New Roman",serif;
  font-size:17px;
  line-height:1.62;
  text-rendering:optimizeLegibility;
}

img{max-width:100%;display:block}

a{color:var(--ink);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
a:hover{color:var(--red)}
a:focus-visible,.navbtn:focus-visible{outline:2px solid var(--red);outline-offset:3px}

.skip{position:absolute;left:-9999px;top:0;background:var(--red);color:var(--cream);padding:.6rem 1rem;z-index:50}
.skip:focus{left:0}

/* ---------------- masthead ---------------- */

.masthead{
  border-bottom:1px solid var(--ink);
  background:var(--cream);
}
.masthead-inner{
  max-width:var(--measure);
  margin:0 auto;
  padding:1.6rem 1.25rem 1.1rem;
  text-align:center;
  border-top:4px solid var(--ink);
  border-bottom:1px solid var(--rule);
  position:relative;
}
.masthead-inner::before{
  content:"";
  position:absolute;left:1.25rem;right:1.25rem;top:0;
  border-top:1px solid var(--red);
}
.masthead-kicker{
  margin:0 0 .55rem;
  font-size:.62rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--red);
  font-weight:700;
}
.masthead-title{
  display:block;
  font-family:"Playfair Display",Georgia,serif;
  font-weight:800;
  font-size:clamp(2rem,7.5vw,4.6rem);
  line-height:1.02;
  letter-spacing:.005em;
  text-decoration:none;
  color:var(--ink);
}
.masthead-title:hover{color:var(--ink)}
.masthead-strap{
  margin:.6rem 0 0;
  font-style:italic;
  font-size:.95rem;
  color:var(--red);
}

/* sections row */
.sections{
  max-width:var(--measure);
  margin:0 auto;
  padding:0 1.25rem;
  border-bottom:1px solid var(--ink);
}
.sections-row{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:0;
}
.sections-row a{
  display:block;
  padding:.62rem 1.35rem;
  font-family:"Playfair Display",Georgia,serif;
  font-size:.82rem;
  font-variant:small-caps;
  letter-spacing:.14em;
  text-transform:lowercase;
  text-decoration:none;
  color:var(--ink);
  border-bottom:2px solid transparent;
}
.sections-row a:hover{border-bottom-color:var(--red);color:var(--red)}
.sections-row a[aria-current="page"]{border-bottom-color:var(--red);color:var(--red)}

.navtoggle{position:absolute;opacity:0;pointer-events:none}
.navbtn{display:none}

@media (max-width:719px){
  .navbtn{
    display:flex;align-items:center;gap:.6rem;
    padding:.7rem 0;cursor:pointer;
    font-family:"Playfair Display",Georgia,serif;
    font-size:.8rem;font-variant:small-caps;letter-spacing:.16em;
    color:var(--red);
  }
  .navbtn span{
    width:20px;height:9px;
    border-top:2px solid var(--red);
    border-bottom:2px solid var(--red);
    display:inline-block;
  }
  .sections-row{display:none;flex-direction:column;padding-bottom:.6rem}
  .navtoggle:checked ~ .sections-row{display:flex}
  .sections-row a{
    text-align:center;padding:.5rem 0;
    border-bottom:1px dotted var(--rule);
  }
}

/* ---------------- main ---------------- */

main{
  max-width:var(--measure);
  margin:0 auto;
  padding:2.2rem 1.25rem 3rem;
}

/* lead well */
.lead-well{
  border-bottom:3px double var(--ink);
  padding-bottom:1.6rem;
  margin-bottom:1.8rem;
  text-align:center;
}
.lead-head{
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  font-size:clamp(1.75rem,4.6vw,3.15rem);
  line-height:1.12;
  margin:0 auto;
  max-width:24ch;
  letter-spacing:-.005em;
}
.lead-sub{
  margin:.9rem auto 1.7rem;
  max-width:60ch;
  font-style:italic;
  font-size:1.03rem;
  color:var(--ink-soft);
}

/* photo well / hero */
.photowell{margin:1.25rem 0 0}
.sectionhead .photowell{margin:1.4rem 0 0}
.photowell-box{
  aspect-ratio:16/9;
  width:100%;
  overflow:hidden;
  border:1px solid var(--ink);
  outline:1px solid var(--cream);
  outline-offset:-5px;
  background:#0A4A52;
}
.photowell-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* ---------------- the newsprint flow ---------------- */

.flow{
  column-count:1;
  column-gap:2.4rem;
  column-rule:1px solid var(--rule);
  margin-bottom:2rem;
}
@media (min-width:700px){ .flow{column-count:2} }
@media (min-width:1060px){ .flow{column-count:3} }

.flow p{
  margin:0 0 .2rem;
  text-align:justify;
  hyphens:auto;
  -webkit-hyphens:auto;
}
.flow p + p{text-indent:1.4em}

.flow .lead{text-indent:0}
.flow .lead::first-letter{
  float:left;
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  font-size:4.15em;
  line-height:.82;
  padding:.06em .1em 0 0;
  margin-right:.02em;
  color:var(--red);
}

/* full-width headings that break the column flow */
.flow h2,.flow h3,.flow .fronts-title,
.flow .front-meta,.flow .front-more,
.flow .entry-where,.flow .entry-tags{
  column-span:all;
  -webkit-column-span:all;
}

.fronts-title{
  font-family:"Playfair Display",Georgia,serif;
  font-size:.8rem;
  font-variant:small-caps;
  letter-spacing:.24em;
  text-transform:lowercase;
  color:var(--red);
  margin:0 0 1rem;
  padding-bottom:.45rem;
  border-bottom:3px double var(--ink);
  text-align:center;
}

.front-head{
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  font-size:clamp(1.3rem,2.8vw,1.85rem);
  line-height:1.16;
  margin:1.5rem 0 .3rem;
  padding-top:.9rem;
  border-top:1px solid var(--ink);
}
.sectionfronts > .front-head:first-of-type{margin-top:0}

.front-meta{
  margin:0 0 .7rem;
  font-size:.66rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--red);
  font-weight:700;
}
.front-more{
  margin:.9rem 0 0;
  text-indent:0;
  text-align:left;
}
.front-more a{
  font-family:"Playfair Display",Georgia,serif;
  font-size:.95rem;
  font-weight:600;
  color:var(--red);
  text-decoration:none;
  border-bottom:1px solid var(--red);
  padding-bottom:1px;
}
.front-more a:hover{background:rgba(176,34,29,.08)}

/* ---------------- section head ---------------- */

.sectionhead{
  text-align:center;
  border-bottom:3px double var(--ink);
  padding-bottom:1.4rem;
  margin-bottom:1.9rem;
}
.sectionhead-kicker{
  margin:0 0 .6rem;
  font-size:.64rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--red);
  font-weight:700;
}
.sectionhead h1{
  font-family:"Playfair Display",Georgia,serif;
  font-weight:800;
  font-size:clamp(2.1rem,6.2vw,4rem);
  line-height:1.04;
  margin:0;
}
.standfirst{
  margin:.9rem auto 0;
  max-width:62ch;
  font-style:italic;
  font-size:1.02rem;
  color:var(--ink-soft);
}

/* ---------------- entries ---------------- */

.entry{
  padding-top:1.5rem;
  border-top:1px solid var(--ink);
  margin-bottom:2.2rem;
}
.entry-head{
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  font-size:clamp(1.55rem,4.2vw,2.6rem);
  line-height:1.1;
  margin:0 0 .35rem;
}
.entry-where{
  margin:0 0 1rem;
  padding-bottom:.7rem;
  border-bottom:1px solid var(--rule);
  font-size:.68rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--red);
  font-weight:700;
}
.entry-tags{
  margin:1.1rem 0 0;
  padding-top:.7rem;
  border-top:1px solid var(--rule);
  font-style:italic;
  font-size:.86rem;
  color:var(--ink-soft);
  text-indent:0;
  text-align:left;
}

/* ---------------- plain pages ---------------- */

.plain{
  max-width:64ch;
  margin:0 auto;
}
.plain h2{
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  font-size:1.35rem;
  line-height:1.2;
  margin:2rem 0 .6rem;
  padding-top:.9rem;
  border-top:1px solid var(--rule);
}
.plain h2:first-child{margin-top:0;padding-top:0;border-top:0}
.plain p{margin:0 0 1rem}
.plain strong{color:var(--red)}

/* ---------------- footer ---------------- */

.foot{
  border-top:4px solid var(--ink);
  background:var(--cream-deep);
  margin-top:1rem;
}
.foot-grid{
  max-width:var(--measure);
  margin:0 auto;
  padding:2.4rem 1.25rem 1.6rem;
  display:grid;
  gap:2rem;
  grid-template-columns:1fr;
}
@media (min-width:720px){
  .foot-grid{grid-template-columns:2fr 1fr 1fr;gap:2.6rem}
}
.foot-name{
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  font-size:1.5rem;
  margin:0 0 .6rem;
}
.foot-brand p{margin:0;font-size:.92rem;color:var(--ink-soft);max-width:44ch}
.foot h2{
  font-family:"Playfair Display",Georgia,serif;
  font-size:.7rem;
  font-variant:small-caps;
  letter-spacing:.2em;
  text-transform:lowercase;
  color:var(--red);
  margin:0 0 .7rem;
  padding-bottom:.4rem;
  border-bottom:1px solid var(--rule);
}
.foot ul{list-style:none;margin:0;padding:0}
.foot li{margin-bottom:.4rem}
.foot li a{font-size:.92rem;text-decoration:none;border-bottom:1px solid transparent}
.foot li a:hover{border-bottom-color:var(--red)}
.foot-rule{
  max-width:var(--measure);
  margin:0 auto;
  padding:1.1rem 1.25rem 2rem;
  border-top:1px solid var(--rule);
  font-size:.78rem;
  font-style:italic;
  color:var(--ink-soft);
}

@media print{
  .sections,.skip{display:none}
  body{background:#fff}
}

/* first paragraph after a full-width standfirst line is not indented */
.entry-where + p,
.front-meta + p,
.sectionhead + .flow p:first-of-type{text-indent:0}
