@font-face { font-family: 'Aref Ruqaa'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/aref-ruqaa-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Aref Ruqaa'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/aref-ruqaa-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Halant'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/halant-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Halant'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/halant-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Halant'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/halant-latin-600-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #fbf7f6;
  --fg-light-base-body: #2b1a1d;
  --fg-light-base-heading: #2b1a1d;
  --fg-light-base-muted: #6b5156;
  --fg-light-base-link: #a3262a;
  --fg-light-base-inverse: #4a3236;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #2b1a1d;
  --fg-light-card-heading: #2b1a1d;
  --fg-light-card-muted: #6b5156;
  --fg-light-card-link: #a3262a;
  --fg-light-card-inverse: #4a3236;
  --bg-light-elevated: #f4e6e3;
  --fg-light-elevated-body: #2b1a1d;
  --fg-light-elevated-heading: #2b1a1d;
  --fg-light-elevated-muted: #6b5156;
  --fg-light-elevated-link: #a3262a;
  --fg-light-elevated-inverse: #4a3236;
  --brand-light-accent: #a3262a;
  --brand-light-accent-hover: #7c1a1c;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #a3262a;
  --border-light-default: #8f7277;
  --border-light-subtle: #e3cfcc;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Skin-layer journal: blush paper, garnet ink, skin strata as dividers, photofacial filter bars as accent strips. */
:root {
  --font-head: 'Aref Ruqaa', Georgia, 'Times New Roman', serif;
  --font-text: 'Halant', Georgia, 'Times New Roman', serif;
  --garnet: var(--brand-light-accent);
  --garnet-deep: var(--brand-light-accent-hover);
  --on-garnet: var(--brand-light-on-accent);
  --rule: var(--border-light-default);
  --rule-soft: var(--border-light-subtle);
  --paper: var(--bg-light-base);
  --sheet: var(--bg-light-card);
  --blush: var(--bg-light-elevated);
  /* The three skin strata used everywhere a divider is needed. */
  --epi: var(--blush);
  --derm: color-mix(in srgb, var(--garnet) 34%, var(--sheet));
  --coll: repeating-linear-gradient(135deg, var(--garnet) 0 3px, var(--garnet-deep) 3px 6px);
  /* Photofacial cut-off filter bars: amber through red into the deep band. */
  --spectrum: linear-gradient(90deg,
    hsl(44 86% 60%) 0 14%,
    hsl(31 84% 56%) 14% 31%,
    hsl(14 78% 52%) 31% 50%,
    var(--garnet) 50% 72%,
    var(--garnet-deep) 72% 90%,
    color-mix(in srgb, var(--garnet-deep) 70%, black) 90% 100%);
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --frame: 76rem;
  --measure: 41rem;
  --header-h: 6.75rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-text);
  font-size: 1.15rem;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { margin: 2.6rem 0 0.7rem; font-size: clamp(1.5rem, 2.8vw, 1.95rem); }
h3 { margin: 1.8rem 0 0.45rem; font-size: 1.3rem; }

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* ---------- Strata: the shared layer swatches ---------- */

.layer { display: block; }
.layer-epi { background: var(--epi); box-shadow: inset 0 1px 0 var(--rule); }
.layer-derm { background: var(--derm); }
.layer-coll { background: var(--coll); }

.strata { display: grid; }
.strata-divider { grid-template-rows: 0.6rem 0.9rem 1.2rem; margin: clamp(2rem, 5vw, 3.5rem) 0; }
.strata-edge { grid-template-rows: 0.35rem 0.5rem 0.65rem; }

.spectrum { height: 0.3rem; background: var(--spectrum); }

/* ---------- Header: masthead row, contents band, filter strip ---------- */

.site-header { position: sticky; top: 0; z-index: 30; }

.masthead {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0.55rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.brand .site-logo { display: block; width: auto; height: 2.85rem; }
.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contents-band { border-top: 1px solid var(--rule-soft); }
.contents-inner { max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter); }

.site-nav > ul {
  display: flex;
  justify-content: space-between;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0 0.5rem;
  font-weight: 500;
  font-size: 0.94rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav li:nth-child(-n+4) a::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.8rem;
  background: linear-gradient(var(--epi) 0 30%, var(--derm) 30% 62%, var(--garnet) 62% 100%);
  box-shadow: 0 0 0 1px var(--rule-soft);
}

.menu-slot { flex: 0 0 auto; }
.site-menu { display: none; }
.site-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.1;
  white-space: nowrap;
}
.menu-icon {
  width: 1.05rem;
  height: 0.85rem;
  background:
    linear-gradient(currentColor, currentColor) left top / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 72% 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 44% 2px no-repeat;
}
.site-menu[open] > summary { position: relative; z-index: 42; background: var(--sheet); }
.site-menu > ul {
  position: fixed;
  inset: 0;
  z-index: 41;
  margin: 0;
  padding: 5.25rem var(--gutter) 2rem;
  list-style: none;
  overflow-y: auto;
  background: var(--sheet);
  border-top: 0.3rem solid transparent;
  border-image: var(--spectrum) 1;
}
.site-menu > ul li { border-bottom: 1px solid var(--rule-soft); }
.site-menu > ul a {
  display: block;
  padding: 0.95rem 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.25;
  text-decoration: none;
}

