:root {
  --sand: #eadfcd;
  --sand-deep: #c7a57f;
  --cream: #f7f2ea;
  --charcoal: #171513;
  --charcoal-soft: #2a241f;
  --red: #d14836;
  --red-dark: #a92d20;
  --sky: #7fa8d2;
  --line: rgba(23, 21, 19, 0.1);
  --shadow: 0 18px 50px rgba(23, 21, 19, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--charcoal);
  background:
    radial-gradient(circle at top left, rgba(127, 168, 210, 0.35), transparent 30%),
    radial-gradient(circle at top right, rgba(209, 72, 54, 0.14), transparent 24%),
    linear-gradient(180deg, #fbf7f1 0%, #f4ebdd 100%);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

code {
  font-family: "Courier New", monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(247, 242, 234, 0.86);
  border-bottom: 1px solid rgba(23, 21, 19, 0.08);
}

.site-header__inner,
.site-footer__inner,
.section,
.hero,
.page-hero__inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.brand__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(23, 21, 19, 0.58);
}

.brand__name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--charcoal);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
  align-items: stretch;
}

.hero__media,
.hero__content,
.shipping__card,
.mini-card,
.support-card,
.timeline-card,
.album-card,
.story__copy,
.photo-stack__item,
.page-hero__inner {
  border-radius: var(--radius-xl);
}

.hero__media {
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  padding: 2rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(245, 234, 219, 0.92)),
    linear-gradient(135deg, rgba(127, 168, 210, 0.1), rgba(209, 72, 54, 0.08));
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 21, 19, 0.08);
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--red);
}

h1,
h2,
h3,
.timeline-card__year {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  line-height: 0.96;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(3.3rem, 8vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.65rem;
}

.hero__lede,
.page-hero__inner p,
.section-heading p:last-child {
  font-size: 1.08rem;
}

.hero__actions,
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 18px 30px rgba(209, 72, 54, 0.25);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(23, 21, 19, 0.14);
}

.hero__grid,
.support-grid,
.timeline-grid,
.album-grid {
  display: grid;
  gap: 1rem;
}

.hero__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.mini-card,
.support-card,
.timeline-card,
.album-card,
.story__copy,
.photo-stack__item,
.shipping__card {
  border: 1px solid rgba(23, 21, 19, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.mini-card,
.support-card,
.timeline-card {
  padding: 1.25rem;
}

.mini-card h3,
.support-card h3 {
  margin-bottom: 0.5rem;
}

.section {
  padding: 3.25rem 0;
}

.section--sand {
  background:
    linear-gradient(180deg, rgba(199, 165, 127, 0.2), rgba(255, 255, 255, 0));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-heading--tight {
  margin-bottom: 1.15rem;
}

.story__layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1.5rem;
}

.story__copy {
  padding: 1.8rem;
}

.photo-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.photo-stack__item {
  overflow: hidden;
}

.photo-stack__item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-card__year {
  display: inline-block;
  font-size: 3rem;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.album-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.album-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px rgba(23, 21, 19, 0.16);
}

.album-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.album-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-card__body {
  padding: 1.1rem 1.1rem 1.3rem;
}

.album-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(23, 21, 19, 0.58);
  margin-bottom: 0.55rem;
}

.album-card__body p {
  margin-bottom: 0;
}

.shipping__card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.5rem;
  padding: 2rem;
  background:
    linear-gradient(140deg, rgba(23, 21, 19, 0.94), rgba(42, 36, 31, 0.94)),
    linear-gradient(140deg, rgba(209, 72, 54, 0.18), rgba(127, 168, 210, 0.12));
  color: #fff;
}

.shipping-list {
  margin: 1.25rem 0 0;
  padding-left: 1.1rem;
}

.shipping__notes p {
  margin-top: 0;
}

.site-footer {
  padding: 2rem 0 2.75rem;
  border-top: 1px solid rgba(23, 21, 19, 0.08);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-title {
  margin: 0 0 0.4rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.footer-copy {
  margin: 0;
  max-width: 560px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero--compact .page-hero__inner {
  padding: 1.75rem;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(245, 234, 219, 0.9));
  border: 1px solid rgba(23, 21, 19, 0.08);
  box-shadow: var(--shadow);
}

.gallery-page .section {
  padding-top: 1rem;
}

.album-count {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: rgba(23, 21, 19, 0.08);
  font-weight: 700;
}

.lightbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.lightbox-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23, 21, 19, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.lightbox-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(11, 10, 9, 0.92);
  z-index: 100;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.lightbox__figure img {
  max-height: min(82vh, 980px);
  width: auto;
  border-radius: var(--radius-md);
}

.lightbox__close,
.lightbox__nav {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.8rem 1rem;
}

.lightbox__nav {
  width: 58px;
  height: 58px;
}

.not-found {
  min-height: calc(100vh - 200px);
}

.reveal {
  animation: fade-up 600ms ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero,
  .story__layout,
  .shipping__card {
    grid-template-columns: 1fr;
  }

  .hero__grid,
  .support-grid,
  .timeline-grid,
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(247, 242, 234, 0.97);
    border: 1px solid rgba(23, 21, 19, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero__grid,
  .photo-stack,
  .support-grid,
  .timeline-grid,
  .album-grid,
  .lightbox-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero__content,
  .story__copy,
  .shipping__card,
  .page-hero--compact .page-hero__inner {
    padding: 1.4rem;
  }

  .lightbox {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .lightbox__nav {
    width: auto;
    min-width: 88px;
    height: 46px;
  }
}
