/* Big Beautiful Flop: an independent gazette on warm paper.
   Same family as Morges.info (Fraunces headlines, ink rules, one red accent), with its own
   identity: a presidential navy for the "real president" voice, and stamps that keep the
   original visibly apart from the satire. */

@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/fraunces-latin-opsz-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/fraunces-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f6f2ea;
  --surface: #fcfaf6;
  --rule: #d9d1c3;
  --rule-soft: #e8e1d5;
  --ink: #171614;
  --ink-soft: #57524a;
  --ink-faint: #7a7368;
  --red: #b3121a; /* the flop: 6:1 on paper */
  --navy: #1f3a5f; /* the presidential voice */
  --navy-pale: #e6ebf1;
  --sand: #efe7d8;
  --radius: 3px;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --measure: 68ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--ink);
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--red);
}
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus {
  top: 10px;
}

/* ---------- masthead ---------- */
.masthead {
  padding: 16px max(20px, calc((100% - 1120px) / 2)) 0;
  border-bottom: 3px double var(--ink);
  text-align: center;
}
.masthead-dateline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 0 16px;
  color: inherit;
  text-decoration: none;
}
.brand:hover {
  color: inherit;
}
.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--ink);
}
.brand-name {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 7.4vw, 5.4rem);
  font-weight: 600;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}
.brand-accent {
  color: var(--red);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
}
.brand-motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--ink-soft);
}
.site-nav {
  border-top: 1px solid var(--ink);
}
.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav-list a {
  display: inline-block;
  padding: 10px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.site-nav-list a:hover {
  color: var(--red);
}
.site-nav-list a[aria-current='page'] {
  color: var(--red);
  box-shadow: inset 0 -2px 0 var(--red);
}
.nav-toggle {
  display: none;
}
@media (max-width: 860px) {
  .masthead-editions {
    display: none;
  }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 10px 14px;
    min-height: 44px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
  }
  .nav-toggle-bars {
    position: relative;
  }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
  }
  .nav-toggle-bars::before {
    top: -5px;
  }
  .nav-toggle-bars::after {
    top: 5px;
  }
  .js .site-nav-list {
    display: none;
  }
  .js .nav-open .site-nav-list {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
  }
  .site-nav-list a {
    display: block;
    padding: 12px;
  }
}
@media (max-width: 520px) {
  .masthead-dateline {
    justify-content: center;
  }
  .masthead-dateline span:first-child {
    display: none;
  }
}

