/* UAE Property Update (/updates/): same Crimson Plinth language as /demo/.
   Warm paper, Instrument Serif titles with one crimson italic phrase, hairlines, one crimson press button. */

:root {
  --paper: #f6f2ec;
  --surface: #ffffff;
  --sunken: #efe9e0;
  --ink: #1a1614;
  --ink-2: #4a433d;
  --muted: #6b645d;
  --faint: #8e867e;
  --hairline: #e5dfd6;
  --hairline-strong: #d6cfc3;
  --crimson: #a3202f;
  --crimson-deep: #6e1520;
  --crimson-soft: #f8ecee;
  --radius: 12px;
  --nav-h: 64px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-press: cubic-bezier(0.3, 0.7, 0.4, 1);
  --ease-snap: cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.upd {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.upd a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Links and buttons ---------- */
.link {
  font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: var(--hairline-strong);
  transition: color 120ms, text-decoration-color 120ms;
}
.link:hover { color: var(--crimson); text-decoration-color: var(--crimson); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--radius);
  background: var(--crimson); color: #fff !important;
  font: 600 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer; touch-action: manipulation;
  box-shadow: 0 4px 0 var(--crimson-deep), 0 6px 0 rgba(26, 22, 20, 0.2);
  transition: transform 600ms var(--ease-press), box-shadow 600ms var(--ease-press), filter 250ms;
}
.btn:hover {
  filter: brightness(1.1); transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--crimson-deep), 0 9px 0 rgba(26, 22, 20, 0.16);
  transition-duration: 250ms; transition-timing-function: var(--ease-snap);
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--crimson-deep), 0 2px 0 rgba(26, 22, 20, 0.2); transition-duration: 34ms; }
.btn:focus-visible { outline: 2px solid var(--crimson); outline-offset: 5px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px;
  background: var(--paper); border-bottom: 1px solid var(--hairline);
}
.nav-logo img { display: block; height: 38px; width: auto; }
.nav-link { font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Layout ---------- */
.wrap { max-width: 728px; margin: 0 auto; padding: 0 24px; }
.page-head { padding-top: 40px; }
.page-head h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em;
}
.upd h1 em, .upd h2 em { font-style: italic; color: var(--crimson); }
.lede { margin: 16px 0 0; color: var(--muted); font-size: 1.125rem; }
.post-date, .post-text time {
  display: block; margin-bottom: 12px;
  color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Index: post list ---------- */
.posts { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.post { border-bottom: 1px solid var(--hairline); }
.post-link {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 22px 0; text-decoration: none;
}
.post-cover {
  display: block; aspect-ratio: 9 / 16; overflow: hidden;
  background: var(--sunken); border: 1px solid var(--hairline); border-radius: 10px;
}
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-text time { margin-bottom: 6px; }
.post-title {
  display: block;
  font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.015em;
}
.post-title em { font-style: italic; color: var(--crimson); }
.post-summary { display: block; margin-top: 8px; color: var(--muted); font-size: 0.98rem; }
.post-link:hover .post-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--crimson); }
.empty { color: var(--muted); }

/* ---------- Article ---------- */
.reel { margin: 32px auto 0; max-width: 420px; }
.reel video, .reel img {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16;
  background: #0d0f14; border: 1px solid var(--hairline); border-radius: var(--radius);
  object-fit: cover;
}
.prose { margin-top: 40px; }
.prose p { margin: 0 0 18px; }
.prose h2 {
  margin: 40px 0 14px;
  font-family: var(--sans); font-size: 1.35rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.005em;
}
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.prose li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--hairline); color: var(--ink-2); }
.prose li::before {
  content: ""; position: absolute; left: 3px; top: 1.3em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--crimson);
}
.prose em { color: var(--muted); }
.prose strong { font-weight: 600; color: var(--ink); }
.sources { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.sources h2 { margin: 0 0 10px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sources ul { margin: 0; padding: 0; list-style: none; }
.sources li { padding: 6px 0; font-size: 0.95rem; }

/* ---------- Newsletter ---------- */
.nl {
  margin: 48px 0 0; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.nl h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 7.5vw, 2.5rem); line-height: 1.08; letter-spacing: -0.015em;
}
.nl-lede { margin: 10px 0 20px; color: var(--muted); }
.nl-form { display: grid; gap: 14px; }
.nl-input {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  font: 400 1rem var(--sans);
}
.nl-input:hover { border-color: var(--ink-2); }
.nl-input:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(163, 32, 47, 0.18); }
.nl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nl-consent { margin: 14px 0 0; color: var(--faint); font-size: 0.85rem; }
.nl-status { margin: 8px 0 0; font-size: 0.95rem; font-weight: 500; min-height: 1.5em; }
.nl-status.is-ok { color: #22603f; }
.nl-status.is-err { color: var(--crimson); }
.nl.is-done .nl-form, .nl.is-done .nl-consent { display: none; }

.closing { margin: 32px 0 0; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Footer ---------- */
.foot {
  max-width: 728px; margin: 72px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 24px max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  color: var(--muted); font-size: 0.85rem;
}
.foot img { display: block; height: 30px; width: auto; }
.foot p { margin: 0; text-align: right; }

@media (min-width: 720px) {
  .nav { padding: 0 32px; }
  .page-head { padding-top: 64px; }
  .post-link { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
  .post-title { font-size: 2rem; }
  .nl { padding: 36px; }
  .nl-form { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
