/* ==========================================================================
   Brandtastic Studio — Design System
   Editorial B&W (suizo / revista de arquitectura). Blanco/off-white + negro,
   sin acento. Tipografía protagonista, grid estricto, mucho aire, hairlines.
   Compartido por todas las páginas (home, servicios, blog).
   ========================================================================== */

:root {
  /* Color */
  --ink: #0a0a0a;
  --ink-soft: #333130;
  --paper: #ffffff;
  --band: #f4f3f1;
  --rule: #0a0a0a;
  --hair: #d8d6d2;
  --mid: #5f5c58;      /* labels — WCAG AA sobre blanco */
  --body: #26241f;
  --wa: #25d366;       /* solo elementos WhatsApp literales */

  /* Tipografía */
  --sans: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  /* Escala tipográfica fluida */
  --fs-display: clamp(3.4rem, 9vw, 7.5rem);
  --fs-h1:      clamp(2.6rem, 6vw, 4.6rem);
  --fs-h2:      clamp(2rem, 4.4vw, 3.4rem);
  --fs-h3:      clamp(1.35rem, 2.4vw, 1.85rem);
  --fs-h4:      1.15rem;
  --fs-body:    0.975rem;
  --fs-small:   0.8rem;
  --fs-label:   0.68rem;

  /* Espacio */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4rem, 10vw, 8.5rem);
  --maxw: 1240px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── Tipos base ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--sans); font-weight: 800; }

.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 0.95; letter-spacing: -0.045em; }
.h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }

p { color: var(--body); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); letter-spacing: -0.01em; }

/* Kicker / label editorial */
.kicker {
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--mid);
  display: inline-block;
}
.kicker.plain::before { display: none; }

.label {
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.band { background: var(--band); }
.rule { border: 0; border-top: 2px solid var(--rule); }
.hairline { border: 0; border-top: 1px solid var(--hair); }
section[id], [id].anchor { scroll-margin-top: 92px; }

/* ── Botones ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { background: var(--ink-soft); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.arrow-link {
  font-family: var(--mono);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.2s var(--ease);
}
.arrow-link:hover { gap: 0.9em; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--hair);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.site-header .logo-img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s var(--ease);
}
.nav a:hover, .nav a.active { border-bottom-color: var(--ink); }
.nav a.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-bottom: none;
}
.nav a.nav-cta:hover { background: var(--ink-soft); }

/* Dropdown de servicios */
.nav-item.has-drop { position: relative; display: flex; align-items: center; }
.nav-item.has-drop > a { display: inline-flex; align-items: center; gap: 0.35em; }
.caret { font-size: 0.7em; transition: transform 0.18s var(--ease); }
.nav-item.has-drop:hover .caret, .nav-item.has-drop:focus-within .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.3rem 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 26px rgba(0,0,0,0.1);
  z-index: 200;
}
.nav-item.has-drop:hover .dropdown, .nav-item.has-drop:focus-within .dropdown { display: flex; }
.dropdown a {
  padding: 0.6rem 1.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: none;
}
.dropdown a:hover { background: var(--band); border-bottom: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--gutter);
  align-items: end;
}
.hero-copy { display: flex; flex-direction: column; }
.hero-bar { width: 60px; height: 7px; background: var(--ink); margin: 1.4rem 0 1.6rem; }
.hero h1 { text-transform: uppercase; }
.hero .lead { margin-top: 1.6rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; align-items: center; }
.hero-figure {
  aspect-ratio: 3 / 4;
  min-height: 320px;
}

/* Franja manifiesto */
.manifesto {
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--hair);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.manifesto .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  align-items: baseline;
}
.manifesto .m-item {
  font-family: var(--mono);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.manifesto .m-item span { color: var(--mid); }

/* ── Imágenes B&W ───────────────────────────────────────────────────────── */
.photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.05);
}

