@font-face {
  font-family: Word;
  src: url("assets/corm.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Essay;
  src: url("assets/editorial.ttf?v=4") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  --paper: #f7f6f2;
  --ink: #171512;
  --muted: #655f57;
  --sand: #eeeae1;
  --line: #dbd7cd;
  --coral: #ef5b4d;
  --rust: #ad3e31;
  --scene: #201a1c;
  --ambient: 186, 104, 81;
  --max: 1216px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.5 "Pretendard Variable",
    Pretendard,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Noto Sans KR",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
button,
input {
  font: inherit;
}
button,
a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a {
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #d75645;
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.06em;
}
[hidden] {
  display: none !important;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.wrap,
.topinner {
  width: min(var(--max), 88%);
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -80px;
  padding: 12px;
  background: white;
  z-index: 12;
}
.skip:focus {
  top: 4px;
  left: 4px;
}
.top {
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.topinner {
  height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand,
.top nav {
  display: flex;
  align-items: center;
}
.brand {
  gap: 9px;
  min-height: 44px;
}
.brand img {
  width: 26px;
  height: 26px;
}
.brand span,
.wordmark {
  font:
    500 29px/0.92 Word,
    Georgia,
    serif;
  letter-spacing: -0.062em;
}
.top nav {
  gap: 27px;
}
.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.top nav a:hover,
.top nav [aria-current="page"] {
  color: var(--rust);
}
.top nav .contact {
  position: relative;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #bfb9ad;
  border-radius: 20px;
}
/* The pill stays slim; its touch area is as tall as the other links. */
.top nav .contact::after {
  content: "";
  position: absolute;
  inset: -5px 0;
}
.lineact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 550;
  color: var(--muted);
}
a.lineact::after {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1.25px solid;
  border-right: 1.25px solid;
  transform: rotate(45deg);
  flex: none;
}
a.lineact[target="_blank"]::after {
  content: "↗" / "";
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  font: normal 0.9em/1 system-ui;
}
.lineact:hover {
  color: var(--ink);
}
.meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.012em;
}

.tinyarr {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid #9c8e826e;
  border-radius: 50%;
  color: inherit;
}
.prev:before,
.next:before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-left: -3px;
}
.prev:before {
  transform: rotate(-135deg);
  margin-left: 3px;
}
.home-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  align-items: center;
  padding: 58px 0;
}
.home-notes {
  max-width: 480px;
}
.home-notes h2 {
  font-family: Essay, "AppleMyungjo", Georgia, serif;
  font-size: clamp(32px, 3.1vw, 50px);
  line-height: 1.28;
  font-weight: 600;
  margin: 8px 0 12px;
}
.home-notes p:not(.meta) {
  font-size: 17px;
  line-height: 1.7;
  color: #524e48;
}
.home-notes a {
  margin-top: 14px;
}
.collage {
  display: block;
  height: 245px;
  background: #e9e2d3;
  position: relative;
  overflow: hidden;
}
.collage img {
  position: absolute;
  box-shadow: 3px 10px 20px #42371f40;
}
.mini-knight {
  height: 85%;
  left: 17%;
  top: 15%;
  transform: rotate(-9deg);
}
.mini-book {
  height: 82%;
  right: 18%;
  top: 11%;
  transform: rotate(7deg);
}
.bottom {
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bottom p,
.bottom > div + div a {
  font-size: 13px;
  color: var(--muted);
}
.bottom > div + div a,
.bottom .wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.bottom > div + div {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bottom p {
  margin-top: 6px;
}
.modal {
  width: min(980px, 94vw);
  max-height: 91svh;
  border: 1px solid #736652;
  border-radius: 19px;
  padding: 0;
  color: #f8f3ea;
  background: #262023;
  box-shadow: 0 22px 80px #17121055;
  overflow: auto;
}
.modal::backdrop {
  background: #171313bb;
  backdrop-filter: blur(6px);
}
.modalhead,
.dtintro,
.galleryline,
.modalend,
.dtbranding,
.shotfoot,
.filters,
.storelinks {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modalhead,
.dtintro,
.galleryline,
.modalend {
  justify-content: space-between;
}
.modalhead {
  padding: 17px 25px;
  border-bottom: 1px solid #ffffff24;
  position: sticky;
  top: 0;
  background: #262023;
  z-index: 1;
}
.modalhead h2 {
  font-size: 25px;
}
.x {
  font: 300 28px/1 Arial;
  width: 44px;
  height: 44px;
  border: 1px solid #a89f903e;
  border-radius: 50%;
}
.x:hover {
  background: #ffffff16;
}
.filters {
  gap: 4px;
  flex-wrap: wrap;
}
.filters button {
  min-height: 44px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
}
.filters button[aria-pressed="true"] {
  font-weight: 650;
  color: var(--paper);
  background: var(--ink);
}
.dtbranding {
  gap: 10px;
}
.dtbranding img {
  width: 46px;
  border-radius: 23%;
}
.dtbranding small {
  color: #cfc3b4;
  font-size: 12px;
}
.dtintro {
  padding: 16px 25px;
  gap: 24px;
}
.dtintro p {
  max-width: 600px;
  font-size: 17px;
  color: #e4dcd4;
  line-height: 1.65;
}
.storelinks {
  gap: 6px;
  flex: none;
}
.storelinks a {
  font-size: 13px;
  font-weight: 650;
  padding: 7px 12px;
  border: 1px solid #ab95824a;
  border-radius: 18px;
  white-space: nowrap;
}
.storelinks a:hover {
  background: #ffffff13;
}
.gallerypane {
  margin: 0 17px;
  padding: 12px 13px 6px;
  border: 1px solid #b19c8929;
  border-radius: 11px;
  background: radial-gradient(
    ellipse at 50% 47%,
    #53423a 0%,
    #33292b 60%,
    #302728
  );
}
.shot-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shot-tools button {
  min-height: 44px;
  padding: 4px 5px;
  color: #f1e4d6;
  font-size: 14px;
}
.shot-tools button:hover {
  color: white;
}
.galleryline h3 {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 550;
}
.galleryline span {
  font:
    12px Menlo,
    monospace;
  color: #e6dacf;
}
.galleryline {
  padding: 0 4px 9px;
}
.shotstrip {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  align-items: center;
  justify-content: safe center;
  scroll-snap-type: x proximity;
  padding: 7px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: #a9907d transparent;
}
.shotstrip button {
  height: clamp(210px, 34vh, 340px);
  max-width: 78vw;
  min-width: 0;
  flex: none;
  position: relative;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  scroll-snap-align: center;
}
.shotstrip button[aria-pressed="true"] {
  border-color: #fb9984;
}
.shotstrip img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.shotfoot {
  justify-content: center;
  gap: 12px;
  margin: 2px auto 3px;
}
.shotfoot p {
  font-size: 14px;
  color: #f5e9de;
  text-align: center;
}
.tinyarr {
  width: 44px;
  height: 44px;
}
.modalend {
  padding: 13px 24px 16px;
}
.modalend .lineact:hover {
  color: white;
}
.modalend button {
  font-size: 14px;
  font-weight: 500;
  color: #d5c9bd;
}
.zoom {
  width: auto;
  background: #1c181a;
}
.zoom > div {
  padding: 45px 9px 9px;
}
.zoom img {
  max-width: 86vw;
  max-height: 76svh;
}
.zoom .x {
  position: absolute;
  top: 3px;
  right: 5px;
}
.storycover {
  padding-block: clamp(32px, 4vw, 60px) clamp(24px, 3vw, 44px);
}
.storycover h1,
.narrate h2,
.twostories h2,
.archive h2 {
  font-family: Essay, "AppleMyungjo", Georgia, serif;
  font-weight: 600;
}
.storycover h1 {
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.2;
  letter-spacing: -0.06em;
  text-wrap: balance;
  margin: 12px 0 16px;
}
.coverdeck,
.narrate p:not(.meta),
.twostories article > p:not(.meta) {
  font-size: 18px;
  line-height: 1.72;
  color: #514c45;
  letter-spacing: -0.018em;
}
.coverdeck {
  max-width: 36em;
  text-wrap: pretty;
}
/* The Korean headings are set tight; Latin letters need more room. */
:lang(en) .storycover h1,
:lang(en) .narrate h2,
:lang(en) .twostories h2,
:lang(en) .archive h2,
:lang(en) .home-notes h2 {
  letter-spacing: -0.03em;
}
/* A Korean title inside English text stays upright: Hangul has no italic. */
cite:lang(ko) {
  font-style: normal;
}
/* English headings carry no manual line breaks; the browser balances them. */
:lang(en) .narrate h2,
:lang(en) .twostories h2 {
  text-wrap: balance;
}
@media (max-width: 680px) {
  :lang(en) .storycover h1 {
    font-size: 35px;
    line-height: 1.2;
  }
}
.storycover .lineact {
  margin-top: 15px;
}
figcaption {
  font-size: 12px;
  line-height: 1.5;
  color: #726b60;
  margin-top: 7px;
}
.chapnav {
  border-block: 1px solid var(--line);
}
.chapnav .wrap {
  display: flex;
  gap: 30px;
  padding: 1px 0;
}
.chapnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.chapnav a:hover {
  color: var(--rust);
}
.chapter {
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 9%;
  align-items: center;
  padding: 60px 0;
}
.knightpaper {
  background: #e7e8dd;
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 12px 13px;
}
.knightpaper img {
  height: clamp(200px, 19vw, 300px);
  box-shadow: 3px 8px 18px #3b493322;
  transform: rotate(-4deg);
}
.knightpaper figcaption {
  margin-top: 12px;
}
.narrate h2,
.twostories h2 {
  font-size: clamp(30px, 2.95vw, 48px);
  line-height: 1.25;
  margin: 9px 0 17px;
}
.narrate p + p,
.narrate .lineact,
.twostories .lineact {
  margin-top: 13px;
}
.twostories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  padding-bottom: 58px;
}
.playpanel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: clamp(225px, 24vw, 345px);
  margin: 0 0 18px;
}
.playpanel img {
  margin-top: 22px;
  height: 135%;
  width: auto;
  box-shadow: 2px 12px 20px #0003;
  border-radius: 12% / 6%;
  transform: rotate(5deg);
}
.family {
  background: linear-gradient(135deg, #fae9dd, #eab79c);
}
.baseball {
  background: #17261d;
}
.baseball img {
  height: 145%;
  margin-top: -10px;
  transform: rotate(-6deg);
}
.ball-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #17261deb, #17261d77),
    url("assets/pitcher-icon-1024.webp") center 48% / cover;
}
.bookchapter {
  background: #ebe3d3;
}
.bookchapter .chapter {
  grid-template-columns: 0.86fr 1.14fr;
  gap: 7%;
}
/* A row of links under a chapter. When it wraps, the rows sit close together. */
.booklinks {
  display: flex;
  gap: 0 18px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.booklinks .lineact {
  margin-top: 0;
}
.story-book-cover {
  justify-self: center;
  width: clamp(145px, 16vw, 215px);
  height: auto;
  box-shadow: 2px 6px 14px #59462e26;
}
.archive {
  padding: 52px 0 60px;
}
.archivehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 22px;
}
.archive h2 {
  font-size: clamp(34px, 3vw, 52px);
  margin-top: 5px;
}
.sources a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  padding: 13px 2px;
  border-top: 1px solid var(--line);
}
.sources span {
  font-size: 12px;
  color: var(--muted);
}
.sources b {
  grid-column: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.sources i {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  font-style: normal;
  color: var(--muted);
}
.sources a:hover b {
  color: var(--rust);
}
.storypage .bottom {
  margin-top: 0;
}
@media (max-width: 960px) {
  .wrap,
  .topinner {
    width: 91%;
  }
  .narrate p:not(.meta),
  .twostories article > p:not(.meta),
  .coverdeck {
    font-size: 17px;
  }
  .detail .dtintro {
    align-items: flex-start;
    gap: 12px;
  }
  .dtintro p {
    font-size: 16px;
  }
  .modal {
    max-height: 93svh;
  }
}
@media (max-width: 680px) {
  html {
    scroll-padding-top: 8px;
  }
  .wrap,
  .topinner {
    width: calc(100% - 36px);
  }
  .topinner {
    height: 55px;
  }
  .brand {
    gap: 6px;
  }
  .brand img {
    width: 22px;
    height: 22px;
  }
  .brand span {
    font-size: 23px;
  }
  .top nav {
    gap: 16px;
  }
  .top nav a {
    font-size: 13px;
  }
  /* A phone has room for two links: drop the one to this page or this screen. */
  .top nav a[href="#works"],
  .top nav a[aria-current="page"] {
    display: none;
  }
  .lineact {
    font-size: 14px;
  }
  .home-story {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }
  .home-notes h2 {
    font-size: 32px;
  }
  .home-notes p:not(.meta) {
    font-size: 16px;
  }
  .collage {
    height: 195px;
  }
  .bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
    gap: 12px;
  }
  .bottom > div + div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    width: 100%;
  }
  .modal {
    width: 95vw;
    border-radius: 12px;
  }
  .modalhead {
    padding: 12px 14px;
  }
  .modalhead h2 {
    font-size: 22px;
  }
  .dtintro {
    display: block;
    padding: 14px;
  }
  .storelinks {
    margin-top: 9px;
  }
  .dtbranding img {
    width: 38px;
  }
  .gallerypane {
    margin: 0 8px;
    padding: 9px 6px 4px;
  }
  .galleryline {
    padding: 0 3px 4px;
  }
  .shotstrip {
    gap: 6px;
    justify-content: flex-start;
  }
  .shotstrip button {
    height: clamp(188px, 32svh, 325px);
    max-width: 77vw;
  }
  .modalend {
    padding: 12px;
  }
  .shotfoot p,
  .modalend button {
    font-size: 13px;
  }
  .zoom img {
    max-width: 88vw;
  }
  .storycover h1 {
    font-size: 44px;
    line-height: 1.27;
    margin: 8px 0 11px;
  }
  .coverdeck {
    font-size: 16px;
  }
  .chapnav .wrap {
    gap: 0;
    justify-content: space-between;
    padding: 0;
  }
  .chapnav a {
    font-size: 13px;
  }
  .chapter,
  .bookchapter .chapter {
    grid-template-columns: 1fr;
    padding: 30px 0;
    gap: 19px;
  }
  .first .narrate {
    grid-row: 1;
  }
  .knightpaper img {
    height: 218px;
  }
  .narrate p:not(.meta),
  .twostories article > p:not(.meta) {
    font-size: 16px;
  }
  .narrate h2,
  .twostories h2 {
    font-size: 31px;
  }
  .twostories {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  .playpanel {
    height: 234px;
  }
  .archive {
    padding: 30px 0;
  }
  .archivehead {
    align-items: flex-start;
    flex-direction: column;
  }
  .archive .filters button {
    font-size: 13px;
    padding: 6px 10px;
  }
}
@media (max-width: 360px) {
  .wrap,
  .topinner {
    width: calc(100% - 28px);
  }
  .top nav {
    gap: 8px;
  }
  .top nav a {
    font-size: 12px;
  }
  .top nav .contact {
    padding: 0 10px;
  }
  .brand span {
    font-size: 19px;
  }
  .storycover h1 {
    font-size: 38px;
  }
  .chapnav a {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:after,
  *:before {
    animation: none !important;
    transition: none !important;
  }
}

