/* Tidskriftslayout: serifrubriker, lugn sans-serif i brödtext, tunna linjer */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&family=Source+Sans+3:wght@400;600&display=swap");

body {
  font-family: "Source Sans 3", system-ui, "Segoe UI", sans-serif;
  color: #2c2c2a;
}

h1, h2, h3, h4,
.title,
.listing-title,
.navbar-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  color: #1c1c1a;
}

/* Meny: vit med en tunn linje under, ingen färgad banner */
.navbar {
  border-bottom: 1px solid #2c2c2a;
}
.navbar-title {
  font-size: 1.3rem;
}

/* Inläggslistan */
.quarto-post {
  border-bottom: 1px solid #e1e0d9;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.quarto-post .listing-title {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0.15rem 0 0.4rem;
}
.quarto-post .listing-date {
  color: #5f5e5a;
  font-size: 0.85rem;
}
.quarto-post .listing-description {
  color: #444441;
}

/* Förhandsbilder: samma ruta för alla, hela bilden visas (ingen beskärning) */
div.quarto-post .thumbnail img.thumbnail-image {
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e1e0d9;
  border-radius: 2px;
}

/* Kategorier som diskret text, inte som knappar */
.listing-category,
.quarto-category {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin-right: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  color: #185fa5;
}

/* Inläggssidor: rubrikblocket */
#title-block-header .title {
  font-size: 2.1rem;
  line-height: 1.2;
}
#title-block-header {
  border-bottom: 1px solid #e1e0d9;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

/* Faktaruta under kartor ("Så använder du kartan"), som i boken Den långa bluffen. Innehållet
   fälls ut och ihop med pilen framför rubriken (<details>) och är stängt från början. */
.faktabox {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #f2f2f2;
  border-radius: 4px;
}
.faktabox summary {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1c1c1a;
  cursor: pointer;
}
.faktabox details[open] > summary {
  margin-bottom: 0.75rem;
}
.faktabox > :last-child,
.faktabox details > :last-child {
  margin-bottom: 0;
}

/* Brödtext lite luftigare */
main p {
  line-height: 1.65;
}