/* ── Bloque editorial (quiénes somos) ───────────────────────────────────── */
.editorial-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.9fr;
  gap: var(--gutter);
  align-items: start;
}
.editorial-grid p { margin-top: 0.9rem; font-size: 0.9rem; }
.frame {
  border: 2px solid var(--ink);
  padding: 1.6rem 1.4rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.frame .frame-label { margin-bottom: 1rem; }
.frame .h3 { text-transform: uppercase; }

/* ── Servicios ──────────────────────────────────────────────────────────── */
.svc-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: 2.6rem;
}
.svc-head h2 { text-transform: uppercase; }
.svc-head .lead { max-width: 46ch; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--hair);
}
.svc {
  border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  padding: 1.7rem 1.6rem 2rem;
  position: relative;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.svc:hover { background: var(--ink); color: var(--paper); }
.svc:hover p, .svc:hover .svc-num { color: rgba(255,255,255,0.72); }
.svc-num { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; color: var(--mid); }
.svc h4 {
  font-size: var(--fs-h4);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-transform: uppercase;
  margin: 0.9rem 0 0.6rem;
}
.svc p { font-size: 0.82rem; line-height: 1.6; color: var(--mid); }

/* ── Proceso / enfoque ──────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  margin-top: 2.6rem;
}
.step { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.step .step-num { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--mid); }
.step h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: -0.01em; margin: 0.7rem 0 0.5rem; }
.step p { font-size: 0.82rem; color: var(--mid); line-height: 1.6; }

/* ── Trabajos ───────────────────────────────────────────────────────────── */
.work-feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--gutter);
  align-items: stretch;
}
.work-figure { min-height: 360px; }
.work-copy { display: flex; flex-direction: column; justify-content: center; }
.work-copy h3 { text-transform: uppercase; margin: 0.6rem 0 1rem; }
.work-meta { display: flex; gap: 2.5rem; margin-top: 1.6rem; border-top: 1px solid var(--hair); padding-top: 1.2rem; }
.work-meta .wm span { display: block; }
.work-meta .wm .wm-k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); margin-bottom: 0.3rem; }
.work-meta .wm .wm-v { font-size: 0.95rem; font-weight: 700; }

/* ── Contacto ───────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact h2 { text-transform: uppercase; }
.contact .lead { margin-top: 1.4rem; max-width: 36ch; }
.contact-detail { margin-top: 2rem; font-size: 0.9rem; line-height: 2; }
.contact-detail strong { font-weight: 700; }
.contact-detail a:hover { border-bottom: 1px solid var(--ink); }

form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--hair);
  background: transparent;
  padding: 0.55rem 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.18s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); border-bottom-width: 2px; }
.field textarea { resize: vertical; min-height: 88px; }
.form-ok { display: none; border: 1.5px solid var(--ink); padding: 0.9rem 1rem; font-size: 0.82rem; line-height: 1.6; }
.form-ok.show { display: block; }
.form-ok a { border-bottom: 1px solid var(--ink); }
.form-alt { font-size: 0.72rem; color: var(--mid); }
.form-alt a { color: var(--ink); border-bottom: 1px solid var(--hair); }

/* ── Giant wordmark ─────────────────────────────────────────────────────── */
.giant { overflow: hidden; border-top: 2px solid var(--rule); padding-top: clamp(2rem, 5vw, 4rem); }
.giant span {
  display: block;
  font-weight: 800;
  font-size: clamp(3.5rem, 21vw, 17rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { padding: clamp(2.5rem, 6vw, 4rem) 0 3.5rem; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gutter);
  border-top: 1px solid var(--hair);
  padding-top: 2rem;
}
.foot-brand .logo-img { height: 60px; margin-bottom: 1rem; }
.foot-brand p { font-size: 0.82rem; color: var(--mid); max-width: 30ch; }
.fcol .fc-title { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.fcol a, .fcol p { display: block; font-size: 0.82rem; color: var(--mid); line-height: 1.95; }
.fcol a:hover { color: var(--ink); }
.foot-legal {
  border-top: 1px solid var(--hair);
  margin-top: 2rem;
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--mid);
}

/* ── Chat widget ────────────────────────────────────────────────────────── */
#chat-launch {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 54px; height: 54px;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.16);
  z-index: 9999;
  transition: background 0.16s var(--ease);
}
#chat-launch:hover { background: var(--ink-soft); }
#chat-launch svg { width: 24px; height: 24px; }
#chat-panel {
  position: fixed;
  bottom: 5.5rem; right: 1.5rem;
  width: 360px; max-width: calc(100vw - 2rem);
  height: 520px; max-height: calc(100vh - 8rem);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 0 8px 30px rgba(0,0,0,0.16);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
