/*
Theme Name: Delta Eta Chapter
Theme URI: https://dev.kubetas.com
Author: Beta Theta Pi - Delta Eta Chapter
Description: A chapter-focused theme for Beta Theta Pi at Delta Eta.
Version: 1.0.0
Text Domain: delta-eta
*/

:root {
  --navy: #102b49;
  --deep-navy: #0a1e33;
  --blue: #1d84c3;
  --red: #a52a20;
  --ink: #172a3d;
  --muted: #627285;
  --silver: #edf1f4;
  --paper: #f8f9fa;
  --white: #fff;
  --rule: #d7dfe6;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
}
.skip-link:focus { top: 12px; }

.masthead {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 5px max(24px, calc((100% - var(--content)) / 2));
  color: #e8eef4;
  background: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.masthead span:last-child { color: #c8d6e2; }
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.header-inner {
  width: min(var(--content), calc(100% - 48px));
  min-height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  min-width: 235px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
  text-decoration: none;
}
.brand:hover { color: var(--navy); }
.brand-mark { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-family: Lora, Georgia, serif; font-size: 17px; font-weight: 600; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.primary-nav ul { margin: 0; padding: 0; display: flex; align-items: center; gap: 23px; list-style: none; }
.primary-nav a { color: #30455b; font-size: 13px; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--blue); }
.header-cta, .button-primary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.header-cta:hover, .button-primary:hover { color: var(--white); background: var(--navy); border-color: var(--navy); transform: translateY(-1px); }
.button-secondary { color: var(--white); font-size: 14px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.button-secondary:hover { color: #cfe7f7; }

.hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  align-items: center;
  gap: 40px;
  padding: 70px max(32px, calc((100% - var(--content)) / 2));
  color: var(--white);
  background-color: var(--deep-navy);
  background-image: linear-gradient(110deg, rgba(10, 30, 51, .98) 0%, rgba(16, 43, 73, .96) 58%, rgba(16, 43, 73, .82) 100%), repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,.035) 39px 40px);
}
.hero::after { content: ""; position: absolute; right: 0; top: 0; width: 7px; height: 100%; background: var(--red); }
.hero-copy, .hero-art { position: relative; z-index: 1; }
.hero-kicker, .section-kicker {
  margin: 0 0 18px;
  color: #8fc9ed;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: Lora, Georgia, serif;
  font-size: 68px;
  font-weight: 500;
  line-height: 1.06;
  text-wrap: balance;
}
.hero h1 span { color: #9dcff0; }
.hero-intro { max-width: 540px; margin: 23px 0 0; color: #d1dce6; font-size: 18px; line-height: 1.7; }
.hero-actions { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.hero-art { display: grid; justify-items: center; gap: 12px; }
.hero-art img { width: min(100%, 410px); max-height: 420px; object-fit: contain; mix-blend-mode: screen; }
.hero-caption { margin: 0; color: #9aabba; font-size: 10px; font-weight: 700; text-transform: uppercase; }

.welcome {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 88px;
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: space-between;
  gap: 48px;
}
.welcome-marker { padding-top: 9px; color: var(--red); border-top: 2px solid var(--red); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.welcome h2, .explore h2, .connect h2 {
  margin: 0;
  color: var(--navy);
  font-family: Lora, Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}
.welcome p { max-width: 670px; margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.text-link { margin-top: 22px; display: inline-flex; gap: 12px; align-items: center; color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link span { color: var(--blue); font-size: 19px; transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }

.explore { padding: 78px 24px 88px; background: var(--silver); }
.explore-inner { width: min(var(--content), 100%); margin: 0 auto; }
.explore .section-kicker, .connect .section-kicker { color: var(--red); }
.explore h2 { max-width: 620px; }
.feature-grid { margin-top: 35px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 23px 22px 19px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #dfe5ea;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover { color: var(--ink); border-color: var(--blue); transform: translateY(-3px); }
.feature-number { color: var(--blue); font-size: 11px; font-weight: 700; }
.feature-card h3 { margin: 29px 0 8px; color: var(--navy); font-family: Lora, Georgia, serif; font-size: 20px; font-weight: 600; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.feature-arrow { margin-top: auto; padding-top: 15px; color: var(--blue); font-size: 18px; }

.connect { padding: 60px 24px; color: var(--white); background: var(--navy); }
.connect-inner { width: min(var(--content), 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.connect h2 { max-width: 580px; color: var(--white); font-size: 34px; }
.connect .section-kicker { margin-bottom: 10px; color: #8fc9ed; }
.connect .button-primary { flex: 0 0 auto; background: var(--white); border-color: var(--white); color: var(--navy); }
.connect .button-primary:hover { background: #d9eaf5; border-color: #d9eaf5; }

.page-shell { width: min(900px, calc(100% - 48px)); min-height: 55vh; margin: 0 auto; padding: 78px 0 100px; }
.page-shell h1 { margin: 0 0 32px; color: var(--navy); font-family: Lora, Georgia, serif; font-size: 52px; font-weight: 500; line-height: 1.15; }
.entry-content { color: #34495d; font-size: 17px; line-height: 1.8; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { margin-top: 1.7em; color: var(--navy); font-family: Lora, Georgia, serif; font-weight: 500; line-height: 1.25; }
.entry-content img { height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--rule); text-align: left; }
.entry-content blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue); color: var(--navy); font-family: Lora, Georgia, serif; font-size: 21px; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignright { float: right; margin: 0 0 18px 24px; }
.entry-content .alignleft { float: left; margin: 0 24px 18px 0; }

.site-footer { padding: 28px 24px; color: #d4dee8; background: #071827; }
.footer-inner { width: min(var(--content), 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { color: var(--white); font-family: Lora, Georgia, serif; font-size: 16px; }
.footer-note { margin: 0; color: #9dafc0; font-size: 12px; }

body.home .hero-copy, body.home .hero-art, body.home .welcome, body.home .feature-card { animation: rise-in .55s both; }
body.home .hero-art { animation-delay: .12s; }
body.home .feature-card:nth-child(2) { animation-delay: .05s; }
body.home .feature-card:nth-child(3) { animation-delay: .1s; }
body.home .feature-card:nth-child(4) { animation-delay: .15s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .header-inner { min-height: 86px; flex-wrap: wrap; padding: 15px 0; }
  .primary-nav { order: 3; width: 100%; overflow-x: auto; }
  .primary-nav ul { justify-content: flex-start; gap: 22px; padding: 5px 0; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr); min-height: 540px; gap: 20px; }
  .hero h1 { font-size: 56px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .masthead { padding-inline: 22px; }
  .masthead span:last-child { display: none; }
  .header-inner { width: calc(100% - 44px); gap: 15px; }
  .brand { min-width: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 15px; }
  .header-cta { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .primary-nav ul { gap: 18px; }
  .primary-nav a { white-space: nowrap; font-size: 12px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 36px; padding: 64px 24px 42px; }
  .hero h1 { font-size: 46px; }
  .hero-intro { margin-top: 18px; font-size: 16px; }
  .hero-art img { width: 245px; max-height: 245px; }
  .hero-caption { font-size: 9px; }
  .welcome { width: calc(100% - 44px); grid-template-columns: 1fr; gap: 23px; padding: 62px 0; }
  .welcome-marker { max-width: 190px; }
  .welcome h2, .explore h2 { font-size: 32px; }
  .welcome p { font-size: 16px; }
  .explore { padding: 58px 22px 64px; }
  .feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { min-height: 170px; }
  .feature-card h3 { margin-top: 18px; }
  .connect { padding: 44px 22px; }
  .connect-inner { align-items: flex-start; flex-direction: column; }
  .connect h2 { font-size: 30px; }
  .page-shell { width: calc(100% - 44px); padding: 54px 0 70px; }
  .page-shell h1 { font-size: 38px; }
  .entry-content { font-size: 16px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
