/* ============================================
   Dr. Fahmida Alam — Portfolio
   Aesthetic: warm-clinical editorial
   ============================================ */

:root {
  --ivory: #f6f1e8;
  --ivory-2: #efe8db;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --ink: #1a2a2a;
  --ink-2: #2d4040;
  --muted: #6b7878;
  --rule: #d9d0bd;
  --teal: #1f4d4f;
  --teal-2: #2d6566;
  --teal-soft: #e6ecec;
  --gold: #c8a24b;
  --gold-soft: #f0e3c2;
  --gold-deep: #9a7a30;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Menlo", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
}
.eyebrow.gold { color: var(--gold-deep); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }

p { color: var(--ink-2); text-wrap: pretty; }

/* ---------- Layout ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) {
  .container { padding: 0 24px; }
}

section { padding: 120px 0; }
@media (max-width: 720px) { section { padding: 80px 0; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246, 241, 232, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-brand .mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 16px; font-weight: 500;
  letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--teal); color: var(--cream) !important;
  padding: 10px 18px !important; border-radius: 999px;
  font-size: 12px !important; letter-spacing: 0.06em !important;
  text-transform: uppercase; font-weight: 600;
}
.nav-cta:hover { background: var(--ink) !important; }
.nav-cta::after { display: none; }

.lang-toggle {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  padding: 6px 12px !important;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2) !important;
}
.lang-toggle:hover { border-color: var(--teal); color: var(--teal) !important; }
.lang-toggle::after { display: none; }

@media (max-width: 820px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.hero h1 {
  margin-bottom: 40px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 400;
}
.hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--sans);
}
.btn-primary { background: var(--teal); color: var(--cream); }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.hero-portrait {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 480px;
  margin-left: auto;
  background: var(--ivory-2);
  border-radius: 4px;
  overflow: hidden;
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: 2;
  border-radius: 2px;
}
.hero-portrait-tag {
  position: absolute;
  bottom: -1px; left: -1px;
  background: var(--cream);
  padding: 16px 22px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  z-index: 3;
  display: flex; align-items: center; gap: 12px;
}
.hero-portrait-tag .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #2a8d4c;
  box-shadow: 0 0 0 0 rgba(42,141,76,0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(42,141,76,0.45); }
  70% { box-shadow: 0 0 0 10px rgba(42,141,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(42,141,76,0); }
}

.credentials {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.credential {
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--cream);
}

/* ---------- Marquee ribbon ---------- */
.ribbon {
  background: var(--teal);
  color: var(--cream);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ribbon-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}
.ribbon-track span { display: inline-flex; align-items: center; gap: 60px; }
.ribbon-track .sep { color: var(--gold); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-headline { font-size: clamp(32px, 4vw, 48px); margin-bottom: 40px; line-height: 1.2; }
.about-headline em { font-style: italic; color: var(--gold-deep); }
.about-body p + p { margin-top: 18px; }
.about-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 58px;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: var(--teal);
}

.about-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.about-stats .stat {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
}
.about-stats .stat:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: 44px; color: var(--teal); line-height: 1; }
.stat-num sup { font-size: 18px; color: var(--gold-deep); margin-left: 2px; }
.stat-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- Expertise ---------- */
.expertise-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 40px; margin-bottom: 64px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
}
.expertise-head p { max-width: 380px; }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .expertise-grid { grid-template-columns: 1fr; } }
.expertise-card {
  padding: 40px 32px 48px;
  border-right: 1px solid var(--rule);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 360px;
}
.expertise-card:last-child { border-right: none; }
@media (max-width: 900px) { .expertise-card { border-right: none; border-bottom: 1px solid var(--rule); min-height: auto; } }

.expertise-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}
.expertise-card h3 { margin: 18px 0 16px; }
.expertise-card p { font-size: 15px; color: var(--ink-2); flex: 1; }
.expertise-card ul {
  list-style: none;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--rule);
}
.expertise-card ul li {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  display: flex; gap: 10px;
}
.expertise-card ul li::before {
  content: "—";
  color: var(--gold);
}

