/* The Swiss Press - Shared Stylesheet */
:root {
  --orange-primary: #C45C26;
  --orange-dark: #9A4520;
  --orange-light: #E8A87C;
  --ink: #1A1A1A;
  --ink-muted: #4A4A4A;
  --paper: #FAF8F5;
  --paper-alt: #F0EBE3;
  --rule: #D4CFC7;
  --white: #FFFFFF;
  --max-width: 1200px;
  --font-serif: "Georgia", "Times New Roman", Times, serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

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

a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--orange-primary);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange-primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* Masthead */
.masthead {
  background: var(--white);
  border-bottom: 4px double var(--orange-primary);
  padding: 1rem 1.5rem 0.75rem;
  text-align: center;
}

.masthead-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.masthead-meta {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.masthead-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.masthead-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.masthead-title {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--orange-primary);
  overflow-wrap: break-word;
}

.masthead-brand > div {
  min-width: 0;
}

.masthead-tagline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0.35rem 0 0;
  font-style: italic;
}

/* Navigation */
.main-nav {
  background: var(--orange-primary);
  border-top: 1px solid var(--orange-dark);
  border-bottom: 1px solid var(--orange-dark);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: var(--max-width);
  margin-inline: auto;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--orange-dark);
  color: var(--white);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 2rem 0;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .main-nav a {
    padding: 0.55rem 0.7rem;
  }

  .masthead-logo {
    width: 56px;
    height: 56px;
  }

  .hero-article h2,
  .blog-post-title,
  .article-header h1 {
    overflow-wrap: anywhere;
  }
}

/* Headlines */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange-primary);
  border-bottom: 2px solid var(--orange-primary);
  padding-bottom: 0.35rem;
  margin: 0 0 1.25rem;
}

.hero-article {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.hero-article h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin: 0.75rem 0;
}

.hero-article h2 a {
  color: var(--ink);
  text-decoration: none;
}

.hero-article h2 a:hover {
  color: var(--orange-primary);
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.article-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-meta span + span::before {
  content: " | ";
}

.lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 1rem 0;
}

/* Article cards */
.article-list {
  display: grid;
  gap: 1.5rem;
}

.article-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 600px) {
  .article-card {
    grid-template-columns: 1fr;
  }
}

.article-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.article-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--orange-primary);
}

.article-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Sidebar */
.sidebar section {
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sidebar h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-primary);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

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

.sidebar li {
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.9rem;
}

.sidebar li:last-child {
  border-bottom: none;
}

/* Full article page */
.article-header {
  padding: 2rem 0 1rem;
  border-bottom: 3px solid var(--orange-primary);
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

.article-body {
  max-width: 720px;
}

.article-body p {
  margin: 0 0 1.25rem;
}

.article-body h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--orange-dark);
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--orange-primary);
  background: var(--paper-alt);
  font-style: italic;
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figcaption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--rule);
}

.related-articles h2 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-primary);
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.related-articles li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
}

/* Static pages */
.page-header {
  padding: 2rem 0 1rem;
  border-bottom: 2px solid var(--orange-primary);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  color: var(--orange-primary);
}

.page-content {
  max-width: 720px;
  padding-bottom: 3rem;
}

.page-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--orange-dark);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.site-footer h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-light);
  margin: 0 0 0.75rem;
}

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

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--orange-light);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #999;
  text-align: center;
}

/* CTA */
.cta-box {
  background: var(--orange-primary);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box a {
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.cta-box p {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

/* Blogger-style blog feed */
.breadcrumbs {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: 1.25rem 0 0;
  letter-spacing: 0.02em;
}

.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--orange-primary);
  text-decoration: underline;
}

.blog-feed {
  margin-bottom: 2rem;
}

.day-group {
  margin-bottom: 0.5rem;
}

.blog-date-header {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange-primary);
  border-bottom: 1px dotted var(--rule);
  padding-bottom: 0.4rem;
  margin: 2rem 0 1rem;
}

.blog-post {
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.85rem 1.15rem;
  align-items: start;
}

.blog-thumb-link {
  display: block;
}

.blog-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.blog-post-copy {
  min-width: 0;
}

@media (max-width: 700px) {
  .blog-post {
    grid-template-columns: 1fr;
  }
}

article > figure {
  margin: 0 0 2rem;
}

article > figure figcaption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post-title {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

.blog-post-title a {
  color: var(--ink);
  text-decoration: none;
}

.blog-post-title a:hover {
  color: var(--orange-primary);
}

.blog-excerpt {
  margin: 0.6rem 0 0.85rem;
  color: var(--ink-muted);
}

.read-more {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid var(--orange-primary);
}

.blog-post-footer {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.85rem;
}

.post-labels {
  margin-top: 0.65rem;
}

.post-labels a,
.label-cloud a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--rule);
  background: var(--white);
  padding: 0.18rem 0.5rem;
  margin: 0.15rem 0.3rem 0.15rem 0;
  text-decoration: none;
  color: var(--ink-muted);
}

.post-labels a:hover,
.label-cloud a:hover {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

.blog-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-top: 1px solid var(--rule);
}

.archive-month-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-month-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.9rem;
}

.archive-month-list li:last-child {
  border-bottom: none;
}

.archive-count {
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
}

.archive-year {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-dark);
  margin: 1.25rem 0 0.4rem;
}

.month-index {
  margin-bottom: 2.5rem;
}

.posted-by {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.hero-article .read-more {
  display: inline-block;
  margin-top: 0.35rem;
}

.masthead-meta {
  min-height: 1.1em;
}
