/*
Theme Name: Arts & Culture Editorial
Theme URI: https://artsandculture.co.kr/
Author: Arts & Culture
Description: A fast editorial theme for Korean exhibitions and cultural events.
Version: 0.2.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: arts-culture
*/

:root {
  --ink: #171815;
  --muted: #67685f;
  --paper: #f5f2ea;
  --surface: #fffdf8;
  --line: #d8d3c8;
  --accent: #dfff68;
  --coral: #ff715b;
  --radius: 22px;
  --shadow: 0 18px 48px rgba(28, 28, 22, 0.08);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-shell { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; }
.skip-link:focus { position: fixed; z-index: 9999; top: 10px; left: 10px; width: auto; height: auto; padding: 10px 14px; clip: auto; background: var(--ink); color: white; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(23, 24, 21, 0.12);
  background: rgba(245, 242, 234, 0.92);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -0.04em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font: 800 17px/1 Georgia, serif;
}
.brand-name { font-size: clamp(18px, 2vw, 24px); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.site-nav ul { display: flex; gap: 25px; align-items: center; list-style: none; padding: 0; margin: 0; }
.site-nav a { color: var(--muted); font-weight: 700; font-size: 14px; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--ink); }
.header-search { display: flex; align-items: center; overflow: hidden; border: 1px solid rgba(23,24,21,.35); border-radius: 999px; background: rgba(255,255,255,.45); }
.header-search label { display: none; }
.header-search input { width: 128px; border: 0; outline: 0; padding: 9px 4px 9px 14px; background: transparent; font: inherit; font-size: 13px; }
.header-search button { border: 0; padding: 9px 13px; background: transparent; cursor: pointer; font-weight: 800; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; font-size: 0; cursor: pointer; }
.menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 17px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-3.5px) rotate(-45deg); }
.admin-bar .site-header { top: 32px; }

.hero { padding: clamp(48px, 8vw, 100px) 0 48px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}
.hero h1 em { font-style: normal; background: linear-gradient(transparent 60%, var(--accent) 60%); }
.hero-copy { max-width: 640px; margin: 28px 0 0 auto; color: var(--muted); font-size: clamp(16px, 2vw, 20px); }
.hero-tools { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-tools strong { font: 700 18px/1.2 Georgia, "Noto Serif KR", serif; }
.hero-tools span { color: var(--muted); font-size: 13px; }

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}
.featured-media { position: relative; min-height: 420px; background: linear-gradient(135deg, #30342c, #10110f); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: inherit; background: linear-gradient(135deg, #dfff68, #ff8d7b 55%, #543dff); color: var(--ink); font: 700 clamp(52px, 10vw, 120px)/1 Georgia, serif; }
.event-badge { display: inline-flex; align-items: center; width: fit-content; padding: 7px 11px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 900; }
.event-badge.is-ended { background: rgba(255,255,255,.15); color: rgba(255,255,255,.7); }
.feature-facts { display: grid; gap: 8px; margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: 14px; }
.feature-facts span { display: flex; gap: 10px; }
.feature-facts strong { min-width: 42px; color: white; }
.featured-content { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: clamp(28px, 4vw, 54px); }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.featured h2 { margin: 14px 0; font: 700 clamp(34px, 4vw, 58px)/1.05 Georgia, "Noto Serif KR", serif; letter-spacing: -0.045em; }
.featured p { color: rgba(255,255,255,.68); }
.round-link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 800; }
.round-link::after { content: "↗"; display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--ink); }