/* ---------- Page frame and breadcrumbs ---------- */

.page-frame { flex: 1 0 auto; width: 100%; max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter) 4.5rem; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: 0.95rem; }
.breadcrumbs li + li { position: relative; padding-left: 0.85rem; }
.breadcrumbs li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.4rem;
  height: 1px;
  background: var(--rule);
}

/* ---------- Prose ---------- */

.prose { max-width: var(--measure); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose ul > li::marker { color: var(--garnet); }
.prose strong { font-weight: 600; }
.prose blockquote {
  margin: 2.25rem 0;
  padding: 1.1rem 0 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.4;
}
.prose blockquote p { margin: 0; }
.prose figure { margin: 0 0 2rem; }
.prose figure img { display: block; width: 100%; border-bottom: 0.3rem solid var(--garnet); }
.prose figcaption { margin-top: 0.45rem; font-size: 0.92rem; color: var(--fg-muted); }
.prose section[data-section][style] { margin: 2rem 0; }
.table-scroll { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--rule-soft); text-align: left; }

/* ---------- Home: cover story, strata divider, stepped topic features ---------- */

.home { padding-top: clamp(1.75rem, 5vw, 3.5rem); }
.cover-title h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.12; max-width: 13ch; }
.cover-lines { margin-top: 1.4rem; max-width: 30rem; }
.cover-lines .display-line { margin: 0; font-size: 1.3rem; line-height: 1.45; }
.cover-lines .display-line + .display-line { margin-top: 0.6rem; font-size: 1.1rem; color: var(--fg-muted); }

.home-body > p:first-of-type { font-size: 1.3rem; line-height: 1.5; }
.home-body > ul { max-width: 64rem; margin: 1.5rem 0 3rem; padding: 0; list-style: none; }
.home-body > ul > li {
  position: relative;
  max-width: 40rem;
  margin: 0;
  padding: 1.15rem 0 1.3rem 1.6rem;
  border-top: 1px solid var(--rule-soft);
}
.home-body > ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  bottom: 1.4rem;
  width: 0.4rem;
}
.home-body > ul > li:nth-child(4n+1)::before { background: var(--epi); box-shadow: inset 0 0 0 1px var(--rule); }
.home-body > ul > li:nth-child(4n+2)::before { background: var(--derm); }
.home-body > ul > li:nth-child(4n+3)::before { background: var(--garnet); }
.home-body > ul > li:nth-child(4n+4)::before { background: var(--coll); }
.home-body > ul > li:nth-child(2) { margin-left: clamp(0rem, 5vw, 4.5rem); }
.home-body > ul > li:nth-child(3) { margin-left: clamp(0rem, 10vw, 9rem); }
.home-body > ul > li:nth-child(n+4) { margin-left: clamp(0rem, 15vw, 13.5rem); }
.home-body > ul > li > a:first-child {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}
.home-body > ul > li > a:first-child:hover { text-decoration: underline; }

