/* FONTS */
@font-face {
  font-family: 'Pinyon Script';
  src: url('/fonts/pinyon-script-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spectral';
  src: url('/fonts/spectral-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spectral Light';
  src: url('/fonts/spectral-light.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spectral Extralight';
  src: url('/fonts/spectral-extralight.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Anton';
  src: url('/fonts/anton-v27-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Antonio';
  src: url('/fonts/antonio-v22-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Antonio';
  src: url('/fonts/antonio-v22-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-v25-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-v25-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --highlight: #5B507A;
  --accent1: #63A951; /* light green */
  --accent2: #3A7116; /* dark green */
  --accent3: #F6AE2D; /* yellow */
  --text: #333333;
  --textaccent: #cccccc;
  --background: #f5f5f5;
  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-heading: 'Spectral Extralight', 'Arial Narrow', 'Gill Sans', 'Trebuchet MS', serif;
  --font-script: 'Spectral Extralight', 'Arial Narrow', 'Gill Sans', 'Trebuchet MS', serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Calibri, sans-serif;
  --header-height: 5rem;
  --highlight-a70: color-mix(in srgb, var(--highlight) 70%, transparent);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--highlight);
  background-image: url("images/20260221182207_DSC_1407-2.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  hyphens: auto;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--highlight);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem 1.8rem;
  clip-path: polygon(100% 0, 100% calc(100% - 1.8rem), 0 94%, 0 78%, 0 0);
  z-index: 1000;
}


header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-family: var(--font-heading);
  color: var(--textaccent);
  flex: 1;
  min-width: 0;
  text-align: right;
}

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


#burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
 
#burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--textaccent);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
 
#burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
 
#burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
 
#burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--highlight);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  padding: calc(var(--header-height) + 1.5rem) 2rem 2rem;
  z-index: 999;
}

nav.open {
  transform: translateX(0);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--textaccent);
  text-decoration: none;
}

/* ACTIVE MENU ITEM */
nav a.active {
  color: var(--accent1);
  font-weight: bold;
}

/* HERO */
article.hero {
  z-index: 0;
  height: calc(60svh - var(--header-height));
  display: flex;
  align-items: flex-end;
  padding: 0 0 4rem 0;
  background: transparent;
  border-left: none;
}

article.hero h2 {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  width: 100%;
  background: var(--highlight-a70);
  backdrop-filter: blur(7px);
  border-left: 4px solid var(--accent1);
  color: var(--textaccent);
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  line-height: 1.4;
}

/* MAIN */
main {
  max-width: 800px;
  margin: 0 auto 0;
  padding: 0 1rem;
}

/* Gap between articles — lets background show through */
main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

/* ARTICLES */
article {
  background: var(--background);
  padding: 1rem 1.5rem;
  color: var(--text);
  scroll-margin-top: calc(var(--header-height) + 1rem);
  border-left: 4px solid var(--accent1);
  position: relative;
  z-index: 1;
}

/* HEADINGS */
article h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

/* Mobile */
@media (max-width: 699px) {
  main {
    padding-left: 0;
    padding-right: 0;
    gap: 5rem;
  }
}

/* LINKS */
a {
  color: var(--accent1);
}

/* IMAGES */
img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}
