/* ===========================================================================
   Sarah & Jonah — wedding gallery
   Hand-written, static. The build script never touches this file.
   =========================================================================== */

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

:root {
  --bg:        #faf7f2;  /* warm ivory */
  --surface:   #ffffff;
  --text:      #2e2a25;  /* soft charcoal */
  --muted:     #9a9088;  /* taupe grey */
  --line:      #e7e0d6;  /* hairline borders */
  --accent:    #b08d57;  /* champagne gold */
  --shadow:    0 18px 40px -24px rgba(60, 48, 30, 0.45);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation ---------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.75rem 2rem;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: #463f38;  /* deep taupe — strong contrast on the ivory bg */
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }

/* --- Page header --------------------------------------------------------- */
.page-header {
  max-width: var(--maxw);
  margin: 2.5rem auto 3.5rem;
  padding: 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

/* decorative gold rule under the title */
.page-header h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 1.25rem auto 0;
  background: var(--accent);
}

.page-header p {
  margin-top: 1rem;
  color: #5b5249;  /* darker than --muted for legibility */
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* --- Gallery grid -------------------------------------------------------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.gallery {
  display: grid;
  gap: 2.75rem 2rem;
}

/* wide rectangular covers (Events, Vendors) */
.gallery--wide {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}

/* circular covers (Guests) */
.gallery--circle {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* --- Album card ---------------------------------------------------------- */
.album {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.album-cover {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.album-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.album:hover .album-cover img { transform: scale(1.04); }

/* shape: wide rectangle */
.gallery--wide .album-cover {
  aspect-ratio: 3 / 2;
  border-radius: 3px;
  box-shadow: var(--shadow);
}

/* shape: circle */
.gallery--circle .album-cover {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  max-width: 240px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

/* --- Album title --------------------------------------------------------- */
.album-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  text-align: center;
  margin-top: 1.1rem;
  transition: color 0.25s ease;
}

.gallery--circle .album-title { font-size: 1.25rem; }

.album:hover .album-title { color: var(--accent); }

/* --- Empty state --------------------------------------------------------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  padding: 4rem 0;
}

/* --- Small screens ------------------------------------------------------- */
@media (max-width: 600px) {
  .nav { justify-content: center; text-align: center; }
  .nav-links { gap: 1.5rem; }
  .gallery--wide { grid-template-columns: 1fr; }
}
