@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Arvo'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/arvo-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Arvo'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/arvo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Arvo'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/arvo-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Arvo'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/arvo-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f4eadb;
  --fg-light-base-body: #2b1d16;
  --fg-light-base-heading: #2b1d16;
  --fg-light-base-muted: #69544a;
  --fg-light-base-link: #a8391f;
  --fg-light-base-inverse: #2b1d16;
  --bg-light-card: #ecdfc8;
  --fg-light-card-body: #2b1d16;
  --fg-light-card-heading: #2b1d16;
  --fg-light-card-muted: #69544a;
  --fg-light-card-link: #a8391f;
  --fg-light-card-inverse: #2b1d16;
  --bg-light-elevated: #fbf6ec;
  --fg-light-elevated-body: #2b1d16;
  --fg-light-elevated-heading: #2b1d16;
  --fg-light-elevated-muted: #69544a;
  --fg-light-elevated-link: #a8391f;
  --fg-light-elevated-inverse: #2b1d16;
  --brand-light-accent: #a8391f;
  --brand-light-accent-hover: #7f2914;
  --brand-light-on-accent: #fff8ef;
  --focus-light-ring: #a8391f;
  --border-light-default: #8a7262;
  --border-light-subtle: #d6c6ad;
}
.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; }
: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); }

/* DeWitt Cosmetic Surgery Journal: a warm literary periodical set on cream paper. */

:root {
  --face-display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --face-text: 'Arvo', Rockwell, 'Roboto Slab', Georgia, serif;
  --rule: var(--border-light-default);
  --rule-soft: var(--border-light-subtle);
  --coral: var(--brand-light-accent);
  --coral-deep: var(--brand-light-accent-hover);
  --on-coral: var(--brand-light-on-accent);
  --rail-width: 15.5rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--face-text);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-kerning: normal;
}

