/* -------- Base -------- */
:root {
  --ink:      #16181D;
  --ink-2:    #4A4E56;
  --ink-3:    #8A8F98;
  --paper:    #FDFCF8;
  --paper-2:  #F3EFE6;
  --accent:   #B34619;   /* muted sunset orange */
  --accent-2: #1E40AF;   /* deep blue */
  --good:     #059669;
  --bad:      #DC2626;
  --serif:    "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:     ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure:  62ch;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -------- Diagnostic panel (fixed, corner) -------- */
.diag {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  background: rgba(22, 24, 29, 0.94);
  color: #F5F4EE;
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 260px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.14);
  backdrop-filter: blur(6px);
  font-family: var(--sans);
  border: 1px solid rgba(255,255,255,.06);
}
.diag__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: #2A2E36;
  color: #C9CDD4;
  margin-bottom: 12px;
}
.diag__badge.is-on  { background: rgba(5,150,105,.16);  color: #6EE7B7; box-shadow: inset 0 0 0 1px rgba(5,150,105,.5); }
.diag__badge.is-off { background: rgba(220,38,38,.16); color: #FCA5A5; box-shadow: inset 0 0 0 1px rgba(220,38,38,.5); }
.diag__badge.is-unk { background: rgba(139,139,139,.16); color: #D1D5DB; box-shadow: inset 0 0 0 1px rgba(139,139,139,.4); }
.diag__time {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.diag__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: #A9AEB8;
  margin-top: 4px;
  min-height: 14px;
}
.diag__btn {
  margin-top: 14px;
  width: 100%;
  font: 500 13px/1 var(--sans);
  color: #F5F4EE;
  background: #2A2E36;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background .15s;
}
.diag__btn:hover  { background: #363B45; }
.diag__btn:active { background: #1F2229; }
.diag__btn.is-loading { opacity: .55; cursor: wait; }

/* -------- Hero -------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 620px;
  overflow: hidden;
  background: #0B0C10;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.62) saturate(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 8vw 8vh;
  color: #F5F4EE;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 12px;
  color: #E7DFCB;
  margin: 0 0 22px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 128px);
  line-height: .95;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  max-width: 34ch;
  margin: 0;
  color: #EAE4D2;
}

/* -------- Sections -------- */
.section { padding: clamp(60px, 9vw, 130px) 8vw; }
.section__head { max-width: 720px; margin-bottom: 60px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  margin: 0 0 16px;
}
.sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2);
  font-size: 20px;
  margin: 0;
}
.lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 18px;
}
p { max-width: var(--measure); }
.section p { margin: 0 0 18px; }

/* -------- Featured -------- */
.section--feature { background: var(--paper); }
.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.feature__photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
}
.feature__photo figcaption {
  font-family: var(--sans);
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 12px;
  letter-spacing: .04em;
}
.feature__copy { max-width: 52ch; }
.link {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

/* -------- Gallery -------- */
.section--gallery { background: var(--paper-2); }
.grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.card {
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); }
.card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.card__body { padding: 18px 20px 24px; }
.card__place {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 6px;
}
.card__title {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

/* -------- Long-form -------- */
.section--longform { background: var(--paper); }
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(60px, 9vw, 120px);
}
.story:last-child { margin-bottom: 0; }
.story--reverse .story__photo { order: 2; }
.story__photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
}
.story__copy { max-width: 52ch; }

/* -------- Mosaic -------- */
.section--mosaic { background: var(--paper-2); }
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mosaic img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
}

/* -------- Footer -------- */
.foot {
  background: #16181D;
  color: #C9CDD4;
  padding: 60px 8vw 80px;
  text-align: center;
}
.foot p { margin: 0 auto 8px; max-width: 90ch; }
.foot__mono {
  font-family: var(--mono);
  color: #7B8290;
  font-size: 12px;
}
.foot__tip {
  font-size: 12px;
  color: #7B8290;
  margin-top: 24px;
}
kbd {
  font-family: var(--mono);
  font-size: 11px;
  background: #2A2E36;
  color: #E7DFCB;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.08);
}

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .feature, .story { grid-template-columns: 1fr; }
  .story--reverse .story__photo { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: 1fr; }
  .diag {
    right: 12px; bottom: 12px;
    min-width: 200px;
    padding: 10px 12px;
  }
  .diag__time { font-size: 22px; }
}
