@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ODINSON — shared design tokens and essential resets */
:root {
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --bg: #faf9f6;
  --border: #e0ddd6;
  --display: 'Playfair Display', Georgia, serif;
  --reading: 'Source Serif 4', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.125rem/1.7 var(--reading); }
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 1rem; padding: .7rem 1rem; background: var(--text); color: var(--bg); z-index: 10; }
.skip-link:focus { top: 1rem; }
.category, .article-kicker { font-size: .83rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.excerpt { color: var(--muted); }

/* Site header and navigation */
.site-header { max-width: 1280px; margin: 0 auto; padding: 1rem 2rem 0; border-bottom: 1px solid var(--border); }
.site-header .header-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-bottom: .5rem; }
.site-header .header-left, .site-header .header-right { display: flex; flex-direction: column; font-size: .7rem; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.site-header .header-right { align-items: flex-end; text-align: right; }
.site-header .header-center { text-align: center; }
.site-header .logo { font-family: var(--display); font-size: clamp(3rem,6vw,5.3rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.08; margin: 0; }
.site-header .logo a { text-decoration: none; }
.site-header .tagline { margin: .2rem 0 0; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.8rem; margin-top: .5rem; padding: .8rem 0; border-top: 1px solid var(--border); }
.site-header nav a { font-size: .9rem; border-bottom: 2px solid transparent; padding-bottom: .3rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-bottom-color: var(--text); text-decoration: none; }
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 2rem 1rem 3rem; }
.site-footer .footer-inner { max-width: 950px; margin: 0 auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.5rem; font-size: .9rem; }
.site-footer .footer-inner span { color: var(--muted); }

/* Homepage — no selectors here target article or archive pages */
.front-hero { max-width: 1280px; margin: 2rem auto 3rem; padding: 0 2rem; display: grid; grid-template-columns: minmax(0,1.7fr) minmax(260px,1fr); align-items: start; gap: 3rem; }
.front-hero .hero-left img { width: 100%; height: auto; display: block; margin-bottom: 1rem; }
.front-hero .hero-left h1 { font-family: var(--display); font-size: clamp(2rem,3vw,2.8rem); line-height: 1.1; margin: .5rem 0 1rem; }
.front-hero .hero-left .excerpt { font-size: 1.1rem; }
.front-hero .hero-right { min-width: 0; }
.front-hero .side-links { display: flex; flex-direction: row; justify-content: flex-end; gap: 1rem; margin-bottom: 2rem; }
.front-hero .side-links a { display: block; flex: 0 1 145px; text-align: center; font-size: .85rem; letter-spacing: .05em; }
.front-hero .side-links img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; display: block; margin-bottom: .35rem; }
.front-hero .side-item { display: flex; gap: 1rem; align-items: start; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.front-hero .side-item:last-child { border: 0; }
.front-hero .side-item img { width: 105px; height: 86px; max-width: none; flex-shrink: 0; object-fit: cover; }
.front-hero .side-item h2 { font-size: 1.07rem; line-height: 1.3; margin: .2rem 0 0; }
.front-grid { max-width: 1280px; margin: 0 auto 3rem; padding: 0 2rem; }
.front-grid > h2 { font-family: var(--display); font-size: 1.6rem; padding-bottom: .5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.front-grid .grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.5rem; }
.front-grid .grid article { min-width: 0; }
.front-grid .grid img { width: 100%; height: 180px; object-fit: cover; display: block; margin-bottom: .75rem; }
.front-grid .grid h3 { font: 600 1.3rem/1.25 var(--display); }
.front-grid .grid .excerpt { font-size: .95rem; }

/* About */
.om-layout { display: grid; grid-template-columns: minmax(0,1fr) 180px; gap: 4rem; max-width: 1120px; margin: 2rem auto; padding: 0 2rem; }
.om-layout .om-text h1 { font: 700 2.3rem/1.2 var(--display); margin-bottom: 1.2rem; }
.om-layout .om-text p { margin-bottom: 1.2rem; }
.om-layout .om-side-links { display: flex; flex-direction: column; align-items: flex-end; gap: 1.2rem; }
.om-layout .om-side-links a { width: 160px; text-align: center; font-size: .85rem; letter-spacing: .05em; }
.om-layout .om-side-links img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; margin-bottom: .3rem; }

