/* Pibu Notes. Colors are lifted from the products on my shelf:
   Goodal sage, Dokdo toner sky, Bring Green teal, and the yellow of a drugstore sale tag. */
:root {
  --bg: #f5f9f4;
  --surface: #ffffff;
  --ink: #14302a;
  --muted: #55706a;
  --line: #d9e5dc;
  --teal: #0f7f76;
  --sage: #d9e8b8;
  --sky: #cdeaf8;
  --tagyellow: #ffe36e;
  --blush: #ffd9cf;
  --on-teal: #ffffff;
  --display: "Bricolage Grotesque", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1c19;
    --surface: #172622;
    --ink: #e6f1ec;
    --muted: #9db5ad;
    --line: #27403a;
    --teal: #6fd3c6;
    --sage: #2c3d22;
    --sky: #1c3a4a;
    --tagyellow: #e8c94a;
    --blush: #5a3830;
    --on-teal: #0f1c19;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }

/* Header and footer */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand-ko { background: var(--tagyellow); color: #14302a; padding: 2px 9px 3px; border-radius: 8px; transform: rotate(-4deg); font-size: 1.05rem; }
.site-header nav { display: flex; gap: 6px; font-size: 0.95rem; }
.site-header nav a { color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.site-header nav a:hover { background: var(--sage); }
.site-footer { margin-top: 88px; background: #14302a; color: #cfe0d9; font-size: 0.92rem; padding: 40px 0 36px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 40px; align-items: start; }
.site-footer nav { display: grid; gap: 6px; justify-items: start; }
.site-footer a { color: #ffffff; }
.site-footer p { margin: 0 0 4px; opacity: 0.85; }
.foot-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: #ffffff; opacity: 1 !important; }
.foot-copy { grid-column: 1 / -1; font-size: 0.82rem; opacity: 0.6 !important; }
@media (max-width: 540px) { .site-footer .wrap { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .site-footer { background: #0a1412; } }

main { padding-top: 12px; padding-bottom: 8px; }

/* Shelf-tag chips */
.tag { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.82rem; padding: 3px 11px 4px; border-radius: 7px; background: var(--tagyellow); color: #14302a; }
.tag-sunscreen, .tag-cleansers { background: var(--sky); }
.tag-men-s-skincare, .tag-exfoliation { background: var(--blush); }
.tag-ingredients, .tag-shopping { background: var(--sage); }
@media (prefers-color-scheme: dark) { .tag-sunscreen, .tag-cleansers, .tag-men-s-skincare, .tag-exfoliation, .tag-ingredients, .tag-shopping { color: var(--ink); } }

/* Home: hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; background: var(--sage); border-radius: 32px; padding: 56px 52px 92px; margin-top: 8px; overflow: hidden; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
.hero-text > p { font-size: 1.1rem; max-width: 46ch; margin: 20px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px !important; }
.button { display: inline-block; background: var(--ink); color: var(--bg); padding: 13px 24px; border-radius: 999px; text-decoration: none; font-family: var(--display); font-weight: 700; }
.button:hover { background: var(--teal); color: var(--on-teal); }
.text-link { font-weight: 600; color: var(--ink); }
.collage { position: relative; height: 400px; }
.snap { position: absolute; width: 50%; aspect-ratio: 3 / 4; object-fit: cover; border: 7px solid #ffffff; border-radius: 14px; box-shadow: 0 14px 30px rgba(20, 48, 42, 0.22); }
.snap-1 { left: 2%; top: 14%; transform: rotate(-7deg); }
.snap-2 { left: 26%; top: 0; transform: rotate(3deg); z-index: 2; }
.snap-3 { right: 0; top: 20%; transform: rotate(9deg); }

/* Home: skin file, set like the back label of a product */
.skinfile { position: relative; z-index: 1; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; margin: -34px 40px 0; padding: 0; overflow: hidden; }
.skinfile h2 { background: var(--ink); color: var(--bg); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; padding: 9px 20px 10px; }
.skinfile dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.skinfile dl > div { padding: 13px 20px 14px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.skinfile dl > div:nth-child(3n + 1) { border-left: 0; }
.skinfile dl > div:nth-child(-n + 3) { border-top: 0; }
.skinfile dt { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.skinfile dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.3; }

/* Home: sections */
.block { margin-top: 76px; }
.block > h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.block > h2:last-of-type:not(:has(+ .block-lead)) { margin-bottom: 22px; }
.block-lead { margin: 0 0 24px; color: var(--muted); max-width: 56ch; }

.concerns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.concern { position: relative; display: block; min-height: 172px; padding: 22px 22px 22px; border-radius: 22px; text-decoration: none; color: #14302a; overflow: hidden; }
.concern-sage { background: #d9e8b8; }
.concern-blush { background: #ffd9cf; }
.concern-sky { background: #cdeaf8; }
.concern-yellow { background: #ffe36e; }
.concern-say { position: relative; z-index: 1; display: block; max-width: 11ch; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; }
.concern-sub { position: relative; z-index: 1; display: block; margin-top: 8px; font-size: 0.9rem; font-weight: 600; opacity: 0.75; max-width: 16ch; line-height: 1.3; }
.concern img { position: absolute; right: -14px; bottom: -22px; width: 124px; height: 124px; object-fit: cover; border-radius: 50%; border: 5px solid #ffffff; transform: rotate(8deg); transition: transform 0.2s ease; }
.concern:hover img { transform: rotate(0deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .concern-sub { position: relative; z-index: 1; display: block; margin-top: 8px; font-size: 0.9rem; font-weight: 600; opacity: 0.75; max-width: 16ch; line-height: 1.3; }
.concern img { transition: none; } }

.feature { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--surface); border-radius: 26px; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.feature img { width: 100%; height: 100%; min-height: 320px; max-height: 420px; object-fit: cover; object-position: 78% center; }
.feature > div { padding: 36px 36px 30px; align-self: center; }
.feature h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 14px 0 12px; }
.feature p { margin: 0; color: var(--muted); }
.feature:hover h3, .card:hover h3 { color: var(--teal); }
.card-meta { font-size: 0.85rem; color: var(--muted); margin-top: 14px !important; }

/* Notes as rows, so the list reads differently from the feature above it */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 2px solid var(--ink); }
.card { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.card img { width: 132px; height: 132px; object-fit: cover; border-radius: 16px; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; }
.card h3 { font-size: 1.22rem; font-weight: 700; margin: 10px 0 6px; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.card-body > p:not(.card-meta) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .card-meta { margin-top: 8px !important; }

.card-next { display: block; align-self: center; border: 2px dashed var(--line); border-radius: 16px; padding: 20px 22px; margin: 18px 0; }
.card-next .next-label { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }
.card-next .next-text { font-size: 0.95rem; }

.promises ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promises li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 22px; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.promises strong { display: block; font-family: var(--display); font-size: 1.12rem; line-height: 1.2; color: var(--ink); margin-bottom: 8px; }

.aboutband { background: var(--sky); border-radius: 26px; padding: 40px 44px; }
.aboutband > h2 { margin-bottom: 14px !important; }
.aboutband p { max-width: 62ch; margin: 0 0 14px; }
.aboutband p:last-child { margin-bottom: 0; }
@media (prefers-color-scheme: dark) { .aboutband { color: var(--ink); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 36px 24px 60px; border-radius: 24px; gap: 28px; }
  .collage { height: 230px; max-width: 420px; }
  .skinfile { margin: -30px 14px 0; }
  .skinfile dl { grid-template-columns: repeat(2, 1fr); }
  .skinfile dl > div:nth-child(n) { border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
  .skinfile dl > div:nth-child(2n + 1) { border-left: 0; }
  .skinfile dl > div:nth-child(-n + 2) { border-top: 0; }
  .block { margin-top: 60px; }
  .concerns { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature { grid-template-columns: 1fr; }
  .feature img { min-height: 0; aspect-ratio: 16 / 10; }
  .feature > div { padding: 24px 22px 22px; }
  .cards { grid-template-columns: 1fr; }
  .promises ul { grid-template-columns: repeat(2, 1fr); }
  .aboutband { padding: 28px 24px; }
}
@media (max-width: 540px) {
  body { font-size: 17px; }
  .site-header nav { gap: 0; }
  .site-header nav a { padding: 6px 9px; font-size: 0.9rem; }
  .site-header nav a:first-child { display: none; }
  .brand { font-size: 1.15rem; }
  .skinfile dd { font-size: 0.95rem; }
  .skinfile dl > div { padding: 11px 14px 12px; }
  .concerns { grid-template-columns: 1fr; gap: 10px; }
  .concern { min-height: 0; padding: 16px 104px 17px 18px; border-radius: 18px; }
  .concern-say { font-size: 1.2rem; max-width: none; }
  .concern-sub { font-size: 0.86rem; max-width: none; margin-top: 4px; }
  .concern img { width: 84px; height: 84px; right: 10px; top: 50%; bottom: auto; margin-top: -42px; transform: rotate(6deg); border-width: 4px; }
  .card { grid-template-columns: 96px 1fr; gap: 14px; padding: 18px 0; }
  .card img { width: 96px; height: 96px; border-radius: 12px; }
  .card h3 { font-size: 1.05rem; margin: 8px 0 0; }
  .card-body > p:not(.card-meta) { display: none; }
  .promises ul { grid-template-columns: 1fr; gap: 10px; }
}

/* Post and page */
.post { max-width: 720px; margin: 36px auto 0; }
.post-head { margin-bottom: 32px; }
.post h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin: 16px 0 14px; }
.post.page h1 { margin-top: 0; margin-bottom: 24px; }
.meta { display: flex; gap: 16px; color: var(--muted); font-size: 0.92rem; margin: 0; }
.post h2 { font-size: 1.7rem; font-weight: 800; margin: 52px 0 14px; }
.post h3 { font-size: 1.25rem; font-weight: 700; margin: 34px 0 8px; letter-spacing: -0.01em; }
.post ul, .post ol { padding-left: 1.3em; }
.post li { margin: 6px 0; }
.post hr { border: 0; border-top: 2px dashed var(--line); margin: 48px 0 24px; }
.post figure { margin: 30px 0; }
.post figure img { border-radius: var(--radius); max-height: 540px; width: auto; margin: 0 auto; }
.post figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 10px; }
.post em { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; line-height: 1.5; }
th, td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sage); font-family: var(--display); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.related { max-width: 720px; margin: 64px auto 0; }
.related h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.related-list { display: grid; gap: 12px; }
.related-list a { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; line-height: 1.25; padding-right: 16px; }
.related-list img { width: 84px; height: 84px; object-fit: cover; flex: none; }
.related-list a:hover { color: var(--teal); }

/* Post: contents list and author note */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px 18px; margin: 0 0 34px; }
.toc p { font-family: var(--display); font-weight: 800; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 0.96rem; }
.toc li { margin: 3px 0; }
.toc a { color: var(--ink); }
.post h2 { scroll-margin-top: 16px; }
.byline { max-width: 720px; margin: 48px auto 0; background: var(--sage); border-radius: 22px; padding: 24px 26px 26px; color: #14302a; }
.byline h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.byline p { margin: 0 0 10px; font-size: 0.98rem; line-height: 1.6; }
.byline p:last-child { margin-bottom: 0; }
.byline a { color: #14302a; font-weight: 600; }
.post .qa strong { display: block; font-family: var(--display); font-size: 1.08rem; margin-bottom: 2px; }
@media (prefers-color-scheme: dark) { .byline, .byline a { color: var(--ink); } }
