:root {
  color-scheme: light;
  --paper: #fcfcfc;
  --ink: #0a0a0a;
  --pink: #fbbde4;
  --accent: #9b2756;
  --secondary: #5c5658;
  --line: #ded8da;
  --shell: 76rem;
  --sans: "Jost", "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --masthead: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.5 var(--sans);
}
body > main.wrap { width: 100%; }
h1, h2, h3, p, figure, ul { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
a, button, summary { -webkit-tap-highlight-color: #9b275633; }
:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--paper);
}
.paper-width { width: min(var(--shell), 100% - 2rem); margin-inline: auto; }
.skip {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 3;
  padding: .65rem 1rem;
  background: var(--paper);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.site-header { border-top: 5px solid var(--pink); border-bottom: 1px solid var(--line); }
.paper-masthead { display: flex; align-items: center; gap: .75rem; min-height: 5rem; position: relative; }
.wordmark {
  display: inline-block;
  font: 700 clamp(1.6rem, 3.65vw, 3.4rem)/.87 var(--masthead);
  letter-spacing: -.055em;
  text-decoration: none;
}
.wordmark em { color: var(--accent); font-weight: 600; }
.paper-tagline {
  display: none;
  margin-left: auto;
  padding-right: 1.25rem;
  border-right: 1px solid var(--line);
  line-height: 1.3;
  font-weight: 600;
}
.paper-tagline span { display: block; color: var(--secondary); font-size: .875rem; font-weight: 400; }
.paper-search { margin-left: auto; }
.paper-masthead summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: 0 .45rem;
  cursor: pointer;
  list-style: none;
  font-size: .875rem;
  font-weight: 600;
}
.paper-masthead summary::-webkit-details-marker { display: none; }
.paper-masthead summary:hover, .paper-masthead details[open] summary { background: var(--pink); }
.search-icon {
  position: relative;
  display: block;
  width: .75rem;
  height: .75rem;
  border: 1.5px solid;
  border-radius: 50%;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: .34rem;
  border-top: 1.5px solid;
  top: .61rem;
  left: .49rem;
  transform: rotate(45deg);
}
.menu-icon {
  display: block;
  width: .875rem;
  height: .65rem;
  border-block: 1.5px solid;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.paper-search form, .mobile-menu nav {
  position: absolute;
  inset: 100% 0 auto;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 10px 24px #0a0a0a16;
}
.paper-search form { z-index: 3; left: auto; width: min(100%, 22rem); padding: 1rem; }
.paper-search form label { display: block; font-weight: 600; margin-bottom: .4rem; }
.search-field { display: flex; gap: .5rem; }
.search-field :is(input, button) { font: inherit; border: 1px solid var(--ink); padding: .5rem .75rem; min-height: 2.75rem; border-radius: 0; }
.search-field input { min-width: 0; width: 100%; background: var(--paper); }
.search-field button { background: var(--ink); color: var(--paper); cursor: pointer; }
.mobile-menu nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .5rem; gap: .125rem .5rem; }
.paper-masthead details:not([open]) > :not(summary) { display: none; }
.desktop-menu { display: none; background: var(--ink); color: var(--paper); }
.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .45rem .65rem;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav [aria-current] { color: var(--ink); background: var(--pink); }

.page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .375rem 1rem;
  margin: 1.4rem 0 .95rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--ink);
}
.page-heading h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.page-heading time { color: var(--secondary); font-size: .875rem; }
.front-grid { display: grid; gap: 2rem; }
.lead { min-width: 0; }
.lead-media {
  position: relative;
  background: var(--ink) url("../img/motivo-maglia.svg") center/cover;
  padding: .55rem;
  border-bottom: 4px solid var(--pink);
}
.lead-media img { aspect-ratio: 16 / 9; object-fit: cover; }
.lead-media.lead-cutout img { object-fit: contain; }
.lead-without-photo { min-height: 3.2rem; }
.lead-media a { display: block; }
.lead-media figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: .35rem .7rem;
  background: var(--pink);
  color: var(--ink);
  pointer-events: none;
}
.label, .read-link {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.lead-copy { padding-top: 1.1rem; }
.lead-copy h2 {
  max-width: 23ch;
  font-size: clamp(2.15rem, 4.35vw, 3.65rem);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.lead-copy h2 a, .related-list h3 a, .latest-link, .feature-card { text-decoration: none; }
.lead-copy p {
  margin-top: .6rem;
  max-width: 66ch;
  color: var(--secondary);
  font-size: clamp(1rem, 1.42vw, 1.2rem);
}
.lead-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .9rem; margin-top: .6rem; }
.lead-meta span { font-size: .875rem; font-weight: 600; }
.read-link, .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.text-link { font-size: .875rem; font-weight: 600; }
.read-link:hover, .text-link:hover { color: var(--ink); }
.latest { min-width: 0; border-top: 3px solid var(--ink); }
.latest h2, .section-heading h2, .match-heading h2 { font-size: clamp(1.7rem, 2.7vw, 2.25rem); letter-spacing: -.035em; }
.latest h2 { padding: .8rem 0 .55rem; }
.latest-list, .related-list { list-style: none; padding: 0; }
.latest-list li { border-top: 1px solid var(--line); }
.latest-list li:last-child { border-bottom: 1px solid var(--line); }
.latest-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .8rem 0; }
.latest-link img { width: clamp(4.5rem, 8vw, 6.25rem); aspect-ratio: 1.25; object-fit: cover; }
.item-meta { display: block; color: var(--accent); letter-spacing: .055em; }
.item-meta time { color: var(--secondary); }
.latest-link h3 { margin-top: .25rem; font-size: clamp(1.2rem, 1.65vw, 1.425rem); }
.lead-copy a:hover, .latest-link:hover h3, .feature-card:hover h3, .related a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .12em; }

