:root {
  --navy: #14273b;
  --gold: #d7b785;
  color: var(--navy);
  background: #f8f7f3;
  font: 16px/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
}
h1, p { margin: 0; }
.shell {
  width: min(1180px, calc(100% - 104px));
  margin-inline: auto;
}
.site-header { background: #fff; }
.page-home {
  color: var(--navy);
  font: 400 1.45rem/1.2 Georgia, serif;
  text-decoration: none;
}
.page-home:hover { text-decoration: underline; }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.brand img {
  background: var(--navy);
  border: 4px solid var(--navy);
  border-radius: 2px;
}
.brand span {
  font: 24px/1 Georgia, serif;
  letter-spacing: .105em;
}
.brand small {
  display: block;
  margin-top: 4px;
  font: 700 9px/1.2 system-ui, sans-serif;
  letter-spacing: .28em;
}
.header-label { color: #546475; font-size: .875rem; }
.hero {
  display: grid;
  align-items: center;
  min-height: 530px;
  color: #fff;
  background: var(--navy)
    linear-gradient(90deg, #091724ee 0%, #091724b8 45%, #09172430 100%);
  background-image:
    linear-gradient(90deg, #091724ee 0%, #091724b8 45%, #09172430 100%),
    url(assets/hero.jpg);
  background-position: center;
  background-size: cover;
}
.hero-inner { padding-block: 70px; }
h1 {
  font: 400 clamp(2.8rem, 7vw, 5.8rem)/1.02 Georgia, serif;
  letter-spacing: -.045em;
}
.hero-copy {
  max-width: 32rem;
  margin-top: 20px;
  font-size: clamp(1rem, 2vw, 1.25rem);
}
.download {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 22px;
  border: 0;
  border-radius: 3px;
  background: var(--gold);
  color: var(--navy);
  font: 750 .85rem/1.3 system-ui, sans-serif;
  letter-spacing: .05em;
  text-decoration: none;
}
.download:disabled {
  background: #dfd2bd;
  color: #43505e;
}
.download-status { margin-top: 10px; color: #e6e9ed; font-size: .875rem; }
.site-footer {
  background: #14273b;
  color: #fff;
}
.footer-awards { padding-block: 30px 38px; }
.footer-attribution {
  margin-bottom: 22px;
  color: #d9e3ec;
  text-align: center;
  font-size: .875rem;
}
.footer-awards-grid {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(0, 4fr) minmax(100px, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.footer-partners {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.footer-partners img {
  width: min(100%, 138px);
  height: 47px;
  object-fit: contain;
}
.footer-medals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
}
.footer-medals img {
  width: 100%;
  max-width: 148px;
  height: clamp(96px, 13vw, 164px);
  object-fit: contain;
}
.footer-bottom {
  background: #0e1e30;
  padding-block: 20px;
  border-top: 1px solid #ffffff36;
  color: #d9e3ec;
  text-align: center;
  font-size: .875rem;
}
@media (max-width: 820px) {
  .footer-awards-grid { grid-template-columns: 1fr 1fr; }
  .footer-medals { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 420px) {
  .footer-medals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-medals img { height: 118px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; }
  .brand span { font-size: 18px; }
  .brand img { width: 34px; height: 34px; }
  .header-label { font-size: .75rem; text-align: right; }
  .hero { min-height: 480px; background-position: 62% center; }
}

.download:not(:disabled), .search-submit, .close-dialog { cursor: pointer; }
.download:not(:disabled):hover { background: #e8cc9f; }
.header-download { margin: 0; padding: 11px 14px; font-size: .72rem; }
.search { width: min(100%, 550px); margin-top: 28px; }
.search label { display: block; margin-bottom: 5px; font-size: .9rem; font-weight: 650; }
.search-row {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 4px;
  background: #fff;
}
.search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 0;
  background: #fff;
  color: var(--navy);
  font: inherit;
}
.search-submit {
  padding: 10px 18px;
  border: 0;
  border-radius: 3px;
  background: var(--navy);
  color: #fff;
  font: 700 .9rem system-ui, sans-serif;
}
.search-submit:hover { background: #28445f; }
h2, h3 { margin: 0; font: 400 1.65rem/1.15 Georgia, serif; }
h2 { font-size: clamp(1.95rem, 4vw, 3.3rem); letter-spacing: -.035em; }
.catalog { padding-top: clamp(42px, 6vw, 68px); }
.catalog-card { max-width: 54rem; margin-top: 24px; }
.catalog-link {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  overflow: hidden;
  border: 1px solid #e1ded6;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.catalog-link:hover { border-color: #a68152; }
.catalog-link--no-photo { grid-template-columns: minmax(0, 1fr); }
.catalog-link img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.catalog-details {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 9px;
  min-width: 0;
  padding: clamp(20px, 3vw, 36px);
}
.catalog-meta { color: #546475; font-size: .875rem; }
.catalog-facts { font-weight: 650; }
.catalog-action {
  margin-top: 5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.neighborhoods { padding-block: 68px 75px; }
.section-intro { margin-top: 10px; color: #546475; }
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.neighborhood-grid article {
  padding: 24px;
  border: 1px solid #e1ded6;
  border-top: 3px solid var(--gold);
  border-radius: 3px;
  background: #fff;
}
.neighborhood-grid p { margin-top: 12px; color: #546475; }
.app-section { padding-block: 54px; background: var(--navy); color: #fff; }
.app-layout { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.app-layout p { max-width: 38rem; margin-top: 14px; color: #e6e9ed; }
.app-layout .download { flex-shrink: 0; margin: 0; }
dialog {
  position: fixed;
  width: min(490px, calc(100% - 32px));
  padding: 30px;
  border: 0;
  border-radius: 5px;
  color: var(--navy);
  box-shadow: 0 18px 55px #0004;
}
dialog::backdrop { background: #091724b8; }
dialog h2 { padding-right: 25px; font-size: clamp(1.75rem, 5vw, 2.35rem); }
dialog p { margin-top: 12px; }
dialog .download { margin-top: 22px; }
dialog .download-status { color: #546475; }
.close-dialog {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f8f7f3;
  color: var(--navy);
  font-size: 22px;
}
:focus-visible { outline: 2px solid #aa7231; outline-offset: 2px; }
@media (max-width: 640px) {
  .hero-inner { padding-block: 55px; }
  .catalog-link { grid-template-columns: minmax(0, 1fr); }
  .neighborhoods { padding-block: 42px; }
  .neighborhood-grid { grid-template-columns: 1fr; gap: 12px; }
  .app-layout { align-items: flex-start; flex-direction: column; }
}
