/* ============================================================
   AASMUND BREKKE — Portfolio
   Clean, minimal. Black & white with warm gold accent.
   ============================================================ */

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

/* ===== DESIGN TOKENS ===== */
:root {
  --bg:          #ffffff;
  --bg-alt:      #f7f7f5;
  --text:        #111111;
  --text-muted:  #777777;
  --accent:      #c8a96e;   /* warm gold — used very sparingly */
  --border:      #e8e8e8;
  --max-w:       1080px;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:       64px;
  --section-v:   7rem;
}

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

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

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

/* ===== UTILITIES ===== */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.bg-alt {
  background: var(--bg-alt);
}

.centered {
  text-align: center;
}

/* ===== FADE-IN ON SCROLL ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}


/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.05);
}

.nav__container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin-right: auto;
}

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

.nav__links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--border);
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 2px 3px;
  transition: color 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--text);
}

.lang-btn.active {
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-shrink: 0;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: calc(var(--nav-h) + 4rem) 5rem;
  padding-inline: 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('../Bilder/Aasmund 2 (1).jpg');
  background-size: cover;
  background-position: center 45%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 0;
}

.hero__content {
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #ffffff;
}

.hero__divider {
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin: 1.75rem 0;
}

.hero__tagline {
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}


/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding-block: var(--section-v);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 3.5rem;
  position: relative;
  padding-bottom: 1.1rem;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--accent);
}

.section__title.centered::after {
  left: 50%;
  transform: translateX(-50%);
}


/* ============================================================
   PROJECTS
   ============================================================ */
.projects__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

/* Alternate: even items flip image/text */
.project-item:nth-child(even) {
  direction: rtl;
}
.project-item:nth-child(even) > * {
  direction: ltr;
}

.project-item__media {
  overflow: hidden;
}

.project-item__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: grayscale(15%);
}

.project-item__media:hover img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.project-item__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.25rem;
  user-select: none;
}

.project-item__title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.project-item__desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 42ch;
}

.project-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--text-muted);
  color: var(--text);
}


/* ============================================================
   ALBUMS
   ============================================================ */
.albums__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
}

.album-card {
  display: flex;
  flex-direction: column;
}

.album-card__cover {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.5rem;
  background: var(--border);
}

.album-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.album-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.album-card__year {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.album-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}


/* ============================================================
   CONCERTS
   ============================================================ */
.concerts__list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.concert-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.concert-item:hover {
  background: var(--bg-alt);
  margin-inline: -1.5rem;
  padding-inline: 1.5rem;
}

.concert-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.concert-item__day {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
}

.concert-item__month {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.concert-item__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.concert-item__venue {
  font-size: 0.88rem;
  color: var(--text-muted);
}


/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5rem;
  align-items: start;
}

.about__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(8%);
}

.about__text .section__title {
  margin-bottom: 2rem;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  max-width: 54ch;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.contact__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.contact__link:hover {
  color: var(--text);
}

.contact__link svg {
  width: 26px;
  height: 26px;
}

.contact__link span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn--outline {
  border-color: var(--border);
  color: var(--text-muted);
}

.btn--outline:hover {
  border-color: var(--text-muted);
  background: transparent;
  color: var(--text);
}

.btn--sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.7rem;
}


/* ============================================================
   GALLERY
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s ease, transform 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-block: 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
}


/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --section-v: 5rem;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-item:nth-child(even) {
    direction: ltr;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__photo img {
    aspect-ratio: 4 / 3;
    max-height: 480px;
    object-position: center 15%;
  }

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


/* ============================================================
   RESPONSIVE — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --section-v: 4rem;
  }

  /* Nav */
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding-block: 0.5rem;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links li a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
  }

  .nav__toggle {
    display: flex;
  }

  /* Concerts */
  .concert-item {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: 1rem 1.5rem;
  }

  .concert-item .btn--sm {
    grid-column: 2;
    justify-self: start;
  }

  /* Albums */
  .albums__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero__content {
    max-width: 100%;
  }

  /* Contact */
  .contact__links {
    gap: 2rem;
  }
}
