/* carloscaban.com: one stylesheet for every page.
   Night grounds carry the memorial and the art; plaster carries reading.
   Gold is the one accent. Gold text on plaster uses ochre for contrast. */

:root {
  --night: #141233;
  --night2: #1D1A45;
  --deep: #0D0B24;
  --plaster: #F3EADB;
  --plaster2: #EADDC8;
  --ink: #2A1F3D;
  --ink-muted: #5E5470;
  --on-night-muted: #B9B2D6;
  --gold: #E8B03A;
  --ochre: #8A5A10;
  --marigold: #E8742A;
  --magenta: #C2417A;
  --turquoise: #2FA6A0;
  --line-night: rgba(243, 234, 219, 0.14);
  --line-plaster: rgba(42, 31, 61, 0.18);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--plaster);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--gold); }
.plaster a:hover { color: var(--ochre); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.plaster a:focus-visible { outline-color: var(--ochre); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Demo notice: sits above the header on every page until launch. */
.demo-banner {
  background: repeating-linear-gradient(-45deg, #E8B03A 0 14px, #E5A82C 14px 28px);
  color: var(--night);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.4;
}

/* Header */
.site-header { background: var(--night); border-bottom: 1px solid rgba(232, 176, 58, 0.25); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 32px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { flex: none; }
.brand span { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: 0.01em; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; font-size: 15px; letter-spacing: 0.04em; }
.main-nav a { text-decoration: none; padding: 12px 0; }
.main-nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.lang-switch {
  display: flex; border: 1px solid rgba(243, 234, 219, 0.3); border-radius: 999px; padding: 3px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
}
.lang-switch a { text-decoration: none; padding: 7px 14px; border-radius: 999px; }
.lang-switch a[aria-current="true"] { background: var(--gold); color: var(--night); }

/* Bands */
.night { background: var(--night); }
.night2 { background: var(--night2); }
.plaster { background: var(--plaster); color: var(--ink); }
.band { padding: 104px 0; }
.band-sm { padding: 72px 0; }

/* Type */
.eyebrow {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.plaster .eyebrow { color: var(--ochre); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
.h-display { font-size: clamp(52px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.01em; }
.h-page { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.01em; }
h2, .h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; }
h3 { font-size: 26px; line-height: 1.2; }
.dates { margin: 0; font-family: var(--display); font-style: italic; font-size: 28px; }
.muted { color: var(--on-night-muted); }
.plaster .muted { color: var(--ink-muted); }
.lede { margin: 0; font-size: 19px; line-height: 1.65; max-width: 600px; }
p { margin: 0; }
.stack > * + * { margin-top: 22px; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px;
  margin-bottom: 44px;
}
.section-head > div > * + * { margin-top: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn svg { flex: none; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: #F0C25A; color: var(--night); }
.btn-ghost { border-color: var(--gold); color: var(--plaster); }
.btn-ghost:hover { background: rgba(232, 176, 58, 0.12); color: var(--plaster); }
.btn-ink { background: var(--night); color: var(--plaster); }
.plaster .btn-ink:hover { background: var(--night2); color: var(--plaster); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px;
  padding-top: 72px; padding-bottom: 88px;
}
.hero-copy { flex: 1 1 440px; min-width: 0; }
.hero-copy > * + * { margin-top: 22px; }
.hero-copy .btn-row { padding-top: 8px; }
.hero-art { flex: 1 1 440px; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.halo { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.halo > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch {
  position: relative; width: 62%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 50% 50% 6px 6px / 38% 38% 6px 6px;
  outline: 1px solid var(--gold); outline-offset: 10px; background: var(--night2);
}
figcaption { font-size: 14px; color: var(--on-night-muted); letter-spacing: 0.02em; }
.plaster figcaption { color: var(--ink-muted); }
figcaption cite, .work-title { font-family: var(--display); font-style: italic; color: var(--plaster); }
.plaster figcaption cite { color: var(--ink); }

/* Page hero (inner pages) */
.page-hero .wrap { padding-top: 72px; padding-bottom: 72px; }
.page-hero .hero-copy > * + * { margin-top: 18px; }
.page-hero .arch { width: 56%; }
.page-hero .halo { max-width: 460px; }

/* Split: image beside text */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; }
.split > figure { flex: 1 1 400px; min-width: 0; margin: 0; }
.split > figure > * + * { margin-top: 14px; }
.split > figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--plaster2); }
.split > div { flex: 1 1 480px; min-width: 0; }
.split > div > * + * { margin-top: 22px; }

.facts {
  margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px;
  border-top: 1px solid var(--line-plaster); padding-top: 22px;
}
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.facts dd { margin: 6px 0 0; font-family: var(--display); font-size: 20px; line-height: 1.3; }

/* Ornamental divider */
.divider { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: 0.4; }

/* Work grid */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 20px; }
.works figure { margin: 0; }
.works figure > * + * { margin-top: 12px; }
.works a { display: block; border-radius: 6px; }
.works img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--night2); transition: transform 0.25s ease; }
.works a:hover img { transform: scale(1.015); }
.works figcaption { display: flex; flex-direction: column; gap: 2px; }
.works .work-title { font-size: 19px; }
.center { display: flex; justify-content: center; margin-top: 40px; }

/* Tributes */
.tributes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.tribute {
  margin: 0; padding: 32px; border-radius: 8px; background: var(--night); border: 1px solid var(--line-night);
  display: flex; flex-direction: column; gap: 20px;
}
.night .tribute { background: var(--night2); }
.tribute-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tribute blockquote { margin: 0; font-family: var(--display); font-size: 20px; line-height: 1.55; }
.tribute figcaption { margin-top: auto; }
.sample-tag {
  display: inline-block; font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--night); background: var(--gold); padding: 3px 8px; border-radius: 4px;
}
.sample-note {
  border: 1px dashed currentColor; border-radius: 8px; padding: 14px 18px; font-size: 15px; opacity: 0.85;
}
.sample-note + .works, .sample-note + .tributes { margin-top: 40px; }

/* Share a memory (tributes page) */
.share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px;
  padding: 40px; border-radius: 10px; background: var(--night); color: var(--plaster);
}
.share > div { flex: 1 1 420px; min-width: 0; }
.share > div > * + * { margin-top: 12px; }
.share ol { margin: 0; padding-left: 22px; color: var(--on-night-muted); }
.share li + li { margin-top: 6px; }
.share .email { font-size: 15px; color: var(--on-night-muted); }

/* Vivian's note + donation */
.note { text-align: center; }
.note .wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.note .h2 { font-size: clamp(32px, 4vw, 44px); }
.note-body { font-family: var(--display); font-size: 22px; line-height: 1.6; }
.signature { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--ink-muted); }
.donate {
  margin-top: 28px; width: 100%; padding: 36px; border-radius: 10px; background: var(--night); color: var(--plaster);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.donate p { max-width: 520px; color: var(--on-night-muted); }

/* Life page: article + timeline */
.life-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; }
.article > * + * { margin-top: 22px; }
.article h2 { font-size: 34px; margin-top: 48px; }
.article p { font-size: 18px; line-height: 1.75; }
.pull {
  margin: 40px 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--ochre);
  font-family: var(--display); font-style: italic; font-size: 28px; line-height: 1.4;
}
.timeline { position: sticky; top: 24px; background: var(--plaster2); border-radius: 10px; padding: 32px; }
.timeline h2 { font-size: 26px; margin-bottom: 20px; }
.timeline ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ochre); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px;
  background: var(--plaster2); border: 1.5px solid var(--ochre); transform: rotate(45deg);
}
.timeline li.final::before { background: var(--ochre); }
.timeline .yr { display: block; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; color: var(--ochre); }
.timeline .ev { display: block; font-size: 16px; line-height: 1.5; }

