:root {
  --bg: #f3f1ee;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --ink: #242424;
  --muted: #6f6f6f;
  --line: rgba(36, 36, 36, 0.12);
  --accent: #111111;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "Inter", "Helvetica Neue", "Arial", sans-serif;
  --font-masthead: "Big Caslon", "BigCaslon-Medium", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background: linear-gradient(180deg, #f7f6f3 0%, #efede8 100%);
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

a {
  color: inherit;
}

.page-shell {
  max-width: 1540px;
  margin: 0 auto;
  padding: 184px 22px 18px;
}

.app-frame {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.eyebrow {
  margin: 6px 0 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 22px 12px;
  border-top: 0;
  border-bottom: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(180deg, #fefdfb 0%, #fbfaf7 100%);
}

.side-mark {
  position: absolute;
  left: max(22px, calc((100vw - 1540px) / 2 + 22px));
  top: 26px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding-right: 0;
  border-right: 0;
}

.barcode-frame {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
  padding: 0;
  background: transparent;
}

.side-divider {
  display: none;
}

.barcode {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  width: 40px;
  height: auto;
  padding: 0 1px;
  background: transparent;
  transform: scaleY(1.75);
  transform-origin: top center;
}

.barcode .line {
  width: 100%;
  background: var(--ink);
}

.barcode .thin {
  height: 1px;
}

.barcode .medium {
  height: 2px;
}

.barcode .thick {
  height: 3px;
}

.barcode-numbers {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  height: auto;
  padding: 0;
  transform: rotate(180deg);
  margin-top: 0;
}

.barcode-numbers span {
  display: block;
  font-size: 0.42rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.topbar h1 {
  margin: 0;
  font-family: var(--font-masthead);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: none;
}

.title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: auto;
  flex: 0 0 auto;
}

.category-bar {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-height: 34px;
  padding: 0;
  border-bottom: 0;
  margin-top: -14px;
  grid-column: 2;
  justify-self: center;
  margin-inline: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.date-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  width: 100%;
  justify-content: center;
}

.date-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.category-chip {
  display: flex;
  align-items: center;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(22, 18, 14, 0.34);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(1px);
}

.category-chip.is-active {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.date-chip,
.favorite-chip {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: rgba(22, 18, 14, 0.34);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-chip + .date-chip {
  position: relative;
  margin-left: 12px;
}

.date-chip + .date-chip::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 1px;
  height: 0.9em;
  background: rgba(22, 18, 14, 0.24);
  transform: translateY(-50%);
}

.date-chip.is-active,
.favorite-chip.is-active {
  color: var(--ink);
}

.favorite-chip {
  display: flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 1;
  transform: translateY(1px);
  position: relative;
  margin-right: 18px;
}

.favorite-chip::before {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 1px;
  height: 0.9em;
  background: rgba(22, 18, 14, 0.24);
  transform: translateY(-50%);
}

.favorite-chip::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 11px 11px 0;
  border-color: transparent rgba(22, 18, 14, 0.34) transparent transparent;
}

.favorite-chip.is-active {
  background: transparent;
  color: var(--ink);
}

.favorite-chip.is-active::after {
  border-color: transparent #09dbbd transparent transparent;
}

.tab {
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: rgba(22, 18, 14, 0.42);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.mast-meta {
  width: 100%;
  max-width: 1540px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 8px 0 0;
  border-top: 0;
  position: relative;
}

.region-bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 6px;
  position: absolute;
  top: -70px;
  right: 25px;
}

.region-chip {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: rgba(22, 18, 14, 0.34);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.region-chip.is-active {
  color: var(--ink);
}

.paper-grid {
  padding-top: 10px;
  border-top: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 8px;
}

.loading-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  aspect-ratio: auto;
  width: 100%;
  min-height: 0;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-region {
  background: rgba(255, 248, 232, 0.16);
  color: #ffffff;
}

.badge-source {
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ad-label {
  color: rgba(22, 18, 14, 0.42);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-region-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.article-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  background-size: cover;
  background-position: center;
  background-color: #ddd7ce;
  overflow: hidden;
}

.article-cover--ad {
  background:
    linear-gradient(140deg, rgba(236, 233, 227, 0.96), rgba(221, 216, 207, 0.92));
}

.article-cover-blur {
  position: absolute;
  inset: -10px;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(0.55) contrast(0.82);
  transform: scale(1.08);
  opacity: 0.5;
}

.article-cover--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 0, rgba(255, 255, 255, 0.26) 1px, transparent 1px, transparent 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 1px, transparent 1px, transparent 100%);
  background-size: 56px 56px;
  opacity: 0.4;
}

.article-visual-note {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  background: linear-gradient(180deg, rgba(243, 241, 238, 0.36), rgba(243, 241, 238, 0.5));
}

.article-visual-note--ad {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.18));
}

.article-ad-cover-cta {
  align-self: flex-start;
  color: rgba(22, 18, 14, 0.48);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-visual-note-label {
  display: inline-flex;
  align-self: flex-start;
  color: rgba(22, 18, 14, 0.78);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-visual-note-source {
  align-self: flex-start;
  max-width: 72%;
  color: rgba(22, 18, 14, 0.42);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.article-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  font-size: 0;
}

.article-category-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 56px);
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(247, 246, 243, 0.28);
  color: rgba(22, 18, 14, 0.82);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.article-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: -2px;
  width: 100%;
  min-width: 0;
  min-height: 1.1rem;
}

.article-meta-ghost {
  visibility: hidden;
}

.article-source-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.article-source-link {
  text-decoration: none;
}

.article-source-divider {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1;
  flex: 0 0 auto;
}

.favorite-button {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
}

.favorite-button::before,
.favorite-button::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.favorite-button::before {
  border-width: 0 34px 34px 0;
  border-color: transparent rgba(247, 246, 243, 0.18) transparent transparent;
}

.favorite-button::after {
  border-width: 0 16px 16px 0;
  border-color: transparent transparent transparent transparent;
  filter: none;
}

.favorite-button.is-active {
  background: transparent;
  color: transparent;
}

.favorite-button.is-active::before {
  border-color: transparent #09dbbd transparent transparent;
}

.favorite-button.is-active::after {
  border-color: transparent transparent transparent transparent;
}

.article-cover::after {
  content: none;
}

.article-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  gap: 6px;
}

.article-date {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-shadow: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.article-copy {
  width: 100%;
  max-width: 100%;
  padding-top: 0;
  order: 1;
  min-height: calc(1.28em * 2);
}

.article-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(0.88rem, 0.86vw, 1.08rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-transform: none;
  text-shadow: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.28em * 2);
}

.article-title-link {
  color: inherit;
  text-decoration: none;
}


.site-footer {
  margin-top: 44px;
  padding: 18px 0 12px;
  border-top: 1px solid rgba(36, 36, 36, 0.08);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.site-footer-brand {
  max-width: 420px;
}

.site-footer-title {
  margin: 0 0 5px;
  font-family: var(--font-masthead);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
}

.site-footer-nav a {
  color: rgba(22, 18, 14, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-shell {
  padding-top: 184px;
}

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 0 48px;
}

.legal-section {
  scroll-margin-top: 190px;
}

.legal-section + .legal-section {
  margin-top: 52px;
  padding-top: 18px;
  border-top: 1px solid rgba(36, 36, 36, 0.08);
}

.legal-topbar {
  min-height: 0;
}

.legal-title-block {
  gap: 4px;
}

.header-home-link {
  color: inherit;
  text-decoration: none;
}

.legal-mast-meta {
  max-width: 1540px;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
  margin-top: 38px;
  transform: translateY(-16px);
}

.legal-header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin: 0 auto;
  width: max-content;
}

.legal-header-nav a {
  color: rgba(22, 18, 14, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-header-nav a[aria-current="page"] {
  color: var(--ink);
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-page h1 {
  margin: 0 0 20px;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.legal-page h2 {
  margin: 28px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.legal-page p,
.legal-page li {
  color: rgba(22, 18, 14, 0.82);
  font-size: 0.94rem;
  line-height: 1.65;
}

.legal-page ul {
  margin: 8px 0 8px 18px;
  padding: 0;
}

.legal-page a {
  color: inherit;
}

.article-summary {
  display: none;
}

@media (max-width: 900px) {
  .page-shell {
    padding: 202px 14px 28px;
  }

  .app-frame {
    padding: 18px;
  }

  .topbar {
    padding: 18px 14px 12px;
    gap: 12px;
  }

  .category-bar {
    padding: 0 18px;
  }

  .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer-nav {
    justify-content: flex-start;
  }

  .legal-shell {
    padding-top: 202px;
  }

  .legal-mast-meta {
    justify-content: center;
  }

  .legal-header-nav {
    justify-content: center;
    margin: 0 auto;
  }

  .article-card {
    aspect-ratio: auto;
  }

  .article-head {
    gap: 8px;
  }

  .badge-region-chip,
  .badge-source,
  .article-source-divider,
  .article-date {
    font-size: 0.62rem;
  }

  .article-card h3 {
    font-size: 0.88rem;
  }

  .article-category-pill {
    font-size: 0.62rem;
  }

  .article-visual-note-source {
    font-size: 1.12rem;
  }

  .article-copy {
    width: 100%;
    max-width: 100%;
    padding-top: 12px;
  }
}

@media (max-width: 780px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 214px 10px 24px;
  }

  .app-frame {
    padding: 16px;
  }

  .topbar h1 {
    font-size: 2.8rem;
  }

  .side-mark {
    display: none;
  }

  .region-bar {
    display: none;
  }

  .title-block {
    width: 100%;
  }

  .category-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    padding: 8px 12px;
    margin-top: 0;
  }

  .title-block {
    width: 100%;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-footer {
    margin-top: 32px;
    padding-bottom: 10px;
  }

  .site-footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .legal-shell {
    padding-top: 214px;
  }

  .legal-topbar {
    min-height: 0;
  }

  .legal-header-nav {
    gap: 8px 12px;
  }

  .article-card {
    aspect-ratio: auto;
  }

  .article-card h3 {
    font-size: 0.92rem;
  }

  .article-copy {
    width: 100%;
    max-width: 100%;
    padding-top: 12px;
  }

  .article-meta {
    width: 100%;
    max-width: 100%;
  }
}
