/* Günlük Cilt Bakımı: a beauty magazine. A centred Bodoni masthead, italic standfirsts, white space, one plum
   and one blush, frameless photographs and single-column articles that open with a drop cap. */

:root {
  --paper: #ffffff;
  --ink: #26161d;
  --plum: #5b1f36;
  --blush: #f6e7e2;
  --nude: #e3c7bc;
  --muted: #76646c;
  --rule: #eadbd6;
  --serif: 'Bodoni Moda Variable', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Jost Variable', 'Futura', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: 1.0625rem; line-height: 1.7; font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; background: var(--paper); border: 1px solid var(--ink); }
.skip:focus { left: 16px; }
main { padding-bottom: 112px; }
main:has(> .atelier:last-child) { padding-bottom: 0; }

/* Masthead */
.masthead { padding-top: 36px; text-align: center; }
.wordmark { display: inline-block; color: var(--ink); font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 400; line-height: 1; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; margin-top: 26px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 0.95rem; letter-spacing: 0.02em; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--plum); text-decoration: underline; }

.story-topic { color: var(--plum); font-family: var(--serif); font-size: 1.15rem; font-style: italic; text-decoration: none; }
.read { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid var(--plum); color: var(--plum); font-family: var(--sans); font-size: 0.98rem; letter-spacing: 0.03em; text-decoration: none; }
.read:hover { border-bottom-width: 2px; }

/* Home: cover story, the editor's note, more stories */
.cover-story { margin-top: 56px; }
.cover-link { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; color: var(--ink); text-decoration: none; }
.cover-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cover-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cover-title { font-family: var(--serif); font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.015em; }
.cover-dek { max-width: 26em; color: var(--muted); font-family: var(--serif); font-size: 1.35rem; font-style: italic; line-height: 1.45; }
.cover-text .read { margin-top: 8px; }
.cover-link:hover .cover-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.letter { max-width: 820px; margin-top: 104px; text-align: center; }
.letter h1 { margin: 0 0 22px; color: var(--plum); font-size: clamp(2rem, 3.8vw, 3.1rem); font-style: italic; line-height: 1.15; }
.letter p { max-width: 36em; margin: 0 auto; color: var(--muted); font-size: 1.12rem; }

