:root {
  --bg: #f7f5f2;
  --bg-soft: #efece6;
  --paper: #ffffff;
  --ink: #272727;
  --mute: #5e5e5e;
  --line: rgba(39, 39, 39, 0.1);
  --line-strong: rgba(39, 39, 39, 0.18);
  --shadow: 0 20px 50px rgba(39, 39, 39, 0.08);
  --shadow-soft: 0 8px 24px rgba(39, 39, 39, 0.06);
  --max: 1180px;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --radius: 18px;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(39, 39, 39, 0.03), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(39, 39, 39, 0.04), transparent 50%),
    var(--bg);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 242, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-head.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 40px rgba(39, 39, 39, 0.06);
}

.head-shell {
  padding: 14px 0;
}

.head-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-tree {
  width: 46px;
  height: auto;
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.head-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.head-nav-link {
  position: relative;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--mute);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.head-nav-link:hover {
  color: var(--ink);
  background: rgba(39, 39, 39, 0.04);
}

.head-nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  min-width: 0;
}

.head-search {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  max-width: 320px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.head-search:focus-within {
  border-color: rgba(39, 39, 39, 0.28);
  box-shadow: 0 0 0 3px rgba(39, 39, 39, 0.08);
}

.head-search-ico {
  flex-shrink: 0;
  color: var(--mute);
}

.head-search input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
}

.head-search input::placeholder {
  color: #9a9a9a;
}

.head-social {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.head-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--mute);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.head-social a:hover {
  color: var(--ink);
  background: rgba(39, 39, 39, 0.06);
  transform: translateY(-1px);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-drawer {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  padding: 16px 0 22px;
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-radius: 12px;
  background: var(--bg-soft);
}

.head-search-drawer {
  display: flex;
  max-width: none;
  padding-right: 8px;
}

.head-search-drawer button {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .head-search { display: flex; }
}

@media (min-width: 960px) {
  .head-nav { display: flex; }
  .head-social { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
  .head-row {
    grid-template-columns: auto auto 1fr;
  }
  .head-tools {
    justify-self: end;
  }
  .head-search {
    max-width: 280px;
  }
}

@media (min-width: 1100px) {
  .head-search { max-width: 340px; }
  .head-row { gap: 24px 32px; }
}

body.nav-open { overflow: hidden; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--mute);
  font-weight: 600;
}

/* —— Manşet —— */
.masthead {
  padding: clamp(24px, 4vw, 40px) 0 8px;
}

.mast-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 960px) {
  .mast-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 22px;
  }
}

.mast-lead {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--ink);
}

.mast-lead-link {
  display: block;
  position: relative;
  height: 100%;
  min-height: 320px;
  text-decoration: none;
  color: #fff;
}

@media (min-width: 960px) {
  .mast-lead-link { min-height: 420px; }
}

.mast-lead-media {
  position: absolute;
  inset: 0;
}

.mast-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mast-lead-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.78) 100%);
}

.mast-lead-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1;
}

