@font-face {
  font-family: "IBM Plex Sans KR";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-kr-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans KR";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-kr-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans KR";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-kr-400.woff2") format("woff2");
  unicode-range: U+AC00-D7A3, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF;
}

@font-face {
  font-family: "IBM Plex Sans KR";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-kr-600.woff2") format("woff2");
  unicode-range: U+AC00-D7A3, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
}

:root {
  --paper: #efe6d6;
  --paper-2: #f7f1e6;
  --ink: #1c1915;
  --muted: #3f3a33;
  --quiet: #5c564c;
  --line: rgba(28, 25, 21, 0.16);
  --harbor: #143734;
  --harbor-2: #1e524b;
  --buoy: #8d3d16;
  --rail: 3.25rem;
  --wrap: 64rem;
}

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

html {
  color-scheme: light;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

a {
  color: var(--buoy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 3;
  background: var(--paper-2);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
}

.skip:focus {
  top: 1rem;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  border-right: 1px solid var(--line);
  background: var(--harbor);
  color: #f3ecdf;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rail span {
  writing-mode: vertical-rl;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}

.page {
  margin-left: var(--rail);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.5rem 2rem 5.5rem;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.mark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mark-en {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0;
  margin-right: 0.15rem;
}

.top nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.top nav a {
  color: var(--ink);
  text-decoration: none;
}

.top nav a[aria-current="page"] {
  color: var(--buoy);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero,
.section,
.article-head {
  padding-top: 2.75rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--harbor-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 3.7rem);
  max-width: 11em;
}

.lede,
.dek {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.lede {
  margin: 1.25rem 0 0;
}

.berths,
.reads {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.berth,
.read {
  display: grid;
  gap: 0.35rem 1.25rem;
  padding: 1.15rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.berth {
  grid-template-columns: 3rem minmax(8rem, 1.1fr) minmax(10rem, 1fr) auto;
  align-items: baseline;
}

a.berth:hover,
a.read:hover {
  background: rgba(247, 241, 230, 0.7);
}

.berth-no,
.read-date {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  color: var(--harbor);
  font-size: 1.35rem;
  line-height: 1;
}

.berth-name,
.read-title {
  font-weight: 600;
  color: var(--ink);
}

.berth-host,
.berth-state,
.read-dek,
.meta {
  color: var(--quiet);
}

.berth-state {
  justify-self: end;
  font-size: 0.92rem;
}

.is-quiet .berth-no,
.is-quiet .berth-name,
.is-quiet .berth-host,
.is-quiet .berth-state {
  color: var(--quiet);
}

.read {
  grid-template-columns: 7.5rem 1fr;
  align-items: start;
}

.read-dek {
  grid-column: 2;
  margin: 0;
}

.notice {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--harbor);
}

.notice h2 {
  margin: 0;
  font-size: 1rem;
}

.notice ul {
  margin: 0;
  padding-left: 1.15rem;
}

.notice li + li {
  margin-top: 0.55rem;
}

.prose {
  max-width: 40rem;
  margin-top: 2rem;
}

.prose h2 {
  margin: 2.2rem 0 0.6rem;
  font-size: 1.35rem;
}

.prose p,
.prose li {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.meta {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
}

.colophon {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.92rem;
}

.colophon p {
  margin: 0.2rem 0;
}

@media (max-width: 800px) {
  .rail {
    display: none;
  }

  .page {
    margin-left: 0;
  }

  .wrap {
    padding: 1.1rem 1.15rem 4rem;
  }

  .berth,
  .read,
  .notice {
    grid-template-columns: 1fr;
  }

  .read-dek,
  .berth-state {
    grid-column: auto;
    justify-self: start;
  }

  h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
