/*
 * 다국어지원 (Language Babe) — the blog in the app's marketing clothes.
 *
 * Every value here is one of the app's `mk-` tokens (inertia/css/app.css in
 * the app repo): ink for the masthead, the hero band and the one dark card;
 * yellow for calls to action and labels on dark; purple for links and labels
 * on white; lavender for light cards. Gothic A1 900 for display, IBM Plex
 * Sans KR for everything read. Light only, like the app's marketing pages.
 */

:root {
  --ink: #15122a;
  --ink-2: #241f3d;
  --ink-3: #2c2645;
  --line-dark: #3a3452;
  --edge-dark: #4a4366;
  --lavender: #f4f2fa;
  --line: #e4e1ee;
  --purple: var(--pixel-accent, #5a3ad6);
  --purple-dark: color-mix(in srgb, var(--purple) 70%, #000);
  --muted: #5a5570;
  --on-dark: #cfcadb;
  --on-dark-soft: #9c95b5;
  --on-dark-bright: #d9d4ea;
  --accent: #ffd23f;
  --accent-hover: #ffdf6e;

  --font-display: 'Gothic A1', 'Noto Sans KR', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans KR', 'Noto Sans KR', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page { flex: 1; display: flex; flex-direction: column; }

/* ------------------------------------------------------------------ */
/* Motion — the app's mk-rise (hero lines fade up) and mk-lift.        */
/* ------------------------------------------------------------------ */

@keyframes lb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: lb-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-1 { animation-delay: 0.08s; }
.rise-2 { animation-delay: 0.16s; }
.rise-3 { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none !important; }
  .lift:hover { transform: none !important; }
}

/* ------------------------------------------------------------------ */
/* Buttons — the app's mk-btn shape and its three looks.               */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 14px 24px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--ink); }
.btn-ink { background: var(--ink); color: #ffffff; }
.btn-ink:hover { background: var(--ink-2); color: #ffffff; }
.btn-small { padding: 12px 18px; font-size: 15px; }

/* ------------------------------------------------------------------ */
/* Masthead — always ink, sticky, the top of the dark hero.            */
/* ------------------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink);
  color: #ffffff;
}
.masthead-row {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--gutter);
}
@media (min-width: 640px) { .masthead-row { gap: 16px; } }

.masthead .brand {
  margin-right: 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  --logo-height: 30px;
}
@media (min-width: 1024px) { .masthead .brand { margin-right: 16px; } }
/* A long publication name never pushes the button off a phone: it ends in … */
.masthead .brand { min-width: 0; flex-shrink: 1; }
.masthead .site-name { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) { .masthead .brand { font-size: 18px; } .masthead-end { flex-shrink: 0; } }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.site-logo { display: block; flex: none; width: auto; height: var(--logo-height, 2rem); }
.site-logo--mark { max-width: calc(var(--logo-height, 2rem) * 2); object-fit: contain; border-radius: 9px; }
.site-logo--wide { max-width: min(14rem, 50vw); object-fit: contain; object-position: left center; }

.masthead-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .masthead-nav { display: flex; } }

.nav-link {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  background: none;
  padding: 12px 14px;
  color: var(--on-dark-bright);
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover { color: #ffffff; background: rgb(255 255 255 / 0.06); }
.nav-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nav-link[aria-current="page"] { color: #ffffff; }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.masthead-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.masthead-end > .nav-link { display: none; }
@media (min-width: 1024px) { .masthead-end > .nav-link { display: flex; } }
.masthead-panel .nav-link { padding: 0; border-radius: 0; background: none; color: #ffffff; font-size: 16px; }
.masthead-panel .nav-link[aria-current="page"] { color: var(--accent); }
.masthead-panel .nav-link[aria-current="page"]::after { display: none; }

/* Below 1024px: a ☰ button and a panel under the bar (no script). */
.masthead-menu { position: static; }
@media (min-width: 1024px) { .masthead-menu { display: none; } }
.masthead-menu > summary {
  list-style: none;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--edge-dark);
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
}
.masthead-menu > summary::-webkit-details-marker { display: none; }
.burger { position: relative; display: block; width: 20px; height: 14px; }
.burger span {
  position: absolute;
  left: 0;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.masthead-menu[open] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.masthead-menu[open] .burger span:nth-child(2) { opacity: 0; }
.masthead-menu[open] .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.masthead-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  background: var(--ink);
}
.masthead-panel-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) 16px;
}
.masthead-panel-group {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  border-top: 1px solid var(--line-dark);
  padding-top: 12px;
}
.masthead-panel a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}
.masthead-panel a[aria-current="page"] { color: var(--accent); }

/* ------------------------------------------------------------------ */
/* The dark band every page opens on.                                  */
/* ------------------------------------------------------------------ */

.hero { background: var(--ink); color: #ffffff; }
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px var(--gutter) 40px;
}
@media (min-width: 640px) { .hero-inner { padding-top: 32px; padding-bottom: 64px; } }
.hero-inner--narrow { max-width: 680px; padding-bottom: 32px; }
@media (min-width: 640px) { .hero-inner--narrow { padding-bottom: 48px; } }

.crumbs { margin-bottom: 16px; font-size: 14px; color: var(--on-dark-soft); }
.crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.crumbs li { display: flex; align-items: center; column-gap: 8px; min-width: 0; }
.crumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--on-dark-bright);
  text-decoration: none;
  text-underline-offset: 4px;
}
.crumbs a:hover { color: #ffffff; text-decoration: underline; }
.crumbs a:focus-visible { outline: 2px solid var(--accent); }
.crumbs [aria-current="page"] {
  color: var(--on-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

.eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); }

.hero-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero-title { font-size: 44px; } }

