/* The journal uses system fonts so its reading layout also works offline. */
:root {
  --j-paper: #faf9f6;
  --j-ink: #25251f;
  --j-muted: #635e58;
  --j-line: #d4d0c7;
  --j-accent: #632939;
  --j-sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body.journal-page { margin: 0; color: var(--j-ink); background: var(--j-paper); font: 1rem/1.65 var(--j-sans); word-break: keep-all; overflow-wrap: anywhere; }
.journal-page a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.journal-page a:hover { color: var(--j-accent); }
.journal-page img { display: block; max-width: 100%; }
.journal-page button, .journal-page input { font: inherit; }
.journal-page button { cursor: pointer; }
.journal-page :focus-visible { outline: 2px solid var(--j-accent); outline-offset: 3px; }
.journal-page [hidden] { display: none !important; }
.j-shell, .j-nav { width: min(1264px, calc(100% - 2 * clamp(1.25rem,5vw,4.5rem))); margin-inline: auto; }
.j-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.j-skip { position: absolute; top: -100px; left: 1rem; z-index: 1; padding: .6rem 1rem; color: white !important; background: var(--j-ink); }
.j-skip:focus { top: .5rem; }
.j-nav { display: flex; align-items: center; min-height: 76px; gap: 2rem; border-bottom: 1px solid var(--j-line); }
.j-logo img { width: 85px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.j-nav nav { display: flex; gap: clamp(1rem,2.8vw,2.3rem); margin-left: auto; }
.j-nav nav a, .j-shop { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: none; white-space: nowrap; }
.j-nav [aria-current] { text-decoration: underline; text-underline-offset: .45em; color: var(--j-accent); }
.j-shop { color: var(--j-accent) !important; }
.j-index-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: clamp(2rem,5vw,4.25rem) 0 1.1rem; border-bottom: 2px solid var(--j-ink); }
.j-index-header h1 { margin: 0; font-size: clamp(2.25rem,5.2vw,4.5rem); line-height: 1.15; letter-spacing: -.065em; font-weight: 600; }
.j-index-header > a, .j-editors-link, .j-section-heading > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
.j-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--j-line); }
.j-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.2rem; }
.j-filters button, .j-search button { min-height: 44px; color: var(--j-muted); background: transparent; border: 0; border-radius: 0; padding: .25rem .1rem; font-size: .875rem; }
.j-filters button[aria-pressed="true"] { color: var(--j-ink); font-weight: 700; text-decoration: underline; text-underline-offset: .4em; }
.j-search { display: flex; align-items: center; width: min(270px,100%); border-bottom: 1px solid var(--j-muted); }
.j-search input { width: 100%; min-width: 0; border: none; border-radius: 0; background: transparent; color: var(--j-ink); padding: .55rem .25rem; font-size: 1rem; }
.j-search input::placeholder { color: var(--j-muted); }
.j-search button { min-width: 44px; color: var(--j-accent); }
.j-search-status { margin: 0; padding-top: .7rem; font-size: .82rem; color: var(--j-muted); }
.j-search-status:empty { display: none; }
.j-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 clamp(1.4rem,3vw,3rem); }
.j-card { min-width: 0; padding-block: 1.3rem; border-bottom: 1px solid var(--j-line); }
.j-card-link { display: grid; grid-template-columns: minmax(80px,30%) minmax(0,1fr); gap: clamp(.8rem,1.8vw,1.6rem); align-items: center; color: inherit; text-decoration: none; }
.j-card-image { aspect-ratio: 1; background: #e8e4dc; overflow: hidden; }
.j-card-image img { width: 100%; height: 100%; object-fit: cover; }
.j-card-meta { display: flex; gap: .3rem 1rem; flex-wrap: wrap; margin: 0 0 .45rem; color: var(--j-muted); font-size: .76rem; line-height: 1.5; }
.j-card-meta time, .j-byline time { font-variant-numeric: tabular-nums; }
.j-card h3 { font-size: clamp(1.05rem,1.7vw,1.45rem); line-height: 1.45; font-weight: 600; margin: 0; letter-spacing: -.045em; }
.j-card-link:hover h3, .j-card-link:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.j-card-summary { margin: .65rem 0 0; font-size: .88rem; line-height: 1.75; color: var(--j-muted); }
.j-archive .j-card:first-child { grid-column: 1 / -1; padding-block: clamp(1rem,2.4vw,2rem); }
.j-archive .j-card:first-child .j-card-link { grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: clamp(1.2rem,5vw,4.8rem); }
.j-archive .j-card:first-child .j-card-image { aspect-ratio: 1.95; }
.j-archive .j-card:first-child h3 { font-size: clamp(1.65rem,3vw,2.8rem); line-height: 1.27; max-width: 19em; }
.j-archive .j-card:first-child .j-card-summary { margin-top: 1rem; max-width: 42ch; font-size: 1rem; }
.j-editors-link { margin-block: 1.3rem 3.5rem; color: var(--j-muted) !important; }
.j-empty { padding: 2.25rem 0; }
.j-empty h3 { font-size: 1.1rem; }
.j-empty button { min-height: 44px; background: transparent; border: 1px solid var(--j-muted); padding: .45rem .9rem; }
.j-breadcrumb { display: flex; min-width: 0; align-items: center; gap: .55rem; color: var(--j-muted); font-size: .75rem; padding-block: 1rem .6rem; }
.j-breadcrumb a { white-space: nowrap; }
.j-breadcrumb [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-article-header { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.82fr); align-items: center; column-gap: clamp(1.75rem,5vw,4.75rem); padding: clamp(1rem,2.4vw,2rem) 0 clamp(1.4rem,3vw,2.4rem); border-bottom: 1px solid var(--j-line); }
.j-article-header h1 { font-size: clamp(2rem,3.45vw,3.15rem); font-weight: 600; line-height: 1.26; letter-spacing: -.055em; margin: 0; text-wrap: balance; }
.j-article-deck { max-width: 42em; margin: 1.1rem 0; font-size: clamp(1rem,1.25vw,1.14rem); line-height: 1.82; }
.j-byline { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: center; color: var(--j-muted); font-size: .78rem; }
.j-article-cover { margin: 0; }
.j-article-cover img { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; }
.j-reading { max-width: 44rem; margin: clamp(1.6rem,4vw,3.2rem) auto 0; line-height: 1.95; }
.j-reading p { margin-block: 0 1rem; }
.j-reading .j-intro { margin: 0 0 1.25rem; }
.j-toc { border-block: 1px solid var(--j-line); }
.j-toc summary, .j-questions summary { cursor: pointer; min-height: 44px; padding: .7rem 0; font-weight: 600; line-height: 1.7; }
.j-toc ol { margin: 0 0 .9rem; padding-left: 1.5rem; }
.j-toc a { display: inline-block; padding: .28rem 0; }
.j-reading section { margin-block: clamp(2rem,4vw,3rem); }
.j-reading h2, .j-section-heading h2 { margin: 0 0 .85rem; font-size: clamp(1.25rem,2.2vw,1.7rem); font-weight: 600; line-height: 1.4; letter-spacing: -.04em; }
.j-reading li { margin-block: .35rem; }
.j-reading ul { padding-left: 1.3rem; }
.j-table-hint { display: none; }
.j-table-wrap { overflow-x: auto; margin: 1rem 0; scrollbar-color: var(--j-muted) var(--j-paper); }
.j-table-wrap table { width: 100%; border-collapse: collapse; font-size: .91rem; text-align: left; }
.j-table-wrap.is-wide table { min-width: 32rem; }
.j-table-wrap caption { padding: 0 0 .5rem; text-align: left; line-height: 1.5; font-size: .8rem; color: var(--j-muted); }
.j-table-wrap th, .j-table-wrap td { border-bottom: 1px solid var(--j-line); padding: .75rem .65rem; vertical-align: top; line-height: 1.65; }
.j-table-wrap thead { border-block: 1px solid var(--j-ink); }
.j-table-wrap th { font-weight: 600; }
.j-questions details { border-top: 1px solid var(--j-line); }
.j-questions details:last-child { border-bottom: 1px solid var(--j-line); }
.j-questions details p { color: var(--j-muted); }
.j-sources { padding-top: 1.3rem; border-top: 1px solid var(--j-ink); }
.j-sources ul { margin: 0; }
.j-sources a { color: var(--j-accent); }
.j-sources p { margin: 1rem 0 0; font-size: .82rem; color: var(--j-muted); }
.j-product-links > a { display: grid; grid-template-columns: minmax(6rem,.65fr) 1.35fr; align-items: baseline; gap: 1rem; min-height: 44px; padding-block: .75rem; text-decoration: none; border-top: 1px solid var(--j-line); }
.j-product-links strong { text-decoration: underline; text-underline-offset: .2em; }
.j-product-links span { font-size: .9rem; color: var(--j-muted); }
.j-share-controls { display: flex; gap: .55rem; }
.j-share-controls input { flex: 1; min-width: 0; padding: .7rem; color: var(--j-muted); background: transparent; border: 1px solid var(--j-line); border-radius: 0; font-size: 1rem; }
.j-share-controls button { min-height: 44px; padding: .6rem 1rem; color: var(--j-paper); background: var(--j-accent); border: none; }
.j-share-controls button:disabled { opacity: .65; cursor: wait; }
.j-share p:not(:empty) { font-size: .85rem; margin: .65rem 0 0; }
.j-related { border-top: 1px solid var(--j-ink); padding-top: 1rem; margin: 3rem auto 4rem; }
.j-section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.j-section-heading h2 { margin: 0; }
.j-footer { background: #efede7; padding: 2.5rem max(5%,calc((100% - 1264px)/2)) 1.2rem; }
.j-footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.j-wordmark img { width: 98px; height: 60px; object-fit: contain; mix-blend-mode: multiply; }
.j-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.j-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .82rem; }
.j-footer > p, .j-footer-bottom { font-size: .76rem; line-height: 1.85; color: var(--j-muted); }
.j-footer-bottom { margin-top: 1.25rem; padding-top: .8rem; border-top: 1px solid var(--j-line); }
@media (max-width: 760px) {
  .j-grid { grid-template-columns: 1fr; }
  .j-card-link { grid-template-columns: minmax(75px,22%) minmax(0,1fr); }
  .j-nav { min-height: 64px; gap: 1rem; }
  .j-logo img { width: 66px; height: 48px; }
  .j-nav nav { gap: .85rem; }
  .j-nav nav a, .j-shop { font-size: .8rem; }
  .j-tools { align-items: start; flex-direction: column-reverse; gap: .15rem; padding: .6rem 0 .25rem; }
  .j-search { width: 100%; }
  .j-filters { column-gap: .95rem; }
  .j-article-header { grid-template-columns: 1fr; }
  .j-article-deck { margin-block: .8rem; }
  .j-article-cover { margin-top: 1.15rem; }
  .j-article-cover img { aspect-ratio: 2.2; max-height: 270px; }
  .j-footer-top { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .j-shell, .j-nav { width: calc(100% - 2.5rem); }
  .j-nav { gap: .75rem; }
  .j-nav nav { gap: .7rem; }
  .j-nav nav a, .j-shop { font-size: .76rem; }
  .j-card { padding-block: 1rem; }
  .j-card-summary { display: none; }
  .j-archive .j-card:first-child .j-card-link { grid-template-columns: 1fr; gap: .75rem; }
  .j-archive .j-card:first-child .j-card-image { aspect-ratio: 2; }
  .j-archive .j-card:first-child .j-card-summary { display: block; margin-top: .6rem; font-size: .91rem; }
  .j-reading .j-table-hint.is-wide { display: block; margin: .5rem 0; font-size: .78rem; color: var(--j-muted); }
  .j-breadcrumb { padding-block: .75rem 0; }
  .j-article-header { padding-block: .9rem 1.2rem; }
  .j-article-header h1 { font-size: clamp(1.65rem,6.5vw,2.15rem); }
  .j-footer { padding-inline: 1.25rem; }
}