.match-strip { background: var(--ink) url("../img/motivo-maglia.svg") center/cover; color: var(--paper); padding: 1rem; }
.match-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem .75rem; margin-bottom: .75rem; }
.match-heading p { color: #e4d7de; font-size: .8125rem; }
.matches { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.match-card { display: grid; align-content: start; gap: .2rem; min-width: 0; padding: .7rem .75rem; border: 1px solid #fff6; background: #0a0a0a; color: var(--paper); text-decoration: none; }
.match-card[hidden] { display: none; }
.match-card strong { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 600; line-height: 1.15; }
.match-card .label, .score { color: var(--pink); }
.match-card > span:last-child { font-size: .875rem; }
.match-card:hover strong { text-decoration: underline; text-underline-offset: .12em; }
.next-match { background: var(--pink); color: var(--ink); }
.next-match .label { color: var(--ink); }
.score { font-variant-numeric: tabular-nums; white-space: nowrap; }

.features, .related { margin: 2.4rem 0 3rem; padding-top: .55rem; border-top: 2px solid var(--ink); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 1rem; margin-bottom: .55rem; }
.feature-grid { display: grid; gap: 1rem; }
.feature-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); height: 100%; background: #f2eef0; }
.feature-card.feature-text-only { grid-template-columns: minmax(0, 1fr); }
.feature-card img { height: 100%; min-height: 7rem; aspect-ratio: 1.2; object-fit: cover; }
.feature-copy { align-self: center; padding: .75rem; }
.feature-copy .label, .related .label { color: var(--accent); }
.feature-copy h3 { margin-top: .25rem; font-size: clamp(1.2rem, 2vw, 1.65rem); }

.article-heading { max-width: 54rem; margin: 1.65rem auto 1.25rem; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 600;
}
.crumbs a { display: inline-flex; min-height: 2.75rem; align-items: center; text-underline-offset: .2em; }
.article-heading h1 {
  margin: .35rem 0 .75rem;
  font-size: clamp(2.4rem, 5.6vw, 4.35rem);
  letter-spacing: -.05em;
  line-height: 1.02;
  text-wrap: balance;
}
.article-dek { max-width: 69ch; color: var(--secondary); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.byline { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line); font-size: .875rem; }
.byline span { margin-inline: .25rem; }
.article-media { max-width: 62rem; margin-inline: auto; }
.article-media > :is(img, iframe) { display: block; border-bottom: 4px solid var(--pink); background: var(--ink); }
.article-media > iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border-width: 0 0 4px; }
.article-media figcaption { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 0 .75rem; color: var(--secondary); font-size: .875rem; }
.prose { width: min(100%, 63ch); margin: 1.45rem auto 2.4rem; font: clamp(1.125rem, 1.75vw, 1.35rem)/1.62 var(--serif); }
.prose p + p { margin-top: 1em; }
.prose h2 { margin: 1.25em 0 .35em; font-size: 1.45em; letter-spacing: -.025em; }
.prose :is(h3, blockquote, ol, ul, table) { margin-block: 1em; }
.prose img { width: auto; max-width: 100%; margin-inline: auto; }
.prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose a { color: var(--accent); text-decoration-thickness: .05em; text-underline-offset: .13em; overflow-wrap: anywhere; }
.article-return, .listing { margin-bottom: 3rem; }
.archive-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0 2rem; list-style: none; padding: 0; }
.archive-list li { border-bottom: 1px solid var(--line); }
.archive-list .latest-link { height: 100%; }
.archive-list h2 { margin-top: .25rem; font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.archive-list a:hover h2 { text-decoration: underline; text-underline-offset: .12em; }
.related-list { display: grid; gap: .8rem 1.6rem; }
.related-list li { border-top: 1px solid var(--line); padding-top: .7rem; }
.related-list h3 { margin-top: .25rem; font-size: 1.35rem; }

.footer { margin-top: auto; background: var(--ink); color: var(--paper); border-top: 4px solid var(--pink); padding: 1.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.footer .wordmark { font-size: 1.875rem; }
.footer .wordmark em { color: var(--pink); }
.footer :is(p, .footer-inner > a:last-child) { font-size: .875rem; }

@media (min-width: 40rem) {
  .paper-width { width: min(var(--shell), 100% - 3rem); }
  .paper-tagline { display: block; }
  .paper-search { margin-left: 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 53rem) {
  .paper-masthead { min-height: 5.8rem; }
  .mobile-menu { display: none; }
  .desktop-menu { display: block; }
  .desktop-menu nav { display: flex; flex-wrap: wrap; gap: .2rem; }
  .desktop-menu nav a { padding-inline: clamp(.55rem, 1.25vw, 1.15rem); }
  .desktop-menu nav a:nth-last-child(2) { margin-left: auto; }
  .front-grid:has(.lead):has(.latest) { grid-template-columns: minmax(0, 2.02fr) minmax(0, 1fr); gap: 1.6rem; }
  .lead-media { padding: .7rem; }
  .lead-media img { aspect-ratio: 2.08; }
  .match-strip { grid-column: 1 / -1; }
  .front-grid:has(.lead) .latest { grid-column: 2; grid-row: 1; border-top: 0; border-left: 1px solid var(--line); padding-left: 1.4rem; }
  .latest h2 { padding-top: .15rem; }
  .article-heading { margin-top: 2rem; margin-bottom: 1.65rem; }
}

@media (min-width: 75rem) {
  .front-grid { column-gap: 2rem; }
  .latest { padding-left: 1.6rem; }
  .latest-link { padding-block: .9rem; }
}
