/* ==========================================================================
   The Gander - the articles section, laid out like a magazine.
   Loaded on The Gander's pages only, on top of site.css, and uses only the
   site's own colours: black and white for structure, sage and black as the
   colour blocks, tan for rules and small labels, plum on hover.
   Sage and tan never touch: anything on sage is black.
   ========================================================================== */

/* --- Masthead: the magazine's own title, under the site's top bar -------- */
.gander-mast { background: var(--ng-white); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.gander-mast__inner { max-width: var(--ng-maxw); margin: 0 auto; padding: 0 var(--ng-gutter); }
.gander-mast__presents {
  font-family: var(--ng-font); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ng-tan-ink); margin: 0 0 .5rem;
}
.gander-mast__title {
  font-family: var(--ng-display); font-weight: 300;
  font-size: clamp(3.75rem, 12vw, 9rem); line-height: .92; letter-spacing: -.02em; margin: 0;
}
.gander-mast__title em { font-style: italic; }
.gander-mast__strap {
  font-family: 'Homemade Apple', var(--ng-serif); font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--ng-tan-ink); line-height: 1.8; margin: .9rem 0 1.75rem;
}
/* The folio line, ruled above and below, as on a magazine cover. */
.gander-folio {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--ng-black); border-bottom: 1px solid var(--ng-black);
  padding: .6rem 0; font-family: var(--ng-font); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
}
@media (max-width: 640px) {
  .gander-folio { justify-content: center; }
  .gander-folio__mid { display: none; }
}

/* --- Small shared pieces ------------------------------------------------- */
.gander-tag {
  font-family: var(--ng-font); font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ng-tan-ink); margin: 0 0 .8rem;
}
.gander-meta { font-size: .875rem; color: var(--ng-grey); margin: 0 0 1.5rem; }
.gander-empty { color: var(--ng-grey); }
/* Seen only on Caroline's computer, on anything not yet live. */
.gander-flag {
  display: inline-block; vertical-align: middle; margin-left: .4rem;
  background: var(--ng-black); color: var(--ng-tan-light);
  font-family: var(--ng-font); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .55rem; line-height: 1.4;
}

/* --- Cover story ---------------------------------------------------------- */
.gander-cover-band { background: var(--ng-white); padding: clamp(1.5rem, 3vw, 2.5rem) 0 var(--ng-band); }
.gander-cover {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  color: inherit; text-decoration: none;
}
/* The picture sits in a black mount, like a photograph on a magazine page. */
.gander-cover__pic { margin: 0; border: 1px solid var(--ng-line); }
.gander-cover__pic img { width: 100%; }
.gander-cover__title {
  font-family: var(--ng-display); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; margin: 0 0 1rem; transition: color .2s;
}
.gander-cover__stand { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ng-grey); margin: 0 0 1.25rem; }
.gander-cover:hover .gander-cover__title { color: var(--ng-plum); }
.gander-cover:hover .link-rule { color: var(--ng-tan-ink); }
@media (max-width: 820px) { .gander-cover { grid-template-columns: 1fr; } }

/* --- The mosaic and the snippets beside it ------------------------------- */
.gander-main { background: var(--ng-off-white); padding: var(--ng-band) 0; }
.gander-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.gander-layout--full { grid-template-columns: 1fr; }
@media (max-width: 1050px) { .gander-layout { grid-template-columns: 1fr; } }

