/* ─────────────────────────────────────────────────────────
   WHITNEY ELLIS DESIGN — Design System
   To rebrand: update the CSS variables in :root only.
───────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:       #f9f7f4;
  --surface:  #ffffff;
  --ink:      #111110;
  --muted:    #7a7872;
  --line:     rgba(17, 17, 16, 0.10);
  --accent:   #c9a96e;
  --radius:   4px;
  --max:      1200px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 96px 0;
}
.section--tight {
  padding: 64px 0;
}

/* ── Typography ─────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

.kicker {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--ink);
}
.nav__cta {
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: #333;
  border-color: #333;
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(17, 17, 16, 0.30);
}
.btn--outline:hover {
  border-color: var(--ink);
}
.btn--accent {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.btn--accent:hover {
  filter: brightness(0.92);
}

/* ── Hero (index.html) ───────────────────────────────────── */
.hero {
  padding: 80px 0 96px;
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero__name em {
  font-style: italic;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__visual {
  position: relative;
}
.hero__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero__image-caption {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero__image-caption span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── Featured section (index.html) ──────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.featured-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #eeece8;
}
.featured-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-tile:hover img {
  transform: scale(1.04);
}
.featured-tile__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
.featured-tile:hover .featured-tile__info {
  opacity: 1;
}
.featured-tile__info .title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 300;
}
.featured-tile__info .year {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

/* ── Section header ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 300;
}

/* ── Gallery grid ───────────────────────────────────────── */
.gallery-masonry {
  columns: 3;
  column-gap: 2px;
}
.gallery-masonry .tile {
  break-inside: avoid;
  margin-bottom: 2px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #eeece8;
}
.gallery-masonry .tile img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-masonry .tile:hover img {
  transform: scale(1.03);
}
.gallery-masonry .tile__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-masonry .tile:hover .tile__overlay {
  opacity: 1;
}
.gallery-masonry .tile__overlay .title {
  font-family: var(--font-display);
  font-size: 1rem;
}
.gallery-masonry .tile__overlay .year {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* ── Behold.so feed section ─────────────────────────────── */
.instagram-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.instagram-section__header {
  text-align: center;
  margin-bottom: 40px;
}
.instagram-section__header h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.instagram-section__header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.instagram-section__header a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── About page ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about-bio {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.services-col h4 {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.services-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.services-col li {
  font-size: 0.9375rem;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}
.services-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.divider {
  border: none;
  border-top: 1px solid var(--line);
}

/* ── Commission form ────────────────────────────────────── */
.commission-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.commission-info h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 20px;
}
.commission-info p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.commission-info ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.commission-info li {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.commission-info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7872' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer__links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer__links a {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--ink);
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Placeholder tiles (no image yet) ───────────────────── */
.tile--placeholder {
  background: #eeece8;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}
.tile--placeholder span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__inner        { grid-template-columns: 1fr; }
  .hero__visual       { max-width: 480px; margin: 0 auto; }
  .about-grid         { grid-template-columns: 1fr; }
  .commission-layout  { grid-template-columns: 1fr; }
  .gallery-masonry    { columns: 2; }
  .featured-grid      { grid-template-columns: repeat(2, 1fr); }
  .featured-grid .featured-tile:last-child { display: none; }
}
@media (max-width: 600px) {
  .container          { padding: 0 20px; }
  .section            { padding: 64px 0; }
  .nav__links         { display: none; }
  .gallery-masonry    { columns: 1; }
  .featured-grid      { grid-template-columns: 1fr; }
  .featured-grid .featured-tile:last-child { display: block; }
  .form-row           { grid-template-columns: 1fr; }
  .services-grid      { grid-template-columns: 1fr; }
  .footer__inner      { flex-direction: column; align-items: flex-start; gap: 16px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
}
