@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Instrument+Serif:ital@0;1&family=Italiana&display=swap');

:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --text: #111111;
    --muted: #777777;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: #cccccc;
    --face-bg: linear-gradient(145deg, #ffffff, #f4f4f4);
    --face-border: #000000;
    --hover-overlay: rgba(255, 255, 255, 0.05);
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
    font-family: "Instrument Serif", serif;
}


.header {
  background: var(--header-bg); /* Prevents content behind it from showing through */
  text-align: center;
  color: var(--text);
  margin-bottom: 0;
  width: 100%;
  font-size: 30px;
  font-family: "Instrument Serif", serif;
  font-weight: 500;
}

.header h1 {
  margin: 0;
  padding-bottom: 0.2rem;
}

/* Style the top navigation bar */

.navbar {
  background: var(--header-bg); /* Prevents content behind it from showing through */
  border-bottom: 1px solid var(--card-border);
  top: 0;  
  z-index: 1000; /* Keeps header on top of scrolling content */
  position: sticky;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.2rem;
}


/* Style the navigation bar links */
.navbar a {
  font-family: "Instrument Serif", serif;
  font-size: 1rem;
  color: var(--text);
  text-align: center;
  position: relative;
  text-decoration: none;
  margin: 0;
  padding: 0.2rem 0.4rem;
}

.navbar a::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--text);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.navbar a:hover::before {
  transform: scaleX(1);
}

.main {
    font-family: "Instrument Serif", serif;
    font-size: 20px;
    margin: 0;
    text-align: left;
}

.magazine-shell {
    max-width: 80%;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.magazine-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    margin: 0 0 0.35rem;
    color: var(--muted);
}

.magazine-title {
    font-size: 2.2rem;
    margin: 0 0 1.5rem;
    font-weight: 600;
}

.article-title {
    font-size: 1.6rem;
    margin: 0.8rem 0 0.35rem;
    font-weight: 600;
}

.article-summary {
  font-size: clamp(1rem, 1rem, 3rem);
    margin: 0;
    color: var(--muted);
}

.featured-hero {
    border: 1px solid black;
    min-width: 826px;
    margin: 0 0 1.5rem;
}

.featured-hero-link {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text);
}

.featured-hero-link .featured-hero-title:hover {
  text-decoration-line: underline;
  cursor: pointer;
}

.featured-hero-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border: 1px black;
}

.featured-hero-content {
    padding: 0.25rem 0;
}

.featured-hero-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1rem;
    color: var(--muted);
    margin: 0 0 0.4rem;
}

.featured-hero-title {
    font-size: 3rem;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.featured-hero-summary {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0;
    color: var(--muted);
}


.subtitle {
    font-family: "Instrument Serif", serif;
    font-size: 50px;
    margin: 0;
}

.clickable-box {
  border: 1px solid black;
  display: block;
  width: 100%;
  height: 450px;
  margin: 0 auto;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  box-sizing: border-box;
  background: var(--card-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-box .article-title:hover {
  text-decoration-line: underline;
  cursor: pointer;
}

.image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
}

.highlights-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: start;
    margin: 0;
}

@media (max-width: 700px) {
    .featured-hero-link {
        grid-template-columns: 1fr;
    }

    .featured-hero-image {
        height: 240px;
    }
}

