/* ============================================================
   Apple Higher Education IT Newsletter — Site Stylesheet
   styles.css
   Used by: index.html, newsletter web versions
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1d1d1f;
  background-color: #f5f5f7;
}

a { color: #0176ba; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #0176ba; outline-offset: 3px; border-radius: 2px; }

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

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  background-color: #1d1d1f;
  padding: 0;
}

.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 24px;
}

.site-header-logo {
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f7;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 1;
  min-width: 0;
}
.site-header-logo:hover { text-decoration: none; color: #ffffff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-nav li a {
  display: block;
  padding: 18px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #ababab;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.site-nav li a:hover,
.site-nav li a.active { color: #ffffff; text-decoration: none; }

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  background-color: #1d1d1f;
  margin-top: 64px;
  padding: 32px 24px;
}

.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.6;
}

.site-footer p:last-child { margin: 0; }
.site-footer a { color: #6e6e73; text-decoration: underline; }
.site-footer a:hover { color: #ababab; }

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  background-color: #1d1d1f;
  padding: 48px 24px 40px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0 auto;
  max-width: 600px;
  font-size: 16px;
  color: #ababab;
  line-height: 1.6;
}

/* ── Main Content Area ────────────────────────────────────── */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* ── Section Headings ─────────────────────────────────────── */
.section-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e6e73;
  border-bottom: 1px solid #dddee1;
  padding-bottom: 8px;
  margin: 40px 0 16px;
}

.section-heading:first-child { margin-top: 0; }

/* ── Newsletter Archive List ──────────────────────────────── */
.newsletter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.newsletter-list li {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

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

.newsletter-date {
  font-size: 12px;
  color: #6e6e73;
  white-space: nowrap;
  min-width: 90px;
}

.newsletter-title {
  font-size: 15px;
  font-weight: 500;
}

/* ── Newsletter Web Version ───────────────────────────────── */
.nl-wrap { max-width: 860px; margin: 32px auto; background: #ffffff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.nl-section { padding: 32px 48px; }
.nl-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: #6e6e73; margin: 0 0 10px; }
.nl-hr { border: none; border-top: 1px solid #dddee1; margin: 0; }
.nl-h2 { font-size: 18px; font-weight: 600; color: #1d1d1f; margin: 0 0 8px; line-height: 1.3; }
.nl-h3 { font-size: 16px; font-weight: 600; color: #1d1d1f; margin: 0 0 6px; }
.nl-p { margin: 0 0 12px; font-size: 15px; color: #1d1d1f; line-height: 1.7; }
.nl-sub { font-size: 13px; color: #6e6e73; margin: 0 0 6px; line-height: 1.6; }
.nl-img-crop { overflow: hidden; border-radius: 8px; }
.nl-img-crop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.back-to-top { display: block; text-align: right; font-size: 11px; margin-top: 16px; color: #6e6e73; text-decoration: none; }
.back-to-top:hover { text-decoration: underline; }

/* ── Utility ──────────────────────────────────────────────── */
.text-muted { color: #6e6e73; }
.text-small { font-size: 13px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 8px;
    min-height: auto;
  }

  .page-hero h1 { font-size: 24px; }
  .page-hero { padding: 32px 16px 28px; }
  .page-content { padding: 24px 16px 48px; }

  .nl-wrap { margin: 0; border-radius: 0; box-shadow: none; }
  .nl-section { padding: 24px 20px; }
}
