/* Korea Brewery Visits — one stylesheet, no external assets. */
:root {
  --bg: #FAF8F2;
  --ink: #232921;
  --ink-soft: #4B554D;
  --ink-muted: #5D675F;
  --green: #285446;
  --green-deep: #1D3E33;
  --pale: #E2EBE3;
  --line: #D3DCD2;
  --paper: #FFFFFF;
  --clay: #A9623F;
  --amber: #B8862F;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 46rem;
  --pad: clamp(1rem, 4vw, 1.75rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: inline-block; vertical-align: middle; }

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

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--pale); color: var(--green-deep); }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: var(--pad); top: -100px;
  background: var(--green); color: var(--bg); padding: 0.5rem 1rem; border-radius: 0 0 8px 8px;
  z-index: 10;
}
.skip:focus { top: 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.012em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.95rem, 1.2rem + 2.7vw, 3.05rem); margin: 0.35rem 0 0.9rem; text-wrap: balance; }
h2 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.62rem); margin: 2.5rem 0 0.85rem; text-wrap: balance; }
h3 { font-size: 1.14rem; margin: 1.8rem 0 0.6rem; }
h2 + h3 { margin-top: 1.1rem; }
h2, h3 { scroll-margin-top: 1.25rem; }

p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.5rem; }
li { margin: 0.35rem 0; }
li::marker { color: var(--green); font-weight: 700; }

.lede { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.32rem); line-height: 1.5; color: var(--ink-soft); max-width: 62ch; }
.sec-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); margin: 0 0 0.9rem;
}
.muted { color: var(--ink-muted); }
.small { font-size: 0.93rem; }

.ko:lang(ko), span[lang="ko"]:not(.no-pill) {
  font-size: 0.9em; background: var(--pale); color: var(--green-deep);
  border-radius: 999px; padding: 0.02em 0.5em; margin-left: 0.12em; white-space: nowrap;
}

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.5rem; padding: 0.85rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); font-weight: 700; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-size: 1.06rem; letter-spacing: -0.01em; }
.menu { display: flex; flex-wrap: wrap; gap: 0.15rem 1.35rem; list-style: none; margin: 0; padding: 0; flex: none; }
.menu a { text-decoration: none; color: var(--ink-soft); font-size: 0.98rem; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--green); border-bottom-color: var(--line); }
.menu a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
@media (max-width: 720px) {
  .brand { width: 100%; }
  .menu { gap: 0.1rem 1.1rem; flex: 1 1 100%; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 0.62em 1.15em; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2; border: 1.5px solid var(--green);
  transition: background-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--green); color: var(--bg); }
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--pale); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 3rem; align-items: center; padding-block: 3.25rem 3rem; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; border-radius: 20px; background: var(--pale); border: 1px solid var(--line); }
.hero-points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.45rem; }
.hero-points li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; color: var(--ink-soft); }
.hero-points svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.22rem; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2rem 1.75rem; }
  .hero-art img { aspect-ratio: 16 / 9; object-fit: cover; }
}

.home-section { padding-block: 1.5rem 2.75rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.card {
  display: flex; flex-direction: column; gap: 0.5rem; background: var(--paper);
  border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 14px;
  padding: 1.25rem 1.3rem 1.2rem; text-decoration: none; color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(35, 41, 33, 0.08); }
.card svg { width: 2rem; height: 2rem; }
.card h2, .card h3 { font-size: 1.18rem; margin: 0.2rem 0 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card .more { margin-top: auto; padding-top: 0.5rem; font-weight: 600; font-size: 0.95rem; color: var(--green); }

/* ---------- article lists ---------- */
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.post-list li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.35rem 1.75rem; padding: 1.2rem 0.5rem; margin: 0; border-bottom: 1px solid var(--line); border-radius: 6px; }
.post-list time { font-size: 0.9rem; color: var(--ink-muted); padding-top: 0.3rem; font-variant-numeric: tabular-nums; }
.post-list h2, .post-list h3 { font-size: 1.2rem; margin: 0 0 0.25rem; line-height: 1.3; }
.post-list h2 a, .post-list h3 a { text-decoration: none; }
.post-list h2 a:hover, .post-list h3 a:hover { text-decoration: underline; }
.post-list p { margin: 0; color: var(--ink-soft); font-size: 0.99rem; }
.tag { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--green); text-decoration: none; }
a.tag:hover { text-decoration: underline; }
.card .tag { margin-bottom: 0.2rem; }
@media (max-width: 640px) {
  .post-list li { grid-template-columns: 1fr; gap: 0.2rem; padding: 1rem 0.25rem; }
  .post-list time { padding-top: 0; }
}