h1, h2, h3, h4 {
  font-family: var(--face-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; }
h2 { margin: 2.4rem 0 0.8rem; font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 600; }
h3 { margin: 1.8rem 0 0.6rem; font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1.1rem; }

.text-role-link { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.text-role-link:hover { text-decoration-thickness: 2px; }

/* ---------- Frame: side rail beside the sheet ---------- */

.frame { min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.brand { display: block; line-height: 0; flex: 0 1 auto; }
.brand { min-width: 0; }
.brand .site-logo { width: 12.5rem; max-width: 100%; height: auto; display: block; }

.rail-links { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }

.site-nav a {
  display: block;
  padding: 0.55rem 0;
  font-family: var(--face-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-top: 1px solid var(--rule-soft);
}

.site-nav li:last-child a { border-bottom: 1px solid var(--rule-soft); }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.site-nav-group > summary { cursor: pointer; padding: 0.55rem 0; font-family: var(--face-display); font-size: 1.3rem; }

/* collapsed menu toggle (narrow screens) */
.rail-toggle { position: static; flex: 0 0 auto; }

.site-menu > summary {
  display: inline-flex;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.2rem;
  font-family: var(--face-display);
  font-style: italic;
  font-size: 1.15rem;
}

.menu-icon {
  position: relative;
  display: inline-block;
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -0.42rem 0 currentColor, 0 0.42rem 0 currentColor;
}

.site-menu[open] .menu-icon { box-shadow: none; background: var(--coral); }

.site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 0.5rem var(--gutter) 1.25rem;
  list-style: none;
  background: var(--bg-light-base);
  border-bottom: 3px double var(--rule);
}

.site-menu ul ul { list-style: none; margin: 0; padding: 0 0 0 1.2rem; }

.site-menu a {
  display: block;
  padding: 0.6rem 0;
  font-family: var(--face-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid var(--rule-soft);
}

.sheet { min-width: 0; }

@media (min-width: 64rem) {
  .frame {
    display: grid;
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }

  .site-header {
    top: 0;
    align-self: start;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2.25rem;
    padding: 2rem 1.5rem;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
    box-shadow: inset -4px 0 0 var(--bg-light-base), inset -5px 0 0 var(--rule-soft);
    overflow-y: auto;
  }

  .brand .site-logo { width: 100%; }

  .rail-links { display: block; }
  .rail-toggle { display: none; }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { padding: 1.4rem var(--gutter) 0; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.15rem 0; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; padding: 0 0.55rem; color: var(--rule); }

/* ---------- Shared page parts ---------- */

main { padding: 1.75rem var(--gutter) 4rem; }

.page-title { max-width: 46rem; padding-bottom: 1.25rem; margin-bottom: 2rem; border-bottom: 3px double var(--rule); }

.prose { max-width: 40rem; }
.prose > :first-child { margin-top: 0; }

.prose blockquote,
.lead-copy blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 3px solid var(--coral);
  font-style: italic;
}

.prose ul, .prose ol, .lead-copy ul, .lead-copy ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li, .lead-copy li { margin-bottom: 0.45rem; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: 0.55rem 0.8rem 0.55rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.table-scroll th { font-family: var(--face-display); border-bottom-color: var(--rule); }

figure { margin: 0; }
.photo-hero { margin: 0 0 1.75rem; }
.photo-hero img, .photo-inline img { display: block; width: 100%; height: auto; }
.photo-hero img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo-inline { margin: 1.75rem 0; }

.kicker {
  display: block;
  margin: 0 0 0.45rem;
  font-family: var(--face-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  text-decoration: none;
}

/* ---------- Home: masthead band and issue grid ---------- */

.masthead {
  display: grid;
  gap: 1.25rem;
  padding: 0.5rem 0 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 3px double var(--rule);
}

.masthead h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.02em; max-width: 14ch; }

.masthead-lines { max-width: 30rem; }
.masthead-lines .display-line { margin: 0 0 0.75rem; font-size: 1.05rem; line-height: 1.6; }
.masthead-lines .display-line:first-child { font-family: var(--face-display); font-style: italic; font-size: 1.3rem; line-height: 1.4; }

@media (min-width: 52rem) {
  .masthead { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; column-gap: 2.5rem; }
  .masthead-lines { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
}

.issue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.tile {
  display: block;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.tile-lead .photo-hero { margin: 0 0 1.5rem; }
.tile-lead .lead-copy > :last-child { margin-bottom: 0; }
.tile-lead h2 { break-after: avoid; }

a.tile-small { text-decoration: none; }
.tile-title { display: block; font-family: var(--face-display); font-size: 1.45rem; font-weight: 700; line-height: 1.15; margin-bottom: 0.6rem; }
.tile-dek { display: block; font-size: 0.95rem; line-height: 1.6; }
a.tile-small:hover .tile-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

@media (min-width: 46rem) {
  .issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-lead { grid-column: 1 / -1; }
}

@media (min-width: 80rem) {
  .issue-grid { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); grid-template-rows: repeat(5, auto) 1fr; }
  .tile-lead { grid-column: 1; grid-row: 1 / span 6; }
  .issue-grid::after { content: ""; grid-column: 2; grid-row: 6; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .tile-lead .lead-copy { columns: 2; column-gap: 2.5rem; column-rule: 1px solid var(--rule-soft); }
  .tile-lead .lead-copy .photo-hero { column-span: all; }
  .tile-lead .lead-copy h2:first-of-type { margin-top: 0; }
}

/* ---------- About: index beside the statement ---------- */

.standards-columns { display: grid; gap: 2rem; }

.standards-index { padding: 1.4rem 1.5rem; border-top: 3px solid var(--coral); align-self: start; }
.standards-index ol { list-style: none; counter-reset: principle; margin: 0; padding: 0; }
.standards-index li { counter-increment: principle; display: grid; grid-template-columns: 2.2rem 1fr; align-items: baseline; padding: 0.7rem 0; border-top: 1px solid var(--rule-soft); }
.standards-index li:first-child { border-top: 0; padding-top: 0; }
.standards-index li::before { content: counter(principle); font-family: var(--face-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--coral); }
.standards-index a { font-family: var(--face-display); font-size: 1.12rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.standards-index a:hover { text-decoration: underline; }

@media (min-width: 60rem) {
  .standards-columns { grid-template-columns: 17rem minmax(0, 40rem); column-gap: 3.5rem; }
  .standards-index { position: sticky; top: 2rem; }
  .standards-body h2:first-child { margin-top: 0; }
}

/* ---------- Article: essay beside a cream panel ---------- */

.article-columns { display: grid; gap: 2.5rem; }

.article-aside { padding: 1.5rem; border-top: 3px solid var(--coral); align-self: start; }
.aside-question { font-family: var(--face-display); font-size: 1.2rem; line-height: 1.4; }
.aside-links { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.aside-links li { padding: 0.5rem 0; border-top: 1px solid var(--rule-soft); font-size: 0.95rem; }

@media (min-width: 60rem) {
  .article-columns { grid-template-columns: minmax(0, 40rem) 17rem; column-gap: 3.5rem; }
  .article-aside { position: sticky; top: 2rem; }
}

/* ---------- Topic hub: stepped sequence ---------- */

.hub-steps { max-width: 52rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 3px double var(--rule); }
.steps-heading { margin: 0 0 1.5rem; }

.steps ul { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.steps li::before { content: counter(step); font-family: var(--face-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--coral); }
.steps a { font-family: var(--face-display); font-size: 1.4rem; font-weight: 600; line-height: 1.25; text-decoration: none; }
.steps a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.steps li:nth-child(2) { margin-left: 1rem; }
.steps li:nth-child(3) { margin-left: 2rem; }
.steps li:nth-child(4) { margin-left: 3rem; }
.steps li:nth-child(5) { margin-left: 4rem; }
.steps li:nth-child(n+6) { margin-left: 5rem; }

@media (min-width: 52rem) {
  .steps li:nth-child(2) { margin-left: 3rem; }
  .steps li:nth-child(3) { margin-left: 6rem; }
  .steps li:nth-child(4) { margin-left: 9rem; }
  .steps li:nth-child(5) { margin-left: 12rem; }
  .steps li:nth-child(n+6) { margin-left: 15rem; }
}

/* ---------- Contact: letter on a cream panel ---------- */

.contact { max-width: 42rem; margin: 0 auto; }
.contact .page-title { text-align: center; }
.contact .contact-intro { margin: 0 auto 2.25rem; }

.letter {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-top: 3px solid var(--coral);
  border-bottom: 1px solid var(--rule);
}

.letter-salutation { margin: 0; font-family: var(--face-display); font-style: italic; font-size: 1.5rem; }

.letter-row { display: grid; gap: 1.4rem; }
@media (min-width: 36rem) { .letter-row { grid-template-columns: 1fr 1fr; } }

.letter-field { display: grid; gap: 0.3rem; }
.letter-label { font-family: var(--face-display); font-style: italic; font-size: 1.05rem; }

.letter input, .letter textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.1rem;
  border: 0;
  border-bottom: 1.5px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--fg-body);
  font: inherit;
}

.letter input:focus-visible, .letter textarea:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-bottom-color: var(--coral); }

.letter-button {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.65rem 1.8rem;
  border: 0;
  border-radius: 2px;
  background: var(--coral);
  color: var(--on-coral);
  font-family: var(--face-display);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.letter-button:hover { background: var(--coral-deep); }

/* ---------- Thank you ---------- */

.thanks { max-width: 42rem; }
.coral-rule { width: 6rem; height: 4px; margin: 0.5rem 0 1.5rem; border: 0; background: var(--coral); }
.thanks .page-title { border-bottom: 0; margin-bottom: 1rem; }
.thanks-reads { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 3px double var(--rule); }
.thanks-reads li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule-soft); }
.thanks-reads a { font-family: var(--face-display); font-size: 1.45rem; font-weight: 600; text-decoration: none; }
.thanks-reads a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

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

.site-footer {
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 3px double var(--rule);
  font-size: 0.95rem;
}

.footer-line { max-width: 40rem; font-family: var(--face-display); font-style: italic; font-size: 1.15rem; line-height: 1.45; }
.footer-sections { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0 0 1.25rem; padding: 0; }
.footer-credit { margin: 0; padding-top: 1rem; border-top: 1px solid var(--rule-soft); }
