/* The AlleyCorp Building — single-page site
   Values match the "368 Broome — Website Tab" design canvas.
   Fonts: Instrument Serif (display) + Hanken Grotesk (body). */

:root {
  --ink: #1b1a17;
  --muted: #5c5850;
  --paper: #ffffff;
  --cream: #f6f4ef;
  --sand: #e8e4db;
  --blush: #e9ddd9;
  --gold: #8a6a2e;
  --rule-header: #ece9e2;
  --rule: #e5e1d8;
  --rule-strong: #d9d4c8;
  --on-dark: #e3dfd6;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --header-h: 76px;
  --gutter: 40px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
p { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type ---------- */

.display,
.h1, .h2, .h3, .h4, .h5,
.site-title,
.site-footer__title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}

.display { font-size: clamp(44px, 5.3vw, 76px); line-height: 1.02; }
.h1 { font-size: clamp(48px, 5.3vw, 76px); }
.h2 { font-size: clamp(40px, 4.2vw, 60px); }
.h3 { font-size: clamp(30px, 2.9vw, 42px); line-height: 1.05; letter-spacing: 0; }
.h4 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.1; letter-spacing: 0; }
.h5 { font-size: 20px; line-height: 1.5; letter-spacing: 0; }

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.caps {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-sub {
  max-width: 520px;
  margin: 28px auto 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn--pill { border-radius: 999px; padding: 0 28px; }

.btn--light,
.btn--outline {
  min-height: 56px;
  padding: 0 36px;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: #fff; }

.text-link {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-header);
}

.site-header__inner {
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav a {
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.site-title {
  font-size: 34px;
  white-space: nowrap;
}

.site-header .btn--pill { justify-self: end; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }

.is-open .nav-toggle__bar { background: transparent; }
.is-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

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

.hero img {
  width: 100%;
  height: 780px;
  object-fit: cover;
  object-position: center 42%;
}

/* ---------- About ---------- */

.about {
  padding: 120px var(--gutter) 140px;
  text-align: center;
}
.about .display { max-width: 1020px; margin: 0 auto; }
.about__photo { width: 540px; max-width: 100%; margin: 120px auto 0; }
.about__photo img { width: 100%; height: 700px; object-fit: cover; }
.about .h2 { font-size: clamp(44px, 4.5vw, 64px); margin-top: 72px; }
.about .lede {
  max-width: 640px;
  margin: 32px auto 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
}
.about .text-link { margin-top: 40px; }

/* ---------- Event spaces ---------- */

.spaces__intro {
  background: var(--cream);
  text-align: center;
  padding: 40px var(--gutter) 120px;
}
.spaces__intro p {
  max-width: 780px;
  margin: 28px auto 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
}

.space__media { position: relative; }
.space__media > img {
  width: 100%;
  height: 820px;
  object-fit: cover;
}

.space__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  max-width: calc(100% - 48px);
  padding: 48px 44px;
  background: #fff;
  text-align: center;
}
.space__card p:not(.eyebrow) {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}
.space__card .eyebrow { margin: 16px 0 28px; }

.features {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px var(--gutter);
}
.features .h4 { margin-bottom: 12px; }
.features ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.features li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
}

/* ---------- In the space ---------- */

.in-space {
  padding: 120px var(--gutter) 140px;
  text-align: center;
}
.tenants {
  max-width: 1040px;
  margin: 72px auto 0;
  border-bottom: 1px solid var(--rule-strong);
  text-align: left;
}
.tenant {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule-strong);
}
.tenant dt { flex: 1 1 240px; font-size: 38px; line-height: 1.1; }
.tenant dd {
  flex: 1 1 280px;
  margin: 0;
  font-size: 16px;
  font-weight: 300;
}

/* ---------- Collection ---------- */

.collection {
  background: var(--cream);
  padding: 140px var(--gutter);
  text-align: center;
}
.artists {
  max-width: 1240px;
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  text-align: left;
}
.artist__portrait {
  aspect-ratio: 4 / 5;
  background: var(--blush);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-size: 14px;
  color: #4a4640;
}
.artist .h3 { margin: 28px 0 4px; }
.artist .eyebrow { margin: 0 0 16px; font-size: 13px; }
.artist p:last-child {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- Location ---------- */

.location {
  padding: 120px var(--gutter);
  text-align: center;
}
.location .section-sub { max-width: none; }
.transit {
  list-style: none;
  max-width: 900px;
  margin: 56px auto 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 48px;
}
.transit li { display: flex; flex-direction: column; align-items: center; }
.transit strong { font-weight: 400; font-size: 18px; }
.transit span { margin-top: 4px; font-size: 14px; letter-spacing: 0.1em; color: var(--muted); }

/* ---------- Book ---------- */

.book {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 120px var(--gutter);
}
.book .h1 { font-size: clamp(52px, 5.8vw, 84px); }
.book p {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--on-dark);
}
.book__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

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

.site-footer {
  background: var(--sand);
  padding: 80px var(--gutter) 48px;
}
.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}
.site-footer__brand { flex: 1 1 320px; }
.site-footer__contact,
.site-footer__nav { flex: 1 1 200px; font-size: 14px; line-height: 1.7; }
.site-footer__title {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--gold);
}
.site-footer__brand p:last-child {
  max-width: 320px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 300;
}
.site-footer__contact .h5 { margin-bottom: 4px; }
.site-footer__contact .h5 ~ .h5 { margin-top: 20px; }
.site-footer__nav { display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }

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

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .site-title { justify-self: center; font-size: 30px; }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-header);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .is-open .primary-nav { visibility: visible; opacity: 1; transform: none; }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .primary-nav a:last-child { border-bottom: 0; }

  .hero img { height: 60vw; min-height: 360px; }
  .space__media > img { height: 70vw; min-height: 520px; }
  .artists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; --gutter: 20px; }
  .site-header .btn--pill { min-height: 40px; padding: 0 18px; font-size: 11px; }
  .site-title { font-size: 22px; }

  .about, .in-space, .location, .book { padding-top: 80px; padding-bottom: 80px; }
  .collection { padding-top: 96px; padding-bottom: 96px; }
  .about__photo { margin-top: 64px; }
  .about__photo img { height: auto; aspect-ratio: 540 / 700; }
  .spaces__intro { padding-bottom: 80px; }

  /* Card drops below the photo instead of overlaying it */
  .space__media > img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .space__card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    max-width: none;
    margin: -48px var(--gutter) 0;
    padding: 40px 24px;
  }

  .tenant dt { font-size: 32px; }
  .artists { grid-template-columns: 1fr; gap: 56px; }
  .btn--light, .btn--outline { width: 100%; }
}

@media (max-width: 400px) {
  .site-title { font-size: 19px; }
  .site-header__inner { gap: 10px; }
}