.stories-section { margin-top: 88px; }
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; margin: 0; padding: 0; list-style: none; }
.stories-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.story { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.story-photo { margin-bottom: 10px; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.12; }
.stories-three .story-title { font-size: 1.55rem; }
.story-dek { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.story:hover .story-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.atelier { margin-top: 120px; padding: 96px 0; background: var(--blush); }
.atelier-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 80px; align-items: center; }
.atelier-photo { margin: 0; }
.atelier-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.atelier-photo figcaption, .article-cover figcaption { margin-top: 10px; color: var(--muted); font-size: 0.82rem; }
.atelier-photo figcaption a, .article-cover figcaption a { color: inherit; }
.atelier h2 { margin: 0 0 20px; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.08; }
.atelier-text > p { max-width: 34em; margin: 0 0 32px; font-size: 1.1rem; }
.tenets { margin: 0 0 36px; }
.tenets div { padding: 18px 0; border-top: 1px solid var(--nude); }
.tenets div:last-child { border-bottom: 1px solid var(--nude); }
.tenets dt { color: var(--plum); font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.tenets dd { margin: 4px 0 0; }

/* Footer */
.footer { padding: 80px 0 40px; background: var(--plum); color: var(--blush); text-align: center; }
.footer .wordmark { color: #fff; }
.footer-intro { max-width: 38em; margin: 20px auto 32px; color: #ebd3db; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; padding: 18px 0; border-top: 1px solid rgba(246, 231, 226, 0.3); border-bottom: 1px solid rgba(246, 231, 226, 0.3); }
.footer-nav a { color: #fff; font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-note { max-width: 52em; margin: 28px auto 0; color: #e2c6d0; font-size: 0.9rem; }
.footer-note a { color: #fff; }

/* Article */
.article-head { max-width: 920px; margin-top: 72px; text-align: center; }
.article-head h1 { margin: 16px 0 22px; font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.04; letter-spacing: -0.015em; }
.dek { max-width: 34em; margin: 0 auto 28px; color: var(--muted); font-family: var(--serif); font-size: 1.4rem; font-style: italic; line-height: 1.45; }
.byline { margin: 0; color: var(--muted); font-size: 0.92rem; letter-spacing: 0.02em; line-height: 1.6; }
.article-cover { margin-top: 48px; margin-bottom: 0; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-cover figcaption { text-align: center; }
.column { width: min(680px, calc(100% - 32px)); margin: 64px auto 0; }

.answer { margin: 0 0 56px; padding: 32px 40px 36px; background: var(--blush); text-align: center; }
.answer h2 { margin: 0 0 12px; color: var(--plum); font-size: 1.2rem; font-style: italic; }
.answer p { margin: 0; font-family: var(--serif); font-size: 1.32rem; line-height: 1.55; }

.toc { margin: 0 0 56px; }
.toc h2 { margin: 0 0 8px; color: var(--plum); font-size: 1.3rem; font-style: italic; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-top: 1px solid var(--rule); }
.toc li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--rule); counter-increment: toc; }
.toc li::before { content: counter(toc); color: var(--plum); font-family: var(--serif); font-style: italic; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.prose { font-size: 1.12rem; line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose > p:first-child::first-letter { float: left; margin: 0.06em 0.12em 0 0; color: var(--plum); font-family: var(--serif); font-size: 4.4em; line-height: 0.78; }
.prose h2 { margin: 2em 0 0.6em; font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.15; }
.prose h3 { margin: 1.6em 0 0.4em; font-size: 1.4rem; font-style: italic; }
.prose p { margin: 0 0 1.2em; }
.prose ul { list-style: "–  "; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.prose li { margin: 0.5em 0; }
.prose li::marker { color: var(--plum); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 2em 0; padding-left: 24px; border-left: 1px solid var(--plum); font-family: var(--serif); font-size: 1.35rem; font-style: italic; line-height: 1.5; }
.prose blockquote p:last-child { margin-bottom: 0; }
.table-wrap { margin: 2em 0; overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.table-wrap table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.97rem; line-height: 1.5; }
.table-wrap th { padding: 14px 16px 12px 0; border-bottom: 1px solid var(--rule); color: var(--plum); font-family: var(--serif); font-size: 1.08rem; font-style: italic; font-weight: 400; text-align: left; vertical-align: bottom; }
.table-wrap td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

.products { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--ink); text-align: center; }
.products h2, .faq h2, .more h2 { margin: 0 0 8px; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; }
.product-list { margin: 0; padding: 0; list-style: none; text-align: left; }
.product { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--rule); }
.product:not(:has(.product-media)) { grid-template-columns: minmax(0, 1fr); }
.product:last-child { border-bottom: 1px solid var(--rule); }
/* Product shots are photographed on white, so their stage stays white. */
.product-media { background: #fff; }
.product-media img { width: 120px; height: 120px; object-fit: contain; }
.product h3 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.2; }
.product h3 a { color: var(--ink); text-decoration: none; }
.product p { margin: 0 0 12px; color: var(--muted); font-size: 0.98rem; line-height: 1.6; }

.faq { margin-top: 72px; }
.faq h2 { margin-bottom: 24px; text-align: center; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--plum); font-family: var(--sans); font-size: 1.5rem; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; }

.sources { margin-top: 56px; }
.sources h2 { margin: 0 0 10px; color: var(--plum); font-size: 1.3rem; font-style: italic; }
.sources ol { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.sources li { margin: 0.35em 0; }
.sources a { color: var(--muted); }

.more { margin-top: 112px; padding-top: 56px; border-top: 1px solid var(--ink); }
.more h2 { margin-bottom: 40px; text-align: center; }

/* Topic, about and not-found pages */
.page-head { max-width: 900px; margin-top: 72px; text-align: center; }
.page-head .story-topic { margin: 0 0 8px; }
.page-head h1 { margin: 0 0 18px; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }

@media (max-width: 960px) {
  .cover-link { grid-template-columns: 1fr; gap: 28px; }
  .atelier-grid { grid-template-columns: 1fr; gap: 40px; }
  .atelier-photo { max-width: 460px; }
  .stories-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .masthead { padding-top: 24px; }
  .wordmark { font-size: 2.2rem; }
  .nav { gap: 6px 24px; font-size: 0.9rem; }
  .cover-story { margin-top: 32px; }
  .letter { margin-top: 72px; }
  .stories, .stories-three { grid-template-columns: 1fr; gap: 48px; }
  .article-head { margin-top: 48px; }
  .dek { font-size: 1.2rem; }
  .article-cover { width: 100%; }
  .article-cover img { aspect-ratio: 4 / 3; }
  .article-cover figcaption { padding: 0 16px; }
  .answer { padding: 24px 22px 26px; }
  .answer p { font-size: 1.18rem; }
  .prose { font-size: 1.05rem; }
  .product { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .product-media img { width: 88px; height: 88px; }
  .atelier { margin-top: 88px; padding: 64px 0; }
}