/* ---------- page header (list, guides, about) ---------- */
.page-head { padding-block: 2.5rem 0.75rem; max-width: var(--measure); }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 0.9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; }
.crumbs li { margin: 0; display: flex; gap: 0.5rem; }
.crumbs li + li::before { content: "›"; color: var(--ink-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink-muted); }

/* ---------- article ---------- */
.article {
  display: grid; grid-template-columns: 13rem minmax(0, var(--measure));
  grid-template-areas: "gap head" "toc body"; column-gap: 3rem; justify-content: center;
  align-items: start; padding-block: 1.5rem 1rem;
}
.art-head { grid-area: head; }
.prose { grid-area: body; min-width: 0; }
.kicker { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; margin-top: 1.1rem; border-bottom: 1px solid var(--green); padding-bottom: 2px; }
.byline { font-size: 0.95rem; color: var(--ink-muted); margin: 0.25rem 0 1.5rem; }
.byline b { color: var(--ink-soft); font-weight: 600; }

.article.no-toc { grid-template-columns: minmax(0, var(--measure)); grid-template-areas: "head" "body"; }
.article > .related, .article > .box { grid-column: 2; }
.article.no-toc > .related, .article.no-toc > .box { grid-column: 1; }
.toc { grid-area: toc; position: sticky; top: 1.25rem; font-size: 0.92rem; margin-top: 2.2rem; }
.toc p { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin: 0 0 0.5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; color: var(--ink-soft); text-decoration: none; border-left: 2px solid transparent; margin-left: -2px; line-height: 1.35; }
.toc a:hover { color: var(--green); border-left-color: var(--green); }

@media (max-width: 1099px) {
  .article, .article.no-toc { grid-template-columns: minmax(0, var(--measure)); }
  .article { grid-template-areas: "head" "toc" "body"; }
  .article > .related, .article > .box, .article.no-toc > .related, .article.no-toc > .box { grid-column: 1; }
  .article > .box { margin-top: 1.5rem; }
  .toc { position: static; margin: 0 0 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem 0.8rem; }
  .toc ol { border-left: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 1.25rem; }
}

/* light-green checklist box */
.box {
  background: var(--pale); border-left: 5px solid var(--green); border-radius: 12px;
  padding: 1.15rem 1.35rem 1rem; margin: 0 0 1.5rem;
}
.box-title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-deep); margin: 0 0 0.6rem; }
.box p:last-child, .box ul:last-child, .box ol:last-child { margin-bottom: 0.15rem; }
.box :is(h2, h3):first-child { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.checks li { position: relative; margin: 0; padding-left: 1.7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.42rem; width: 0.85rem; height: 0.85rem;
  border: 2px solid var(--green); border-radius: 50%; background: var(--bg);
}
.checks li b { font-weight: 700; }

/* article body */
.prose p, .prose > ul, .prose > ol { max-width: 68ch; }
.prose strong { font-weight: 700; }
.prose code { font-size: 0.9em; background: var(--pale); padding: 0.08em 0.4em; border-radius: 5px; }
.prose blockquote { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 4px solid var(--green); color: var(--ink-soft); max-width: 68ch; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; font-style: normal; font-size: 0.9rem; margin-top: 0.35rem; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0 1.8rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; background: var(--paper); }
caption { text-align: left; font-size: 0.9rem; color: var(--ink-muted); padding-bottom: 0.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--pale); color: var(--green-deep); font-size: 0.9rem; letter-spacing: 0.03em; border-bottom: 2px solid var(--green); }
tbody th { font-weight: 700; background: transparent; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

figure { margin: 2rem 0; }
.prose figure { max-width: none; }
figure img { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--pale); }
figcaption { font-size: 0.92rem; color: var(--ink-muted); margin-top: 0.6rem; line-height: 1.45; }