.hero-lead {
  margin: 12px 0 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.625;
  color: var(--on-dark);
}
@media (min-width: 640px) { .hero-lead { font-size: 17px; } }
.hero-lead p { margin: 0; }
.hero-lead a { color: #ffffff; }

/* ------------------------------------------------------------------ */
/* The list — newest as the one dark card, the rest as editorial rows. */
/* ------------------------------------------------------------------ */

.list-section {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px var(--gutter) 80px;
}
@media (min-width: 640px) { .list-section { padding-top: 40px; padding-bottom: 120px; } }

.post-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }

.meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--lavender);
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
}
.on-dark .meta { color: var(--on-dark-soft); }
.on-dark .pill { background: var(--ink-3); color: var(--accent); }

.read-more { font-weight: 700; }
.read-more .arrow { display: inline-block; transition: transform 0.25s ease; }
a:hover .read-more .arrow { transform: translateX(4px); }

.lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgb(21 18 42 / 0.35); }

.card-lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 20px;
  background: var(--ink);
  padding: 20px;
  color: #ffffff;
  text-decoration: none;
}
@media (min-width: 640px) { .card-lead { padding: 32px; } }
.card-lead:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.card-lead-picture {
  display: block;
  margin: 0 0 4px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink-3);
}
.card-lead-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-lead-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .card-lead-title { font-size: 28px; } }
.card-lead-excerpt { margin: 0; font-size: 14.5px; line-height: 1.625; color: var(--on-dark); }
@media (min-width: 640px) { .card-lead-excerpt { font-size: 15.5px; } }
.card-lead .read-more { font-size: 14px; color: var(--accent); }

.row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  color: var(--ink);
  text-decoration: none;
}
.row:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.post-list > li:first-child + li > .row,
.post-list--rows > li:first-child > .row { margin-top: 0; }
.post-list--lead > li:nth-child(2) > .row { margin-top: 16px; }
.row-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
@media (min-width: 640px) { .row-title { font-size: 23px; } }
.row:hover .row-title { color: var(--purple); }
.row-excerpt { margin: 0; font-size: 14.5px; line-height: 1.625; color: var(--muted); }
.row .read-more { font-size: 13.5px; color: var(--purple); }

.empty-card {
  border-radius: 20px;
  background: var(--lavender);
  padding: 32px;
  text-align: center;
}
@media (min-width: 640px) { .empty-card { padding: 48px; } }
.empty-card-title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 900; }
.empty-card-body { margin: 12px 0 0; font-size: 14.5px; line-height: 1.625; color: var(--muted); }

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  font-size: 14px;
}
.pagination a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
}
.pagination a:hover { color: var(--purple-dark); }
.pagination > span:last-child { text-align: right; }
.pagination-page { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ */
/* A post.                                                             */
/* ------------------------------------------------------------------ */

.post-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .post-title { font-size: 40px; line-height: 1.25; } }
.post-lead { margin: 12px 0 0; font-size: 15px; line-height: 1.625; color: var(--on-dark); }
@media (min-width: 640px) { .post-lead { font-size: 17px; } }
.post-updated { margin: 12px 0 0; font-size: 12.5px; color: var(--on-dark-soft); }

