* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  @media (prefers-reduced-motion: no-preference){
    interpolate-size: allow-keywords;
  }
}

body {
  font-family: "Grandstander",'Segoe UI', Tahoma, Geneva, Verdana, sans-serif,system-ui;
  line-height: 1.5;
  font-weight: 400;
  font-style: normal;
  text-align:center;
  margin:0 auto;
  background-color: #e2ffe7;
  min-block-size: 100svh;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}

#content {
  flex: 1;
  width: 100%;
  max-width: 1536px;
  margin-left: 0;
  margin-right: auto;
  padding: 1.5rem;
  z-index:1;
}

nav {
  margin: 3em 0;
}

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

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

/* ---------- Header ---------- */
header {
  width: 100%;
  max-width: 1536px;
  margin-left: 0;
  margin-right: auto;

  background-image: url(/_media/_build/SiteBG.png);
  background-repeat: no-repeat;
  background-position: top left;
  background-size: 100% 100%;   /* stretch to fill the box exactly */

  aspect-ratio: 1536 / 614;     /* box height always tracks width correctly */
  position: relative;
  z-index: 10;
}

header .header-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-inline: clamp(1.5rem, 5.5vw, 6rem);
}

/* ---------- H1 — "LINNEA CAMPBELL" ---------- */
header h1 {
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  font-size: clamp(1rem, 5.8vw, 5rem);
  color: #ffffff;
  text-shadow:
    3px  3px 0 #0040ba,
    6px  6px 0 #0040ba;
  margin-bottom: clamp(0.2rem, 0.8vw, 0.6rem);
  max-width: 55%;
}

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

/* ---------- H2 — "STORY • CHARACTER • ANIMATION" ---------- */
header h2 {
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.2;
  font-size: clamp(0.5rem, 2.4vw, 2rem);
  color: #ffffff;
  text-shadow:
    2px 2px 0 #0040ba,
    3px 3px 0 #0040ba;
  max-width: 55%;
}

header a:hover {
  color: #e5a519;
}


p {
  font-size: 4em;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 1rem;
}

.gallery {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem,1fr));
  grid-auto-rows: minmax(12.5rem,auto);
  grid-auto-flow: dense;
}

.gallery > div {
  display: flex;
}

.imagebox img {
  inline-size: 100%;
  block-size: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,.7);
}

footer {
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: #ba4b23;
}

footer .icons {
  margin-top: 1rem;
}

footer .icons a {
  padding: 0.4rem;
  color: #ba4b23;
}

footer .icons a:hover {
  color: #333;
  transition: opacity 1.5s ease-out;
}

.gallery a img {
  transition: 1s ease-in-out;
}

.gallery a img:hover {
  filter: grayscale(100%);
  transform: scale(1.1);
}

.wide {
  grid-column: span 2;
}

.tall {
  grid-row: span 1 / span 2;
}

/* ---------- Socials ---------- */
#socials {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0.5rem));
  margin-top: 0;
}

#socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
}

#socials a::before {
  font-size: 1.5rem;
  color: #0040ba;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, color 0.15s ease;
}

#socials a:hover::before {
  color: #0040ba;
  transform: scale(1.15);
}

@media (max-width: 580px) {
  #content {
    margin-top: 2rem;
  }
  #socials a::before {
    font-size: 2rem;
  }
}

.fa-linkedin {
  color: #0040ba;
}

.fa-instagram {
  color: #0040ba;
}

section {
  font-size: 3rem;
  color: #333;
}

/* ---------- Vimeo responsive container ---------- */
#vimeo {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  max-width: 1536px;
  z-index:1;
  overflow:hidden;
  margin-top:2rem;
}