/* MoniRöst — monirost.se
   En enda stilmall, inga beroenden, ingen byggprocess. */

:root {
  --bg: #e5e3e0;
  --paper: #ffffff;
  --ink: #26221f;
  --ink-soft: #5c554f;
  --accent: #d13d00;
  --accent-dark: #a33000;
  --rule: #ddd8d2;
  --bubble: #fff5f5;
  --max: 68rem;
  --body-font: Verdana, Geneva, Arial, Helvetica, sans-serif;
  --head-font: "Trebuchet MS", Geneva, Arial, Helvetica, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 100%;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Layout ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--paper);
  padding: 0.6em 1em;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-branding { flex: 1 1 16rem; }
.site-branding a { display: inline-block; }
.site-branding img { width: 240px; height: 75px; }
.site-description {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Navigation ---------- */

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-family: var(--head-font);
  font-size: 0.95rem;
}

.site-nav li { position: relative; }

.site-nav a {
  display: block;
  padding: 0.35rem 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus { color: var(--accent); border-bottom-color: var(--accent); }

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

.site-nav ul ul a { color: var(--ink-soft); }

@media (min-width: 44em) {
  .site-nav ul ul {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 14rem;
    padding: 0.4rem 0;
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.12s ease-in-out;
    z-index: 5;
  }
  .site-nav li:hover > ul,
  .site-nav li:focus-within > ul { visibility: visible; opacity: 1; }
  .site-nav ul ul a { padding: 0.35rem 1rem; border-bottom: 0; }
  .site-nav ul ul a:hover,
  .site-nav ul ul a:focus { background: var(--bubble); }
}

@media (max-width: 43.99em) {
  .site-nav > ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav ul ul { padding-left: 1.25rem; font-size: 0.9rem; }
}

/* ---------- Innehåll ---------- */

.site-main {
  background: var(--paper);
  margin: 1.5rem auto;
  max-width: var(--max);
  padding: 2rem 1.25rem 2.5rem;
}

@media (min-width: 44em) {
  .site-main { padding: 2.5rem 3rem 3rem; }
}

h1, h2, h3, h4 { font-family: var(--head-font); line-height: 1.25; }

h1 {
  font-size: 1.9rem;
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }

.h1_small {
  display: block;
  font-size: 0.62em;
  font-weight: normal;
  color: var(--ink-soft);
  margin-top: 0.3em;
}

.h3 {
  display: inline-block;
  font-family: var(--head-font);
  font-size: 1.05rem;
  font-weight: bold;
}

p { margin: 0 0 1rem; }

/* ---------- Rutnät (samma klassnamn som tidigare innehåll) ---------- */

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.row > * { grid-column: span 12; }

@media (min-width: 44em) {
  .col-md-3 { grid-column: span 3; }
  .col-md-4 { grid-column: span 4; }
  .col-md-5 { grid-column: span 5; }
  .col-md-6 { grid-column: span 6; }
  .col-md-7 { grid-column: span 7; }
  .col-md-8 { grid-column: span 8; }
  .col-md-9 { grid-column: span 9; }
  .col-md-12 { grid-column: span 12; }
}

.align-center { text-align: center; }
.align-right { text-align: right; }
.align-left { text-align: left; }

/* ---------- Typografiska detaljer från gamla sajten ---------- */

.smallcaps { font-size: 120%; font-variant: small-caps; }
.versaler { text-transform: uppercase; }
.small_text { font-size: 0.7rem; line-height: 1.5; }
.mer_info { color: var(--accent); }

.caption {
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
  margin-top: 0.5rem;
  max-width: 150px;
}

.closelist {
  list-style-type: square;
  margin: 0.2rem 0 1rem;
  padding-left: 1.4rem;
}
.closelist li { margin-bottom: 0.2rem; }

.chapterlist {
  font-size: 0.9rem;
  font-weight: bold;
  padding-left: 1.4rem;
}
.chapterlist > li { margin-bottom: 1rem; }

.chapterlist_sub {
  font-size: 0.8rem;
  font-weight: normal;
  list-style-type: square;
  margin: 0.3rem 0 1rem;
  padding-left: 1.25rem;
}

.framed { border: 1px solid #ccc; }

.lead { font-weight: bold; font-size: 1.05rem; }

/* ---------- Citatbubblor ---------- */

.speech-bubble {
  position: relative;
  background: var(--bubble);
  border-radius: 1.3em;
  padding: 1.15rem 1.25rem;
  margin-bottom: 2.2rem;
}

.speech-bubble p:last-of-type { margin-bottom: 0.5rem; }

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-top-color: var(--bubble);
  border-bottom: 0;
  border-left: 0;
  margin-left: -10px;
}

.asikt_intervjuad_info { text-align: right; font-size: 0.85rem; }
.asikt_namn { font-style: italic; }
.asikt_tidning { font-size: 0.72rem; }

/* ---------- Formulär ---------- */

.form { max-width: 34rem; margin-top: 1rem; }

.form p { margin-bottom: 1.1rem; }

.form label {
  display: block;
  font-family: var(--head-font);
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9b2ab;
  border-radius: 3px;
}

.form textarea { min-height: 10rem; resize: vertical; }

.form input:focus, .form textarea:focus { border-color: var(--accent); }

.hint { font-size: 0.8rem; color: var(--ink-soft); font-weight: normal; }

/* Honungsfälla: göms för människor, lämnas tom av dem. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin-bottom: 1.2rem; }

button[type="submit"] {
  font-family: var(--head-font);
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 3px;
  padding: 0.7rem 1.8rem;
  cursor: pointer;
}

button[type="submit"]:hover,
button[type="submit"]:focus { background: var(--accent-dark); }

.facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bubble);
  border-radius: 6px;
}
.facts li { margin-bottom: 0.2rem; }
.facts li:last-child { margin-bottom: 0; }

.map {
  border: 0;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  height: auto;
}

/* ---------- Sidfot ---------- */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
}

.site-footer a { color: var(--ink-soft); }
.site-footer a:hover, .site-footer a:focus { color: var(--accent); }

.site-footer p { margin: 0 0 0.2rem; }

@media print {
  .site-nav, .site-footer { display: none; }
  body { background: #fff; }
  .site-main { margin: 0; padding: 0; }
}
