/* ==========================================================================
   TICCIH 2025 Kiruna — Stylesheet
   System fonts only (zero font-request overhead for LCP).
   Minimal JS, semantic HTML, mobile-first.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1a1a1a;
  background: #fafaf7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  color: #0f2847;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-top: 2em; }
h3 { font-size: 1.25rem; margin-top: 1.8em; }

p { margin: 0 0 1.1em; }

a {
  color: #8c4a1e;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { color: #0f2847; }

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: #0f2847; color: #fff;
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { top: 0; }

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header ----------------------------------------------------------- */

.site-header {
  background: #0f2847;
  color: #fafaf7;
  border-bottom: 3px solid #8c4a1e;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
}

.site-logo {
  color: #fafaf7;
  text-decoration: none;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.site-logo strong { display: block; font-size: 1.25rem; }
.site-logo span { font-size: 0.8rem; color: #d3c7a8; letter-spacing: 0.14em; text-transform: uppercase; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 0; padding: 0;
}
.site-nav a {
  color: #fafaf7;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: #d3c7a8;
  color: #fff;
}

/* --- Hero ------------------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, #0f2847 0%, #1e3a5f 100%);
  color: #fafaf7;
  padding: 4rem 0 4.5rem;
  border-bottom: 4px solid #8c4a1e;
}
.hero h1 { color: #fff; max-width: 28ch; }
.hero .lead {
  font-size: 1.2rem;
  max-width: 60ch;
  color: #d3c7a8;
  margin-top: 0.5em;
}
.hero .meta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(211,199,168,0.3);
  border-radius: 4px;
  color: #d3c7a8;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Main content ----------------------------------------------------- */

main { padding: 3rem 0 4rem; }

.lede {
  font-size: 1.15rem;
  color: #3a3a3a;
  max-width: 70ch;
  margin-bottom: 2rem;
}

.content-block {
  max-width: 72ch;
}

.content-block ul, .content-block ol {
  margin: 0 0 1.2em 1.3em;
  padding: 0;
}
.content-block li { margin-bottom: 0.45em; }

/* Breadcrumbs */
.breadcrumb {
  font-size: 0.88rem;
  color: #5a5a5a;
  margin-bottom: 1.5rem;
}
.breadcrumb ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: #9a9a9a; }
.breadcrumb a { color: #5a5a5a; }

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.card {
  background: #fff;
  border: 1px solid #e5e1d5;
  border-radius: 4px;
  padding: 1.5rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(15,40,71,0.08);
  transform: translateY(-2px);
}
.card h3 { margin-top: 0; font-size: 1.1rem; }
.card p { color: #4a4a4a; font-size: 0.95rem; margin-bottom: 0.8em; }
.card a.card-link {
  color: #8c4a1e;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.card a.card-link::after { content: " →"; }

/* Info boxes */
.info-box {
  background: #fff;
  border-left: 4px solid #8c4a1e;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 2px;
}
.info-box h3 { margin-top: 0; font-size: 1.05rem; color: #0f2847; }

/* Partner strip */
.partners {
  background: #fff;
  padding: 2.5rem 0;
  border-top: 1px solid #e5e1d5;
  border-bottom: 1px solid #e5e1d5;
}
.partners h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #5a5a5a;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.5rem;
}
.partners ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2rem 3rem;
}
.partners li {
  color: #0f2847;
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Tables */
.content-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.content-block th, .content-block td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e5e1d5;
}
.content-block th {
  background: #f4f0e4;
  color: #0f2847;
  font-weight: 600;
}

/* Article meta (author, date) */
.article-meta {
  font-size: 0.9rem;
  color: #5a5a5a;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e1d5;
}
.article-meta strong { color: #0f2847; font-weight: 600; }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid #e5e1d5;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f2847;
  font-family: Georgia, serif;
  font-size: 1.05rem;
}
.faq details[open] summary { margin-bottom: 0.75rem; }

/* --- Footer ----------------------------------------------------------- */

.site-footer {
  background: #0f2847;
  color: #d3c7a8;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.92rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.site-footer h4 {
  color: #fafaf7;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: inherit;
  font-weight: 600;
  margin: 0 0 0.8rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: #d3c7a8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal {
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(211,199,168,0.2);
  font-size: 0.82rem;
  color: #9a9685;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer .legal a { color: #b0aa97; }

/* --- Responsive ------------------------------------------------------- */

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav ul { gap: 1rem; }
  .hero { padding: 3rem 0 3.5rem; }
  main { padding: 2rem 0 3rem; }
}

/* Print-friendly */
@media print {
  .site-header, .site-footer, .partners { background: #fff; color: #000; }
  a { color: #000; }
}
