:root {
  --mint: #b7dbc5;
  --paper: #f7f2e8;
  --ink: #12130f;
  --orange: #e8753f;
  --line: rgba(18, 19, 15, 0.22);
}

* { box-sizing: border-box; }

html { background: var(--mint); color: var(--ink); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.38) 0 1px, transparent 2px) 0 0 / 36px 36px,
    var(--mint);
}

button, a { font: inherit; }

a { color: inherit; }

.shell {
  width: min(1320px, calc(100% - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  padding: clamp(22px, 3vw, 44px);
  border: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.topbar, footer, .portrait figcaption, .facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -.05em;
}

.network {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 800;
}

.network span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2c7e4e;
  box-shadow: 0 0 0 4px rgba(44,126,78,.14);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, .72fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  padding: clamp(54px, 7vw, 96px) clamp(0px, 4vw, 52px);
}

.eyebrow {
  margin: 0 0 22px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.8rem, 9.5vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .76;
}

.lede {
  max-width: 570px;
  margin: 42px 0 0;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.55;
}

.actions { display: flex; gap: 12px; margin-top: 32px; }

.primary, .secondary {
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 850;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.primary { background: var(--ink); color: var(--paper); }
.secondary { background: transparent; }
.primary:hover, .secondary:hover { transform: translateY(-3px); }
.secondary:hover { background: var(--paper); }

.facts {
  max-width: 650px;
  gap: 18px;
  margin: 45px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.facts div { min-width: 0; }
.facts dt { color: rgba(18,19,15,.58); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.facts dd { margin: 5px 0 0; font-size: .82rem; font-weight: 850; }

.portrait { margin: 0; transform-style: preserve-3d; transition: transform .18s ease-out; }

.image-wrap {
  padding: clamp(13px, 1.6vw, 22px);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 18px 18px 0 var(--orange);
}

.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--ink); }

.portrait figcaption {
  margin-top: 30px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  gap: 18px;
  font-size: .73rem;
}

footer p { margin: 0; }

.provenance {
  width: min(760px, calc(100% - 32px));
  padding: clamp(26px, 5vw, 54px);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 20px 20px 0 var(--orange);
}

.provenance::backdrop { background: rgba(18,19,15,.75); backdrop-filter: blur(6px); }
.provenance h2 { margin: 0; font: 400 clamp(2.5rem, 6vw, 5rem)/.9 Georgia, serif; letter-spacing: -.06em; }
.close { position: absolute; top: 16px; right: 18px; border: 0; background: none; font-size: 2rem; cursor: pointer; }
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 38px; }
.layers article { padding-top: 16px; border-top: 1px solid var(--ink); }
.layers span { font-size: .68rem; font-weight: 900; }
.layers h3 { margin: 18px 0 7px; font-size: 1rem; }
.layers p, .gateway-status { line-height: 1.55; font-size: .9rem; }
.gateway-status { margin: 28px 0 0; padding: 12px 14px; background: var(--mint); font-weight: 750; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-inline: 0; }
  .portrait { width: min(100%, 570px); }
  h1 { font-size: clamp(4.2rem, 22vw, 8rem); }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 16px); min-height: calc(100vh - 16px); margin: 8px auto; padding: 18px; }
  .network { max-width: 160px; text-align: right; line-height: 1.5; }
  .hero { padding-block: 48px; gap: 54px; }
  .actions, .facts, footer { align-items: stretch; flex-direction: column; }
  .layers { grid-template-columns: 1fr; }
  .image-wrap { box-shadow: 10px 10px 0 var(--orange); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