.mast-lead-body h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.mast-dek {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mast-badge {
  align-self: flex-start;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.mast-badge-sm {
  padding: 3px 10px;
  font-size: 0.62rem;
}

.tone-news { background: #e8eef8; color: #1a3a6b; }
.tone-basin { background: #f3ebe0; color: #5c4030; }
.tone-kose { background: #f0e6f5; color: #4a2d5c; }
.tone-mag { background: #e6f2ec; color: #1e4d36; }
.tone-book { background: #faf0d7; color: #6b4f1a; }
.tone-tree { background: #e4efe8; color: #234832; }
.tone-event { background: #fde8e8; color: #7a2e2e; }

.mast-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}

.mast-side .mast-meta {
  color: var(--mute);
  margin-top: 6px;
}

.mast-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.mast-side .mast-avatar {
  border-color: var(--line);
  width: 24px;
  height: 24px;
}

.mast-avatar-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.mast-side .mast-avatar-fb {
  background: var(--bg-soft);
  color: var(--ink);
}

.mast-by { font-weight: 600; }

.mast-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mast-side-item {
  flex: 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.mast-side-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.mast-side-link {
  display: flex;
  gap: 14px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  align-items: flex-start;
}

.mast-side-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}

.mast-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mast-side-thumb img.img-logo-thumb,
.story-media img.img-logo-thumb {
  object-fit: contain;
  object-position: center;
  padding: 14px;
  background: var(--bg-soft);
}

.mast-side-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mast-side-text strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mast-trend {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .mast-trend { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .mast-trend { grid-template-columns: repeat(4, 1fr); }
}

.mast-trend-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s, transform 0.2s;
}

.mast-trend-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.mast-trend-item a {
  display: flex;
  gap: 14px;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

.mast-rank {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  color: #c8c4bc;
  min-width: 36px;
}

.mast-trend-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.mast-trend-body strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mast-trend-body time {
  font-size: 0.75rem;
  color: var(--mute);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.hero {
  padding: clamp(32px, 6vw, 72px) 0 28px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  margin: 0.4em 0;
  letter-spacing: -0.02em;
}

.hero h1 a {
  text-decoration: none;
  color: inherit;
}

.hero h1 a:hover {
  opacity: 0.75;
}

.hero-copy .dek {
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 42ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}

.btn-gold:hover {
  box-shadow: var(--shadow);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--paper);
}

.hero-visual {
  display: block;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--paper);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-empty h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.block { padding: 36px 0 52px; }

.sec-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

.sec-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 12px;
}

.sec-head-row h2 {
  margin: 0;
}

.sec-more {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.sec-more:hover {
  text-decoration: underline;
}

.home-vefat {
  padding-top: 28px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}

.home-vefat-dek {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 52ch;
}

.vefat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.vefat-list-item + .vefat-list-item {
  border-top: 1px solid var(--line);
}

.vefat-list-item a {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 12px 16px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.vefat-list-item a:hover {
  background: rgba(0, 0, 0, 0.03);
}

.vefat-date {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.vefat-title {
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .vefat-list-item a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.bento {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.bento-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s, transform 0.2s;
}

.bento-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feed {
  display: grid;
  gap: 22px;
}

@media (min-width: 700px) {
  .feed { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .feed { grid-template-columns: repeat(3, 1fr); }
}

.story {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s, transform 0.2s;
}

.story:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.story-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.story-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-soft);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.story-link:hover .story-media img {
  transform: scale(1.03);
}

.story-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.story-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.story-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.28;
}

.story-dek {
  font-size: 0.88rem;
  color: var(--mute);
  line-height: 1.5;
}

.story-meta {
  font-size: 0.78rem;
  color: var(--mute);
  margin-top: auto;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.is-compact .story-body { padding: 14px 16px 18px; }
.is-compact .story-title { font-size: 1rem; }

.empty {
  color: var(--mute);
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  background: var(--paper);
}

.archive-head {
  padding: 44px 0 12px;
}

.archive-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 12px 0;
}

.archive-dek { color: var(--mute); max-width: 60ch; }

.author-head {
  padding: 44px 0 8px;
}

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 28px;
  align-items: center;
  margin-top: 16px;
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-photo.is-mono {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin: 0 0 8px;
}

.author-copy h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.author-bio {
  margin: 0;
  color: var(--mute);
  line-height: 1.6;
  max-width: 58ch;
}

.author-feed-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 20px;
}

@media (max-width: 640px) {
  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px;
  }

  .author-photo {
    margin: 0 auto;
  }

  .author-meta {
    justify-content: center;
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--mute);
  margin-bottom: 12px;
}

.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.article { padding: 36px 0 72px; }

.article-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  margin: 12px 0;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.article-author {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.article-author img,
.article-author-fb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.article-author-fb {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}

.article-byline { min-width: 0; }

.article-by {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.article-by:hover { text-decoration: underline; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chip {
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
}

.article-hero {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.article-body.cms {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

.article-body.cms p { margin: 0 0 1.15em; }

.article-body.cms h2,
.article-body.cms h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 1.6em 0 0.55em;
}

.article-body.cms img {
  border-radius: 12px;
  margin: 1.5em 0;
  border: 1px solid var(--line);
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 2em 0 2.25em;
}

@media (min-width: 640px) {
  .article-gallery {
    gap: 14px;
  }
}

.article-gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.article-gallery-item a {
  display: block;
  text-decoration: none;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.article-gallery-item img {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  vertical-align: middle;
}

.article-gallery-item figcaption {
  padding: 6px 8px 8px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--mute);
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .article-gallery-item figcaption {
    padding: 8px 10px 10px;
    font-size: 0.78rem;
  }
}

.article-gallery-item a {
  cursor: zoom-in;
}

body.lightbox-open {
  overflow: hidden;
}

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
}

.img-lightbox[hidden] {
  display: none !important;
}

.img-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(39, 39, 39, 0.92);
  cursor: zoom-out;
}

.img-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.img-lightbox-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.img-lightbox-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 72px);
  object-fit: contain;
  margin: 0;
  border: 0;
}

.img-lightbox-figure figcaption {
  padding: 12px 16px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--mute);
  border-top: 1px solid var(--line);
}

.img-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.img-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.img-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.img-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.img-lightbox-prev { left: 12px; }
.img-lightbox-next { right: 12px; }

@media (min-width: 900px) {
  .img-lightbox-prev { left: max(12px, calc(50% - 520px)); }
  .img-lightbox-next { right: max(12px, calc(50% - 520px)); }
}

.article-body.cms a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  font-size: 0.9rem;
}

.pager a,
.pager span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--paper);
}

.pager span[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.site-foot {
  --foot-bg: #1c1c1c;
  --foot-ink: #f7f5f2;
  --foot-mute: rgba(247, 245, 242, 0.62);
  --foot-line: rgba(247, 245, 242, 0.12);
  position: relative;
  margin-top: 56px;
  padding: 0 0 28px;
  color: var(--foot-ink);
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(247, 245, 242, 0.08), transparent 55%),
    linear-gradient(180deg, #242424 0%, var(--foot-bg) 42%, #141414 100%);
  overflow: hidden;
}

.foot-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 88%, rgba(247, 245, 242, 0.06), transparent 40%),
    radial-gradient(circle at 88% 20%, rgba(247, 245, 242, 0.05), transparent 35%);
  opacity: 0.9;
}

.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 245, 242, 0.35), transparent);
}

.foot-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px 48px;
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--foot-line);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 18px;
}

