:root {
  color-scheme: light;
  --paper: #f3eee3;
  --paper-light: #faf7f0;
  --ink: #1f2e2a;
  --muted: #52605b;
  --green: #2c4b43;
  --gold: #9a7840;
  --gold-soft: rgba(154, 120, 64, 0.22);
  --card: rgba(255, 255, 255, 0.38);
  --shadow: 0 22px 60px rgba(43, 53, 48, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font-family: "Noto Serif KR", Georgia, serif;
  hyphens: none;
  overflow-wrap: normal;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 48px, 1080px);
  margin: 0 auto;
  padding: 52px 0 42px;
  text-align: center;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 610px;
  padding: 84px 0 92px;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-soft);
  text-align: left;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -2%;
  width: min(52%, 500px);
  height: 100%;
  background: url("../images/decorative/hanbok-watermark.jpg") top right / auto 126% no-repeat;
  content: "";
  filter: sepia(1) saturate(0.65) hue-rotate(350deg);
  opacity: 0.07;
  pointer-events: none;
}

.hero-copy {
  width: min(62%, 650px);
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(52px, 7.2vw, 82px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.subtitle {
  max-width: 34rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.75;
}

.line {
  width: 188px;
  height: 1px;
  margin: 38px 0 30px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section {
  margin-top: 92px;
}

.title {
  margin: 0 0 26px;
  color: var(--gold);
  font-size: clamp(26px, 3.8vw, 34px);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.text {
  max-width: 68ch;
  margin: 18px auto 0;
  color: #33423d;
  font-size: clamp(16px, 2.3vw, 18px);
  hyphens: none;
  line-height: 1.95;
  overflow-wrap: normal;
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
  word-break: keep-all;
}

.prose {
  max-width: 780px;
  margin: 0 auto;
}

.about-section,
.archive-introduction {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
}

.archive-introduction {
  padding: 58px clamp(24px, 7vw, 74px);
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--green);
  font-size: 15px;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.text-link span {
  margin-left: 7px;
  color: var(--gold);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
  text-align: left;
}

.section-heading .section-label,
.section-heading .title {
  margin-bottom: 0;
}

.section-heading .title {
  margin-top: 10px;
}

.section-heading .text-link {
  flex: none;
  margin: 0 0 5px;
}

.event-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.event-preview {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px 26px;
  border: 1px solid var(--gold-soft);
  background: rgba(255, 255, 255, 0.2);
  text-align: left;
}

.event-preview time {
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-preview h3 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
}

.event-preview-location {
  min-height: 3.2em;
  margin: 16px 0 0;
  color: var(--gold);
  font-size: 13px;
  line-height: 1.6;
}

.event-preview-description {
  margin: 20px 0 26px;
  color: #33423d;
  font-size: 14px;
  hyphens: none;
  line-height: 1.75;
  overflow-wrap: normal;
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
  word-break: keep-all;
}

.event-preview > a {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--gold-soft);
  color: var(--green);
  font-size: 14px;
  text-decoration: none;
}

.spotlight,
.notice {
  padding: 42px clamp(22px, 6vw, 60px);
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.section-label {
  margin-bottom: 12px;
  font-size: 10px;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
  margin: 0 auto;
}

.links a,
.page-navigation a {
  text-decoration: none;
}

.social-links a {
  width: 100%;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gold-soft);
  color: var(--green);
  font-size: 17px;
}

.social-links a span {
  margin-left: 6px;
  color: var(--gold);
  font-size: 13px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: 16px;
}

.page-navigation {
  margin-top: 72px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 100px;
  padding-top: 34px;
  border-top: 1px solid var(--gold-soft);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: left;
}

.footer strong {
  font-weight: 500;
}

.footer a {
  color: inherit;
  text-decoration-color: rgba(154, 120, 64, 0.55);
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--gold);
}

.social-links a:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.3);
}

.primary-link:hover {
  border-color: var(--gold);
  background: var(--paper-light);
}

a:focus-visible {
  outline: 3px solid rgba(154, 120, 64, 0.48);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 32px, 900px);
    padding-top: 28px;
  }

  .hero {
    min-height: 520px;
    padding: 58px 0 68px;
  }

  .hero::before {
    right: -18%;
    width: 76%;
    background-size: auto 112%;
    opacity: 0.035;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(42px, 14vw, 60px);
    letter-spacing: -0.03em;
  }

  .section {
    margin-top: 68px;
  }

  .spotlight,
  .notice {
    padding: 34px 22px;
  }

  .archive-introduction {
    padding: 44px 0;
  }

  .section-heading {
    display: block;
    text-align: center;
  }

  .section-heading .text-link {
    margin-top: 18px;
  }

  .event-preview-grid {
    grid-template-columns: 1fr;
  }

  .event-preview-location {
    min-height: 0;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    margin-top: 72px;
    text-align: center;
  }
}