.byline {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--ink-3);
  padding-top: 16px;
}
.byline img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}
.byline-words { margin: 0; display: flex; flex-direction: column; }
.byline-name { font-size: 13.5px; font-weight: 700; color: #ffffff; text-decoration: none; }
.byline-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.byline-credit { font-size: 12.5px; color: var(--on-dark-soft); }
.byline-credit a { color: inherit; }
.byline-comments { margin-left: auto; font-size: 12.5px; color: var(--on-dark-bright); }

.post-body {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 16px var(--gutter) 16px;
}
@media (min-width: 640px) { .post-body { padding-top: 32px; } }
.post--page .post-body,
.template-error .post-body { padding-bottom: 80px; }
@media (min-width: 640px) { .post--page .post-body, .template-error .post-body { padding-bottom: 120px; } }
/* A site page arrives bare inside <main>: give it the reading column. */
.site-page .page > :not(.hero):not(article) { width: 100%; max-width: 680px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.feature { margin: 8px 0 24px; }
.feature img { display: block; width: 100%; border-radius: 20px; }
.feature figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); text-align: center; }

.post-terms { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
.post-terms .pill:hover { background: var(--purple); color: #ffffff; }
.post-translations { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.post-translations a { color: var(--purple); font-weight: 700; }

/* The one free thing that fits the post — the app's article cta. */
.cta-card {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 20px;
  background: var(--ink);
  padding: 20px;
  color: #ffffff;
}
@media (min-width: 640px) { .cta-card { padding: 32px; } }
.cta-card-eyebrow { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.cta-card-title { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 900; line-height: 1.35; }
@media (min-width: 640px) { .cta-card-title { font-size: 26px; } }
.cta-card-body { margin: 0; font-size: 14.5px; line-height: 1.625; color: var(--on-dark); }
.cta-card .btn { margin-top: 8px; width: 100%; }
@media (min-width: 640px) { .cta-card .btn { width: auto; align-self: flex-start; } }

/* Who wrote this. */
.author-card {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 20px;
  background: var(--lavender);
  padding: 20px;
}
@media (min-width: 640px) { .author-card { padding: 28px; } }
.author-card-title { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.author-card-body { font-size: 14.5px; line-height: 1.625; color: var(--muted); }
.author-card-body p { margin: 0; }
.author-card-body p + p { margin-top: 8px; }
.author-card-body a { color: var(--purple); }
.author-card-link {
  margin-top: 4px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 4px;
}
.author-card-link:hover { color: var(--purple-dark); text-decoration: underline; }

/* More posts: the app's "다른 글도 있어요". */
.more-posts {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}
@media (min-width: 640px) { .more-posts { padding-bottom: 120px; } }
.more-posts-heading { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.more-posts-list { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.more-posts-list > li { border-bottom: 1px solid var(--line); }
.more-posts-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  color: var(--ink);
  text-decoration: none;
}
.more-posts-link .pill { align-self: flex-start; font-size: 12.5px; }
.more-posts-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  transition: color 0.2s ease;
}
@media (min-width: 640px) { .more-posts-title { font-size: 20px; } }
.more-posts-link:hover .more-posts-title { color: var(--purple); }
.more-posts-excerpt { font-size: 14px; line-height: 1.625; color: var(--muted); }

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 14px;
}
.post-navigation a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
}
.post-navigation a:hover { color: var(--purple-dark); }
.post-navigation > span:last-child { text-align: right; }

.pixel-comments-frame { display: block; width: 100%; margin: 48px 0 0; border: 0; }

/* ------------------------------------------------------------------ */
/* Reader HTML inside a post — the app's article blocks.               */
/* ------------------------------------------------------------------ */

.content { font-size: 16px; line-height: 1.85; color: var(--ink); }
@media (min-width: 640px) { .content { font-size: 17px; } }
.content > :first-child { margin-top: 0; }

.content p { margin: 20px 0 0; }

.content h2,
.content h3,
.content h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.content h2 { margin: 40px 0 0; font-size: 21px; }
@media (min-width: 640px) { .content h2 { font-size: 26px; } }
.content h3 { margin: 32px 0 0; font-size: 18px; font-weight: 800; }
@media (min-width: 640px) { .content h3 { font-size: 20px; } }
.content h4 { margin: 28px 0 0; font-size: 16px; font-weight: 800; }

.content a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--purple) 35%, transparent);
  text-underline-offset: 4px;
}
.content a:hover { color: var(--purple-dark); text-decoration-color: currentColor; }