details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.2rem 1.15rem; margin: 0 0 0.8rem; }
summary { cursor: pointer; font-weight: 600; padding: 0.65rem 0; }
summary::marker { color: var(--green); }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 0.35rem; }
details p:last-child { margin-bottom: 0.9rem; }

.checked { font-size: 0.9rem; color: var(--ink-muted); }
.checked::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 0.4em; }
.updated { font-size: 0.93rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 1.1rem; }

.sources { font-size: 0.92rem; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem 0.6rem; margin-top: 2rem; }
.sources ul { padding-left: 1.1rem; margin-bottom: 0.4rem; }
.sources li { margin: 0.4rem 0; }
.sources .plain { color: var(--ink-soft); }

.takeaway { background: var(--green); color: var(--bg); border-radius: 14px; padding: 1.2rem 1.4rem 0.95rem; margin: 0 0 1.25rem; font-size: 1.02rem; }
.takeaway p { color: inherit; margin-bottom: 0.6rem; }
.takeaway p:last-child, .takeaway ul:last-child, .takeaway ol:last-child { margin-bottom: 0; }
.takeaway ul, .takeaway ol { padding-left: 1.25rem; }
.takeaway li::marker { color: var(--bg); }
.takeaway a { color: var(--bg); }
h2 + .takeaway { margin-top: 0.75rem; }

.related { margin-top: 2.5rem; }
.related ul { gap: 1rem; }
.related .card h3 { font-size: 1.05rem; }

/* ---------- footer ---------- */
.site-foot { margin-top: 3.5rem; background: var(--green-deep); color: var(--bg); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.75rem 2.5rem; padding: 2.25rem 0 1.5rem; }
.foot-title { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bg); margin: 0 0 0.6rem; opacity: 0.85; font-weight: 700; }
.site-foot div > p:not(.foot-title) { margin: 0; font-size: 0.95rem; line-height: 1.5; max-width: 34ch; opacity: 0.92; }
.site-foot ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.site-foot li { margin: 0.25rem 0; }
.site-foot a { color: var(--bg); text-decoration: none; border-bottom: 1px solid rgba(250, 248, 242, 0.35); }
.site-foot a:hover { border-bottom-color: var(--bg); }
.foot-bottom { border-top: 1px solid rgba(250, 248, 242, 0.2); padding: 0.9rem 0 1.4rem; font-size: 0.88rem; opacity: 0.85; }

/* ---------- 404 ---------- */
.nf { padding-block: 2.5rem 1rem; max-width: var(--measure); }
.nf-code { font-size: clamp(4rem, 12vw, 7.5rem); font-weight: 800; line-height: 1; color: var(--pale); -webkit-text-stroke: 2px var(--green); margin: 0 0 0.5rem; letter-spacing: -0.04em; }

/* ---------- flat page (about, privacy, terms) ---------- */

@media (max-width: 640px) {
  body { font-size: 1rem; }
  h2 { margin-top: 2rem; }
  table { min-width: 28rem; }
  th, td { padding: 0.55rem 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

@media print {
  .site-head, .site-foot, .toc, .btn-row, .related, .skip { display: none; }
  body { background: #fff; color: #000; }
  .article { display: block; }
  a { color: #000; }
}
