/* finesse · register=h5 · morph=F-ambient-screen · A=midnight+citron
 * B=newspaper-serif+compact-sans · C=full-bleed-poster · D=photographic-scrim
 * E=blue-hour-limestone · SOUL=8 SPECTACLE=4 DENSITY=5 */

:root {
  color-scheme: dark;
  --ink: #111b24;
  --surround: #202e38;
  --primary: #f5f3ea;
  --secondary: #e1e6e7;
  --quiet: #c2cdd1;
  --accent: #def783;
  --pressed: #bad465;
  --rule: rgb(227 234 235 / .24);
  --shadow-top: rgb(9 17 24 / .91);
  --shadow-head: rgb(9 17 24 / .74);
  --shadow-image: rgb(9 17 24 / .19);
  --shadow-copy: rgb(9 17 24 / .96);
  --shadow-deep: #0c1720;
  --display: Georgia, 'Times New Roman', serif;
  --inline: clamp(18px, 6.15vw, 30px);
  font: 100%/1.45 system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; block-size: 100%; overflow: clip; }

body {
  color: var(--primary);
  background: var(--surround);
}

.viewport {
  width: min(100%, 480px);
  height: 100svh;
  margin-inline: auto;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: var(--ink);
}

.screen {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  padding: calc(14px + env(safe-area-inset-top, 0px))
    calc(var(--inline) + env(safe-area-inset-right, 0px))
    calc(14px + env(safe-area-inset-bottom, 0px))
    calc(var(--inline) + env(safe-area-inset-left, 0px));
  background:
    linear-gradient(180deg, var(--shadow-top) 0%, var(--shadow-head) 23%,
      var(--shadow-image) 41%, var(--shadow-copy) 62%, var(--shadow-deep) 86%),
    url("district.webp") 52% 50% / cover no-repeat,
    var(--ink);
}

.identity {
  border-bottom: 1px solid var(--rule);
}

.identity a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  color: var(--primary);
  font-size: .875rem;
  font-weight: 730;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}

.identity i {
  display: grid;
  width: 21px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--rule);
}

.identity i::before {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  background: var(--accent);
  transform: rotate(45deg);
}

.feature {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(26px, 10svh, 112px);
  padding-block: clamp(15px, 3svh, 28px) 16px;
}

h1 {
  margin: 0;
  max-width: 13ch;
  min-width: 0;
  overflow-wrap: anywhere;
  font: 500 clamp(2.3rem, 10.9vw, 3.2rem) / .97 var(--display);
  letter-spacing: -.06em;
  text-wrap: balance;
}

h1 em {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-weight: inherit;
}

.summary {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: .9375rem;
  line-height: 1.4;
  text-wrap: pretty;
}

.coverage {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.coverage li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  padding-block: 6px;
  border-bottom: 1px solid var(--rule);
  color: var(--secondary);
  font-size: .8125rem;
  line-height: 1.3;
}

.coverage li::before {
  content: "";
  width: 8px;
  height: 5px;
  border: solid var(--accent);
  border-width: 0 0 1.5px 1.5px;
  transform: translateY(.3em) rotate(-45deg);
}

.action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding-inline: 16px 11px;
  gap: 8px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 820;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.action i {
  display: grid;
  width: 33px;
  aspect-ratio: 1;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
}

.action i::before, .action i::after {
  content: "";
  grid-area: 1 / 1;
}

.action i::before {
  width: 13px;
  height: 1.5px;
  background: currentColor;
}

.action i::after {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translateX(3px) rotate(45deg);
}

.action:active { background: var(--pressed); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.base small {
  display: block;
  margin-top: 7px;
  color: var(--quiet);
  font-size: .6875rem;
  line-height: 1.28;
}

@media (max-height: 740px) {
  .feature { gap: clamp(16px, 5svh, 36px); }
}

@media (max-height: 650px) {
  .screen { padding-block: calc(5px + env(safe-area-inset-top, 0px)) calc(9px + env(safe-area-inset-bottom, 0px)); }
  .feature { gap: 12px; padding-block: 12px 10px; }
  h1 { font-size: clamp(2rem, 9.6vw, 2.65rem); }
  .summary { margin-bottom: 8px; }
  .coverage li { padding-block: 4px; }
  .action { min-height: 52px; }
}

@media (min-width: 560px) and (min-height: 710px) {
  .viewport {
    height: min(94svh, 920px);
    margin-block-start: max(3svh, calc((100svh - 920px) / 2));
    border: 1px solid var(--rule);
    border-radius: 18px;
  }
}
