/* Korean display glyphs used in the journal masthead and section titles. */
@font-face {
  font-family: "ITH Journal Title";
  src: url("/fonts/journal-title.woff?v=2") format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #faf8f2;
  --ink: #192c32;
  --teal: #205b61;
  --muted: #526267;
  --rule: #c6ceca;
  --display: "ITH Journal Title", "AppleMyungjo", "Batang", serif;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover, summary:hover { color: var(--teal); text-decoration: underline; }
:focus-visible { outline: 3px solid #147685; outline-offset: 3px; }
.page { width: min(72rem, calc(100% - clamp(2rem, 9vw, 9rem))); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 1; padding: .6rem 1rem; background: var(--ink); color: white; }
.skip:focus { top: .5rem; }
.masthead { display: flex; gap: 2rem; align-items: center; border-bottom: 2px solid var(--ink); padding-block: .65rem; }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; font: 700 1.4rem/1.25 var(--display); letter-spacing: -.06em; white-space: nowrap; text-decoration: none; }
.wordmark-tagline { margin-left: .15rem; color: var(--muted); font: 500 .76rem/1.35 system-ui, sans-serif; letter-spacing: -.025em; }
.wordmark span { display: flex; align-items: center; }
.sections, .account { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.3rem; }
.sections a, .account a, .section-head a, .sorting a, .notebook-links a, .colophon a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
}
.sections a, .account a { font-size: .9375rem; }
.account { margin-left: auto; gap: 1rem; }
.alpha-link { color: var(--teal); font-weight: 700; }
.cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33%); align-items: center; gap: 1.2rem; padding: clamp(1.35rem, 3vw, 2.5rem) 0; border-bottom: 3px double var(--ink); }
.cover h1 { font: 700 clamp(2.55rem, 5vw, 4.65rem)/1.19 var(--display); letter-spacing: -.077em; }
.cover em { color: var(--teal); font-style: normal; }
.cover p { margin-top: 1rem; color: #3f5155; line-height: 1.7; }
.cover-print { justify-self: center; display: block; width: min(100%, 22.5rem); height: auto; filter: brightness(1.04); mix-blend-mode: darken; }
.action { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.2rem; padding: .54rem 1.15rem; background: var(--teal); color: white; font-weight: 700; text-decoration: none; border-radius: 2px; }
.action:hover { color: white; background: #173e43; }
.spread { padding-block: clamp(1.4rem, 3vw, 2.35rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 29%); gap: 2.75rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.feed, .questions { grid-column: 1; min-width: 0; }
h2 { font: 700 clamp(1.5rem, 2.1vw, 2rem)/1.4 var(--display); letter-spacing: -.05em; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-head a, .sorting a, .notebook-links a { font-size: .9rem; }
.section-head a { color: var(--muted); }
.sorting { display: flex; gap: 1.4rem; border-bottom: 1px solid var(--rule); margin-top: .35rem; }
.sorting a { color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sorting a[aria-current] { color: var(--teal); font-weight: 700; border-color: var(--teal); }
.entries li { padding: 1.05rem 0; border-bottom: 1px solid var(--rule); }
.entry-meta, .sample-kind { font-size: .8125rem; font-weight: 700; color: var(--teal); }
h3 { font-size: clamp(1.1rem, 1.65vw, 1.4rem); line-height: 1.5; letter-spacing: -.035em; }
h3 a, .byline a, .ask-list a { text-decoration: none; }
.description { margin-top: .15rem; }
.byline { display: flex; flex-wrap: wrap; gap: .2rem 1rem; color: var(--muted); font-size: .8125rem; margin-top: .5rem; }
.byline a { font-weight: 700; }
.samples { margin-top: .85rem; }
.sample-label { color: var(--muted); font-size: .9rem; padding-bottom: .4rem; }
details { border-bottom: 1px solid var(--rule); }
summary { display: flex; align-items: center; gap: .85rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: .48rem; height: .48rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -.25rem .25rem 0 auto; }
details[open] > summary::after { transform: rotate(225deg); margin-top: .25rem; }
.sample summary { padding-block: .85rem; min-height: 48px; font-size: 1.06rem; font-weight: 650; }
.sample-kind { flex: none; font-size: .75rem; }
.sample p, .note p { color: #3f5155; }
.sample small { display: block; color: var(--muted); margin: .4rem 0 1rem; }
.notebook { background: #eaf0ea; border-top: 2px solid var(--teal); padding: 1.25rem clamp(1rem, 2vw, 1.55rem) .6rem; }
.notebook h2 { color: var(--teal); }
.notebook > p { margin: .22rem 0 .9rem; color: var(--muted); font-size: .9rem; }
.note { border-color: #b5c6be; }
.note summary { font-weight: 650; min-height: 48px; }
.note p { padding-bottom: .75rem; }
.note > a { display: inline-block; margin-bottom: .8rem; }
.notebook-links { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.notebook-links a { color: var(--teal); }
.questions, .activity { border-top: 1px solid var(--ink); padding-top: .65rem; }
.ask-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; padding-block: .7rem; border-bottom: 1px solid var(--rule); }
.ask-list small { margin-left: auto; color: var(--muted); }
.empty { padding: 1rem 0; color: var(--muted); }
.empty a, .activity a, .note > a { color: var(--teal); }
.activity ul { margin-block: .6rem; }
.activity li { padding-block: .2rem; }
.colophon { border-top: 2px solid var(--ink); padding-block: 1.1rem 1.5rem; color: var(--muted); font-size: .8125rem; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.sections a:hover, .account a:hover, .section-head a:hover, .sorting a:hover, .notebook-links a:hover, .colophon a:hover { text-decoration: underline; }
@media (max-width: 58rem) {
  .masthead { flex-wrap: wrap; gap: 0 1rem; padding: .3rem 0 0; }
  .sections { width: 100%; order: 3; border-top: 1px solid var(--rule); gap: 0 1.4rem; }
  .wordmark { min-height: 48px; }
}
@media (max-width: 47rem) {
  .spread { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; }
  .cover h1 { font-size: clamp(2.3rem, 6.8vw, 3.3rem); }
  .notebook { padding-inline: 1.15rem; }
}
@media (max-width: 37.5rem) {
  .page { width: calc(100% - 2rem); }
  .masthead { gap: 0 .5rem; }
  .wordmark { gap: .3rem; font-size: 1.08rem; }
  .wordmark svg { width: 25px; }
  .account { gap: .7rem; }
  .account a, .sections a { font-size: .875rem; }
  .sections { justify-content: space-between; gap: 0 .45rem; }
  .cover { grid-template-columns: minmax(0, 1fr) 30%; gap: .45rem; padding: 1.2rem 0 1.4rem; }
  .cover-copy { display: contents; }
  .cover h1 { grid-column: 1; align-self: end; }
  .cover p { grid-column: 1 / -1; margin: 0; font-size: .95rem; }
  .cover-print { grid-column: 2; grid-row: 1; }
  .cover .action { grid-column: 1 / -1; justify-self: start; margin-top: .4rem; }
  .spread { padding-top: 1.05rem; }
}
@media (max-width: 21rem) {
  .wordmark { font-size: 1rem; }
  .account { gap: .5rem; }
  .cover h1 { font-size: 1.85rem; }
}

.stock-program { margin-block: .7rem; padding: 1rem 0; border-block: 1px solid var(--rule); }
.sample p + p { margin-top: .4rem; }
.github-projects { padding: .8rem 0 .25rem; }
.github-note, .project-kind { color: var(--muted); font-size: .8125rem; }
.github-note { margin: .2rem 0 .6rem; }
.github-projects li { border-top: 1px solid var(--rule); padding-block: .6rem; }
.github-projects li p { font-size: .9375rem; }
.project-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .65rem; }
.project-line a { font-weight: 700; color: var(--teal); }
.project-stars { margin-left: auto; white-space: nowrap; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