.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: 36px 40px; border-radius: 10px; border: 1px solid rgba(232, 176, 58, 0.4);
}
.callout > div { flex: 1 1 420px; }
.callout > div > * + * { margin-top: 10px; }

/* Plain prose pages (privacy, 404) */
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 30px; margin-top: 40px; }
.prose p, .prose li { font-size: 18px; line-height: 1.7; }
.prose ul { margin: 0; padding-left: 22px; }
.prose > .alt-lang { margin-top: 56px; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-night-muted); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; }
.footer-name { font-family: var(--display); font-size: 28px; color: var(--plaster); display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; align-items: flex-start; }
.footer-nav a { text-decoration: none; padding: 10px 0; }
.social { display: flex; gap: 12px; }
.social a {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid rgba(243, 234, 219, 0.25);
}
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(243, 234, 219, 0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px;
}

@media (max-width: 900px) {
  .life-layout { grid-template-columns: 1fr; gap: 48px; }
  .timeline { position: static; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .band { padding: 72px 0; }
  .band-sm { padding: 56px 0; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 4px; }
  .main-nav { order: 3; width: 100%; gap: 0 20px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; }
  .share, .donate, .callout, .tribute { padding: 26px 22px; }
  .lede, .note-body { font-size: 18px; }
  .pull { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .works img { transition: none; }
}
