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

:root {
  --bg: #f5f2ee;
  --ink: #1c1917;
  --faded: #a09a93;
  --warm: #6a5f55;
  --border: #e4dfd8;
  --font: 'EB Garamond', Georgia, serif;
  --size: clamp(48px, 7vw, 80px);
}

@media (max-width: 768px) {
  .board-img {
    display: none;
  }


  .panel {
    padding-top: 40px;
  }

  .page {
    gap: 16px;
  }
}

body {
  background: var(--bg);
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  padding: 80px 60px;
}

/* ── BOARD ── */
.board {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.board-img {
  position: fixed;  /* fast fixed fra start, ikke absolute */
  width: 200px;
  cursor: grab;
  pointer-events: all;
  user-select: none;
  box-shadow: 2px 3px 12px rgba(0,0,0,0.12);
}

/* ── LAYOUT ── */
.page {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

/* ── VERTICAL TITLE ── */
.title {
  display: flex;
  flex-direction: column;
  font-size: var(--size);
  line-height: 1;
  flex-shrink: 0;
}

#dropdown-interesser {
  margin-left: -0.55em;
}

#dropdown-utsagn {
  margin-left: -0.33em;
}

#dropdown-musikk {
  margin-left: -0.2em;
}

#dropdown-venner {
  margin-left: -0.5em;
}

#dropdown-om {
  margin-left: -0.5em;
}

.letter-wrap {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 0.95em;
}

.letter-wrap:hover .letter,
.letter-wrap.active .letter {
  font-style: italic;
}

.letter {
  display: block;
  cursor: pointer;
  padding: 1px 0;
}

.plain {
  display: block;
  padding: 1px 0;
  height: 0.95em;
}

/* ── DROPDOWN ── */
.dropdown {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 8px;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.25s ease;
  pointer-events: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  z-index: 10;
}

.letter-wrap:hover .dropdown,
.letter-wrap.active .dropdown {
  max-width: 600px;
  opacity: 1;
  pointer-events: auto;
}

.dropdown a {
  font-family: var(--font);
  font-size: var(--size);
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  font-style: italic;
  color: var(--ink);
}

#w-letter {
  display: inline-block;
  transition: transform 0.4s ease;
  transform-origin: center 65%;
}

#wrap-musikk:hover #w-letter {
  transform: rotate(180deg);
}

#wrap-musikk.active #w-letter {
  transform: rotate(180deg);
}

.h-spacer {
  display: inline-block;
  width: 0.22em;
}

/* ── RIGHT PANEL ── */
.panel {
  flex: 1;
  min-width: 0;
}

.section {
  display: none;
}

.section.open {
  display: block;
}

/* ── TYPOGRAPHY ── */
h2 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faded);
  margin-bottom: 24px;
}

/* ── BLOG ── */
.post {
  margin-bottom: 28px;
  cursor: pointer;
}

.post-body {
  display: none;
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.75;
  max-width: 400px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}


.post.open .post-body {
  display: block;
}

.post.open .post-title {
  font-style: italic;
}

.post:last-child {
  margin-bottom: 0;
}

.post-date {
  font-size: 12px;
  color: var(--faded);
  margin-bottom: 2px;
}

.post-title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 4px;
  cursor: pointer;
}

.post-title:hover {
  font-style: italic;
}

.post-excerpt {
  font-size: 16px;
  color: var(--warm);
  line-height: 1.65;
  max-width: 400px;
}

/* ── INTERESSER ── */
.interest-list {
  list-style: none;
}

.interest-list li {
  font-size: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  width: fit-content;
}

.interest-list li:first-child {
  border-top: 1px solid var(--border);
}

/* ── Musikk ── */
.musik-divider {
  border-top: 1px solid var(--border);
  margin: 28px 0;
  max-width: 380px;
}

.album-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 4px;
  max-width: 380px;
}

.album-cover {
  width: 80px;
  height: 80px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 6px;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-title {
  font-size: 14px;
  line-height: 1.3;
}

.album-artist {
  font-size: 12px;
  color: var(--faded);
  font-style: italic;
}

.song-list {
  list-style: none;
  counter-reset: song-counter;
  max-width: 380px;
}

.song-list li {
  counter-increment: song-counter;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.song-list li:first-child {
  border-top: 1px solid var(--border);
}

.song-list li::before {
  content: counter(song-counter);
  font-size: 11px;
  color: var(--faded);
  min-width: 16px;
}

.sl-title {
  font-size: 16px;
  flex: 1;
}

.sl-artist {
  font-size: 12px;
  color: var(--faded);
  font-style: italic;
}

/* ── Ukens utsagn ── */
.utsagn {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
  margin: 20px 0;
  max-width: 380px;
}

/* ── VENNER ── */
.friend {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  max-width: 380px;
}

.friend:first-child {
  border-top: 1px solid var(--border);
}

.friend-name {
  font-size: 18px;
}

.friend-right {
  display: flex;
  gap: 20px;
}

.friend-link {
  font-size: 12px;
  color: var(--faded);
  text-decoration: none;
}

.friend-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── OM MEG ── */
.about p {
  font-size: 17px;
  color: #3a3330;
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 380px;
}

.about p:last-child {
  margin-bottom: 0;
}
