/* ===================================================================
   The Bishop Street Letter
   Shared stylesheet
   =================================================================== */

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

/* --- Reset & base ----------------------------------------------------- */

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fdfbf5;
  text-rendering: optimizeLegibility;
}

/* --- Typography ------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: #1a1a1a;
}

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

em, i {
  font-style: italic;
}

strong, b {
  font-weight: 600;
}

a {
  color: #7a2424;
  text-decoration: none;
  border-bottom: 1px solid #c9a8a8;
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom-color: #7a2424;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.article-column {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
}

hr.rule {
  border: 0;
  border-top: 1px solid #c9a875;
  margin: 2rem 0;
}

hr.thin {
  border: 0;
  border-top: 1px solid #e8e2d4;
  margin: 2.5rem 0;
}

/* --- Site header / masthead ------------------------------------------ */

.site-header {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid #e8e2d4;
}

.site-header .publisher-mark {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.75rem;
}

.site-header .masthead-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 3.4rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.site-header .masthead-title a {
  color: inherit;
  border-bottom: none;
}

.site-header .issue-info {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-top: 0.5rem;
}

/* compact header used on article pages */

.site-header.compact {
  padding: 2rem 0 1.5rem;
}

.site-header.compact .masthead-title {
  font-size: 1.8rem;
}

.site-header.compact .publisher-mark {
  margin-bottom: 0.4rem;
}

/* --- Issue (home page) layout ---------------------------------------- */

.issue-toc {
  padding: 3rem 0 4rem;
}

.issue-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a2424;
  margin-bottom: 0.75rem;
}

.feature-block {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid #e8e2d4;
  margin-bottom: 2rem;
}

.feature-block:last-child {
  border-bottom: none;
}

.feature-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.feature-title a {
  color: inherit;
  border-bottom: none;
}

.feature-title a:hover {
  color: #7a2424;
}

.feature-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.feature-byline {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1rem;
}

.feature-dek {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-readmore {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a2424;
  border-bottom: none;
}

.feature-readmore:hover {
  border-bottom: 1px solid #7a2424;
}

/* two-column section for shorter pieces */

.toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .toc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.toc-grid .feature-block {
  border-bottom: none;
  padding: 0;
  margin-bottom: 0;
}

.toc-grid .feature-title {
  font-size: 1.5rem;
}

/* sidebar on the home page (TP teaser, etc.) */

.home-sidebar {
  background: #f4ede0;
  border-left: 3px solid #7a2424;
  padding: 1.5rem 1.75rem;
  margin: 3rem 0;
}

.home-sidebar h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.home-sidebar p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.home-sidebar .sidebar-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* --- Editor's note / "what's changing" sidebar on home page ---------- */

.editor-block {
  background: #f4ede0;
  padding: 2.5rem 2rem;
  margin: 0 -2rem 3rem;
  border-top: 1px solid #c9a875;
  border-bottom: 1px solid #c9a875;
}

.editor-block-inner {
  max-width: 680px;
  margin: 0 auto;
}

.editor-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.editor-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a2424;
  margin-bottom: 0.5rem;
}

/* mobile masthead tightening */

@media (max-width: 600px) {
  .site-header .masthead-title {
    font-size: 2.4rem;
  }
}

/* mobile padding for article reading column and containers */

@media (max-width: 600px) {
  .article-column {
    padding: 0 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-subtitle {
    font-size: 1.1rem;
  }

  .article-body {
    font-size: 1.05rem;
  }

  .article-body h2 {
    font-size: 1.35rem;
  }

  .feature-title {
    font-size: 1.6rem;
  }

  .editor-block {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 2rem 1.25rem;
  }

  .home-sidebar {
    padding: 1.25rem 1.25rem;
  }

  .site-footer-inner {
    padding: 0 1.25rem;
  }
}

/* --- Article page layout --------------------------------------------- */

.article {
  padding: 3rem 0 4rem;
}

.article-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a2424;
  margin-bottom: 1rem;
  text-align: center;
}

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.article-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: #444;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.article-byline {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  text-align: center;
  margin-bottom: 3rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.75;
}

.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 2.75rem 0 1.25rem;
}

.article-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: #444;
  margin: -0.75rem 0 1.5rem;
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body em {
  font-style: italic;
}

.article-body blockquote {
  border-left: 3px solid #c9a875;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #333;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}

.article-body table th,
.article-body table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e8e2d4;
  vertical-align: top;
}