.content strong, .content b { font-weight: 700; }

/* The app's highlighter: a yellow stroke under the lower half. */
.content mark {
  background: linear-gradient(transparent 58%, var(--accent) 58%);
  color: inherit;
  padding: 0 0.05em;
}

/* Lists as lavender cards, one per item. */
.content ul,
.content ol {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content ol { counter-reset: lb-item; }
.content ul > li,
.content ol > li {
  border-radius: 12px;
  background: var(--lavender);
  padding: 12px 16px;
  font-size: 15.5px;
  line-height: 1.7;
}
.content ol > li { counter-increment: lb-item; position: relative; padding-left: 44px; }
.content ol > li::before {
  content: counter(lb-item);
  position: absolute;
  left: 16px;
  top: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--purple);
}
.content li > p { margin: 0; }
.content li ul,
.content li ol { margin-top: 8px; gap: 4px; }
.content li li { background: #ffffff; }

/* A quote: yellow rule, yellow wash, display weight. */
.content blockquote {
  margin: 32px 0 0;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgb(255 210 63 / 0.1);
  padding: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}
@media (min-width: 640px) { .content blockquote { padding: 16px 24px; font-size: 19px; } }
.content blockquote p { margin: 0; }
.content blockquote p + p { margin-top: 8px; }
.content blockquote cite,
.content blockquote footer {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.content code {
  border-radius: 6px;
  background: var(--lavender);
  padding: 0.1em 0.35em;
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.content pre {
  margin: 24px 0 0;
  overflow-x: auto;
  border-radius: 16px;
  background: var(--ink);
  padding: 20px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  word-break: normal;
}
.content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

.content hr { margin: 40px 0; border: 0; height: 1px; background: var(--line); }

.content table {
  margin: 24px 0 0;
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
.content th, .content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.content th { font-weight: 700; background: var(--lavender); }

.content figure { margin: 32px 0 0; }
.content figure img,
.content figure video { display: block; width: 100%; border-radius: 16px; }
.content figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.content .post-media--wide {
  width: min(960px, 100vw - 2 * var(--gutter));
  margin-left: 50%;
  transform: translateX(-50%);
}
.content .post-media--full {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.content .post-media--full img,
.content .post-media--full video { border-radius: 0; }
.content figure[data-video] iframe { border-radius: 16px; }

.content .attachment-gallery { margin: 32px 0 0; display: flex; gap: 8px; }
.content .attachment-gallery figure { margin: 0; flex: 1; min-width: 0; }
.content .attachment-gallery img { height: 100%; object-fit: cover; }

.content aside[data-callout] { margin: 24px 0 0; border-radius: 16px; }
.content aside[data-callout="violet"] { --callout-bg: #f4f2fa; --callout-ink: #15122a; }
.content aside[data-callout="amber"] { --callout-bg: #fff3c9; --callout-ink: #15122a; }
.content p[data-button] { margin-top: 28px; }

/* ------------------------------------------------------------------ */
/* Archive heads, search, the 404.                                     */
/* ------------------------------------------------------------------ */

.archive-person { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.archive-person img { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; flex: none; }
.archive-person .hero-title { margin: 0; }
.hero-lead--bio p { margin: 0; }
.hero-lead--bio p + p { margin-top: 8px; }

.search-form { margin-top: 20px; display: flex; gap: 8px; max-width: 560px; }
.search-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.search-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hero .search-input { border-color: var(--edge-dark); }

/* ------------------------------------------------------------------ */
/* Footer — white, four columns, then contact, legal and the credit.   */
/* ------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--line); background: #ffffff; color: var(--ink); }
.footer-top {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: 56px var(--gutter) 40px;
  font-size: 14px;
}
@media (min-width: 768px) { .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-identity { grid-column: span 2; }
@media (min-width: 768px) { .footer-identity { grid-column: span 1; } }
.site-footer .brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  text-decoration: none;
  --logo-height: 28px;
}
.footer-tagline { margin: 8px 0 0; color: var(--muted); }
.footer-tagline p { margin: 0; }
.footer-col-title { margin: 0 0 12px; font-weight: 700; }
.footer-col a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.footer-col a:hover,
.footer-col a[aria-current="page"] { color: var(--ink); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) 32px;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
@media (min-width: 640px) {
  .footer-bottom-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-contact a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.footer-contact a:hover { color: var(--purple); }
.footer-legal { display: flex; flex-wrap: wrap; column-gap: 16px; }
.footer-legal a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.footer-legal a:first-child { font-weight: 700; }
.footer-legal a:hover { color: var(--purple); }
.footer-credit { margin-top: 8px !important; }
.footer-credit p { display: inline; }

/* ------------------------------------------------------------------ */
/* The front page: category buttons, then the Hall carousel.            */
/* ------------------------------------------------------------------ */

.cats { margin-bottom: 48px; }
@media (min-width: 640px) { .cats { margin-bottom: 64px; } }
.cat-input { position: absolute; opacity: 0; pointer-events: none; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cat-tab:hover { background: color-mix(in srgb, var(--purple) 14%, var(--lavender)); }
.cat-tab--lounge::before { content: "🔒"; margin-right: 6px; font-size: 12px; }
#cat-de:checked ~ .cat-tabs [for="cat-de"],
#cat-en:checked ~ .cat-tabs [for="cat-en"],
#cat-fr:checked ~ .cat-tabs [for="cat-fr"],
#cat-other:checked ~ .cat-tabs [for="cat-other"],
#cat-lounge:checked ~ .cat-tabs [for="cat-lounge"] { background: var(--ink); color: #ffffff; }
#cat-de:focus-visible ~ .cat-tabs [for="cat-de"],
#cat-en:focus-visible ~ .cat-tabs [for="cat-en"],
#cat-fr:focus-visible ~ .cat-tabs [for="cat-fr"],
#cat-other:focus-visible ~ .cat-tabs [for="cat-other"],
#cat-lounge:focus-visible ~ .cat-tabs [for="cat-lounge"] { outline: 3px solid var(--purple); outline-offset: 2px; }

.cat-panels { margin-top: 16px; border-top: 2px solid var(--ink); }
.cat-panel { display: none; }
#cat-de:checked ~ .cat-panels .cat-panel--de,
#cat-en:checked ~ .cat-panels .cat-panel--en,
#cat-fr:checked ~ .cat-panels .cat-panel--fr,
#cat-other:checked ~ .cat-panels .cat-panel--other,
#cat-lounge:checked ~ .cat-panels .cat-panel--lounge { display: block; }
.cat-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.cat-list { margin: 0; padding: 0; list-style: none; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
}
.cat-link:hover .cat-title { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.cat-title { min-width: 0; font-size: 15.5px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.cat-date { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-all { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--purple); text-decoration: none; }
.cat-all:hover { text-decoration: underline; }
.cat-empty { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }

.hall {
  border-radius: 20px;
  background: var(--ink);
  color: #ffffff;
  padding: 24px 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  overflow: hidden;
}
@media (min-width: 640px) { .hall { padding: 32px 0; } }
.hall-head { padding: 0 24px; }
@media (min-width: 640px) { .hall-head { padding: 0 32px; } }
.hall-eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.hall-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
}
@media (min-width: 640px) { .hall-title { font-size: 30px; } }
.hall-body { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--on-dark); }
.hall-empty { margin: 20px 24px 0; font-size: 14.5px; color: var(--on-dark); }

.hall-viewport { display: grid; gap: 16px; margin-top: 24px; overflow: hidden; }
.hall-viewport:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.hall-track {
  display: flex;
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
}
.hall-viewport.is-ready .hall-track { animation: hall-slide var(--hall-duration, 40s) linear infinite; }
.hall-viewport.is-ready .hall-track:nth-child(even) { animation-direction: reverse; }
.hall-viewport:hover .hall-track,
.hall-viewport:focus-within .hall-track { animation-play-state: paused; }
@keyframes hall-slide { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .hall-viewport { overflow-x: auto; }
  .hall-viewport.is-ready .hall-track { animation: none; }
  .hall-medal[aria-hidden="true"] { display: none; }
}
.hall-medal { flex: none; width: 104px; text-align: center; }
.hall-art svg { display: block; width: 104px; height: 104px; }
.hall-number { margin: 6px 0 0; font-size: 13px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.hall-name { margin: 2px 0 0; font-size: 13px; color: var(--on-dark); overflow-wrap: anywhere; }
