/* Martian Estate — subdued, minimalist styling */

:root {
  --rust: #a1503a;
  --rust-dark: #7a3b29;
  --sand: #f6f0e4;
  --sand-deep: #ece0c8;
  --line: #d9cbb0;
  --ink: #332b22;
  --ink-soft: #6b5f4f;
  --available: #4c6b52;
  --sold: #9a3b2e;
  --max-width: 1080px;
  /* Avenir isn't a web font (Apple/Linotype license), so we use Poppins —
     the closest freely-licensed geometric sans with the same rounded,
     humanist proportions — for both headings and body text. */
  --font-display: "Poppins", "Avenir Next", "Avenir", system-ui, sans-serif;
  --font-body: "Poppins", "Avenir Next", "Avenir", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3, h4, .brand, .btn, nav.primary-nav a, .price, .gift-price, .plat-no, .badge, .tier-btn {
  font-family: var(--font-display);
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: 0.01em; }

a { color: var(--rust-dark); }
a:hover { color: var(--rust); }

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

/* Header */
header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--sand);
  position: sticky;
  top: 0;
  z-index: 20;
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.brand small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 2px;
}
nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
nav.primary-nav a:hover { color: var(--rust); }

/* Hero */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero-photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21 / 8;
  margin-bottom: 8px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-credit {
  margin: 0 0 32px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-style: italic;
  text-align: right;
}
.hero-photo-small {
  max-width: 240px;
  aspect-ratio: 5 / 3;
  margin-left: auto;
  margin-right: auto;
}
.hero-photo-credit-centered {
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero .hero-layout {
  display: block;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 500;
  max-width: 720px;
  margin: 0 0 18px;
  line-height: 1.25;
}
.hero p.lede {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.hero .stat-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat-row .stat { font-size: 0.85rem; color: var(--ink-soft); }
.stat-row .stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--sand); }
.btn.primary {
  border-color: var(--rust-dark);
  color: var(--sand);
  background: var(--rust-dark);
}
.btn.primary:hover { background: var(--rust); }
.btn.small { padding: 8px 16px; font-size: 0.72rem; }
.btn[disabled], .btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--ink-soft);
  color: var(--ink-soft);
  background: transparent;
}

section { padding: 56px 0; }
section.tight { padding: 32px 0; }
section + section { border-top: 1px solid var(--line); }

h2.section-title {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 8px;
}
p.section-sub {
  color: var(--ink-soft);
  max-width: 640px;
  margin-top: 0;
}

/* three-up feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.grid-3 .card .card-icon { margin-bottom: 12px; }
.grid-3 .card .card-icon svg { width: 40px; height: 40px; display: block; }
.grid-3 .card h3 { font-size: 1rem; margin-bottom: 8px; }
.grid-3 .card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.coming-soon-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Parcel browser */
.filter-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.filter-bar select {
  font-family: inherit;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--ink);
  border-radius: 10px;
}

.parcel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.parcel-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.parcel-card:hover {
  box-shadow: 0 6px 18px rgba(51, 43, 34, 0.08);
  transform: translateY(-2px);
}
.parcel-card .thumb {
  background: var(--sand-deep);
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.parcel-card .thumb img { width: 88%; height: 88%; object-fit: contain; }
.parcel-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.parcel-card .plat-no { font-size: 0.7rem; letter-spacing: 0.05em; color: var(--ink-soft); text-transform: uppercase; }
.parcel-card h3 { font-size: 1.02rem; margin: 4px 0 6px; font-weight: 500; }
.parcel-card .meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 14px; }
.parcel-card .price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.parcel-card .price { font-size: 1.05rem; font-weight: 600; }
.badge {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid transparent;
}
.badge.available { color: var(--available); border-color: var(--available); }
.badge.sold { color: var(--sold); border-color: var(--sold); background: rgba(154,59,46,0.06); }

/* Parcel detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.detail-layout .plat-frame {
  border: 1px solid var(--line);
  background: var(--sand-deep);
  padding: 12px;
  border-radius: 16px;
}
.detail-layout .region-scene {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}
.detail-layout .region-scene img { width: 100%; display: block; }
.detail-layout .plat-frame img { width: 100%; display: block; }
.detail-info .plat-no { color: var(--ink-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.detail-info h1 { font-size: 1.8rem; font-weight: 500; margin: 6px 0 4px; }
.detail-info .region-blurb { color: var(--ink-soft); margin-bottom: 20px; }
.detail-info dl.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  font-size: 0.92rem;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-info dl.specs dt { color: var(--ink-soft); }
.detail-info dl.specs dd { margin: 0; }
.detail-info > .listed { font-size: 0.85rem; color: var(--ink-soft); text-decoration: line-through; margin-top: 0; }

.tier-select {
  display: flex;
  gap: 10px;
  margin: 14px 0 4px;
  flex-wrap: wrap;
}
.tier-btn {
  font-family: inherit;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
}
.tier-btn.active {
  border-color: var(--rust-dark);
  color: var(--ink);
  background: var(--sand-deep);
  font-weight: 600;
}
.tier-btn:hover { border-color: var(--rust); }

.price-block { margin: 18px 0 24px; }
.price-block .gift-price { font-size: 1.7rem; font-weight: 600; }
.price-block .gift-note { font-size: 0.8rem; color: var(--ink-soft); margin: 6px 0 14px; max-width: 420px; }

.includes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.includes-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  border-top: 1px solid var(--line);
}
.includes-list li:first-child { border-top: none; }
.includes-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--available);
  font-size: 0.78rem;
}

.qr-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sand-deep);
}
.qr-preview img { width: 72px; height: 72px; display: block; background: #fff; padding: 4px; }
.qr-preview p { margin: 0; font-size: 0.78rem; color: var(--ink-soft); max-width: 220px; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
footer.site-footer .foot-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
footer.site-footer h4 {
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 6px; }
footer.site-footer a { color: var(--ink-soft); text-decoration: none; }
footer.site-footer a:hover { color: var(--rust); }
footer .fine-print {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.74rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Simple legal page layout */
.legal h1 { font-size: 1.7rem; font-weight: 500; }
.legal h2 { font-size: 1.05rem; font-weight: 600; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.94rem; }
.legal .updated { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 32px; }

/* Notice bar (no-cookie transparency notice, not a consent gate) */
.notice-bar {
  background: var(--sand-deep);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 8px 16px;
}
.notice-bar button {
  background: none;
  border: none;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.78rem;
  margin-left: 10px;
}

@media (max-width: 760px) {
  nav.primary-nav ul { gap: 16px; flex-wrap: wrap; }
  .grid-3 { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  footer.site-footer .foot-cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .hero-photo { aspect-ratio: 4 / 3; }
}
