:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --ink: #26231e;
  --muted: #62594c;
  --line: #d3c9b7;
  --accent: #773e32;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 88rem; padding: 0 clamp(1rem, 5vw, 5rem); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .75rem; background: white; }
.skip:not(:focus) { clip-path: inset(50%); }
.bar, footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; }
.bar { border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; }
.brand-logo { display: block; width: clamp(7.5rem, 18vw, 10rem); height: auto; }
nav { display: flex; gap: clamp(1rem, 4vw, 2.75rem); }
nav a { padding: .4rem 0; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero, .panel { border-bottom: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(2.5rem, 7vw, 7rem) 0; }
.hero-logo { display: block; width: min(100%, 28rem); height: auto; }
h1, h2 { font-family: "Batang", "AppleMyungjo", serif; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.65rem, 7vw, 6rem); letter-spacing: -.07em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
p { line-height: 1.75; color: var(--muted); }
.button { display: inline-flex; gap: 1rem; margin-top: 1rem; padding: .85rem 1.1rem; background: var(--ink); color: var(--paper); text-decoration: none; }
.featured { position: relative; display: grid; place-items: center; min-height: 15rem; aspect-ratio: 4 / 3; background: #e9e1d3; padding: 1rem; }
.featured button { position: absolute; inset: 1rem; display: block; }
.featured img { display: block; width: 100%; height: 100%; object-fit: contain; }
.panel { padding: clamp(2.5rem, 6vw, 5rem) 0; scroll-margin-top: 1rem; }
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem; }
.works:not(:empty) { margin-top: 1.5rem; }
.work { background: transparent; color: inherit; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; display: grid; gap: .65rem; }
.works img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #e9e1d3; }
footer { color: var(--muted); }
.exhibition-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
dialog { width: min(44rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: clamp(1rem, 4vw, 2rem); overscroll-behavior: contain; }
dialog::backdrop { background: rgb(38 35 30 / 72%); }
dialog img { display: block; width: 100%; max-height: 55vh; object-fit: contain; margin: 1rem 0; }
dialog > form[method="dialog"] { position: sticky; top: .5rem; z-index: 1; width: fit-content; margin-inline-start: auto; margin-bottom: 1rem; }
.close { min-height: 44px; font: inherit; padding: .5rem .7rem; color: var(--ink); background: var(--paper); border: 1px solid var(--muted); cursor: pointer; }
dt { font-weight: 700; }
dd { margin: 0 0 .65rem; }
@media (max-width: 42rem) {
  .bar nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .intro p { word-break: keep-all; text-wrap: balance; }
  .featured { min-height: 0; }
  dialog { width: calc(100% - 1rem); max-height: calc(100% - 1rem); }
}