.section { padding: 78px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head h2 { margin: 0; font: 700 clamp(32px, 5vw, 58px)/1 Georgia, "Noto Serif KR", serif; letter-spacing: -0.045em; }
.section-head p { margin: 0; color: var(--muted); }
.chip-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 32px; }
.chip { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.45); font-size: 13px; font-weight: 750; }
.chip:hover { border-color: var(--ink); background: var(--accent); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #d9e4d0, #f7c8ba); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .card-media img { transform: scale(1.035); }
.card-media .media-placeholder { min-height: 100%; font-size: 56px; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.card-title { margin: 13px 0 10px; font: 700 25px/1.2 Georgia, "Noto Serif KR", serif; letter-spacing: -0.03em; }
.card-excerpt { margin: 0; color: var(--muted); font-size: 14px; }
.card-footer { margin-top: auto; padding-top: 20px; font-weight: 800; font-size: 13px; }
.card-event-meta { display: grid; gap: 4px; margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.card-event-meta strong { color: var(--ink); }

.archive-header { padding: 72px 0 32px; }
.archive-header h1 { margin: 0; font: 700 clamp(44px, 7vw, 82px)/1 Georgia, "Noto Serif KR", serif; letter-spacing: -0.055em; }
.archive-header p { max-width: 620px; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 50px 0; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); }
.pagination .current { background: var(--ink); color: white; border-color: var(--ink); }

.single-wrap { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 70px 0 100px; }
.single-head { margin-bottom: 42px; text-align: center; }
.single-head h1 { margin: 16px 0; font: 700 clamp(42px, 7vw, 78px)/1.06 Georgia, "Noto Serif KR", serif; letter-spacing: -0.055em; }
.single-meta { color: var(--muted); font-size: 13px; }
.single-cover { margin: 0 auto 48px; overflow: hidden; border-radius: 28px; background: white; box-shadow: var(--shadow); }
.single-cover img { width: auto; max-width: 100%; max-height: min(80vh, 900px); margin: 0 auto; object-fit: contain; }
.event-facts { margin: 0 0 46px; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.event-facts-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
.event-facts h2 { margin: 0; font: 700 28px/1.2 Georgia, "Noto Serif KR", serif; }
.verified-mark { color: #326c25; font-size: 12px; font-weight: 800; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; }
.fact-grid div { min-width: 0; }
.fact-grid dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.fact-grid dd { margin: 0; font-weight: 700; }
.official-link { display: inline-flex; margin-top: 24px; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: white; font-size: 13px; font-weight: 800; }
.single-content { font-size: 18px; }
.single-content > * { max-width: 100%; }
.single-content img { margin: 28px auto; border-radius: 14px; }
.single-content figure { margin: 36px 0; }
.single-content figure img { width: 100%; margin-bottom: 10px; }
.single-content figcaption { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.single-content > p:first-child { font-size: 21px; line-height: 1.75; }
.single-content h2 { margin-top: 2.2em; font: 700 34px/1.2 Georgia, "Noto Serif KR", serif; }
.single-content h3 { margin-top: 1.8em; font-size: 24px; }
.single-content a { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.single-content blockquote { margin: 2em 0; padding: 8px 0 8px 24px; border-left: 4px solid var(--accent); font-family: Georgia, "Noto Serif KR", serif; font-size: 23px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 36px; border-top: 1px solid var(--line); }
.post-tags a { padding: 7px 12px; border-radius: 999px; background: white; font-size: 12px; }
.source-note { margin-top: 42px; padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,.56); color: var(--muted); font-size: 13px; }
.source-note a { font-weight: 800; text-decoration: underline; }

.site-footer { padding: 64px 0 38px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
.footer-title { margin: 0; font: 700 clamp(36px, 6vw, 72px)/.95 Georgia, serif; letter-spacing: -0.05em; }
.footer-note { max-width: 450px; color: rgba(255,255,255,.62); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.5); font-size: 12px; }

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-search { display: none; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: calc(100% + 1px); right: 0; left: 0; padding: 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: block; }
  .site-nav ul { width: min(100%, var(--content)); margin: 0 auto; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 12px 0; font-size: 16px; }
}
@media (max-width: 620px) {
  .site-shell, .single-wrap { width: min(calc(100% - 28px), var(--content)); }
  .header-inner { min-height: 64px; }
  .brand-name { font-size: 18px; }
  .post-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .section-head, .footer-grid, .footer-bottom { display: block; }
  .hero-tools { display: block; }
  .hero-tools span { display: block; margin-top: 8px; }
  .fact-grid { grid-template-columns: 1fr; }
  .single-wrap { padding-top: 42px; }
  .single-head { margin-bottom: 30px; }
  .single-head h1 { font-size: clamp(34px, 11vw, 50px); }
  .single-cover { margin-bottom: 34px; border-radius: 18px; }
  .single-content { font-size: 17px; }
  .single-content > p:first-child { font-size: 19px; }
  .single-content h2 { font-size: 29px; }
  .admin-bar .site-header { top: 46px; }
  .footer-note, .footer-bottom > * + * { margin-top: 18px; }
}
