/* =========================================================
   Jonas Vest — minimal personal site
   Plain HTML + CSS. No build step. Upload via FTP.
   ========================================================= */

:root {
  /* Dark theme for the inner pages (welcome screen has its own photo) */
  --ink:        #ece9e4;   /* main text (light) on dark pages */
  --ink-soft:   #989089;   /* dimmed / secondary text         */
  --paper:      #141311;   /* dark page background            */
  --line:       rgba(255, 255, 255, 0.13);   /* hairline dividers */
  --light:      #f2f1ee;   /* text on the dark hero      */
  --light-soft: rgba(242, 241, 238, 0.62);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 36rem;        /* comfortable reading width  */

  /* Photo-feed look — overridable per gallery via foto/galleri-indstillinger.txt */
  --feed-gap:   3rem;      /* space between photos        */
  --feed-width: 64rem;     /* max width of the photo feed */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* Sikkerhedsnet: billeder må aldrig stikke ud over deres spalte */
img { max-width: 100%; height: auto; }


/* =========================================================
   WELCOME SCREEN  (index.html)
   Full-bleed image, dimmed headline, discrete text links.
   Replace images/hero.jpg with your own photo.
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;          /* sit the text toward the lower part */
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem clamp(2.5rem, 9vh, 6rem);
  overflow: hidden;

  /* Fallback tone shows until hero.jpg is added */
  background-color: #2a2926;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
}

/* Subtle dim so text stays readable over any image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.45));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  letter-spacing: 0.04em;
  color: var(--light);
  /* "subtle dimmed headline" — quiet, not shouting */
  opacity: 0.9;
  text-shadow: 0 1px 24px rgba(0,0,0,0.35);
}

.hero-nav {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem 2.4rem;
}

.hero-nav a {
  text-decoration: none;
  color: var(--light-soft);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: var(--light);
  border-color: var(--light-soft);
  outline: none;
}

/* Visitkort-kontaktlinje på forsiden (mens menuen er skjult) */
.hero-card {
  margin-top: 5rem;
  color: var(--light-soft);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.hero-card a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.hero-card a:hover,
.hero-card a:focus-visible {
  color: var(--light);
  border-color: var(--light-soft);
  outline: none;
}


/* =========================================================
   SUBPAGES  (about / sounddesign / photography / contact)
   Light, airy, lots of whitespace.
   ========================================================= */

.page {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 1.5rem 5rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.6rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.site-name {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  outline: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
}

.page-title {
  font-weight: 200;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
}

.lead,
.page p {
  max-width: var(--measure);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink);
}

.muted { color: var(--ink-soft); }

/* Placeholder marker — easy to spot while content is unfinished */
.placeholder {
  margin-top: 2.5rem;
  padding: 1.1rem 1.3rem;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: var(--measure);
}

.site-footer {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}


/* ---- Photography: single-column feed ---- */

/* Photography uses a slightly wider column for the images */
.page--wide { max-width: var(--feed-width); }

.feed {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--feed-gap);
}

.feed-item { margin: 0; }

.feed-item img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* Per-billede bredde/placering falder tilbage til fuld bredde på små skærme */
@media (max-width: 600px) {
  .feed-item { width: auto !important; align-self: stretch !important; }
}

.feed-item figcaption {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}


/* ---- Lightbox (click-to-enlarge) ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(15, 14, 13, 0.94);
  cursor: zoom-out;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-caption {
  position: absolute;
  bottom: 2vmin;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--light-soft);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--light-soft);
  font-size: 2.8rem;
  line-height: 1;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.lightbox-nav:hover { color: var(--light); }
.lightbox-prev { left: 1vmin; }
.lightbox-next { right: 1vmin; }

/* Hide arrows on small screens — swipe-free, tap backdrop to close */
@media (max-width: 600px) {
  .lightbox-nav { display: none; }
}


/* ---- Private gallery password form ---- */
.login {
  max-width: 22rem;
  margin: clamp(3rem, 12vh, 7rem) auto 0;
  text-align: center;
}

.login .page-title { margin-bottom: 1rem; }

.login input[type="password"] {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.7rem 0.9rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  text-align: center;
  letter-spacing: 0.1em;
}

.login input[type="password"]:focus {
  outline: none;
  border-color: var(--ink-soft);
}

.login button {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 4px;
  font: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.login-fejl {
  margin-top: 0.8rem;
  color: #d98c8c;
  font-size: 0.85rem;
}


/* ---- Sound design: track list with audio players ---- */
.tracks {
  margin-top: 2.5rem;
  max-width: var(--measure);
}

.track {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.track:last-child { border-bottom: 1px solid var(--line); }

.track-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1rem;
}

.track-title { font-weight: 400; font-size: 1.05rem; }

.track-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.track audio {
  width: 100%;
  margin-top: 0.9rem;
  /* tone the default player down to suit the dark theme */
  filter: invert(0.92) hue-rotate(180deg) brightness(1.05);
}

.track-missing {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-style: italic;
}

.track-missing code,
.placeholder code {
  font-style: normal;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}


/* ---- Sound design: chronological credits list ---- */
.credits {
  margin-top: 2.5rem;
  max-width: 44rem;
}

.credit {
  display: flex;
  gap: 1.4rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.credit:last-child { border-bottom: 1px solid var(--line); }

.credit-aar {
  flex: 0 0 3.5rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.credit-titel { font-weight: 400; }
.credit-teater { color: var(--ink-soft); font-weight: 300; }

.section-title {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 0;
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}