/* ---------- Featured strip (event photo) ---------- */
.feature-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 0;
}
.feature-strip .container { padding: 100px 40px; }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; gap: 36px; } }
.feature-grid h2 { color: var(--cream); margin-bottom: 24px; }
.feature-grid h2 em { color: var(--gold); font-style: italic; }
.feature-grid p { color: rgba(246, 241, 232, 0.72); font-size: 17px; line-height: 1.6; }
.feature-grid > div > .eyebrow + h2 { margin-top: 0; }
.feature-grid .eyebrow { color: var(--gold); }
.feature-image {
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  border: 1px solid rgba(200,162,75,0.3);
}
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-meta {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 13px; letter-spacing: 0.06em;
  color: rgba(246, 241, 232, 0.7);
  padding-top: 24px;
  border-top: 1px solid rgba(246,241,232,0.15);
}
.feature-meta span strong { display: block; color: var(--gold); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Chambers ---------- */
.chambers { background: var(--ivory); }
.chamber-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  margin-top: 56px;
}
@media (max-width: 820px) { .chamber-grid { grid-template-columns: 1fr; } }

.chamber-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 40px;
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.chamber-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -30px rgba(31,77,79,0.25);
  border-color: var(--teal);
}
.chamber-card .place-badge {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 18px;
}
.chamber-card h3 { font-size: 26px; }
.chamber-card .addr { font-size: 14px; color: var(--muted); }
.chamber-hours {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  margin-top: 8px;
}
.chamber-hours .time {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--teal);
  letter-spacing: -0.01em;
}
.chamber-hours .label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.chamber-actions { display: flex; gap: 12px; margin-top: auto; padding-top: 8px; }
.chamber-actions a {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.chamber-actions a:hover { border-bottom-color: var(--teal); }

/* ---------- Appointment band ---------- */
.appointment-band {
  background: var(--gold-soft);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 60px 0;
}
.appointment-band .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.appointment-band h2 { font-size: clamp(32px, 4vw, 44px); }
.appointment-band h2 em { font-style: italic; color: var(--gold-deep); }
.appointment-band p {
  color: var(--ink-2); font-size: 16px; max-width: 460px;
  margin-top: 12px;
}
.appointment-phone {
  display: flex; align-items: center; gap: 16px;
  background: var(--ink); color: var(--cream);
  padding: 22px 28px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 26px;
  transition: background 0.2s ease;
}
.appointment-phone:hover { background: var(--teal); }
.appointment-phone .ico {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: grid; place-items: center;
}

/* ---------- Writing section ---------- */
.writing { background: var(--cream); }
.writing-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 40px; margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
}
.writing-head a.see-all {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); font-weight: 600;
  display: inline-flex; gap: 8px; align-items: center;
  white-space: nowrap;
}
.writing-head a.see-all:hover { color: var(--ink); }

.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; gap: 32px; } }

.post-card {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  transition: transform 0.3s ease;
}
.post-card:hover { transform: translateY(-3px); }
.post-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.post-meta .topic { color: var(--gold-deep); font-weight: 600; }
.post-card h3 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}
.post-card:hover h3 { color: var(--teal); }
.post-card p { font-size: 15px; color: var(--ink-2); margin-bottom: 20px; }
.post-card .read {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); font-weight: 600;
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(246,241,232,0.15);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-brand .name {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 10px;
}
.footer-brand p { color: rgba(246,241,232,0.6); font-size: 14px; max-width: 320px; }

.footer ul { list-style: none; }
.footer ul li { padding: 5px 0; }
.footer ul li a { color: rgba(246,241,232,0.7); font-size: 14px; transition: color 0.2s ease; }
.footer ul li a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 32px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: rgba(246,241,232,0.5);
  font-size: 12px; letter-spacing: 0.06em;
}

