/* K-Beauty Trends: ink charcoal, warm paper white, dusty rose */
:root {
  --bg: #161619;
  --bg-2: #1f1f23;
  --bg-3: #26262b;
  --line: #34333a;
  --line-soft: #29282e;
  --text: #ede6da;
  --text-2: #d3cbbf;
  --muted: #a9a195;
  --accent: #d3a194;
  --accent-2: #e8c0b3;
  --blush: #cfb07a;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1200px;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #17171a; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #17171a; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap-wide { max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap { max-width: calc(880px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Photo frames */
.ratio-3x2, .ratio-4x5, .ratio-1x1 { position: relative; overflow: hidden; background: var(--bg-3); }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-3x2 img, .ratio-4x5 img, .ratio-1x1 img,
.lead__img img, .post__hero-frame img, .inbody__frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.ratio-3x2 > picture, .ratio-4x5 > picture, .ratio-1x1 > picture, .lead__img > picture,
.post__hero-frame > picture, .inbody__frame > picture { width: 100%; height: 100%; }
.credit { color: var(--muted); }
.credit a { text-decoration: none; border-bottom: 1px solid var(--line); }
.credit a:hover { color: var(--text); border-color: var(--muted); }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); }
.masthead__inner {
  max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: 22px var(--gutter) 18px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -0.015em;
  text-decoration: none; color: var(--text); font-variation-settings: "opsz" 96; margin: 0;
}
.wordmark span { font-style: italic; color: var(--accent); font-weight: 300; }
.footer .wordmark--small { font-size: 28px; margin-bottom: 14px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nav a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--text-2); padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.nav__sep { padding-left: 22px; border-left: 1px solid var(--line); }
@media (max-width: 699px) {
  .masthead__inner { padding-top: 18px; }
  .wordmark { font-size: 27px; }
  .nav ul { gap: 4px 16px; }
  .nav a { font-size: 12px; letter-spacing: 0.06em; }
  .nav__sep { padding-left: 0; border-left: 0; }
}

/* Shared text pieces */
.kicker, .story__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 0;
}
.kicker a { text-decoration: none; }
.kicker a:hover { color: var(--accent-2); }
.kicker time, .story__kicker time { color: var(--muted); font-weight: 600; }
.kicker__bar { display: inline-block; width: 22px; height: 1px; background: var(--line); margin: 0 12px; }
.byline { font-size: 13px; color: var(--muted); margin: 18px 0 0; letter-spacing: 0.02em; }
.section-h {
  font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; margin: 0;
}
.cap { color: var(--text-2); }

/* Home: dateline */
.dateline {
  display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); padding-top: 14px; padding-bottom: 14px;
}
.dateline p { margin: 0; }
.dateline p:first-child { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--text-2); }

/* Home: lead story */
.lead { display: grid; gap: 24px; padding-top: 8px; padding-bottom: 56px; }
.lead__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.lead__title { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: -0.02em; margin: 0; font-variation-settings: "opsz" 120; }
.lead__title a { text-decoration: none; }
.lead__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.lead__dek { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 20px; line-height: 1.4; color: var(--text-2); margin: 18px 0 0; }
@media (min-width: 900px) {
  .lead { grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); gap: 44px; align-items: end; }
  .lead__img { aspect-ratio: 5 / 4; }
  .lead__title { font-size: 54px; }
  .lead__text { padding-bottom: 6px; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
}
@media (min-width: 1100px) { .lead__title { font-size: 60px; } }

/* Home: stories */
.story { display: block; text-decoration: none; color: inherit; }
.story__img { margin-bottom: 16px; }
.story__img img { transition: opacity 0.2s ease; }
.story:hover .story__img img { opacity: 0.88; }
.story__title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.story:hover .story__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.story__dek { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 10px 0 0; }

