/* ─────────────────────────────────────────
   Linn Nystedt — linnystedt.se
   Aesthetic: Editorial elegance / Swedish literary
   ───────────────────────────────────────── */

:root {
  --ink:       #1a1816;
  --paper:     #f5f2ed;
  --muted:     #8a8075;
  --rule:      #c8c0b5;
  --accent:    #2c2c2c;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-light: 'Cormorant Garamond', Georgia, serif;
  --max-width: 760px;
}

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

html {
  font-size: 18px;
  background-color: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--font-serif);
  line-height: 1.75;
  background-color: var(--paper);
  min-height: 100vh;
}

/* ── Page wrapper ── */
#page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ── Header ── */
#site-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}

#header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

#name-block h1 {
  font-family: var(--font-light);
  font-weight: 300;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ── Nav ── */
#main-nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  align-items: center;
}

#main-nav a {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.25s ease;
}

#main-nav a:hover { color: var(--muted); }
#main-nav a:hover::after { width: 100%; }

/* ── Portrait ── */
#portrait-section {
  margin: 3.5rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#portrait-wrap {
  width: 260px;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--rule);
}

#portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

#portrait:hover {
  filter: grayscale(80%);
}

#portrait-caption {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Bio ── */
#bio-section {
  margin: 3.5rem 0;
}

.rule-line {
  height: 1px;
  background: var(--rule);
  margin: 1.6rem 0;
}

#bio-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  max-width: 62ch;
  margin: 0 auto 1.2rem;
  text-align: justify;
  hyphens: auto;
}

#bio-text p:last-child {
  margin-bottom: 0;
}

/* ── Featured poem ── */
#featured-poem {
  margin: 3rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 2rem;
}

.poem-body {
  font-family: var(--font-light);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 2;
  text-align: left;
}

.poem-body p {
  margin-bottom: 1.4em;
}

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

.poem-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.poem-link:hover {
  color: var(--ink);
}

/* ── Footer ── */
#site-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.diamond {
  color: var(--muted);
  font-size: 1rem;
}

#site-footer a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

#site-footer a:hover {
  color: var(--ink);
}

/* ── dikter.php styles ── */
#poems-page {
  padding-top: 3rem;
}

.poem-entry {
  margin: 3.5rem 0;
}

.poem-entry + .poem-entry {
  border-top: 1px solid var(--rule);
  padding-top: 3.5rem;
}

.poem-year {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  html { font-size: 16px; }

  #header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  #main-nav {
    gap: 1.2rem;
  }

  #portrait-wrap {
    width: 200px;
  }

  #name-block h1 {
    font-size: 2rem;
  }
}


/* ── Linje som delar upp text ── */
p.linje{
  border-top: 1px solid var(--muted);
    width: 50%;
    height: 1px;
    text-align: center;
    margin:auto;
}


