/* ================================================================
   Åpent brev – Styles
   Clean, neutral, institutional tone. Mobile-first.
   ================================================================ */

/* --- Reset & base ------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout ------------------------------------------------------ */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main.container {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* --- Draft banner ------------------------------------------------ */
.draft-banner {
  background: #fff8e1;
  color: #6d5a00;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid #f0e4b0;
}

/* --- Header ------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid #e8e8e8;
  padding: 1rem 0;
}

.header-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}

/* --- Letter ------------------------------------------------------ */
.letter h1 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #111;
}

.intro {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.letter h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111;
}

.letter p {
  margin-bottom: 1rem;
}

.letter ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.letter ol li {
  margin-bottom: 0.4rem;
}

.closing {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem !important;
  font-style: italic;
}

.signatory {
  font-weight: 600;
}

/* --- Divider ----------------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 2.5rem 0;
}

/* --- Sign section ------------------------------------------------ */
.sign-section {
  text-align: center;
  padding: 1rem 0;
}

.btn-sign {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-sign:hover {
  background: #333;
}

.btn-sign:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 3px;
}

.sign-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #888;
}

/* --- FAQ --------------------------------------------------------- */
.faq h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111;
}

.faq details {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.faq details:first-of-type {
  border-top: 1px solid #eee;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  font-size: 1rem;
  font-weight: 400;
  color: #888;
  border: 1px solid #ddd;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq details[open] summary::before {
  content: "−";
}

/* Remove default marker in WebKit / Blink */
.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin-top: 0.75rem;
  color: #444;
  padding-left: 1.8rem;
}

/* --- Footer ------------------------------------------------------ */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

.site-footer a {
  color: #555;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: #111;
}

/* --- Responsive -------------------------------------------------- */
@media (max-width: 600px) {
  .letter h1 {
    font-size: 1.5rem;
  }

  .letter h2,
  .faq h2 {
    font-size: 1.15rem;
  }

  main.container {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .btn-sign {
    width: 100%;
    text-align: center;
  }
}
