/* brooklinetrees.org — My Favorite Tree
   Palette sampled from the Mothers Out Front logo file. */
:root{
  --navy:#2D3F7A; --navy-deep:#1E2B55; --gold:#CCAA22; --red:#CC2222;
  --shell:#F5F6F9; --line:rgba(45,63,122,.16); --ink:#232838; --ink-soft:#5B6172;
  --sans:"Lato","Helvetica Neue",Arial,sans-serif;
  --serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  --wrap:1120px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.5}
img{max-width:100%}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{transition-duration:.001ms !important}}
.skip{position:absolute;left:-9999px;background:#fff;padding:10px 16px;z-index:100}
.skip:focus{left:8px;top:8px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}

/* header — Mothers Out Front navy, taller */
.site-head{background:var(--navy);color:#fff}
/* Three columns so the Mothers Out Front mark sits genuinely centred.
   space-between would only push it around, not centre it. */
.site-head .wrap{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  gap:18px 28px;padding-top:34px;padding-bottom:34px}
.site-head .mof-mark{justify-self:center;flex:none;line-height:0}
.site-head .mof-mark img{width:132px;height:auto;display:block}
.site-head .hnav{justify-self:end}
.site-head .lead{display:flex;align-items:center;gap:18px;text-decoration:none;color:#fff}
.site-head .lead img{width:64px;height:auto;flex:none}
.site-head h1,.site-head .h1{font-weight:900;font-size:clamp(1.5rem,3.4vw,2.4rem);line-height:1.02;
  margin:0;letter-spacing:-.02em;color:#fff}
.hnav{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.hnav a{color:#fff;text-decoration:none;font-size:.9rem;font-weight:700}
.hnav a.btn{color:#2A2411}        /* .hnav a outspecifies .btn, so restate it */
.hnav a:not(.btn){border-bottom:2px solid transparent;padding-bottom:2px}
.hnav a:not(.btn):hover{border-bottom-color:var(--gold)}
.btn{display:inline-block;background:var(--navy);color:#fff;text-decoration:none;
  padding:12px 24px;border-radius:2px;font-size:.87rem;font-weight:700;border:2px solid var(--navy)}
.btn:hover{background:var(--navy-deep);border-color:var(--navy-deep)}
.hnav .btn{background:var(--gold);border-color:var(--gold)}
.hnav .btn:hover{background:#B8971C;border-color:#B8971C;color:#2A2411}
/* Below the point where three columns fit, keep both marks and the title
   together on one row and drop the actions to a second row. */
@media (max-width:980px){
  .site-head .wrap{grid-template-columns:auto auto;justify-content:space-between;gap:18px}
  .site-head .lead{justify-self:start;min-width:0}
  .site-head .mof-mark{justify-self:end}
  .site-head .hnav{grid-column:1 / -1;justify-self:start}
}
@media (max-width:560px){
  .site-head .wrap{padding-top:18px;padding-bottom:18px;gap:15px 10px}
  .site-head .lead{gap:9px}
  .site-head .lead img{width:34px;height:auto}
  /* scales with the viewport so the title never pushes the logo off the row */
  .site-head h1,.site-head .h1{font-size:clamp(1rem,5vw,1.45rem);letter-spacing:-.025em}
  .site-head .mof-mark img{width:clamp(66px,21vw,88px)}
  .hnav{gap:14px;width:100%} .hnav a.btn{flex:1;text-align:center;padding:11px 14px}
}

/* photo band — justified rows, set by site.js */
.band{display:flex;flex-wrap:wrap;gap:6px;background:var(--shell);padding:6px;
  align-content:flex-start}
.band[data-ordering]{visibility:hidden}
.tile{position:relative;display:block;padding:0;border:0;overflow:hidden;cursor:pointer;
  background:var(--shell);flex:0 0 auto}
.tile img{display:block;width:100%;height:100%;object-fit:fill}
.tile .chip{position:absolute;left:6px;bottom:6px;max-width:calc(100% - 12px);
  opacity:0;transform:translateY(4px);transition:opacity .15s,transform .15s}
.tile:hover .chip,.tile:focus-visible .chip{opacity:1;transform:none}
@media (max-width:640px){
  .band{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;padding:6px 6px 10px}
  .band::-webkit-scrollbar{display:none}
  .tile{scroll-snap-align:center}
  .tile .chip{opacity:1;transform:none}
}
.chip{display:inline-flex;align-items:center;gap:7px;background:var(--gold);color:#2A2411;
  border-radius:2px;padding:3px 9px;font-size:.7rem;font-weight:700}

/* intro */
.intro{background:var(--shell);padding:30px 0;border-bottom:1px solid var(--line)}
.intro .wrap{max-width:760px}
.intro p{font-family:var(--serif);font-weight:300;font-size:1.12rem;line-height:1.68;
  margin:0 0 18px;color:var(--ink)}
.intro a.inline{color:var(--red);text-decoration:underline;text-underline-offset:3px;
  text-decoration-thickness:1.5px}
.intro a.inline:hover{color:var(--navy)}

/* featured */
.featured{display:grid;grid-template-columns:1.1fr .9fr;gap:30px;padding:34px 0 30px;
  border-bottom:3px solid var(--gold);align-items:stretch}
.featured .art{background:var(--shell);overflow:hidden;line-height:0;align-self:start}
.featured .art img{width:100%;height:auto;display:block}
.featured .meta{display:flex;flex-direction:column;justify-content:center}
.featured h2{font-weight:900;font-size:clamp(1.5rem,3vw,2rem);margin:12px 0 3px;
  line-height:1.08;color:var(--navy);letter-spacing:-.015em}
.featured .where{font-family:var(--serif);font-style:italic;font-weight:300;
  color:var(--ink-soft);margin:0 0 16px}
.featured .story{font-family:var(--serif);font-weight:300;font-size:1.06rem;
  line-height:1.66;margin:0;white-space:pre-line}
@media (max-width:820px){.featured{grid-template-columns:1fr}}

/* stories */
.entries{columns:2;column-gap:36px;padding-top:32px}
.entries[data-ordering]{visibility:hidden}
@media (max-width:760px){.entries{columns:1}}
.entry{break-inside:avoid;margin:0 0 32px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.entry .art{background:var(--shell);overflow:hidden;margin-bottom:12px;line-height:0}
.entry .art img{width:100%;height:auto;display:block}
.entry.noimg{background:var(--navy);color:#fff;padding:22px;border-bottom:0}
.entry.noimg img.mk{width:26px;height:auto;margin-bottom:10px;opacity:.7}
.entry h3{font-weight:900;font-size:1.15rem;margin:10px 0 2px;line-height:1.16;
  color:var(--navy);letter-spacing:-.01em}
.entry.noimg h3{color:#fff}
.entry .where{font-family:var(--serif);font-style:italic;font-weight:300;color:var(--ink-soft);
  margin:0 0 9px;font-size:.9rem}
.entry.noimg .where{color:rgba(255,255,255,.72)}
.entry .story{font-family:var(--serif);font-weight:300;font-size:.97rem;line-height:1.6;
  margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;
  overflow:hidden;white-space:pre-line}
.entry .more{background:none;border:0;padding:0;font-size:.79rem;font-weight:700;
  color:var(--red);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.entry.noimg .more{color:#fff}

/* overlay */
.ov{position:fixed;inset:0;z-index:80;background:rgba(15,22,44,.78);display:none;
  align-items:center;justify-content:center;padding:20px;overflow-y:auto}
.ov[open],.ov.is-on{display:flex}
.ov-card{background:#fff;max-width:900px;width:100%;display:grid;grid-template-columns:1fr 1fr}
.ov-card .art{background:var(--shell);min-height:340px}
.ov-card .art img{width:100%;height:100%;object-fit:contain;display:block}
.ov-card .art.words{background:var(--navy);display:flex;align-items:center;justify-content:center;padding:28px}
.ov-card .art.words img{width:80px;height:auto;object-fit:contain;opacity:.85}
.ov-body{padding:26px 28px 28px;position:relative}
.ov-body h2{font-weight:900;font-size:1.5rem;margin:12px 0 3px;line-height:1.1;
  color:var(--navy);letter-spacing:-.015em}
.ov-body .where{font-family:var(--serif);font-style:italic;font-weight:300;
  color:var(--ink-soft);margin:0 0 16px;font-size:.95rem}
.ov-body .story{font-family:var(--serif);font-size:1rem;font-weight:300;line-height:1.64;
  margin:0 0 18px;white-space:pre-line}
.ov-body .by{font-size:.78rem;color:var(--ink-soft);border-top:1px solid var(--line);padding-top:12px}
.ov-close{position:absolute;top:12px;right:12px;background:transparent;border:1px solid var(--line);
  border-radius:999px;width:32px;height:32px;cursor:pointer;line-height:1;font-size:1rem;color:var(--ink-soft)}
.ov-close:hover{background:var(--shell)}
@media (max-width:700px){
  .ov{padding:0;align-items:flex-start}
  .ov-card{grid-template-columns:1fr}
  .ov-card .art{min-height:0}
  .ov-card .art img{height:auto;max-height:52vh}
  .ov-body{padding:20px}
}

/* about page */
.prose{max-width:70ch;margin:0 auto;padding:40px 24px 10px}
.prose h2{font-weight:900;color:var(--navy);font-size:1.5rem;margin:32px 0 10px;letter-spacing:-.015em}
.prose p,.prose li{font-family:var(--serif);font-weight:300;font-size:1.1rem;line-height:1.7}
.prose a{color:var(--red)}

/* footer */
.footband{background:var(--navy);margin-top:44px}
.footband .rule{height:6px;background:var(--gold);position:relative}
.footband .rule i{position:absolute;inset:0 auto 0 0;width:38%;background:var(--red)}
.foot{padding:26px 0 30px;display:flex;justify-content:space-between;gap:24px;
  flex-wrap:wrap;align-items:center}
.foot img{width:150px;height:auto}
.foot p{margin:0;font-size:.82rem;color:#BCC7E0;max-width:52ch}
.foot a{color:#fff}

/* a flex column stretches its children; the chip should hug its text */
.featured .meta .chip{align-self:flex-start}
