:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #252820;
  --muted: #62655c;
  --accent: #657451;
  --line: #e2e0d7;
  --panel: #eeede5;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

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

header,
main,
footer {
  width: min(100% - 48px, 1040px);
  margin-inline: auto;
  min-width: 0;
}

/* Header */

header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.035em;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 24px;
}

header nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  transition: color .2s ease;
}

header nav a:hover,
header nav a[aria-current="page"] {
  color: var(--ink);
}

header nav a[aria-current="page"] {
  font-weight: 650;
}

header nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

header nav a:hover::after,
header nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Main layout */

main {
  padding: 100px 0 110px;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -.075em;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.intro {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.65;
}

article {
  max-width: 720px;
  min-width: 0;
  margin-top: 32px;
}

article h2,
article h3 {
  margin-top: 2em;
  line-height: 1.3;
  letter-spacing: -.035em;
}

article img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Homepage cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 54px;
}

.cards a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefa;
  transition: border-color .2s ease, transform .2s ease;
}

.cards a:hover {
  border-color: #a9b09b;
  transform: translateY(-2px);
}

.cards h2 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -.035em;
}

.cards p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-symbol {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.06em;
}

.card-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

/* Featured section */

.featured {
  margin-top: 46px;
}

.featured-link {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 28px;
  border-radius: 12px;
  background: var(--panel);
  transition: background .2s ease;
}

.featured-link:hover {
  background: #e5e5d9;
}

.featured-icon {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #d5d7c9;
  border-radius: 50%;
  color: var(--accent);
  font-size: 40px;
}

.featured-copy {
  flex: 1;
  min-width: 0;
}

.card-label {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
}

.featured h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.04em;
}

.featured-copy > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.arrow {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 25px;
}

/* Article pages */

.article-main {
  max-width: 860px;
}

.article-main .eyebrow a {
  color: inherit;
}

.article {
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin: 48px auto 0;
}

.article h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.article-description {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.article-date {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.article-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 38px;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.article-content h2 {
  margin: 42px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.article-content h3 {
  margin: 32px 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

.article-content p {
  margin: 0 0 22px;
}

.article-content a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px;
  padding-left: 25px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.article-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 13px;
  line-height: 1.6;
}

.article-content code {
  font-size: .9em;
  overflow-wrap: anywhere;
}

.article-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: 8px;
}

.article-content figure {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 34px 0;
}

.article-content figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 8px;
}

.article-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.article-content figure + h2 {
  margin-top: 42px;
}

.article-content strong {
  color: var(--ink);
  font-weight: 650;
}

.article-content p:last-child {
  margin-top: 30px;
}

.article-content h2 + p {
  margin-top: 18px;
}

.article-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.article-bottom a {
  color: var(--accent);
}

/* Alsace photographs */

.alsace-photo,
.alsace-photo-wide,
.alsace-hero {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 2rem 0 3rem;
}

.alsace-photo img,
.alsace-photo-wide img,
.alsace-hero img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 2px;
  object-fit: contain;
}

.alsace-photo figcaption,
.alsace-hero figcaption {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.alsace-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 2rem 0 3rem;
}

/* Station profile */

.station-note {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr .6fr;
  gap: 24px;
  margin: 26px 0 54px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.station-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.station-note p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.station-note p span {
  padding: 0 3px;
  color: var(--accent);
}

/* Radio-wave motif */

.radio-motif {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  min-height: 150px;
  margin-top: 48px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--accent);
}

.radio-motif svg {
  display: block;
  width: min(100%, 680px);
  max-width: 100%;
  height: 150px;
}

.radio-motif .wave {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: .45;
}

.radio-motif .wave-center {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  opacity: .85;
}

.radio-motif .wave-dot {
  fill: var(--accent);
}

.radio-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: .5;
}

.wave-two {
  width: 120px;
  height: 120px;
  opacity: .4;
}

.wave-three {
  width: 175px;
  height: 175px;
  opacity: .3;
}

.wave-four {
  width: 235px;
  height: 235px;
  opacity: .2;
}

.radio-wave-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

/* Fix: prevent images from overflowing on mobile */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

main,
article,
.article-content,
.content,
.post-content,
.alsace-gallery {
  min-width: 0;
  max-width: 100%;
}

.article-content figure,
.alsace-photo,
.alsace-photo-wide,
.alsace-hero,
.alsace-gallery figure {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.article-content figure img,
.article-content img,
.alsace-photo img,
.alsace-photo-wide img,
.alsace-hero img,
.alsace-gallery img {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-width: 0;
  object-fit: contain;
}

@media (max-width: 650px) {
  header,
  main,
  footer {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }

  .article-content,
  .article-content figure,
  .alsace-photo,
  .alsace-photo-wide,
  .alsace-hero,
  .alsace-gallery {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}


