/* ──────────────────────────────────────────────
   hannahliddeaux.com — shared styles
   Palette: warm parchment bg, dark brown text, terracotta accent
   Fonts: Playfair Display (headings) + Inter (body)
   ────────────────────────────────────────────── */

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

:root {
  --bg:      #f5f0e8;
  --text:    #3a2e20;
  --muted:   rgba(58, 46, 32, 0.5);
  --accent:  #8b5e3c;
  --border:  rgba(58, 46, 32, 0.15);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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


/* ── HEADER ────────────────────────────────── */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 2.5rem;
  /* fades into the grid below on home page */
  background: linear-gradient(to bottom, rgba(245,240,232,0.92) 0%, transparent 100%);
}

.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.65;
  transition: opacity 0.25s;
}

nav a:hover,
nav a.active { opacity: 1; }


/* ── HOME — FULL-SCREEN TILE GRID ──────────── */

body.home {
  overflow-y: auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 50vh);
  height: 100vh;
  width: 100%;
  gap: 8px;
  padding: 8px;
}

/* each tile */
.tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
}

/* tile face = one project's background + label */
.tile-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.8rem;
  opacity: 0;
  transition: opacity 0.9s ease;
  /* slight zoom on hover, handled via parent */
  transform: scale(1);
  transition: opacity 0.9s ease, transform 0.5s ease;
}

.tile-face.visible { opacity: 1; }
.tile-face.hidden  { opacity: 0; }

/* dark gradient over image so text is readable */
.tile-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(50, 30, 10, 0.75) 0%,
    rgba(50, 30, 10, 0.15) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.tile-content {
  position: relative;
  z-index: 1;
  transform: translateY(4px);
  transition: transform 0.4s ease;
}

.tile:hover .tile-content { transform: translateY(0); }

.tile-category {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.tile-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
}

.tile-year {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* subtle border between tiles */
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  pointer-events: none;
  z-index: 2;
}

/* zoom the face on tile hover */
.tile:hover .tile-face.visible {
  transform: scale(1.03);
}


/* ── HOME ABOUT SECTION ─────────────────────── */

.home-about {
  background: var(--bg);
  padding: 6rem 2.5rem;
  border-top: 1px solid var(--border);
}

.home-about-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 5rem;
  align-items: start;
}

.home-about-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.home-about-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.8rem;
  line-height: 1.1;
}

.home-about-text p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(58,46,32,0.8);
  margin-bottom: 1.2rem;
}

.home-about-text a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.home-about-text a:hover { border-bottom-color: var(--accent); }

.home-about-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent) !important;
  border-bottom: 1px solid var(--accent) !important;
  padding-bottom: 2px;
}

.home-about-image-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #d4c4a8 0%, #b8a888 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.home-about-image-box.empty::after {
  content: 'Photo';
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(58,46,32,0.3);
}

@media (max-width: 768px) {
  .home-about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .home-about-image { order: -1; max-width: 280px; }
}


/* ── INNER PAGE SHELL ───────────────────────── */

body.page {
  overflow-y: auto;
}

body.page main {
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.page-header {
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.page-header .subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin: 2.5rem 0 1rem;
}

p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(242,236,224,0.82);
  margin-bottom: 1.2rem;
}

.placeholder-note {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-style: italic;
  border: 1px dashed var(--border);
  padding: 0.6rem 1rem;
  display: inline-block;
  margin-top: 0.5rem;
}


/* ── ABOUT PAGE ─────────────────────────────── */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  margin-top: 1rem;
}

.about-image {
  position: sticky;
  top: 7rem;
}

.about-image-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #d4c4a8 0%, #b8a888 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.2rem;
}

.about-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-box.empty::after {
  content: 'Photo';
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  color: var(--muted);
}


/* ── WORK PAGE ──────────────────────────────── */

.work-intro {
  max-width: 560px;
  margin-bottom: 3rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #111;
}

.work-tile {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
}

.work-tile-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.work-tile:hover .work-tile-bg {
  transform: scale(1.05);
}

.work-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(50,30,10,0.78) 0%,
    rgba(50,30,10,0.1) 55%,
    transparent 100%
  );
}

.work-tile-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.3rem;
}

.work-tile-content .tile-category { font-size: 0.6rem; }
.work-tile-content .tile-title    { font-size: 1.1rem; }
.work-tile-content .tile-year     { font-size: 0.65rem; }


/* ── CONTACT PAGE ───────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--accent);
}

.form-field textarea {
  resize: none;
  height: 110px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition: background 0.3s, color 0.3s;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.contact-info h2 {
  margin-top: 0;
}

.contact-info p {
  font-size: 0.88rem;
}

.contact-info a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-info a:hover { border-bottom-color: var(--accent); }


/* ── ACKNOWLEDGEMENT OF COUNTRY ────────────── */

.aoc {
  background: #ede8df;
  border-top: 1px solid var(--border);
  padding: 5rem 2.5rem;
}

.aoc-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.aoc-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
}

.aoc-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(58,46,32,0.85);
  margin-bottom: 1.4rem;
}

.aoc-always {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}


/* ── FOOTER ─────────────────────────────────── */

footer {
  padding: 2rem 2.5rem;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}


/* ── RESPONSIVE ─────────────────────────────── */

@media (max-width: 900px) {
  .about-layout    { grid-template-columns: 1fr; }
  .about-image     { position: static; }
  .contact-layout  { grid-template-columns: 1fr; gap: 3rem; }
  .work-grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, calc(100vh / 3));
  }

  header { padding: 1.2rem 1.5rem; }
  nav    { gap: 1.5rem; }

  .tile-title { font-size: 1.1rem; }

  .page-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 40vw);
    height: auto;
    min-height: 100vh;
  }

  body.home { overflow-y: auto; }

  nav a { display: none; }
  nav a:last-child { display: block; }

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