.second { display: grid; gap: 44px; padding-bottom: 48px; padding-top: 0; }
@media (min-width: 760px) {
  .second { grid-template-columns: 1fr 1fr; gap: 40px; }
  .story--big .story__title { font-size: 32px; }
}
.third { display: grid; gap: 28px; padding-bottom: 72px; }
.story--side { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 18px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.story--side .story__img { margin: 0; }
.story--side .story__title { font-size: 22px; }
.story--side .story__dek { font-size: 15px; }
@media (min-width: 760px) {
  .third { grid-template-columns: 1fr 1fr; gap: 40px; }
  .story--side { grid-template-columns: 200px 1fr; gap: 24px; }
  .story--side .story__title { font-size: 25px; }
}

/* Home: topic rows */
.topics { padding-bottom: 80px; }
.topics__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; padding: 30px 0 22px; border-top: 3px double var(--line); }
.topics__head p { margin: 0; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 17px; }
.trow { display: grid; grid-template-columns: 92px 1fr; gap: 14px 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.trow__img { display: block; }
.trow__name { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; margin: 0 0 8px; letter-spacing: -0.01em; }
.trow__name a { text-decoration: none; }
.trow__name a:hover { color: var(--accent-2); }
.trow__label p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.trow__list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trow__list a { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; text-decoration: none; }
.trow__thumb { display: block; }
.trow__title { font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.trow__list a:hover .trow__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.trow__text { display: block; }
.trow__dek { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 8px; }
.trow__empty { color: var(--muted); font-size: 15px; font-style: italic; font-family: var(--serif); }
@media (min-width: 860px) {
  .trow { grid-template-columns: 150px minmax(0, 3.2fr) minmax(0, 6fr); gap: 32px; align-items: center; padding: 26px 0; }
  .trow__list { grid-column: auto; grid-template-columns: 1fr 1fr; gap: 24px; }
  .trow__list a { grid-template-columns: 132px 1fr; }
  .trow__list--single { grid-template-columns: 1fr; }
  .trow__list--single a { grid-template-columns: 240px 1fr; gap: 28px; }
  .trow__list--single .trow__title { font-size: 23px; }
  .trow__name { font-size: 34px; }
}

/* Home: about block */
.aboutblock {
  display: grid; gap: 24px; padding-top: 0; padding-bottom: 88px; position: relative;
}
.aboutblock__h { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 18px; }
.aboutblock__text p { color: var(--text-2); margin: 0 0 14px; max-width: 60ch; }
.aboutblock__text .kicker { color: var(--accent); }
.aboutblock__link a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; font-weight: 600; }
.aboutblock__fig { margin: 0; }
.aboutblock__credit { font-size: 12px; margin: 8px 0 0; }
@media (min-width: 860px) {
  .aboutblock { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
  .aboutblock__h { font-size: 44px; }
}

/* Post */
.post__head { padding-top: 48px; padding-bottom: 32px; }
.post__title { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.04; letter-spacing: -0.02em; margin: 0; font-variation-settings: "opsz" 144; }
.post__dek { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 21px; line-height: 1.4; color: var(--text-2); margin: 20px 0 0; max-width: 46ch; }
@media (min-width: 1000px) {
  .post__head { display: grid; grid-template-columns: 220px minmax(0, 720px); column-gap: 72px; justify-content: center; }
  .post__head > * { grid-column: 2; }
}
@media (min-width: 1200px) {
  .post__title { margin-right: -90px; }
}
@media (min-width: 760px) {
  .post__head { padding-top: 64px; }
  .post__title { font-size: 60px; }
  .post__dek { font-size: 24px; }
}
.post__hero { margin: 0 0 48px; }
.post__hero-frame { max-width: var(--max); margin-inline: auto; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
@media (min-width: 700px) { .post__hero-frame { aspect-ratio: 16 / 9; } .post__hero-frame--short { aspect-ratio: 21 / 9; } }
@media (min-width: 1232px) { .post__hero .wrap-wide { padding-inline: 0; max-width: var(--max); } }
.post__hero figcaption, .inbody figcaption, .tophead__img figcaption {
  font-size: 13px; line-height: 1.5; color: var(--muted); padding-top: 10px;
}

.post__grid { display: grid; gap: 32px; }
.post__rail { display: none; }
@media (min-width: 1000px) {
  .post__grid { grid-template-columns: 220px minmax(0, 720px); gap: 72px; justify-content: center; }
  .post__rail { display: block; position: sticky; top: 28px; align-self: start; font-size: 14px; }
}
.rail__h { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.rail__toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-top: 1px solid var(--line); }
.rail__toc li { counter-increment: toc; border-bottom: 1px solid var(--line-soft); }
.rail__toc a { display: grid; grid-template-columns: 26px 1fr; padding: 9px 0; text-decoration: none; color: var(--text-2); line-height: 1.35; }
.rail__toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-size: 12px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.rail__toc a:hover { color: var(--text); }
.rail__tags { color: var(--muted); margin-top: 22px; font-size: 13px; }
.rail__tags a { color: var(--accent); text-decoration: none; margin-left: 4px; }

/* Before you book */
.beforebook { background: var(--bg-2); border-top: 2px solid var(--accent); padding: 22px 22px 8px; margin: 0 0 40px; }
.prose .beforebook__h { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.beforebook ul { list-style: none; margin: 0; padding: 0; }
.beforebook li { position: relative; padding: 0 0 14px 28px; font-size: 17px; line-height: 1.55; color: var(--text); }
.beforebook li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 14px; height: 1px; background: var(--accent); }

/* Prose */
.prose { font-size: 18px; line-height: 1.72; color: var(--text-2); min-width: 0; }
.prose > p:first-of-type { color: var(--text); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 31px; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); margin: 2.1em 0 0.6em; scroll-margin-top: 24px; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; color: var(--text); margin: 1.8em 0 0.4em; }
.prose a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--text); }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--blush); font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-size: 0.9em; background: var(--bg-3); padding: 1px 5px; }
@media (max-width: 699px) { .prose { font-size: 17px; } .prose h2 { font-size: 27px; } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.6em 0 1.8em; border-top: 1px solid var(--accent); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; min-width: 520px; }
.prose th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding: 12px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--text-2); }
.prose td:first-child { color: var(--text); font-weight: 600; }
.prose tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* In-body photos */
.inbody { margin: 2.4em 0 2.2em; }
.inbody__frame { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-3); }
@media (min-width: 1160px) { .inbody { margin-right: -60px; } }

