/* lomioeslafoto.com — Sergio Lubezky
   Sin JavaScript ni fuentes externas. Solo dos tamaños de letra:
   --fs-title (títulos) y --fs-body (todo lo demás). */

:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #666666;
  --line: #e8e8e6;
  --soft: #f4f3f0;
  --accent: #c73e1d;
  --accent-dark: #a2300f;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-body: 1.0625rem;
  --fs-title: clamp(1.875rem, 4.4vw, 3rem);
  --wide: 1160px;
  --col: 40rem;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 14px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; z-index: 40; }

.wide { width: 100%; max-width: calc(var(--wide) + 48px); margin: 0 auto; padding: 0 24px; }
.col { width: 100%; max-width: calc(var(--col) + 48px); margin: 0 auto; padding: 0 24px; }

/* Títulos: un solo tamaño */
h1, h2, h3 { margin: 0; font-size: var(--fs-title); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
p { margin: 0 0 1.1em; }
.muted { color: var(--muted); }

/* Encabezado fijo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wide { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.wordmark { font-weight: 700; letter-spacing: -0.02em; text-decoration: none; line-height: 1.25; white-space: nowrap; }
.wordmark .by { display: block; font-weight: 500; color: var(--muted); }
.wordmark:hover { color: var(--ink); }
span.wordmark { cursor: default; }
.nav { display: flex; gap: 8px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }

/* Botones y etiquetas */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-block; padding: 0.35em 1em; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 500; text-decoration: none; line-height: 1.4; }
.chip:hover { background: var(--ink); color: #fff; }

/* Inicio: presentación */
.hero { padding: 40px 0 64px; }
.hero .wide { display: grid; gap: 40px; }
.hero h1 { max-width: 12em; margin-bottom: 26px; }
.hero p { max-width: 34em; color: #333; }
.hero-photo { width: 100%; max-width: 460px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: 28px; box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.4); }

/* Secciones */
.block { padding: 64px 0; }
.block + .block { border-top: 1px solid var(--line); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }

/* Tarjetas de historias */
.grid { display: grid; grid-template-columns: 1fr; gap: 52px 32px; margin: 0; padding: 0; list-style: none; }
.card { display: block; text-decoration: none; color: inherit; }
.card:hover { color: inherit; }
.card .thumb { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--soft); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin: 18px 0 8px; }
.card:hover h3 { color: var(--accent); }
.card .muted { display: block; line-height: 1.45; }
@media (prefers-reduced-motion: no-preference) {
  .card img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .card:hover img { transform: scale(1.04); }
}

/* Invitación a los otros sitios */
.invite { margin: 24px 0 72px; padding: 48px 28px; border-radius: 28px; background: var(--soft); }
.invite h2 { max-width: 14em; margin-bottom: 18px; }
.invite p { max-width: 36em; color: #333; }

/* Historia */
.story-head { padding: 56px 0 30px; }
.story-head .chips { margin-bottom: 22px; }
.story-photo { width: auto; max-width: 100%; height: auto; max-height: 84vh; margin: 0 auto; border-radius: var(--radius); }
.caption { padding-top: 14px; color: var(--muted); }
.story-text { padding-top: 36px; font-family: var(--serif); }
.story-text p { line-height: 1.75; }
.story-text p.slash { font-family: var(--mono); }
.signature { margin-top: 2em; font-style: italic; }
.after { margin-top: 44px; padding: 28px; border-radius: var(--radius); background: var(--soft); font-family: var(--sans); }
.after p { margin-bottom: 18px; }
.after .actions { margin-top: 0; }
.more-stories { padding: 24px 0 72px; }
.more-stories h2 { margin-bottom: 28px; }

/* Índice */
.page-head { padding: 56px 0 8px; }
.page-head h1 { margin-bottom: 20px; }
.page-head p { max-width: 34em; color: #333; }
.topic { padding: 40px 0; border-top: 1px solid var(--line); }
.topic:first-of-type { margin-top: 32px; }
.topic h2 { margin-bottom: 20px; }
.topic ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.topic li a { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: center; padding: 8px; border-radius: 16px; text-decoration: none; }
.topic li a:hover { background: var(--soft); color: inherit; }
.topic li img { width: 80px; height: 60px; object-fit: cover; border-radius: 10px; }
.topic li strong { display: block; font-weight: 600; line-height: 1.3; }
.topic li .muted { display: block; line-height: 1.4; }

/* Acerca */
.about-grid { display: grid; gap: 28px; }
.about-photo { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 24px; }
.about-block { padding: 48px 0; border-top: 1px solid var(--line); }
.about-block h2 { margin-bottom: 22px; }
.about-block p { max-width: 36em; color: #333; }

/* Pie oscuro */
.site-footer { background: #111; color: #cfcfcf; padding: 56px 0 44px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ff9a7a; }
.site-footer p { margin: 0 0 12px; }
.foot-top { display: grid; gap: 24px; margin-bottom: 28px; }
.foot-top strong { color: #fff; }
.legal { border-top: 1px solid #333; margin-top: 18px; padding-top: 2px; }
.legal summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 6px; color: #fff; font-weight: 600; cursor: pointer; list-style: none; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; font-weight: 400; line-height: 1; }
.legal[open] summary::after { content: "\2212"; }
.legal-body { max-width: 54em; padding-bottom: 8px; }
.legal-body p, .legal-body ul { margin: 0 0 12px; }
.legal-body ul { padding-left: 1.2em; }
.legal-body strong { color: #fff; }
.copy { margin: 10px 0 0; color: #9a9a9a; }

@media (min-width: 760px) {
  :root { --fs-body: 1.125rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 64px 36px; }
  .invite { padding: 64px 56px; }
  .about-grid { grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero .wide { grid-template-columns: 1.15fr 0.85fr; gap: 80px; align-items: center; }
  .hero-photo { justify-self: end; max-width: 480px; }
}

/* Página 404 */
.notfound { padding: 56px 0 88px; text-align: center; }
.notfound .camera { width: min(440px, 88%); height: auto; margin: 0 auto 36px; }
.notfound h1 { max-width: 14em; margin: 0 auto 20px; }
.notfound p { max-width: 32em; margin: 0 auto; color: #333; }
.notfound .actions { justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .notfound .brackets { animation: enfoque 2.6s ease-in-out infinite; transform-origin: 260px 190px; }
  @keyframes enfoque { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.965); opacity: 0.7; } }
}
@media (min-width: 760px) {
  .wordmark .by { display: inline; margin-left: 0.25em; }
}

@media (max-width: 400px) {
  .site-header .wide { gap: 8px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; }
}

@media (max-width: 345px) {
  .wordmark { white-space: normal; }
  .nav a { padding: 8px 6px; }
}