/* Media mentions */
.omtale-page { max-width: 1180px; margin: 2.5rem auto 4rem; padding: 0 2rem; }
.omtale-page > h1 { text-align: center; font: 700 clamp(2rem,4vw,3rem)/1.2 var(--display); margin-bottom: .4rem; }
.omtale-page > p { text-align: center; color: var(--muted); }
.omtale-page .omtale-year { text-align: center; font: 700 1.8rem/1.3 var(--display); margin: 3rem 0 1.3rem; }
.omtale-page .omtale-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.6rem; margin: 0 auto 2rem; }
.omtale-page .omtale { min-width: 0; }
.omtale-page .omtale img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: .5rem; }
.omtale-page .omtale .meta { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .3rem; }
.omtale-page .omtale h3 { font: 600 1.08rem/1.3 var(--display); margin: 0; }

/* Speaker references — isolated component; legacy images stay visible until transcribed */
.foredrag-page { max-width: 1100px; margin: 2.5rem auto 4rem; padding: 0 2rem; }
.foredrag-page .foredrag-page__intro { text-align: center; }
.foredrag-page .foredrag-page__intro h1 { font: 700 clamp(2.1rem,4vw,3.1rem)/1.2 var(--display); margin-bottom: .5rem; }
.foredrag-page .foredrag-page__intro p { margin: 0 0 .3rem; }
.foredrag-page .foredrag-references > h2 { font: 700 1.6rem/1.3 var(--display); margin: 3.3rem 0 1.5rem; text-align: center; }
.foredrag-page .foredrag-references__list { display: grid; gap: 2rem; }
.foredrag-page .foredrag-reference-original { max-width: 830px; margin: 0 auto; width: 100%; }
.foredrag-page .foredrag-reference-original img { display: block; width: 100%; height: auto; }
.foredrag-page .foredrag-reference { width: 100%; max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: minmax(195px, 230px) minmax(0,1fr); gap: clamp(1.4rem,3vw,2.4rem); align-items: center; padding: clamp(1.25rem,2.5vw,2rem); background: #f7f5f0; border: 1px solid var(--border); }
.foredrag-page .foredrag-reference__person { text-align: center; min-width: 0; }
.foredrag-page .foredrag-reference__portrait { display: block; width: 180px; height: 180px; max-width: 100%; margin: 0 auto 1rem; object-fit: cover; border-radius: 2px; filter: grayscale(100%); mix-blend-mode: multiply; }
.foredrag-page .foredrag-reference__name { font: 700 1.35rem/1.25 var(--display); margin: 0 0 .35rem; }
.foredrag-page .foredrag-reference__role { font-size: .91rem; line-height: 1.4; font-style: italic; color: var(--muted); margin: 0; }
.foredrag-page .foredrag-reference__company { font-size: .94rem; line-height: 1.4; margin: .25rem 0 0; }
.foredrag-page .foredrag-reference__logo { display: block; width: auto; height: auto; max-width: 130px; max-height: 58px; object-fit: contain; margin: 1.2rem auto 0; mix-blend-mode: multiply; }
.foredrag-page .foredrag-reference__quote { border-left: 1px solid #aba79e; padding: .5rem 0 .5rem clamp(1.2rem,2.5vw,1.8rem); margin: 0; font: 400 clamp(1.05rem,1.35vw,1.18rem)/1.55 var(--reading); text-align: left; overflow-wrap: break-word; }
.foredrag-page .foredrag-reference__quote p { margin: 0; white-space: pre-line; }
@media (max-width: 650px) {
  .foredrag-page .foredrag-reference { grid-template-columns: 1fr; gap: 1.2rem; }
  .foredrag-page .foredrag-reference__portrait { width: 145px; height: 145px; }
  .foredrag-page .foredrag-reference__quote { border-left: 0; border-top: 1px solid #aba79e; padding: 1.2rem 0 0; font-size: 1.05rem; }
}

/* Category and complete archive */
.category-page, .archive-page { max-width: 980px; margin: 3rem auto 5rem; padding: 0 2rem; }
.category-page > h1, .archive-page > h1 { font: 700 clamp(2.2rem,4vw,3.3rem)/1.2 var(--display); text-align: center; margin: .6rem 0 2rem; }
.category-page > .category, .archive-page > .category { text-align: center; }
.category-page__articles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.5rem; }
.category-page__articles article, .archive-page article { padding: 1.2rem 0; border-top: 1px solid var(--border); }
.category-page__articles img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 1rem; }
.category-page__articles h2, .archive-page article h2 { font: 600 1.4rem/1.3 var(--display); margin-bottom: .6rem; }
.category-page__articles article p, .archive-page article p { font-size: 1rem; color: var(--muted); }

/* Shared article composition */
.article { max-width: 850px; margin: 3rem auto 5rem; padding: 0 2rem; }
.article .article-header { max-width: 790px; margin: 0 auto 2rem; text-align: center; }
.article .article-header h1 { font: 700 clamp(2.2rem,4vw,3.5rem)/1.13 var(--display); margin: .7rem 0 1.2rem; overflow-wrap: break-word; }
.article .article-kicker { margin: 0 0 .7rem; }
.article .article-lead { font: 400 clamp(1.15rem,2vw,1.35rem)/1.5 var(--reading); color: var(--muted); margin: 0 auto 1rem; max-width: 710px; }
.article .article-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; font-size: .89rem; color: var(--muted); }
.article .article-original { font-size: .84rem; color: var(--muted); margin: .5rem 0 0; }
.article .article-original a { text-decoration: underline; text-underline-offset: .15em; }
.article .article-hero { margin: 2.1rem auto 2.6rem; }
.article .article-hero img { display: block; width: 100%; height: auto; }
.article .article-hero figcaption { padding: .6rem 0 0; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.article .article-body { max-width: 710px; margin: 0 auto; overflow-wrap: break-word; }
.article .article-body p, .article .article-body ul, .article .article-body ol { margin: 0 0 1.45rem; line-height: 1.8; }
.article .article-body ul, .article .article-body ol { padding-left: 1.5rem; }
.article .article-body h2, .article .article-body h3 { font-family: var(--display); line-height: 1.32; margin: 2.4rem 0 1rem; }
.article .article-body h2 { font-size: 1.62rem; }
.article .article-body h3 { font-size: 1.28rem; }
.article .article-body a, .article .article-sources a { text-decoration: underline; text-underline-offset: .14em; }
.article .article-body blockquote { border-left: 3px solid var(--text); padding: .25rem 0 .25rem 1.4rem; margin: 2rem 0; font-style: italic; font-size: 1.2rem; }
.article .article-body img { display: block; width: auto; max-width: 100%; height: auto; margin: 2rem auto; }
.article .article-body iframe { max-width: 100%; }
.article .article-body pre { overflow-x: auto; padding: 1rem; background: #f0eee9; font-size: .9rem; }
.article .article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .93rem; }
.article .article-body th, .article .article-body td { border-bottom: 1px solid var(--border); padding: .45rem .65rem; text-align: left; }
.article .article-sources { max-width: 710px; margin: 3.5rem auto 0; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: .94rem; }
.article .article-sources h2, .article .article-related h2, .article .article-sidebar h2 { font: 600 1.15rem/1.3 var(--display); }
.article .article-sources ol { padding-left: 1.3rem; }
.article .article-sources li { margin-bottom: 1rem; }
.article .article-sources li p { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; }
.article .article-related { border-top: 1px solid var(--border); margin: 3rem auto 0; padding-top: 1.2rem; max-width: 710px; }
.article .article-related ul { list-style: none; margin: 0; padding: 0; }
.article .article-related li { border-bottom: 1px solid var(--border); padding: .5rem 0; font-size: 1rem; line-height: 1.4; }

/* Four distinct article types */
.article--standard { max-width: 830px; }
.article--journal, .article--investigation { max-width: 1180px; }
.article--journal .article-hero, .article--investigation .article-hero { max-width: 900px; }
.article--journal .article-columns, .article--investigation .article-columns { display: grid; grid-template-columns: minmax(0,730px) minmax(190px,250px); justify-content: center; align-items: start; gap: 3.5rem; }
.article--journal .article-content, .article--investigation .article-content { min-width: 0; }
.article--journal .article-body, .article--investigation .article-body { max-width: none; }
.article--journal .article-sidebar, .article--investigation .article-sidebar { border-left: 1px solid var(--border); padding-left: 1.4rem; color: var(--muted); font-size: .9rem; }
.article--journal .article-sidebar .article-related, .article--investigation .article-sidebar .article-related { border: 0; padding: 0; margin: 0; }
.article--journal .article-sidebar__note { margin: 0 0 2rem; }
.article--investigation .article-sources { background: #f3f1eb; padding: 1.2rem; border-top: 2px solid var(--text); }
.article--monumental { max-width: 1140px; }
.article--monumental .article-header h1 { font-size: clamp(2.6rem,5vw,4.5rem); }
.article--monumental .article-hero { max-width: 1080px; }
.article--monumental .article-body { max-width: 745px; font-size: 1.2rem; }
.article--monumental .article-body blockquote { font: italic 1.5rem/1.6 var(--display); text-align: center; border: 0; padding: 1.2rem; }

/* Tablets and phones */
@media (max-width: 900px) {
  .front-hero { grid-template-columns: minmax(0,1fr) 260px; gap: 1.5rem; }
  .front-grid .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .omtale-page .omtale-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article--journal .article-columns, .article--investigation .article-columns { grid-template-columns: 1fr; gap: 1.8rem; }
  .article--journal .article-sidebar, .article--investigation .article-sidebar { border-left: 0; border-top: 1px solid var(--border); padding: 1.2rem 0 0; }
}
@media (max-width: 650px) {
  body { font-size: 1.06rem; }
  .site-header { padding: 1rem 1rem 0; }
  .site-header .header-top { grid-template-columns: 1fr; }
  .site-header .header-left, .site-header .header-right { display: none; }
  .site-header .logo { font-size: clamp(3rem,12vw,4.3rem); }
  .site-header nav { gap: .6rem 1rem; }
  .front-hero { grid-template-columns: 1fr; padding: 0 1rem; }
  .front-hero .hero-left h1 { font-size: 2.1rem; }
  .front-hero .side-links { justify-content: center; }
  .front-grid { padding: 0 1rem; }
  .front-grid .grid { grid-template-columns: 1fr; }
  .om-layout { grid-template-columns: 1fr; padding: 0 1rem; gap: 2rem; }
  .om-layout .om-side-links { flex-direction: row; align-items: flex-start; justify-content: center; }
  .om-layout .om-side-links a { width: min(45%,160px); }
  .omtale-page { padding: 0 1rem; }
  .omtale-page .omtale-grid { gap: 1rem; }
  .omtale-page .omtale h3 { font-size: .96rem; }
  .foredrag-page, .category-page, .archive-page { padding: 0 1rem; }
  .category-page__articles { grid-template-columns: 1fr; }
  .article { margin-top: 2rem; padding: 0 1.1rem; }
  .article .article-header h1 { font-size: 2.25rem; }
  .article .article-byline { gap: .2rem .4rem; }
  .article--monumental .article-body { font-size: 1.07rem; }
}