/* Sources and note */
.sources { margin-top: 3.2em; padding-top: 22px; border-top: 1px solid var(--line); }
.prose .sources h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.sources ol { list-style: none; padding: 0; margin: 0; counter-reset: src; }
.sources li { counter-increment: src; display: grid; grid-template-columns: 34px 1fr; font-size: 15px; line-height: 1.5; padding: 8px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.sources li::before { content: counter(src) "."; color: var(--accent); font-variant-numeric: tabular-nums; }
.sources a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.sources a:hover { border-color: var(--accent); }
.sources__pub { display: block; color: var(--muted); font-size: 13px; }
.notadvice { margin: 32px 0 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--blush); }
.notadvice p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.notadvice strong { color: var(--text-2); }

/* Related */
.related { padding-top: 64px; padding-bottom: 88px; }
.related .section-h { padding-top: 26px; border-top: 3px double var(--line); margin-bottom: 26px; }
.related__grid { display: grid; gap: 32px; }
.story--related .story__title { font-size: 23px; }
@media (min-width: 760px) { .related__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* Topic, archive and page headers */
.tophead { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 48px; align-items: end; }
.tophead__title, .pagehead__title { font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.tophead__dek, .pagehead__dek { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 21px; line-height: 1.4; color: var(--text-2); margin: 18px 0 0; max-width: 40ch; }
.pagehead__dek a { color: var(--accent-2); }
.tophead__img { margin: 0; }
@media (min-width: 860px) {
  .tophead { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .tophead__title, .pagehead__title { font-size: 62px; }
}
.pagehead { padding-top: 56px; padding-bottom: 40px; }
.pagehead__dek { max-width: 52ch; }

.list { padding-bottom: 56px; }
.row { display: grid; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none; }
.row__title { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
.row:hover .row__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.row:hover img { opacity: 0.88; }
.list__empty { color: var(--muted); border-top: 1px solid var(--line); padding-top: 28px; }
.list__empty a { color: var(--accent-2); }
@media (min-width: 760px) {
  .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
  .row__title { font-size: 34px; }
}

.page { padding-bottom: 88px; }
.page__body { max-width: 720px; }
@media (min-width: 1000px) { .page__body { margin-left: calc(220px + 72px); } }
.notfound { list-style: none; padding: 0; margin: 0 0 40px; border-top: 1px solid var(--line); max-width: 720px; }
.notfound li { border-bottom: 1px solid var(--line); }
.notfound a { display: block; padding: 14px 0; font-family: var(--serif); font-size: 24px; text-decoration: none; }
.notfound a:hover { color: var(--accent-2); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #121214; }
.footer__inner {
  max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: 48px var(--gutter) 28px;
  display: grid; gap: 32px;
}
.footer__brand p { color: var(--muted); font-size: 15px; max-width: 38ch; margin: 0; }
.footer__brand .wordmark { color: var(--text); }
.footer__cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer__h { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer__cols p { color: var(--text-2); font-size: 15px; margin: 0 0 10px; }
.footer__cols .footer__fine { color: var(--muted); font-size: 13px; }
.footer__base { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 8px var(--gutter) 28px; font-size: 12.5px; color: var(--muted); }
@media (min-width: 860px) { .footer__inner { grid-template-columns: 4fr 8fr; gap: 56px; } }

.ph-missing { width: 100%; height: 100%; background: var(--bg-3); }

/* Portrait in-body photos sit narrower so they do not tower over the text */
.inbody--tall { max-width: 520px; }
.inbody--tall .inbody__frame { aspect-ratio: 4 / 5; }
@media (min-width: 1000px) { .inbody--tall { margin-right: 0; } }

@media (max-width: 699px) {
  .beforebook { padding: 18px 16px 4px; }
  .beforebook li { font-size: 16px; padding-left: 24px; }
}
@media (max-width: 859px) {
  .trow__dek { display: none; }
  .trow__list a { grid-template-columns: 92px 1fr; gap: 18px; }
  .trow__title { font-size: 17px; }
}

.list + .related { padding-top: 0; }
.related__grid--four .story__title { font-size: 20px; }
@media (min-width: 760px) { .related__grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .related__grid--four { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

@media (max-width: 599px) {
  .table-wrap { overflow: visible; border-top: 0; }
  .prose table.stack { min-width: 0; font-size: 15px; }
  .prose table.stack thead { display: none; }
  .prose table.stack, .prose table.stack tbody, .prose table.stack tr, .prose table.stack td { display: block; width: 100%; }
  .prose table.stack tr { border-top: 1px solid var(--accent); padding: 12px 0 6px; }
  .prose table.stack tr + tr { border-top-color: var(--line); }
  .prose table.stack td { border: 0; padding: 0 0 10px; }
  .prose table.stack td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
  .prose table.stack td:first-child { font-size: 16px; }
  .prose tbody tr:hover td { background: none; }
}