@media (min-width: 701px) and (max-width: 920px) {
  .hero {
    min-height: 560px;
  }

  .hero::before {
    right: -8%;
    width: 58%;
  }

  .event-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-preview:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Event archive ---------- */

.archive{
    max-width:820px;
    margin-right:auto;
    margin-left:auto;
}

.event-list{
    display:flex;
    flex-direction:column;
    gap:38px;
    margin:36px 0 0;
    padding:0;
    list-style:none;
}

.event-card{
    padding:38px;
    border:1px solid rgba(168,139,85,.32);
    background:rgba(255,255,255,.2);
    text-align:left;
}

.event-header{
    padding-bottom:24px;
    border-bottom:1px solid rgba(168,139,85,.25);
}

.event-date{
    display:block;
    margin-bottom:10px;
    color:#a88b55;
    font-size:15px;
    font-weight:500;
    letter-spacing:1px;
}

.event-title{
    margin:0;
    color:#1f2e2a;
    font-size:27px;
    font-weight:500;
    line-height:1.45;
}

.event-meta{
    margin:24px 0 0;
}

.event-meta div{
    display:grid;
    grid-template-columns:90px 1fr;
    gap:16px;
}

.event-meta dt{
    color:#a88b55;
    font-size:14px;
    font-weight:500;
}

.event-meta dd{
    margin:0;
    color:#3f4d48;
    font-size:15px;
    line-height:1.6;
}

.event-description{
    max-width:68ch;
    margin:24px 0 0;
    color:#2d3c37;
    font-size:17px;
    hyphens:none;
    line-height:1.8;
    overflow-wrap:normal;
    text-align:justify;
    text-justify:inter-word;
    text-align-last:auto;
    text-wrap:pretty;
    word-break:keep-all;
}

.event-media{
    margin:30px 0 0;
}

.event-media img{
    display:block;
    width:100%;
    height:auto;
    border:1px solid rgba(168,139,85,.2);
}

.event-media figcaption{
    margin-top:10px;
    color:#4d5a56;
    font-size:13px;
    line-height:1.6;
    opacity:.75;
}

.event-gallery{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:18px;
    align-items:start;
}

.event-videos{
    margin-top:30px;
    padding-top:22px;
    border-top:1px solid rgba(168,139,85,.25);
}

.event-videos h4{
    margin:0 0 16px;
    color:#a88b55;
    font-size:15px;
    font-weight:500;
    letter-spacing:1px;
}

.video-gallery{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:18px;
}

.official-video{
    display:block;
    border:1px solid rgba(168,139,85,.25);
    color:#2c4b43;
    text-decoration:none;
}

.official-video figure{
    margin:0;
}

.video-thumbnail{
    display:block;
    width:100%;
    aspect-ratio:16 / 9;
    background-image:var(--thumbnail-max), var(--thumbnail-fallback);
    background-position:center;
    background-repeat:no-repeat;
    background-size:cover;
}

.official-video figcaption{
    display:flex;
    flex-direction:column;
    gap:5px;
    padding:14px 16px 16px;
    border-top:1px solid rgba(168,139,85,.2);
    text-align:left;
}

.video-label{
    color:#2c4b43;
    font-size:14px;
    font-weight:500;
    line-height:1.5;
}

.video-channel{
    color:#4d5a56;
    font-size:12px;
    line-height:1.5;
    opacity:.75;
}

.official-video:hover{
    border-color:#a88b55;
    color:#a88b55;
}

.official-video:focus-visible{
    outline:2px solid #a88b55;
    outline-offset:4px;
}

/* Local archival photographs take visual priority over official external media. */
.event-card:has(.event-media, .event-gallery) .video-gallery{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.event-card:has(.event-media, .event-gallery) .official-video{
    border:0;
}

.event-card:has(.event-media, .event-gallery) .video-thumbnail{
    display:none;
}

.event-card:has(.event-media, .event-gallery) .official-video figcaption{
    position:relative;
    display:block;
    padding:7px 10px 7px 30px;
    border-top:0;
}

.event-card:has(.event-media, .event-gallery) .official-video figcaption::before{
    position:absolute;
    top:8px;
    left:8px;
    color:#a88b55;
    content:"▶";
    font-size:12px;
}

.event-card:has(.event-media, .event-gallery) .video-channel{
    display:none;
}

.event-footer{
    margin-top:30px;
    padding-top:22px;
    border-top:1px solid rgba(168,139,85,.25);
}

.event-footer h4{
    margin:0 0 10px;
    color:#a88b55;
    font-size:15px;
    font-weight:500;
    letter-spacing:1px;
}

.source-list{
    margin:0;
    padding-left:20px;
}

.source-list li{
    color:#4d5a56;
    line-height:1.6;
}

.source-list a{
    color:#2c4b43;
    hyphens:none;
    line-break:strict;
    text-decoration-thickness:1px;
    text-underline-offset:3px;
    overflow-wrap:normal;
    text-wrap:pretty;
    word-break:keep-all;
}

.source-list a:hover{
    color:#a88b55;
}

.links a:focus-visible,
.source-list a:focus-visible{
    outline:2px solid #a88b55;
    outline-offset:4px;
}

.event-credit{
    margin:14px 0 0;
    color:#4d5a56;
    font-size:12px;
    line-height:1.6;
    opacity:.72;
}

@media (max-width:700px){

.event-list{
    gap:28px;
}

.event-card{
    padding:25px 20px;
}

.event-title{
    font-size:22px;
}

.event-meta div{
    grid-template-columns:1fr;
    gap:5px;
}

.event-description{
    font-size:16px;
}

.event-gallery{
    grid-template-columns:1fr;
    gap:0;
}

.video-gallery{
    grid-template-columns:1fr;
}

}
