/* 25-18 18th Street
   Palette is pulled from the building and the park: tan brick, red steel, sky, lawn. */

:root {
  --sky: #eef3f6;
  --white: #ffffff;
  --ink: #1f2a2e;
  --ink-soft: #4a5a60;
  --brick: #8a3b24;
  --brick-deep: #4a1c10;
  --buff: #d9c7a7;
  --line: #d3dde2;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1120px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-deep); }

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
}

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

h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  letter-spacing: 0.005em;
}

p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-mark { width: 20px; height: 36px; color: var(--brick); flex: none; }

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 3px;
}

.site-nav a:hover { background: var(--sky); color: var(--brick); }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}



/* Hero lockup: logo beside outlined house number, like the letterhead */

.lockup {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
}

.lockup-logo {
  flex: none;
  width: clamp(46px, 7vw, 80px);
  height: clamp(82px, 12.5vw, 143px);
  color: var(--brick);
}

.lockup-num {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4.4rem, 13vw, 8.6rem);
  line-height: 0.85;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 3px var(--brick);
}

@supports not (-webkit-text-stroke: 1px) {
  .lockup-num { color: var(--brick); }
}

.lockup-street {
  display: block;
  margin-top: 12px;
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.lockup-name {
  margin: 2px 0 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

.lede {
  margin-top: 28px;
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 34ch;
}

.hero-photo {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--buff);
  border-radius: 2px;
}

.hero-photo img {
  position: relative;
  width: 100%;
  border-radius: 2px;
}

/* Vacancy status */

.vacancy {
  margin-top: 36px;
  padding: 22px 26px 24px;
  background: var(--white);
  border-left: 6px solid var(--brick);
  border-radius: 2px;
  max-width: 540px;
}

.vacancy h2 {
  font-size: 2rem;
  color: var(--brick);
}

.vacancy p { margin: 8px 0 18px; color: var(--ink-soft); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid var(--brick);
  transition: background-color 0.15s, color 0.15s;
}

.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-deep); border-color: var(--brick-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--brick); }
.btn-ghost:hover { background: var(--brick); color: #fff; }

/* ---------- Bands ---------- */

.band { padding: 88px 0; }
.band-white { background: var(--white); }

.band-dark {
  background: var(--brick-deep);
  color: #f5ece6;
}

.band-dark a { color: #fff; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.two-col h2 { margin-bottom: 22px; }

/* Neighborhood distances */

.distances {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.distances li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.distances .dist {
  flex: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--brick);
  white-space: nowrap;
}

/* ---------- Gallery ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 32px;
}

.section-head p { margin: 0; color: var(--ink-soft); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.gallery figure { margin: 0; grid-column: span 4; }
.gallery figure.big { grid-column: span 6; }

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery button:hover img { transform: scale(1.03); }

.gallery figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Directions ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 56px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brick);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 2px;
  background: var(--line);
}

.map a { display: inline-block; margin-top: 12px; font-weight: 500; }

/* ---------- Contact ---------- */

.contact-logo { display: block; width: 84px; height: 150px; margin-top: 44px; color: #fff; opacity: 0.95; }

.contact-list { margin: 0; display: grid; gap: 28px; }
.contact-list dt { font-weight: 600; color: var(--buff); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 1.1rem; line-height: 1.55; }

.big-link {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  text-decoration: none;
}

.big-link.small { font-size: clamp(1.8rem, 3.6vw, 2.4rem); word-break: break-word; }
.big-link:hover { color: var(--buff); text-decoration: underline; }

.band-dark p { color: #ead9cf; }

/* ---------- Footer ---------- */

.site-footer {
  background: #2b0f08;
  color: #cdb8ad;
  padding: 24px 0;
  font-size: 0.9rem;
}

.site-footer p { margin: 0; max-width: none; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(960px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #101619;
  color: #fff;
  overflow: visible;
}

.lightbox::backdrop { background: rgba(10, 14, 16, 0.82); }

.lightbox figure { margin: 0; }

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #101619;
}

.lightbox figcaption { padding: 14px 20px 18px; font-size: 1rem; text-align: center; }

.lb-close, .lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lb-close:hover, .lb-nav:hover { background: #fff; color: var(--brick); }

.lb-close { top: -16px; right: -16px; z-index: 2; }
.lb-nav { top: 40%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: -16px; }
.lb-next { right: -16px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-photo { max-width: 340px; margin-right: 18px; }
  .contact-logo { width: 63px; height: 112px; margin-top: 28px; }

  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .band { padding: 64px 0; }
}

@media (max-width: 760px) {
  .header-inner { gap: 12px; }
  .brand span { display: none; }
  .site-nav { overflow-x: auto; margin-right: -12px; }
  .site-nav { gap: 0; }
  .site-nav a { white-space: nowrap; padding: 8px 7px; font-size: 0.86rem; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .gallery figure, .gallery figure.big { grid-column: span 1; }
  .gallery figure.big { grid-column: span 2; }
  .gallery figcaption { font-size: 0.85rem; }

  .lb-close { top: 8px; right: 8px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .lockup-num { -webkit-text-stroke-width: 2px; }
  .distances li { flex-direction: column; gap: 4px; }
  .map iframe { height: 300px; }
}
