/* =====================
   VARIABLES & RESET
   ===================== */
:root {
  --bg: #F5F2ED;
  --text: #1A1714;
  --muted: #8A8480;
  --accent: #C4A882;
  --placeholder: #D9D4CE;
  --placeholder-inner: #C8C2BB;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'DM Mono', monospace;

  --gap: 2rem;
  --max-width: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.6;
}

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

/* =====================
   PLACEHOLDER (grey squares)
   ===================== */
.placeholder {
  background: var(--placeholder);
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    var(--placeholder-inner) 20px,
    var(--placeholder-inner) 21px
  );
  opacity: 0.4;
}

/* =====================
   HEADER
   ===================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header__name {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.header__nav {
  display: flex;
  gap: 2.5rem;
}

.header__nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--text);
}

/* =====================
   HERO
   ===================== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 3rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--gap);
  align-items: end;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.hero__title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  grid-column: 1;
  grid-row: 2;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__img {
  grid-column: 2;
  grid-row: 1 / 3;
  height: 520px;
  border-radius: 2px;
}

/* =====================
   SECTION SHARED
   ===================== */
.section {
  max-width: var(--max-width);
  margin: 5rem auto;
  padding: 0 3rem;
}

.section__header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 1rem;
}

.section__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.section__title {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* =====================
   GRID
   ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1rem;
}

.grid__item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
}

.grid__item .placeholder {
  flex: 1;
  border-radius: 2px;
  transition: filter 0.3s;
}

.grid__item:hover .placeholder {
  filter: brightness(0.95);
}

.grid__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.grid__item--wide {
  grid-column: span 2;
}

.grid__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.grid__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.grid__name {
  font-size: 1rem;
  font-weight: 400;
}

/* =====================
   ABOUT
   ===================== */
.about {
  background: var(--text);
  color: var(--bg);
  padding: 6rem 3rem;
  margin-top: 6rem;
}

.about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__img {
  height: 480px;
  border-radius: 2px;
  --placeholder: #2E2C29;
  --placeholder-inner: #252320;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about .section__num {
  color: var(--accent);
}

.about .section__title {
  font-size: 2rem;
  color: var(--bg);
}

.about p {
  font-size: 1.05rem;
  color: rgba(245, 242, 237, 0.75);
  line-height: 1.8;
}

/* =====================
   BUTTON
   ===================== */
.btn {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.2s;
  width: fit-content;
}

.btn:hover {
  opacity: 0.7;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 5rem;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .header {
    padding: 1.2rem 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 2rem;
  }

  .hero__img {
    grid-column: 1;
    grid-row: 3;
    height: 300px;
  }

  .grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .grid__item--large,
  .grid__item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__img {
    height: 280px;
  }

  .section {
    padding: 0 1.5rem;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
}