.article-body table th {
  font-weight: 600;
  background: #f4ede0;
  border-bottom: 2px solid #c9a875;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.4em 1.5rem;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-signoff {
  text-align: center;
  font-size: 1.5rem;
  margin: 3rem 0 2rem;
  letter-spacing: 0.3em;
}

.article-bio {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
  padding: 1.5rem 0 0;
  border-top: 1px solid #e8e2d4;
  margin-top: 3rem;
  line-height: 1.6;
}

.article-nav {
  text-align: center;
  margin: 4rem 0 2rem;
}

.article-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a2424;
  border-bottom: none;
}

.article-nav a:hover {
  border-bottom: 1px solid #7a2424;
}

/* --- Site footer ---------------------------------------------------- */

.site-footer {
  background: #f4ede0;
  border-top: 1px solid #c9a875;
  padding: 3rem 0;
  margin-top: 4rem;
}

.site-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

@media (max-width: 680px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-block h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 0.75rem;
}

.footer-block p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0.5rem;
}

.footer-block address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

/* --- Coming soon page ------------------------------------------------ */

.coming-soon {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.coming-soon .publisher-mark {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1rem;
}

.coming-soon .masthead-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  max-width: 780px;
}

@media (max-width: 600px) {
  .coming-soon .masthead-title {
    font-size: 2.6rem;
  }
}

.coming-soon .issue-info {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 3rem;
}

.coming-soon hr {
  width: 80px;
  border: 0;
  border-top: 1px solid #c9a875;
  margin: 2rem auto;
}

.coming-soon .blurb {
  max-width: 540px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin: 0 auto 2rem;
}

.coming-soon .footer-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-top: 4rem;
}

/* --- Site navigation (above content, below masthead) ----------------- */

.site-nav {
  text-align: center;
  padding: 1rem 0 1.25rem;
  border-bottom: 1px solid #e8e2d4;
  background: #fdfbf5;
}

.site-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  border-bottom: none;
  margin: 0 1.25rem;
  padding-bottom: 0.2rem;
}

.site-nav a:hover {
  color: #7a2424;
  border-bottom: 1px solid #7a2424;
}

.site-nav a.active {
  color: #7a2424;
  border-bottom: 1px solid #7a2424;
}

/* --- Publication landing (root index) -------------------------------- */

.publication-landing {
  padding: 4rem 0 4rem;
}

.landing-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a2424;
  margin-bottom: 1rem;
  text-align: center;
}

.current-issue-card {
  background: #f4ede0;
  border-top: 1px solid #c9a875;
  border-bottom: 1px solid #c9a875;
  padding: 3rem 2rem;
  text-align: center;
  margin: 0 -2rem 4rem;
}

.current-issue-card .issue-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.75rem;
}

.current-issue-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #1a1a1a;
}

.current-issue-card .issue-blurb {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #333;
}

.current-issue-card .issue-cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a2424;
  text-decoration: none;
  border: 1px solid #7a2424;
  padding: 0.85rem 1.5rem;
  display: inline-block;
}

.current-issue-card .issue-cta:hover {
  background: #7a2424;
  color: #fdfbf5;
  border-bottom: 1px solid #7a2424;
}

/* --- Notes listing --------------------------------------------------- */

.notes-intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.notes-intro h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.notes-intro p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
}

.notes-list {
  max-width: 760px;
  margin: 0 auto;
}

.note-entry {
  padding: 2rem 0;
  border-bottom: 1px solid #e8e2d4;
}

.note-entry:last-child {
  border-bottom: none;
}

.note-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a2424;
  margin-bottom: 0.6rem;
}

.note-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.note-title a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: none;
}

.note-title a:hover {
  color: #7a2424;
}

.note-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.note-dek {
  font-size: 1.02rem;
  color: #333;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.note-readmore {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a2424;
  border-bottom: none;
  text-decoration: none;
}

.note-readmore:hover {
  border-bottom: 1px solid #7a2424;
}

/* --- Individual note page (uses article styling, with date eyebrow) -- */

.note-eyebrow-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a2424;
  margin-bottom: 1rem;
  text-align: center;
}

/* --- Article images -------------------------------------------------- */

.article-image {
  margin: 2.5rem 0;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.article-image figcaption {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  color: #666;
  margin-top: 0.75rem;
  line-height: 1.5;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* full-width hero image at top of article */
.article-image.hero {
  margin: 0 -2rem 2.5rem;
}

@media (max-width: 720px) {
  .article-image.hero {
    margin: 0 0 2rem;
  }
}
