:root {
  color-scheme: light;
  --paper: #fff9f0;
  --surface: #ffffff;
  --ink: #201a16;
  --muted: #4c3d31;
  --line: #e6cdb5;
  --link: #74370d;
  --focus: var(--link);
  --note: #fff0dd;
  --shadow: 0 .3rem 1.4rem rgb(40 28 18 / 5%);
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { overflow-wrap: break-word; }
body { margin: 0; min-width: 0; background: var(--paper); color: var(--ink); }
img, video { max-width: 100%; height: auto; }
.youtube-video { margin: 2rem 0; }
.youtube-preview { display: grid; place-items: center; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .6rem; background: var(--ink); }
.youtube-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.youtube-play { position: absolute; padding: .5rem 1rem; border-radius: .4rem; color: #fff; background: #201a16; font-weight: 700; }
.youtube-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: .6rem; }
.youtube-video figcaption { margin-top: .5rem; color: var(--muted); font-size: .85rem; }
a { color: var(--link); text-underline-offset: .17em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 5; padding: .4rem .8rem; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 1rem; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { padding-block: 1.1rem; }
.site-brand { display: inline-flex; align-items: center; gap: .65rem; max-width: 100%; color: var(--ink); font-size: 1.35rem; font-weight: 750; letter-spacing: -.03em; text-decoration: none; }
.site-mark { flex: none; width: 2.5rem; height: 2.5rem; color: var(--link); }
.site-brand-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.site-brand-names strong { overflow-wrap: anywhere; }
.site-brand-names small { color: var(--muted); font-size: .76rem; font-weight: 500; letter-spacing: .035em; }
.site-tagline { margin: 0; color: var(--muted); font-size: .88rem; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.site-header nav { margin-top: .75rem; font-size: .92rem; }
.site-header nav a { max-width: 100%; overflow-wrap: anywhere; }
.site-header nav a[href^="/category/"] { color: var(--muted); }
.site-header nav a, .site-footer nav a { text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { text-decoration: underline; }
.main-content { min-height: 50vh; padding-block: 2.4rem 4rem; }
.home-intro { margin-bottom: 2.4rem; padding: 1.6rem 0 0; }
.home-intro > p { max-width: 40rem; color: var(--muted); font-size: 1.03rem; }
.home-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 1.6rem; }
.home-promise { min-width: 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); box-shadow: var(--shadow); }
.home-promise svg { display: block; color: var(--link); margin-bottom: .8rem; }
.home-promise h2 { margin: 0 0 .5rem; font-size: 1.03rem; }
.home-promise p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.home-categories { margin-bottom: 2.4rem; }
.home-categories h2, .home-latest > h2 { margin: 0 0 .9rem; font-size: 1.3rem; }
.category-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .65rem; }
.category-tile { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; padding: .7rem .9rem; color: var(--link); background: var(--note); border: 1px solid var(--line); border-radius: .55rem; text-decoration: none; font-weight: 650; overflow-wrap: anywhere; }
.category-tile span:last-child { flex: none; font-size: .82rem; border: 1px solid currentColor; border-radius: 99rem; padding: .05rem .45rem; }
.home-latest { margin-bottom: 1.3rem; }
.featured-post { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); box-shadow: var(--shadow); }
.featured-image { display: block; }
.featured-image img { display: block; width: 100%; max-height: 24rem; object-fit: cover; }
.featured-copy { padding: 1.4rem; }
.featured-copy h3 { margin: 0 0 .65rem; font-size: 1.6rem; }
.featured-copy h3 a { text-decoration: none; }
.featured-copy h3 a:hover { text-decoration: underline; }
.featured-copy p { margin: 0 0 .75rem; color: var(--muted); }
.featured-copy time { color: var(--muted); font-size: .85rem; }
.empty-posts { padding: 1.3rem; border: 1px dashed var(--line); border-radius: .6rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-footer .shell { padding-block: 1.35rem 2rem; }
.site-footer p { margin: .8rem 0 0; }

h1, h2, h3 { color: var(--ink); line-height: 1.35; letter-spacing: -.035em; }
h1 { margin: 0 0 .8rem; font-size: clamp(1.9rem, 5vw, 2.45rem); }
h2 { margin: 2rem 0 .7rem; font-size: 1.5rem; }
h3 { margin: 1.6rem 0 .55rem; font-size: 1.18rem; }
p, ul, ol, blockquote, pre, table, figure { margin-block: 0 1.25rem; }
ul, ol { padding-left: 1.55rem; }
li + li { margin-top: .32rem; }
.eyebrow { margin: 0 0 .55rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.eyebrow a { text-decoration: none; }
.post-header { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.post-meta { color: var(--muted); font-size: .88rem; }
.post-hero { margin: 1.5rem 0 1.9rem; }
.post-hero img { display: block; width: 100%; height: auto; border-radius: .5rem; }
.post-hero figcaption { margin-top: .45rem; color: var(--muted); font-size: .84rem; }
.post-toc { margin: 1.4rem 0 1.9rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); }
.post-toc h2, .post-toc strong { display: block; margin: 0 0 .4rem; font-size: 1rem; }
.post-toc ol, .post-toc ul { margin: 0; padding-left: 1.4rem; }
.post-toc li + li { margin-top: .1rem; }
.post-byline { margin: 2rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.prose { padding-top: .8rem; font-size: 1.04rem; line-height: 1.85; }
.prose > :first-child { margin-top: 0; }
.prose img { display: block; border-radius: .45rem; }
.prose figure { max-width: 640px; margin-inline: auto; }
.figure-original { display: block; width: fit-content; max-width: min(100%, 640px); margin-inline: auto; cursor: zoom-in; }
.figure-original img { max-width: 100%; height: auto; }
.prose figcaption { color: var(--muted); font-size: .85rem; }
.prose blockquote { margin-inline: 0; padding: .5rem 1.1rem; border-left: .22rem solid var(--link); background: var(--surface); color: var(--muted); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { height: 1px; margin-block: 2rem; border: 0; background: var(--line); }
.prose code { padding: .12em .32em; border-radius: .25rem; background: var(--surface); font: .9em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose pre { overflow-x: auto; padding: .9rem; border-radius: .4rem; background: var(--surface); }
.prose pre code { padding: 0; background: transparent; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-right: 2px solid var(--line); }
.table-scroll-hint { display: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { min-width: 8rem; word-break: keep-all; overflow-wrap: normal; padding: .55rem .7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); }

.sources, .related, .medical-note { margin-top: 2.4rem; }
.sources, .medical-note { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: .55rem; }
.sources h2, .medical-note h2, .related h2 { margin-top: 0; font-size: 1.22rem; }
.sources :last-child, .medical-note :last-child { margin-bottom: 0; }
.medical-note { background: var(--note); }
.related ul { padding-left: 1.3rem; }
.list-header { margin-bottom: 2rem; }
.list-header p { margin: 0; color: var(--muted); }
.post-list { display: grid; gap: 1rem; }
.post-list article, .post-list-item { min-width: 0; padding: 1.2rem 1.35rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); box-shadow: var(--shadow); }
.post-list article { display: flow-root; }
.post-thumbnail { float: right; display: block; width: 7rem; margin: 0 0 .5rem .9rem; }
.post-thumb { display: block; width: 100%; height: 5.25rem; border-radius: .4rem; object-fit: cover; }
.post-list h2, .post-list-item h2 { margin: 0 0 .35rem; font-size: 1.23rem; }
.post-list p, .post-list-item p { margin: .3rem 0 0; }
.post-list time, .post-list-item time { color: var(--muted); font-size: .83rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.8rem; }
.pagination a, .pagination span { display: inline-block; min-width: 2.4rem; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: .35rem; text-align: center; }
.pagination [aria-current] { border-color: var(--link); color: var(--link); font-weight: 700; }

@media (max-width: 520px) {
  :root { font-size: 17px; }
  .shell { width: min(100% - 2rem, 760px); }
  .main-content { padding-block: 1.8rem 3rem; }
  .home-promises { grid-template-columns: 1fr; }
  .home-intro { padding-top: .5rem; }
  .home-promise { padding: 1rem; }
  .featured-copy { padding: 1.1rem; }
  .featured-copy h3 { font-size: 1.35rem; }
  .post-list article, .post-list-item { padding: 1rem; }
  .post-thumbnail { width: 5.5rem; margin-left: .65rem; }
  .post-thumb { height: 4.15rem; }
  .sources, .medical-note { padding: 1rem; }
}


@media (max-width: 520px) {
  .table-scroll-hint.is-overflowing { display: block; margin-bottom: .5rem; color: var(--muted); font-size: .9rem; }
  .prose th, .prose td { min-width: 10rem; }
  .prose .table-compact table { width: 100%; table-layout: fixed; }
  .prose .table-compact th, .prose .table-compact td { min-width: 0; padding: .55rem .35rem; overflow-wrap: anywhere; }
  .table-compact { border-right: 0; }
}

/* In-body link: no clipped text or external requests; stack on narrow phones. */
.read-next { margin-block: 1.5rem; }
.read-next-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); color: var(--ink); text-decoration: none; }
.read-next-card.has-image { grid-template-columns: 7rem minmax(0, 1fr); }
.read-next-card:hover { text-decoration: none; border-color: var(--link); }
.read-next-card img { width: 100%; height: auto; align-self: start; border-radius: .4rem; }
.read-next-copy { display: grid; gap: .3rem; min-width: 0; overflow-wrap: anywhere; }
.read-next-label, .read-next-site { color: var(--muted); font-size: .85rem; }
.read-next-description { color: var(--ink); }
@media (max-width: 520px) { .read-next-card, .read-next-card.has-image { grid-template-columns: minmax(0, 1fr); } .read-next-card img { max-width: 12rem; } }