.gander-mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); grid-auto-flow: dense; }
.gander-tile {
  grid-column: span 2; display: flex; flex-direction: column;
  background: var(--ng-white); border: 1px solid var(--ng-line);
  color: inherit; text-decoration: none; transition: transform .25s;
}
.gander-tile:hover { transform: translateY(-3px); }
.gander-tile--lg { grid-column: span 4; grid-row: span 2; }
.gander-tile--md { grid-column: span 3; }
.gander-tile__pic { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.gander-tile__pic img { width: 100%; height: 100%; object-fit: cover; }
/* The large tile is two rows tall, so its picture grows to fill the height
   rather than leaving a gap under the words. */
.gander-tile--lg .gander-tile__pic { aspect-ratio: auto; flex: 1 1 16rem; min-height: 16rem; }
.gander-tile--lg .gander-tile__body { flex: 0 0 auto; }
.gander-tile__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.gander-tile__title { font-family: var(--ng-serif); font-size: 1.4rem; line-height: 1.2; margin: 0 0 .6rem; transition: color .2s; }
.gander-tile--lg .gander-tile__title { font-family: var(--ng-display); font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.08; }
.gander-tile__teaser { color: var(--ng-grey); font-size: 1rem; line-height: 1.55; margin: 0 0 1rem; }
.gander-tile__date { margin: auto 0 0; font-size: .8rem; color: var(--ng-grey); }
.gander-tile:hover .gander-tile__title { color: var(--ng-plum); }

/* Colour blocks: no picture, a bigger headline in the display face. */
.gander-tile--black, .gander-tile--sage { justify-content: flex-end; min-height: 17rem; }
.gander-tile--black .gander-tile__body, .gander-tile--sage .gander-tile__body { padding: 1.75rem 1.6rem; }
.gander-tile--black .gander-tile__title, .gander-tile--sage .gander-tile__title {
  font-family: var(--ng-display); font-size: clamp(1.6rem, 2.3vw, 1.95rem); line-height: 1.1;
}
.gander-tile--black { background: var(--ng-black); border-color: var(--ng-black); color: var(--ng-off-white); }
.gander-tile--black .gander-tag { color: var(--ng-tan-light); }
.gander-tile--black .gander-tile__teaser, .gander-tile--black .gander-tile__date { color: color-mix(in srgb, var(--ng-off-white) 75%, transparent); }
.gander-tile--black:hover .gander-tile__title { color: var(--ng-tan-light); }
.gander-tile--sage { background: var(--ng-cream); border-color: var(--ng-cream); color: var(--ng-black); }
.gander-tile--sage .gander-tag { color: var(--ng-black); }
.gander-tile--sage .gander-tile__teaser, .gander-tile--sage .gander-tile__date { color: color-mix(in srgb, var(--ng-black) 78%, transparent); }

@media (max-width: 900px) {
  .gander-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gander-tile, .gander-tile--md { grid-column: span 1; }
  .gander-tile--lg { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .gander-mosaic { grid-template-columns: 1fr; }
  .gander-tile, .gander-tile--md, .gander-tile--lg { grid-column: auto; }
  .gander-tile--black, .gander-tile--sage { min-height: 0; }
}

/* A single row of three, under an article. */
.gander-mosaic--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gander-mosaic--row .gander-tile { grid-column: auto; }
@media (max-width: 900px) { .gander-mosaic--row { grid-template-columns: 1fr; } }

/* Snippets: handwritten labels, like notes in the margin. */
.gander-snips { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 1050px) and (min-width: 700px) { .gander-snips { grid-template-columns: repeat(3, 1fr); } }
.gander-snip { padding: 1.6rem 1.5rem 1.7rem; }
.gander-snip--white { background: var(--ng-white); border: 1px solid var(--ng-line); }
.gander-snip--black { background: var(--ng-black); color: var(--ng-off-white); }
.gander-snip--sage  { background: var(--ng-cream); color: var(--ng-black); }
.gander-snip__label {
  font-family: 'Homemade Apple', var(--ng-serif); font-size: 1.1rem; line-height: 1.8;
  color: var(--ng-tan-ink); margin: 0 0 .5rem;
}
.gander-snip--black .gander-snip__label { color: var(--ng-tan-light); }
.gander-snip--sage .gander-snip__label { color: var(--ng-black); }
.gander-snip__text { font-family: var(--ng-serif); font-size: 1.2rem; line-height: 1.4; margin: 0 0 1rem; }
.gander-snip__more {
  font-family: var(--ng-font); font-size: .875rem; font-weight: 600; letter-spacing: .04em;
  color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  text-decoration-color: var(--ng-tan); transition: color .2s;
}
.gander-snip--sage .gander-snip__more { text-decoration-color: var(--ng-black); }
.gander-snip--white .gander-snip__more:hover, .gander-snip--sage .gander-snip__more:hover { color: var(--ng-plum); }
.gander-snip--black .gander-snip__more:hover { color: var(--ng-tan-light); }

/* --- Article page --------------------------------------------------------- */
.gander-article { background: var(--ng-white); }
.gander-article__head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.gander-article__head-inner { max-width: calc(880px + var(--ng-gutter) * 2); margin: 0 auto; padding: 0 var(--ng-gutter); text-align: center; }
.gander-article__back { margin: 0 0 1.75rem; }
.gander-article__back a {
  font-family: var(--ng-display); font-size: 1.6rem; font-style: italic; color: var(--ng-black);
  text-decoration: none; border-bottom: 1px solid var(--ng-tan); transition: color .2s;
}
.gander-article__back a:hover { color: var(--ng-tan-ink); }
.gander-article__title {
  font-family: var(--ng-display); font-weight: 300; font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; max-width: 22ch; margin: 0 auto 1.25rem;
}
.gander-article__stand {
  font-family: var(--ng-serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45;
  color: var(--ng-grey); max-width: 42ch; margin: 0 auto 1.5rem; text-wrap: balance;
}
.gander-article__meta { font-size: .875rem; letter-spacing: .06em; color: var(--ng-grey); margin: 0; }
.gander-article__hero { max-width: calc(1100px + var(--ng-gutter) * 2); margin: clamp(2rem, 4vw, 3rem) auto 0; padding: 0 var(--ng-gutter); }
.gander-article__hero img { width: 100%; }

.gander-article__body { margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--ng-gutter) clamp(3rem, 6vw, 5rem); box-sizing: content-box; }
.gander-article__body > p:first-child::first-letter {
  float: left; font-family: var(--ng-display); font-weight: 400; font-size: 4.4em; line-height: .82;
  padding: .06em .09em 0 0; color: var(--ng-tan);
}
.gander-article__body h2 {
  font-family: var(--ng-display); font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.15;
  margin: 2.25em 0 .6em;
}
.gander-article__body h3 { font-family: var(--ng-serif); font-size: 1.25rem; line-height: 1.25; margin: 1.5em 0 .35em; }
.gander-article__body ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.gander-byline { margin-top: 2.5em; font-size: .875rem; letter-spacing: .06em; color: var(--ng-grey); }
.gander-byline a { color: inherit; }
.gander-article__body li { margin: 0 0 .5em; }
.gander-article__body li::marker { color: var(--ng-tan); }

.gander-pull {
  margin: 2.75rem 0; padding: 1.75rem 0; border-top: 1px solid var(--ng-tan); border-bottom: 1px solid var(--ng-tan);
  text-align: center;
}
.gander-pull p {
  font-family: var(--ng-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem); line-height: 1.25; margin: 0; text-wrap: balance;
}
/* The ask partway down an article: a quiet off-white panel with a black rule. */
.gander-ask { margin: 2.5rem 0; padding: 1.25rem 1.5rem; background: var(--ng-off-white); border-left: 3px solid var(--ng-black); }
.gander-ask p { margin: 0; color: var(--ng-black); }
/* Picture breaks reach out past the reading column on wide screens. */
.gander-figure { margin: 2.75rem 0; }
@media (min-width: 1000px) { .gander-figure { margin-left: -6rem; margin-right: -6rem; } }
.gander-figure img { width: 100%; }
.gander-figure figcaption { font-size: .875rem; color: var(--ng-grey); margin-top: .6rem; }

/* Further reading, on the off-white, with tan-ruled links. */
.gander-further { background: var(--ng-off-white); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.gander-further__inner { max-width: calc(720px + var(--ng-gutter) * 2); margin: 0 auto; padding: 0 var(--ng-gutter); }
.gander-further__title { font-family: var(--ng-serif); font-size: 1.45rem; margin: 0 0 1.25rem; }
.gander-further__list { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }

.gander-related { background: var(--ng-white); padding: var(--ng-band) 0; border-top: 1px solid var(--ng-line); }
.gander-related__title { font-family: var(--ng-display); font-size: clamp(1.625rem, 2.4vw, 2.125rem); margin: 0 0 2rem; text-align: center; }
