/* ---------------------------------------------
   Design tokens
   --font-heading: the big condensed impact font
   for your name (like the WILDFEAST logotype).
   --font-display: Fraunces, used for section
   headings and smaller decorative text.
   --font-body: Work Sans, used for paragraphs.
--------------------------------------------- */
:root {
  --cream: #FAF6EE;
  --olive: #414c29;
  --olive-tint: rgba(65, 76, 41, 0.07);
  --coral: #F09367;
  --ink: #24231D;

  --font-heading: "Anton", "Fraunces", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", Verdana, sans-serif;

  --gap: 2rem;
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--cream);
  font-family: var(--font-body);
  color: var(--ink);
  width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------------------------------------------
   Nav — shared across every page.
   Just the brand mark now; no link list.
--------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  padding: 1.5rem 2.5rem;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-decoration: none;
}

/* ---------------------------------------------
   Flat-colour hero — background colour only,
   your name in the big impact font. Nothing else.
--------------------------------------------- */
.hero-flat {
  background: var(--olive);
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.hero-flat__name {
  font-family: var(--font-heading);
  color: var(--cream);
  text-transform: uppercase;
  font-size: clamp(4rem, 15vw, 10rem);
  line-height: 0.85;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ---------------------------------------------
   CTA block — one big clickable block, used for
   the "Photos" link on the home page. The whole
   element is an <a> tag, so clicking anywhere on
   it works, not just the text.
--------------------------------------------- */
.cta {
  display: block;
  background: var(--coral);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  padding: 5rem 2rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta:hover {
  filter: brightness(0.94);
}

.cta__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.9;
  margin: 0;
}

.cta__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 0.75rem 0 0;
}

/* ---------------------------------------------
   Link list — used in the text-only About block
   to list your degree, LinkedIn, and GitHub in
   the big display font.
--------------------------------------------- */
.link-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--ink);
}

.link-list__link {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  display: inline-block;
}

.link-list__link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

/* ---------------------------------------------
   BLOCK — the repeatable unit.
   Each block is full-width (so its background
   colour can span edge to edge); the content
   inside is capped at 1200px and centred.

   To add a new block anywhere on the site:
   1. Copy one whole <section class="block">...</section>
   2. Add or remove the "block--alt" class to
      alternate the tint / image side
   3. Swap the image placeholder + text
--------------------------------------------- */
.block {
  width: 100%;
}

.block--alt {
  background: var(--olive-tint);
}

.block__inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2.5rem;
}

/* Alternate blocks mirror the layout: image swaps sides */
.block--alt .block__inner {
  flex-direction: row-reverse;
}

/* Gallery blocks stack instead of sitting side by side */
.block__inner--stack {
  flex-direction: column;
  align-items: flex-start;
}

.block__image {
  flex: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: var(--olive-tint);
  border: 2px solid var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--olive);
  font-size: 0.85rem;
  padding: 1rem;
}

/* Swap a placeholder for a real photo, e.g.:
   .block__image { background-image: url("images/music.jpg");
   background-size: cover; background-position: center; border: none; } */

.block__copy {
  flex: 1;
}

.block__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
}

.block__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.85;
  max-width: 46ch;
  margin: 0 0 1.5rem;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  background: var(--olive);
  transform: translateY(-2px);
}

/* ---------------------------------------------
   Gallery grid — used on the Photos page
--------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin-top: 2rem;
}

.gallery__item {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 2px solid var(--olive);
  background: var(--olive-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--olive);
  font-size: 0.78rem;
  padding: 0.75rem;
}

/* Swap a placeholder for a real photo, e.g.:
   .gallery__item { background-image: url("images/photo1.jpg");
   background-size: cover; background-position: center; border: none; } */

/* Ready-made rules for the three photos you already have.
   Delete the placeholder <span> inside each matching div in the
   HTML once the image is showing, since it's no longer needed. */

.gallery__item--beach {
  background-image: url("Beach.jpg");
  background-size: cover;
  background-position: center;
  border: none;
}

.gallery__item--left {
  background-image: url("images/left.jpg");
  background-size: cover;
  background-position: center;
  border: none;
}

.gallery__item--right {
  background-image: url("images/right.jpg");
  background-size: cover;
  background-position: center;
  border: none;
}

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 800px) {
  .nav {
    padding: 1.25rem 1.5rem;
  }

  .block__inner,
  .block--alt .block__inner {
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}