@media (min-width: 64rem) {
  .home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .home-body { display: contents; }
  .cover { grid-row: 1; grid-column: 1; align-self: center; }
  .home-body > .photo-hero { grid-row: 1; grid-column: 2; align-self: center; margin: 0; }
  .strata-divider { grid-row: 2; grid-column: 1 / -1; }
  .home-body > :not(.photo-hero) { grid-column: 1 / -1; max-width: var(--measure); }
  .home-body > ul { max-width: 64rem; }
}

/* ---------- Topic hub: strata depth header, then index beside the essay ---------- */

.hub { padding-top: clamp(1.5rem, 4vw, 2.75rem); }
.hub-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem clamp(1.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.hub-title h1 { max-width: 18ch; }
.depth-chart { display: grid; gap: 0.2rem; min-width: 14rem; }
.depth-row { display: grid; grid-template-columns: 8.5rem auto; align-items: center; gap: 0.75rem; }
.depth-row .layer { height: 1.15rem; }
.depth-name { font-size: 0.95rem; line-height: 1.2; }

.hub:has(a[href^="/sun-damaged-skin-photoaging/"]) :is(.depth-derm, .depth-coll) .layer,
.hub:has(a[href^="/intense-pulsed-light-bbl/"]) .depth-coll .layer,
.hub:has(a[href^="/laser-resurfacing-ablative-and-not/"]) .depth-coll .layer,
.hub:has(a[href^="/firming-loose-skin-without-surgery/"]) .depth-epi .layer { opacity: 0.25; }
.hub:has(a[href^="/sun-damaged-skin-photoaging/"]) .depth-epi .depth-name,
.hub:has(a[href^="/intense-pulsed-light-bbl/"]) :is(.depth-epi, .depth-derm) .depth-name,
.hub:has(a[href^="/laser-resurfacing-ablative-and-not/"]) :is(.depth-epi, .depth-derm) .depth-name,
.hub:has(a[href^="/firming-loose-skin-without-surgery/"]) :is(.depth-derm, .depth-coll) .depth-name { color: var(--fg-body); font-weight: 600; }

.hub-columns { display: grid; gap: 2rem; margin-top: 2rem; }
.hub-index ul { margin: 0; padding: 0; list-style: none; border-top: 0.3rem solid var(--garnet); }
.hub-index ul:empty { display: none; }
.hub-index li { border-bottom: 1px solid var(--rule-soft); }
.hub-index a {
  display: block;
  padding: 0.85rem 0 0.9rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  text-decoration: none;
}
.hub-index a:hover { text-decoration: underline; }

@media (min-width: 56rem) {
  .hub-columns { grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4.5rem); }
  .hub-index ul { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ---------- Article: one reading column, depth marker, drop cap ---------- */

.article { max-width: var(--measure); margin: 0 auto; padding-top: clamp(1.5rem, 4vw, 2.75rem); }
.depth-mark { display: grid; grid-template-rows: 0.4rem 0.55rem 0.7rem; width: 5rem; margin-bottom: 1.1rem; }
.page-frame:has(.breadcrumbs a[href="/sun-damaged-skin-photoaging"]) .depth-mark :is(.layer-derm, .layer-coll),
.page-frame:has(.breadcrumbs a[href="/intense-pulsed-light-bbl"]) .depth-mark .layer-coll,
.page-frame:has(.breadcrumbs a[href="/laser-resurfacing-ablative-and-not"]) .depth-mark .layer-coll,
.page-frame:has(.breadcrumbs a[href="/firming-loose-skin-without-surgery"]) .depth-mark .layer-epi { opacity: 0.25; }
.article-title h1 { font-size: clamp(2.1rem, 4.8vw, 3.2rem); }
.article-body { margin-top: 1.75rem; }
.article-body > p:first-of-type { font-size: 1.25rem; line-height: 1.55; }
.article-body > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.6em;
  line-height: 0.8;
  color: var(--garnet);
}

/* ---------- About: masthead column beside the editor notes ---------- */

.masthead-page { display: grid; gap: 2rem; padding-top: clamp(1.5rem, 4vw, 2.75rem); }
.masthead-title h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 16ch; }
.strata-column { grid-template-columns: 0.6rem 0.9rem 1.2rem; width: 2.7rem; height: 7rem; margin-top: 1.75rem; }
.strata-column .layer-epi { box-shadow: inset 1px 0 0 var(--rule); }
.masthead-notes > p:first-child { font-size: 1.28rem; line-height: 1.5; }
.masthead-notes > h2 { padding-left: 1rem; border-left: 0.3rem solid var(--garnet); }