.dev-credit {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 16px 40px 0;
  border-top: 1px solid rgba(246,241,232,0.08);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(246,241,232,0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.dev-credit strong { color: var(--gold); font-weight: 600; letter-spacing: 0.02em; }
.dev-credit a { color: rgba(246,241,232,0.55); transition: color 0.2s ease; }
.dev-credit a:hover { color: var(--gold); }
.dev-credit .sep { color: rgba(246,241,232,0.25); }
@media (max-width: 720px) {
  .dev-credit { padding: 16px 24px 0; font-size: 10.5px; }
}

/* ---------- Utility ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Blog index / single post specific (used in blog pages) ---------- */
.blog-hero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.blog-hero h1 { max-width: 900px; }
.blog-hero p.lead { font-size: 19px; max-width: 620px; margin-top: 24px; color: var(--ink-2); }

.featured-post {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 900px) { .featured-post { grid-template-columns: 1fr; } }
.featured-post-image {
  aspect-ratio: 4/3;
  background: var(--ivory-2);
  position: relative;
  overflow: hidden;
}
.featured-post-image .placeholder {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, var(--ivory-2), var(--ivory-2) 12px, var(--ivory) 12px, var(--ivory) 24px);
  display: grid; place-items: center;
  color: var(--muted);
  font-family: var(--mono); font-size: 12px;
}

.post-list {
  padding: 80px 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.post-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: padding 0.3s ease;
}
.post-row:hover { padding-left: 12px; }
.post-row:first-child { border-top: 1px solid var(--ink); }
.post-row .num { font-family: var(--mono); font-size: 13px; color: var(--gold-deep); padding-top: 4px; }
.post-row h3 { font-size: clamp(24px, 2.5vw, 32px); margin-bottom: 8px; }
.post-row p { font-size: 14px; color: var(--muted); max-width: 600px; }
.post-row .meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.post-row .arrow {
  font-family: var(--serif); font-size: 28px; color: var(--teal);
  align-self: center;
  transition: transform 0.3s ease;
}
.post-row:hover .arrow { transform: translateX(8px); color: var(--gold-deep); }
@media (max-width: 700px) {
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row .arrow { display: none; }
}

/* Single article styles */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 180px 40px 100px;
}
.article-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.article-meta .topic { color: var(--gold-deep); font-weight: 600; }
.article h1.article-title {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 28px;
  line-height: 1.05;
}
.article .lead {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink-2);
  font-style: italic;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.article-body { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.article-body p { margin-bottom: 22px; }
.article-body h2 {
  font-size: 32px; margin: 56px 0 20px;
  padding-top: 12px;
}
.article-body h3 { font-size: 24px; margin: 36px 0 14px; }
.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--teal);
  border-left: 3px solid var(--gold);
  padding: 12px 0 12px 28px;
  margin: 32px 0;
}
.article-body ul, .article-body ol { margin: 20px 0 24px 24px; }
.article-body li { padding: 4px 0; }
.article-body a { color: var(--teal); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.author-card {
  display: flex; gap: 20px;
  padding: 32px;
  background: var(--cream);
  border: 1px solid var(--rule);
  margin-top: 64px;
  align-items: center;
}
.author-card .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--ivory-2);
}
.author-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card .name { font-family: var(--serif); font-size: 22px; }
.author-card .role { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Writing surface (compose) ---------- */
.compose {
  max-width: 860px;
  margin: 0 auto;
  padding: 160px 40px 100px;
}
.compose-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.compose-head h1 { font-size: 48px; }
.compose-toolbar {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tool-btn {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: var(--ink-2);
  transition: all 0.15s ease;
}
.tool-btn:hover { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.tool-btn.primary { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.tool-btn.primary:hover { background: var(--ink); border-color: var(--ink); }

.compose-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  width: 100%;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-bottom-color: var(--teal);
}
.field input.title-input {
  font-family: var(--serif); font-size: 40px; line-height: 1.1;
}
.field textarea.body-input {
  font-family: var(--serif); font-size: 19px; line-height: 1.7;
  min-height: 320px;
}
.compose-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 600px) { .compose-meta { grid-template-columns: 1fr; } }

.compose-help {
  margin-top: 40px;
  padding: 24px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  font-size: 14px;
  color: var(--ink-2);
}
.compose-help h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.compose-help code {
  font-family: var(--mono); font-size: 12px;
  background: rgba(255,255,255,0.6);
  padding: 1px 6px; border-radius: 3px;
}

.preview-block {
  margin-top: 40px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.preview-block .preview-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}

.drafts-list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.draft-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--cream); border: 1px solid var(--rule);
  font-size: 14px;
}
.draft-item button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.draft-item button:hover { color: #b03030; }
.draft-item .title { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.draft-item .when { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