#chat-panel.open { display: flex; }
.chat-head { background: var(--ink); color: #fff; padding: 1rem 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
.chat-head .ch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); }
.chat-head .ch-title { font-weight: 800; font-size: 0.82rem; }
.chat-head .ch-sub { font-size: 0.64rem; color: rgba(255,255,255,0.55); }
.chat-head .ch-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.75rem; background: var(--band); }
.msg { max-width: 84%; font-size: 0.8rem; line-height: 1.55; padding: 0.7rem 0.8rem; }
.msg.bot { background: #fff; border: 1px solid var(--hair); align-self: flex-start; }
.msg.user { background: var(--ink); color: #fff; align-self: flex-end; }
.chat-quick { display: flex; flex-direction: column; gap: 0.5rem; padding: 0 1.1rem 1rem; background: var(--band); }
.qbtn { text-align: left; background: #fff; border: 1.5px solid var(--ink); padding: 0.7rem 0.8rem; font-family: var(--mono); font-size: 0.75rem; cursor: pointer; transition: background 0.12s var(--ease), color 0.12s var(--ease); }
.qbtn:hover { background: var(--ink); color: #fff; }
.qbtn.wa { background: var(--wa); border-color: var(--wa); color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.qbtn.wa:hover { filter: brightness(0.92); }
.qbtn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .editorial-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 16 / 10; order: -1; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .work-feature { grid-template-columns: 1fr; }
  .work-figure { min-height: 240px; }
  .contact-grid, .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .site-header .logo-img { height: 44px; }
  .nav { gap: 0.9rem; }
  .nav a { font-size: 0.62rem; letter-spacing: 0.1em; }
  .nav a.nav-cta { padding: 0.5rem 0.7rem; }
  .dropdown { display: none !important; }
  .caret { display: none; }
}
@media (max-width: 560px) {
  .editorial-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .work-meta { gap: 1.5rem; }
  .nav a[href="/#trabajos"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Subpáginas — servicios, hub y blog
   ========================================================================== */

/* Hero de subpágina */
.subhero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.breadcrumb { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--ink); border-bottom: 1px solid var(--ink); }
.subhero h1 { text-transform: uppercase; max-width: 16ch; }
.subhero .lead { margin-top: 1.4rem; max-width: 54ch; }
.subhero-actions { margin-top: 1.8rem; display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }

/* Banda de foto de servicio — ratio fijo, imágenes pre-recortadas a 21:9 */
.svc-figure { width: 100%; aspect-ratio: 21 / 9; min-height: 180px; }

/* Detalle de servicio: contenido + aside */
.detail-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--gutter); align-items: start; }
.prose h2 { font-size: var(--fs-h3); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; margin: 2rem 0 0.8rem; }
.prose h3 { font-size: 1.15rem; font-weight: 800; margin: 1.6rem 0 0.6rem; letter-spacing: -0.01em; }
.prose p { margin-bottom: 1rem; }
.prose ul { list-style: none; margin: 1rem 0 1.4rem; }
.prose ul li { padding-left: 1.6rem; position: relative; margin-bottom: 0.6rem; color: var(--body); }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--mid); }
.aside-card { border: 2px solid var(--ink); padding: 1.6rem; position: sticky; top: 96px; }
.aside-card .label { display: block; margin-bottom: 1rem; }
.aside-card ul { list-style: none; margin: 0 0 1.4rem; }
.aside-card li { font-size: 0.85rem; padding: 0.55rem 0; border-bottom: 1px solid var(--hair); }
.aside-card li:last-child { border-bottom: none; }

/* Servicios relacionados / grilla del hub */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-left: 1px solid var(--hair); }
.related-grid a { border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); padding: 1.5rem 1.5rem 1.8rem; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.related-grid a:hover { background: var(--ink); color: var(--paper); }
.related-grid .rn { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--mid); }
.related-grid h4 { text-transform: uppercase; font-size: 1.1rem; font-weight: 800; margin-top: 0.6rem; letter-spacing: -0.01em; line-height: 1.12; }
.related-grid p { font-size: 0.82rem; color: var(--mid); margin-top: 0.5rem; }
.related-grid a:hover .rn, .related-grid a:hover p { color: rgba(255,255,255,0.62); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--ink); border-left: 1px solid var(--hair); }
.post-card { border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); padding: 2rem 1.9rem; display: flex; flex-direction: column; gap: 0.85rem; transition: background 0.2s var(--ease); }
.post-card:hover { background: var(--band); }
.post-card .pc-cat { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.post-card h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.post-card p { font-size: 0.85rem; color: var(--mid); line-height: 1.6; }
.post-card .arrow-link { margin-top: auto; }

/* Artículo */
.post-wrap { max-width: 760px; }
.post-head { border-bottom: 1px solid var(--hair); padding-bottom: 1.6rem; margin-bottom: 2rem; }
.post-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; text-transform: none; }
.post-meta { font-family: var(--mono); font-size: var(--fs-small); color: var(--mid); letter-spacing: 0.06em; margin-top: 1rem; }
.post-body p { margin-bottom: 1.1rem; font-size: 1.02rem; line-height: 1.75; }
.post-body h2 { font-size: 1.6rem; font-weight: 800; text-transform: none; letter-spacing: -0.02em; margin: 2.2rem 0 0.8rem; }
.post-body h3 { font-size: 1.2rem; font-weight: 800; margin: 1.6rem 0 0.6rem; }
.post-body ul, .post-body ol { margin: 1rem 0 1.4rem 1.2rem; }
.post-body li { margin-bottom: 0.5rem; line-height: 1.7; }
.post-body strong { font-weight: 700; }
.post-cta { border: 2px solid var(--ink); padding: 1.8rem; margin-top: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.post-cta h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: -0.02em; }

@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .related-grid { grid-template-columns: 1fr; }
}