@media (min-width: 56rem) {
  .masthead-page { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  .masthead-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ---------- Contact: letters page beside the letter sheet ---------- */

.letters { display: grid; gap: 2rem; padding-top: clamp(1.5rem, 4vw, 2.75rem); }
.spectrum-head { width: 8rem; margin-bottom: 1.25rem; }
.letters-body { margin-top: 1.25rem; }
.letter-sheet {
  display: grid;
  gap: 1.1rem;
  align-self: start;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--rule);
  border-top: 0.3rem solid transparent;
  border-image: var(--spectrum) 1;
  border-image-width: 0.3rem 0 0 0;
}
.letter-field { display: grid; gap: 0.3rem; }
.letter-field label { font-weight: 600; font-size: 1rem; }
.letter-field input,
.letter-field textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--fg-body);
  font: inherit;
  font-size: 1.05rem;
}
.letter-field textarea { min-height: 9rem; resize: vertical; }
.letter-field input:focus-visible,
.letter-field textarea:focus-visible { outline: 2px solid var(--garnet); outline-offset: 2px; }
.letter-button {
  justify-self: start;
  min-height: 2.9rem;
  margin-top: 0.4rem;
  padding: 0.6rem 1.5rem;
  border: 0;
  border-radius: 2px;
  background: var(--garnet);
  color: var(--on-garnet);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}
.letter-button:hover { background: var(--garnet-deep); }
.letter-button:focus-visible { outline: 2px solid var(--garnet); outline-offset: 3px; }

@media (min-width: 56rem) {
  .letters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
}

/* ---------- Thank you: colophon note ---------- */

.colophon { max-width: 36rem; margin: 0 auto; padding-top: clamp(2rem, 6vw, 4rem); }
.colophon-rule { display: grid; grid-template-rows: 0.25rem 0.35rem 0.45rem; width: 6rem; margin: 0 auto 1.5rem; }
.colophon-title { text-align: center; }
.colophon-title h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.colophon-body { margin-top: 1.5rem; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 2rem; }
.footer-inner {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
}
.footer-name { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.footer-name a { text-decoration: none; }
.footer-name a:hover { text-decoration: underline; }
.footer-line { margin: 0; flex: 1 1 auto; }
.footer-client { margin: 0; }

/* ---------- Narrow screens ---------- */

@media (max-width: 63.9375rem) {
  :root { --header-h: 4rem; }
  .contents-band { display: none; }
  .site-menu { display: block; }
  .brand .site-logo { height: 2.5rem; }
}

@media (max-width: 40rem) {
  .hub-head { grid-template-columns: minmax(0, 1fr); }
  .depth-row { grid-template-columns: 6rem auto; }
  .home-body > ul > li:nth-child(n+2) { margin-left: 0; }
}

@media (max-width: 25rem) {
  .brand .site-logo { height: 2.2rem; }
  .site-menu > summary { padding: 0.45rem 0.6rem; font-size: 0.9rem; }
}
