/* ═══════════════════════════════════════════════════════════
   ARMATURE FOUNDATION
   ─────────────────────────────────────────────────────────── */

/* ─── FONTS ─── */

@font-face {
  font-family: 'NewAtten';
  src: url('assets/fonts/NewAtten-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BlairITC';
  src: url('assets/fonts/BlairITC-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ─── RESET ─── */

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

/* ─── TOKENS ─── */

:root {
  /* palette — warm neutrals */
  --white: #ffffff;
  --paper: #fafaf6;
  --ink: #15140f;
  --black: #0f0e0b;
  --charcoal: #3a3a36;
  --mid: #8a8a84;
  --quiet: #b8b8b2;
  --hairline: #e6e4dd;

  /* layout */
  --nav-width: 220px;
  --gutter: 40px;
  --gutter-sm: 24px;
  --site-max: 1600px;
  --measure: 56ch;

  /* type */
  --font-display: 'BlairITC', 'Times New Roman', serif;
  --font-body: 'NewAtten', 'Helvetica Neue', sans-serif;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── BASE ─── */

html {
  background: var(--white);
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

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

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

em,
i {
  font-style: italic;
}

::selection {
  background: var(--ink);
  color: var(--white);
}

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

/* ═══ LAYOUT ═══ */

.site {
  display: grid;
  grid-template-columns: var(--nav-width) 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  max-width: var(--site-max);
  margin: 0 auto;
  position: relative;
}

/* ═══ SITE HEADER ═══ */

.site-header {
  grid-column: 1 / -1;
  padding: 28px var(--gutter);
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.nav-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.28em;
  color: var(--black);
  line-height: 1;
  transition: color 200ms var(--ease);
}

.nav-logo:hover {
  color: var(--charcoal);
}

/* ═══ SIDEBAR NAV ═══ */

.nav {
  padding: 48px var(--gutter) 64px var(--gutter);
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  display: inline-block;
  transition: color 220ms var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

/* ═══ MAIN ═══ */

main {
  padding: 48px var(--gutter) 96px var(--gutter);
  max-width: 1080px;
  width: 100%;
}

.page-title {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 56px;
}

/* ═══ HOMEPAGE ═══ */

.home-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px var(--gutter);
  gap: 48px;
  position: relative;
}

.home-card {
  display: block;
  background: #fbfbfc;
  width: 480px;
  max-width: 90vw;
  padding: 28px 28px 40px;
  position: relative;
  cursor: pointer;
  transition: background 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-card:hover {
  background: #f4f4f6;
}

/* ─── FLOWER GROW ANIMATION ─── */

.flower-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 424 / 540;
  margin-bottom: 28px;
}

.flower-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  display: block;
}




.home-wordmark {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.14em;
  color: var(--black);
  margin-bottom: 22px;
  text-align: center;
  line-height: 1;
}

.home-definition {
  padding-top: 4px;
}

.home-definition .pos {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 10px;
}

.home-definition p {
  font-size: 12.5px;
  color: var(--charcoal);
  line-height: 1.7;
}

.home-nav {
  display: flex;
  gap: 40px;
}

.home-nav a {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 5px;
  transition: color 220ms var(--ease);
}

.home-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hairline);
  transition: background 220ms var(--ease);
}

.home-nav a:hover {
  color: var(--ink);
}

.home-nav a:hover::after {
  background: var(--ink);
}

/* ═══ CURRENT RESIDENTS ═══ */

.residents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.resident-card a {
  display: block;
}

.resident-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%) contrast(1.02);
  transition: filter 600ms var(--ease-out);
}

.resident-card:hover img {
  filter: grayscale(0%) contrast(1);
}

.resident-card .name {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 16px;
  color: var(--ink);
}

.resident-card .dates {
  font-size: 11.5px;
  color: var(--mid);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* ═══ ARTIST PAGE ═══ */

.artist-header {
  margin-bottom: 56px;
}

.artist-name {
  font-family: var(--font-body);
  font-size: 22px;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 400;
  line-height: 1.15;
}

.artist-meta {
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.015em;
}

.artist-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.artist-bio p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 22px;
  max-width: var(--measure);
}

.artist-bio p:last-child {
  margin-bottom: 0;
}

.artist-works {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.artist-works figure {
  margin: 0;
}

.artist-works img {
  width: 100%;
  display: block;
}

.artist-works figcaption {
  font-size: 11px;
  color: var(--mid);
  margin-top: 14px;
  line-height: 1.7;
  letter-spacing: 0.015em;
  font-variant-numeric: tabular-nums;
}

/* ═══ ABOUT ═══ */

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-image img {
  width: 100%;
  display: block;
}

.about-text p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 22px;
  max-width: var(--measure);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ═══ CONTACT ═══ */

.contact-body {
  display: grid;
  gap: 36px;
  max-width: 560px;
}

.contact-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: border-color 220ms var(--ease);
}

.contact-body a:hover {
  border-color: transparent;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 10px;
}

/* ═══ PAGE CREDIT (footer note) ═══ */

.page-credit {
  margin-top: 56px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 960px) {
  :root {
    --gutter: var(--gutter-sm);
  }

  .site {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 20px var(--gutter-sm);
  }

  .nav {
    padding: 18px var(--gutter-sm);
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .nav-links {
    flex-direction: row;
    gap: 22px;
  }

  main {
    padding: 40px var(--gutter-sm) 80px var(--gutter-sm);
  }

  .page-title {
    margin-bottom: 40px;
  }

  .artist-body,
  .about-body {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .artist-header {
    margin-bottom: 48px;
    padding-bottom: 22px;
  }

  .residents-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
}

@media (max-width: 600px) {
  .residents-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .artist-works {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-card {
    width: 86vw;
  }

  .home-nav {
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
