
:root {
  --paper: #0d0d0c;
  --paper-alt: #171716;
  --ink: #f5f4ef;
  --ink-soft: #c6c4bc;
  --ink-faint: #86847b;
  --pool: #3fbf5e;
  --pool-deep: #2c8f45;
  --marigold: #ff3d82;
  --marigold-deep: #d1236a;
  --blue: #35c4e8;
  --line: #2c2c28;
  --surface: #1a1a17;
  --radius: 3px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 450;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

input[type=checkbox] { accent-color: var(--pool); width: 15px; height: 15px; }

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

.eyebrow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pool);
  margin: 0 0 10px;
  display: block;
}

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

/* ---------- Nav ---------- */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  font-weight: 600;
}
.site-nav .logo img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.site-nav nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
.site-nav nav a {
  position: relative;
  padding: 4px 0;
}
.site-nav nav a.active { color: var(--pool-deep); }
.site-nav nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--marigold);
}
.nav-cta {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 9px 16px;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--pool-deep); border-color: var(--pool-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Paint swatch signature ---------- */
.swatch-strip {
  display: flex;
  gap: 6px;
}
.swatch {
  width: 34px;
  height: 46px;
  border-radius: 2px 2px 6px 6px;
  flex-shrink: 0;
}
.swatch-week {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.swatch-week .swatch { width: 26px; height: 34px; }
.swatch-week .week-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  max-width: var(--wrap);
}
.hero h1 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  margin-bottom: 22px;
  white-space: nowrap;
}
.hero p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-weeks { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--paper-alt); }
.section-head { margin-bottom: 40px; max-width: 60ch; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

.current-resident-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
}

/* ---------- Resident cards ---------- */
.resident-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform .15s ease, box-shadow .15s ease;
}
.resident-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.55); border-color: var(--pool); }
.resident-card .photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-alt);
}
.resident-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.resident-card .meta { padding: 16px 18px 20px; }
.resident-card .num {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: var(--marigold);
}
.resident-card h3 { font-size: 17px; margin: 6px 0 4px; }
.resident-card .tag { font-size: 12px; color: var(--ink-faint); margin-bottom: 8px; }
.resident-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.badge-recent {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--pool);
  color: var(--surface);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.coming-soon .photo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
  font-size: 19px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  color: var(--marigold);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 14px 0 0; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Dates strip ---------- */