/* ---------- page ---------- */
.page-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.page-main:focus {
  outline: none;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
}
.kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker a {
  color: inherit;
}
.lead {
  max-width: var(--measure);
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: #34312c;
}
.button {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.button:hover {
  background: var(--paper);
  color: var(--ink);
}
.disclaimer {
  max-width: var(--measure);
  margin: 28px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* flags, chips, stamps */
.flag {
  width: 1.35em;
  height: 0.9em;
  flex: none;
  vertical-align: -0.1em;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.flag--round {
  width: 1em;
  height: 1em;
  box-shadow: none;
}
.chip {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  flex: none;
  margin-right: 0.45em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--chip-a) 50%, var(--chip-b) 50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  vertical-align: -0.05em;
}

/* ---------- stories: one column of post cards ---------- */
.story {
  max-width: 640px;
  margin: 0 auto 56px;
}
.story-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-variation-settings: 'opsz' 110;
  line-height: 1.05;
}
.story--short .story-title,
.story-title--small {
  font-size: clamp(1.5rem, 3vw, 2rem);
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.story-title a {
  text-decoration: none;
}
.story-title a:hover {
  text-decoration: underline;
}
.story-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 14px 0 0;
  font-size: 0.86rem;
}
.story-more a {
  display: inline-flex;
  align-items: center;
}
.story-more a:first-child {
  font-weight: 700;
}

/* thread: the posts, linked by a thin line under the avatars */
.thread-step {
  position: relative;
  margin: 0;
  padding: 14px 0 14px 62px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.thread-step::before {
  content: '';
  position: absolute;
  left: 37px;
  top: 0;
  bottom: 0;
  border-left: 2px solid var(--rule);
}
.thread > .post + .post {
  margin-top: 12px;
}

/* the post card */
.post {
  padding: 16px 18px 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.avatar--original {
  background: #6b665e;
  letter-spacing: 0.02em;
}
.avatar--presidential {
  background: var(--navy);
  font-size: 1.1rem;
}
.avatar--regional {
  background: linear-gradient(135deg, var(--chip-a) 50%, var(--chip-b) 50%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.post-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  line-height: 1.25;
}
.post-name {
  font-weight: 700;
}
.post-meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.post-badge {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.post--original .post-badge {
  color: var(--red);
}
.post--presidential .post-badge {
  color: var(--navy);
}
.post-text {
  margin: 10px 0 0 52px;
  font-size: 1.06rem;
  line-height: 1.5;
}
.post-text blockquote {
  margin: 0;
}
.post-text p {
  margin: 0 0 10px;
}
.post-translate {
  margin: 0 0 6px 52px;
}
.post-translate summary {
  display: inline-block;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}
.post-translate summary::-webkit-details-marker {
  display: none;
}
.post-translate summary:hover {
  text-decoration: underline;
}
.post-translate[open] summary {
  margin-bottom: 8px;
}
.post-translate div,
.post-translate ul {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.98rem;
}
.post-translate div p {
  margin: 0 0 8px;
}
.post-translate div p:last-child {
  margin: 0;
}
.post-translate ul {
  margin: 0;
  padding-left: 30px;
  font-size: 0.9rem;
}
.post-translate--inline {
  margin: 8px 0 0;
}
.post-foot {
  margin: 4px 0 0 52px;
  padding-top: 8px;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.post-foot a {
  color: var(--ink-soft);
}
.verify-flag {
  font-style: italic;
}
@media (max-width: 520px) {
  .post {
    padding: 14px 14px 10px;
  }
  .post-text,
  .post-translate,
  .post-foot {
    margin-left: 0;
  }
  .post-translate--inline {
    margin-left: 0;
  }
  .thread-step {
    padding-left: 48px;
  }
  .thread-step::before {
    left: 33px;
  }
}

.story-archives {
  max-width: 640px;
  margin: 0 auto 32px;
}
.archive-day {
  max-width: 640px;
  margin: 0 auto 24px;
}
.archive-date {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- section pages ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
}
.section-head h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  font-variation-settings: 'opsz' 110;
  line-height: 1.04;
}
.section-intro {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 640px;
  margin: -12px auto 40px;
}
.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.region-pill small {
  margin-left: 6px;
  font-weight: 500;
  color: var(--ink-faint);
}
.region-pill--empty {
  color: var(--ink-faint);
}
.empty {
  max-width: 640px;
  margin: 0 auto;
  font-style: italic;
  color: var(--ink-soft);
}
.prose {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.prose h2 {
  margin: 32px 0 10px;
  font-size: 1.5rem;
}
.prose li + li {
  margin-top: 8px;
}
.about-regions {
  padding-left: 0;
  list-style: none;
}
.page-main > .disclaimer,
.story .disclaimer {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}
.page-main > p:has(.button) {
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cbc5ba;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 40px;
  font-size: 0.88rem;
}
.footer-brand {
  max-width: 52ch;
}
.footer-brand p {
  margin: 0 0 6px;
}
.footer-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}
.footer-name .brand-accent {
  color: #f0a39b;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: #fff;
}
.footer-disclaimer {
  font-size: 0.8rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  color: #fff;
  text-decoration-color: #f0a39b;
}
.site-footer :focus-visible {
  outline-color: #fff;
}

@media print {
  .masthead .site-nav,
  .site-footer nav {
    display: none !important;
  }
}

/* ---------- front page carousel ---------- */
.carousel {
  max-width: 640px;
  margin: 0 auto 56px;
  scroll-margin-top: 12px;
}
.carousel-bar {
  margin-bottom: 26px;
  padding: 12px 0 14px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.carousel-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.carousel-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.carousel-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  text-align: left;
  color: var(--ink-soft);
  cursor: pointer;
}
.carousel-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.carousel-tab[aria-current='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.carousel-num {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
}
.carousel-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}
.slide {
  margin-bottom: 0;
}
.js .slide[data-inactive] {
  display: none;
}
.slide + .slide {
  margin-top: 56px;
}
.js .slide + .slide {
  margin-top: 0;
}
.carousel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.carousel-btn {
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.carousel-btn:hover {
  background: var(--sand);
}
.carousel-btn--next {
  background: var(--ink);
  color: var(--paper);
}
.carousel-btn--next:hover {
  background: var(--red);
  border-color: var(--red);
}
.carousel-pos {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .carousel-name {
    display: none;
  }
  .carousel-tab {
    align-items: center;
    padding: 10px 4px;
  }
}

/* ---------- archives calendar (after Morges.info's agenda) ---------- */
.archive-box {
  max-width: 640px;
  margin: 0 auto 40px;
}
.archive-heading {
  margin: 0 0 6px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.archive-box .section-intro {
  margin-bottom: 16px;
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cal-nav[hidden] {
  display: none;
}
.cal-pos {
  font-family: var(--serif);
  font-size: 1.4rem;
}
.cal-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.cal-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.cal-month {
  margin: 0 0 28px;
}
.js .cal-month[data-inactive] {
  display: none;
}
.cal-month-title {
  margin: 0 0 10px;
  font-size: 1.4rem;
}
.cal-nav:not([hidden]) ~ .cal-month .cal-month-title {
  display: none;
}
.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cal-weekdays {
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
}
.cal-grid li {
  min-width: 0;
}
.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 78px;
  height: 100%;
  padding: 7px 8px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-faint);
  text-decoration: none;
  overflow: hidden;
}
.cal-num {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}
.cal-ev {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}
a.cal-day {
  border-color: var(--red);
  background: #fbe9e7;
  box-shadow: inset 0 0 0 3px var(--surface);
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.cal-day .cal-num {
  color: var(--red);
}
a.cal-day:hover,
a.cal-day:focus-visible {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: inset 0 0 0 3px var(--surface), 0 6px 14px rgba(31, 43, 45, 0.14);
  color: var(--ink);
}
.cal-day.is-future {
  opacity: 0.45;
}
.cal-day.is-today {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
}
@media (max-width: 640px) {
  .cal-weekdays,
  .cal-grid {
    gap: 4px;
  }
  .cal-day {
    min-height: 0;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 8px;
  }
  .cal-ev {
    display: none;
  }
  a.cal-day::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
  }
}
@media (prefers-reduced-motion: reduce) {
  a.cal-day {
    transition: none;
  }
  a.cal-day:hover,
  a.cal-day:focus-visible {
    transform: none;
  }
}
.archive-date a {
  color: inherit;
  text-decoration: none;
}
