/* ---------------------------------------------------
   jorgenbryn.com — delt stilark
   Visuelt språk inspirert av gallerinettsider som
   STANDARD (OSLO): hvit bunn, sort tekst, versaler i
   navigasjon/metadata, luftig layout, og en gjennomgående
   strek-motiv ("-----") som eneste dekorative element.
   --------------------------------------------------- */

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6a6a6a;
  --max: 1400px;
  --gutter: 48px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 80px;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--fg);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 4px 0 0;
  padding: 0;
}

nav.main-nav a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav.main-nav a.active {
  border-bottom: 1px solid var(--fg);
}

/* dashed rule motif */

.dashes {
  letter-spacing: 0.3em;
  margin: 4px 0 40px;
  user-select: none;
}

.dashes.tight {
  margin: 24px 0;
}

/* ---------- listings (utstillinger / arkiv) ---------- */

.listing-item {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  gap: 40px;
  padding: 32px 0;
  align-items: start;
}

.listing-item img {
  width: 100%;
  height: auto;
}

.listing-meta .kicker {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
}

.listing-meta h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  font-weight: 700;
}

.listing-meta .title {
  font-style: italic;
  text-transform: none;
  font-weight: 400;
}

.listing-meta .date,
.listing-meta .venue {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0;
}

.listing-meta p.desc {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--fg);
}

/* ---------- CV ---------- */

.cv-section {
  margin-bottom: 36px;
}

.cv-section h2 {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 14px;
}

.cv-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 6px 0;
  font-size: 14px;
}

.cv-row .year {
  color: var(--muted);
}

/* ---------- texts list ---------- */

.text-item {
  padding: 20px 0;
}

.text-item h2 {
  font-size: 15px;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.text-item .meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- text detail / essay ---------- */

.essay {
  max-width: 68ch;
}

.essay h1 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}

.essay .meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.essay p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
}

.essay p:first-of-type::first-letter {
  font-size: 1em;
}

.essay h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 32px 0 10px;
}

.essay blockquote {
  margin: 20px 0;
  padding-left: 20px;
  border-left: 1px solid var(--fg);
  font-style: italic;
  max-width: 55ch;
}

.essay .freeform {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 20px;
}

.essay .signature {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- contact ---------- */

.contact-block p {
  margin: 0;
}

.contact-block .group {
  margin-bottom: 22px;
}

/* ---------- home ---------- */

.home-hero {
  margin-top: 20px;
}

.home-hero img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
}

.home-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 10px;
}

.intro {
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.7;
  margin: 24px 0 40px;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 100px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--muted);
}

.site-footer .cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 2px 0;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  :root {
    --gutter: 22px;
  }

  .menu-toggle {
    display: block;
  }

  nav.main-nav {
    display: none;
    width: 100%;
    margin-top: 20px;
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 14px;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .listing-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cv-row {
    grid-template-columns: 80px 1fr;
  }

  .site-footer .cols {
    gap: 30px;
  }
}