.dates-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.dates-strip div {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.dates-strip div:last-child { border-right: none; }
.dates-strip .label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.dates-strip .value { font-family: 'Courier New', Courier, monospace; font-size: 20px; }

/* ---------- Checklist ---------- */
.checklist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.checklist ul { margin: 0; padding-left: 20px; }
.checklist li { margin-bottom: 10px; color: var(--ink-soft); }

/* ---------- Signup ---------- */
.signup-box {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 48px;
}
.signup-box h2 { color: var(--paper); }
.signup-box p { color: #4a4842; }
.signup-form {
  display: flex;
  gap: 12px;
  margin: 24px 0 20px;
  flex-wrap: wrap;
}
.signup-form input[type=email] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border: 1px solid #c9c6bc;
  background: #ffffff;
  color: var(--paper);
  border-radius: var(--radius);
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
}
.checkbox-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; font-size: 14px; }
.checkbox-row label { display: flex; align-items: center; gap: 8px; color: #3a3833; }
.signup-box .btn-primary { background: var(--marigold); border-color: var(--marigold); color: #ffffff; }
.signup-box .btn-primary:hover { background: var(--marigold-deep); border-color: var(--marigold-deep); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 13px;
  color: var(--ink-faint);
}
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
footer a:hover { color: var(--pool-deep); }
footer .footer-brand { display: flex; align-items: center; gap: 10px; }
footer .footer-location::before { content: " · "; }
footer .footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ---------- Resident detail page ---------- */
.back-link {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: var(--pool-deep);
  padding: 20px 0;
}
.resident-header {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.resident-header .photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.resident-header .photo img { width: 100%; height: 100%; object-fit: cover; }
.resident-header .tag-line { font-family: 'Courier New', Courier, monospace; font-size: 13px; color: var(--ink-faint); margin-bottom: 16px; }
.resident-header h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 14px; }
.resident-header .bio { font-size: 17px; color: var(--ink-soft); max-width: 62ch; }

.anecdote {
  background: var(--surface);
  border-left: 3px solid var(--marigold);
  padding: 24px 28px;
  margin-bottom: 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.anecdote .eyebrow { margin-bottom: 10px; }
.anecdote p { margin: 0; font-size: 16px; }

.full-writeup {
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.full-writeup summary {
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: var(--pool-deep);
  list-style: none;
}
.full-writeup summary::-webkit-details-marker { display: none; }
.full-writeup summary::before { content: '▸ '; }
.full-writeup[open] summary::before { content: '▾ '; }
.full-writeup .writeup-body { margin-top: 18px; }
.full-writeup .writeup-body p { color: var(--ink-soft); margin-bottom: 14px; }
.full-writeup .attribution { font-style: italic; color: var(--ink-faint); }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  color: var(--ink);
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------- Corkboard easter egg ---------- */
.psst-hint {
  color: var(--line);
  font-size: 11px;
  margin-top: 28px;
  cursor: pointer;
  display: inline-block;
}
.corkboard-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 300;
  padding: 70px 24px 40px;
  overflow-y: auto;
}
.corkboard-overlay.open { display: block; }
.corkboard-close {
  position: fixed;
  top: 20px;
  right: 24px;
  color: var(--ink);
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}
.corkboard-label {
  text-align: center;
  color: var(--ink-faint);
  font-size: 12px;
  font-family: 'Courier New', Courier, monospace;
  margin: 0 0 32px;
}
.corkboard-stack {
  position: relative;
  max-width: 900px;
  margin: 20px auto 0;
  min-height: 82vh;
}
.corkboard-photo {
  position: absolute;
  top: 0;
  left: 50%;
  width: max-content;
  background: #f5f4ef;
  padding: 14px 14px 34px;
  border-radius: 2px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: box-shadow .2s ease;
  max-width: 96vw;
}
.corkboard-photo:hover { box-shadow: 0 20px 44px rgba(0,0,0,0.6); }
.corkboard-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 84vh; }
.corkboard-photo:nth-child(6n+1) { transform: translateX(-52%) rotate(-4deg); }
.corkboard-photo:nth-child(6n+2) { transform: translateX(-46%) translateY(14px) rotate(3deg); }
.corkboard-photo:nth-child(6n+3) { transform: translateX(-56%) translateY(8px) rotate(-3deg); }
.corkboard-photo:nth-child(6n+4) { transform: translateX(-44%) translateY(20px) rotate(5deg); }
.corkboard-photo:nth-child(6n+5) { transform: translateX(-50%) translateY(6px) rotate(-6deg); }
.corkboard-photo:nth-child(6n+6) { transform: translateX(-48%) translateY(16px) rotate(2deg); }
@media (max-width: 600px) {
  .corkboard-photo { max-width: 78vw; }
  .corkboard-photo img { max-height: 46vh; }
}

.works-grid {
  column-count: 3;
  column-gap: 18px;
  margin-bottom: 56px;
}
.works-grid.placeholder-only { column-count: 1; }
.work-item {
  break-inside: avoid;
  margin-bottom: 18px;
  display: inline-block;
  width: 100%;
}
.work-item img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: opacity .15s ease;
}
.work-item img:hover { opacity: 0.85; }
.work-item .work-title { font-size: 14px; font-weight: 500; margin-top: 10px; }
.work-item .work-meta { font-size: 12.5px; color: var(--ink-faint); }
.works-placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--ink-faint);
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
}

.resident-contact {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .works-grid { column-count: 2; }
  .dates-strip { grid-template-columns: repeat(2, 1fr); }
  .dates-strip div:nth-child(2) { border-right: none; }
  .resident-header { grid-template-columns: 1fr; }
  .resident-header .photo { max-width: 320px; }

  /* Mobile nav: hide inline links, show hamburger toggle instead of hiding nav entirely */
  .site-nav nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 20px;
    gap: 4px;
  }
  .site-nav nav.nav-open { display: flex; }
  .site-nav nav a {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav nav a:last-child { border-bottom: none; }
  .site-nav .wrap { position: relative; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Prevent long unbroken strings (emails, URLs) from forcing horizontal scroll */
.card p, .card a, .anecdote p, .writeup-body p, p {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 600px) {
  /* Home hero heading was locked to one line for desktop; let it wrap on phones
     instead of forcing the whole page wider than the screen. */
  .hero h1 { white-space: normal; font-size: clamp(22px, 7vw, 30px); }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .current-resident-grid { grid-template-columns: 1fr; }
  .current-resident-grid .photo { max-width: 200px; }
  .works-grid { column-count: 1; }
  .dates-strip { grid-template-columns: 1fr; }
  .dates-strip div { border-right: none; border-bottom: 1px solid var(--line); }
  .dates-strip div:last-child { border-bottom: none; }
  .checkbox-row { flex-direction: column; gap: 10px; }
  .btn-row { flex-direction: column; align-items: center; }
  .signup-form { flex-direction: column; align-items: stretch; }
  .resident-contact { flex-direction: column; align-items: flex-start; }
  .psst-hint { align-self: flex-end; }
  .wrap { padding: 0 20px; }

  /* Footer: stack and center instead of the cramped space-between wrap */
  footer .wrap { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  footer .footer-brand { flex-direction: column; gap: 6px; }
  footer .footer-name { display: block; font-weight: 500; color: var(--ink); }
  footer .footer-location { display: block; }
  footer .footer-location::before { content: ""; }
}