.foot-brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(247, 245, 242, 0.08);
  border: 1px solid var(--foot-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.foot-brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.foot-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foot-brand-name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.foot-brand-tag {
  font-size: 0.88rem;
  color: var(--foot-mute);
}

.foot-lead {
  margin: 0;
  max-width: 42ch;
  line-height: 1.65;
  color: var(--foot-mute);
  font-size: 0.95rem;
}

.foot-cta-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--foot-mute);
}

.foot-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 5px;
  border-radius: 999px;
  background: rgba(247, 245, 242, 0.06);
  border: 1px solid var(--foot-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.foot-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--foot-ink);
  padding: 12px 16px 12px 18px;
  font: inherit;
  font-size: 0.92rem;
}

.foot-search input::placeholder {
  color: rgba(247, 245, 242, 0.4);
}

.foot-search input:focus {
  outline: none;
}

.foot-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--foot-bg);
  background: var(--foot-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.foot-search button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.foot-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  padding: 40px 0 36px;
}

.foot-col-title {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(247, 245, 242, 0.85);
}

.foot-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-menu a {
  color: var(--foot-mute);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.foot-menu a:hover {
  color: var(--foot-ink);
  transform: translateX(3px);
}

.foot-social-dek {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--foot-mute);
  max-width: 28ch;
}

.foot-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--foot-ink);
  background: rgba(247, 245, 242, 0.08);
  border: 1px solid var(--foot-line);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.foot-social a:hover {
  background: rgba(247, 245, 242, 0.16);
  border-color: rgba(247, 245, 242, 0.28);
  transform: translateY(-2px);
}

.foot-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--foot-line);
}

.foot-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--foot-mute);
}

.foot-copy a {
  color: var(--foot-ink);
  text-decoration: none;
  font-weight: 600;
}

.foot-copy a:hover {
  text-decoration: underline;
}

.foot-top-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--foot-ink);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--foot-line);
  background: rgba(247, 245, 242, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
}

.foot-top-link:hover {
  background: rgba(247, 245, 242, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .foot-top {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-col-social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .foot-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.notfound {
  padding: 12vh 0 20vh;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.notfound .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 8px;
}

.notfound h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 12px;
}

.notfound p {
  color: var(--mute);
  margin: 0 0 20px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
