/* ==========================================================================
   Emmanuel Baptist Church — shared stylesheet
   Design tokens and component patterns per design_handoff_church_website/README.md
   ========================================================================== */

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/eb-garamond-400.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/work-sans-300.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/work-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/work-sans-500.woff2") format("woff2");
}

:root {
  --paper: #f4f2ee;
  --panel: #faf8f4;
  --panel-alt: #fffdf8;
  --ink: #33302b;
  --body: #5f5a52;
  --muted: #98917f;
  --accent: #a08b5f;
  --accent-strong: #b8893a;
  --accent-strong-hover: #a2782f;
  --rule: #e2ded7;
  --rule-soft: #ece8e0;
  --border-button: #ded7c9;
  --footer-text: #cdc7bb;
  --placeholder-fill: #e6e2da;
  --error: #8c4a34;

  --font-display: "EB Garamond", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
}

/* ---- Reset ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* Body-copy links get an underline per README (never default browser blue) */
.prose a,
.body-link {
  color: var(--ink);
  border-bottom: 1px solid var(--border-button);
}

.prose a:hover,
.body-link:hover {
  border-bottom-color: var(--accent-strong);
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

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

/* ---- Page shell ---------------------------------------------------------- */

.page {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Header -------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 26px 56px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.wordmark-short {
  display: none;
}

.text-short {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 13.5px;
  color: var(--body);
  transition: color 120ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--accent-strong);
  padding-bottom: 2px;
}

.nav-phone {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin: -8px;
  font: 500 12px/1 var(--font-body);
  letter-spacing: 0.12em;
  color: var(--accent);
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

.mobile-nav[data-open="true"] {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  color: var(--body);
  border-top: 1px solid var(--rule);
}

.mobile-nav a[aria-current="page"] {
  color: var(--ink);
}

.mobile-nav a:first-child {
  border-top: none;
}

/* ---- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--footer-text);
  padding: 44px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 44px;
}

.site-footer .footer-name {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--paper);
  margin-bottom: 12px;
}

.site-footer .footer-address {
  font-size: 14px;
  line-height: 1.7;
}

.site-footer .footer-links {
  font-size: 14px;
  line-height: 2;
}

.site-footer .footer-links a:hover {
  color: var(--paper);
}

.site-footer .footer-contact {
  font-size: 14px;
  line-height: 1.8;
}

.site-footer .footer-muted {
  color: var(--muted);
}

.site-footer .footer-privacy {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.site-footer .footer-privacy:hover {
  color: var(--paper);
  border-bottom-color: var(--muted);
}

/* ---- Repeated patterns: eyebrow, panel, buttons -------------------------- */

.eyebrow {
  margin: 0 0 20px;
  font: 400 12px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 30px 32px;
}

.panel-eyebrow {
  margin: 0 0 18px;
  font: 500 11.5px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font: 400 14px/1 var(--font-body);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--accent-strong);
  color: var(--panel-alt);
}

.btn-primary:hover {
  background: var(--accent-strong-hover);
}

.btn-secondary {
  border-color: var(--border-button);
  color: var(--body);
  background: transparent;
}

.btn-secondary:hover {
  border-color: #c9bfa9;
}

.btn-row {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

/* Hairline grid: 1px gaps over a rule-colored background, no border-radius */

.hairline-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.hairline-grid > * {
  background: var(--paper);
}

/* ==========================================================================
   Home
   ========================================================================== */

.hero {
  padding: 88px 56px 76px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 72px;
  align-items: start;
}

.hero h1 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  max-width: 16em;
  color: var(--ink);
}

.hero p {
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 34em;
  text-wrap: pretty;
}

.service-times {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.service-row .service-name {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
}

.service-row .service-detail {
  font-size: 13px;
  color: var(--accent);
  margin-top: 3px;
}

.service-row .service-time {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  white-space: nowrap;
}

.hairline {
  height: 1px;
  background: var(--rule-soft);
}

.service-times-foot {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.6;
}

.service-times-foot .footnote {
  color: var(--accent);
}

.card-band {
  padding: 0 56px 76px;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 34px 32px;
}

.card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--ink);
}

.card p {
  font-size: 15px;
  line-height: 1.65;
}

.coming-up-band {
  padding: 0 56px 80px;
}

.coming-up-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
}

.coming-up-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
}

.coming-up-head a {
  font-size: 13.5px;
  color: var(--accent);
}

.coming-up-head a:hover {
  color: var(--ink);
}

.event-row {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  transition: background-color 120ms ease;
}

.event-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.event-row:hover {
  background: var(--panel);
}

.event-row .event-date {
  font: 500 12px/1 var(--font-body);
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.event-row .event-title {
  font-size: 16px;
  color: var(--ink);
}

.event-row .event-time {
  font-size: 14px;
  color: var(--accent);
}

/* ==========================================================================
   About & beliefs
   ========================================================================== */

.intro-grid {
  padding: 76px 56px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  align-items: start;
}

.intro-grid h1 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.16;
  max-width: 18em;
  text-wrap: pretty;
  color: var(--ink);
}

.intro-grid .prose p {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 36em;
  text-wrap: pretty;
}

.intro-grid .prose p:last-child {
  margin-bottom: 0;
}

.photo-placeholder {
  height: 180px;
  background: var(--placeholder-fill);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.photo-placeholder span {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.person-name {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--ink);
}

.person-bio {
  font-size: 14.5px;
  line-height: 1.65;
}

.beliefs-band {
  padding: 0 56px 60px;
}

.beliefs-grid {
  grid-template-columns: repeat(2, 1fr);
}

.belief-card {
  padding: 34px 36px;
}

.belief-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  margin-bottom: 12px;
  color: var(--ink);
}

.belief-card p {
  font-size: 15.5px;
  line-height: 1.7;
}

.statement-note {
  margin: 22px 0 0;
  font-size: 14px;
}

/* ==========================================================================
   Privacy (simple prose page, reuses the intro-grid rhythm at one column)
   ========================================================================== */

.prose-page {
  padding: 76px 56px 64px;
  max-width: 42em;
}

.prose-page h1 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink);
}

.prose-page .prose p {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.75;
}

.prose-page .prose p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .prose-page {
    padding: 32px 22px 40px;
  }

  .prose-page h1 {
    font-size: 26px;
  }
}

/* ==========================================================================
   Events
   ========================================================================== */

.events-intro-grid {
  padding: 76px 56px 44px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: end;
}

.events-intro-grid h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.16;
  text-wrap: pretty;
  color: var(--ink);
}

.events-intro-grid .prose p {
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 34em;
  text-wrap: pretty;
}

.weekly-panel {
  padding: 26px 30px;
}

.weekly-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.weekly-row {
  display: flex;
  justify-content: space-between;
}

.weekly-row .weekly-time {
  color: var(--ink);
}

.coming-up-list-band {
  padding: 0 56px 64px;
}

.coming-up-list-head {
  margin: 0 0 8px;
}

.event-list-row {
  display: grid;
  grid-template-columns: 130px 1fr 200px;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
  transition: background-color 120ms ease;
}

.event-list-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.event-list-row:hover {
  background: var(--panel);
}

.event-list-date {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

.event-list-time {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.event-list-meta {
  display: none;
}

.event-list-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 7px;
  color: var(--ink);
}

.event-list-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  max-width: 36em;
}

.event-list-venue {
  font-size: 14px;
  line-height: 1.6;
}

.event-list-note {
  color: var(--muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-intro {
  padding: 76px 56px 0;
}

.contact-intro h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.16;
  text-wrap: pretty;
  color: var(--ink);
  max-width: 22em;
}

.contact-intro .intro {
  margin: 0 0 34px;
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 34em;
  text-wrap: pretty;
}

.contact-desktop-body {
  padding: 0 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-mobile-body {
  display: none;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.detail-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.detail-row:last-child {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
}

.detail-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}

.detail-value {
  font-size: 16px;
  line-height: 1.65;
}

.map-placeholder {
  height: 300px;
  background: var(--placeholder-fill);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder span {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.map-open-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--border-button);
}

.getting-here-panel {
  border: 1px solid var(--rule);
  border-top: none;
  background: var(--panel);
  padding: 26px 30px;
}

.getting-here-rows {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
  line-height: 1.6;
}

.getting-here-rows strong {
  font-weight: 400;
  color: var(--ink);
}

.message-panel {
  margin-top: 24px;
  border: 1px solid var(--rule);
  padding: 26px 30px;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-form label {
  font-size: 15px;
  color: var(--muted);
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-button);
  background: transparent;
  padding: 10px 0;
  font: 400 15px/1.4 var(--font-body);
  color: var(--ink);
}

.message-form textarea {
  padding-bottom: 42px;
  resize: vertical;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: var(--muted);
}

.message-form button {
  align-self: flex-start;
  margin-top: 8px;
}

.message-form button[disabled] {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  margin-top: 4px;
  font-size: 13.5px;
}

.form-status[data-state="sent"] {
  color: var(--ink);
}

.mobile-contact-actions {
  display: none;
}

/* ==========================================================================
   Responsive — single breakpoint
   ========================================================================== */

@media (max-width: 860px) {
  .site-header {
    padding: 18px 22px;
  }

  .wordmark-full {
    display: none;
  }

  .wordmark-short {
    display: inline;
  }

  .text-full {
    display: none;
  }

  .text-short {
    display: inline;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 26px 22px;
    gap: 22px;
  }

  .site-footer .footer-links {
    line-height: 1.9;
    font-size: 13.5px;
  }

  .eyebrow {
    font-size: 10.5px;
  }

  .panel {
    padding: 20px 22px;
  }

  .panel-eyebrow {
    font-size: 10.5px;
  }

  .btn {
    width: 100%;
    padding: 15px;
    font-size: 14.5px;
    text-align: center;
  }

  .btn-row {
    flex-direction: column;
    gap: 10px;
  }

  /* Home */
  .hero {
    padding: 40px 22px 34px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
    max-width: none;
  }

  /* Times panel reduced to the two Sunday services on mobile */
  .service-times > :nth-child(4),
  .service-times > :nth-child(5) {
    display: none;
  }

  .card-band {
    padding: 0 22px 40px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .coming-up-band {
    padding: 0 22px 40px;
  }

  .event-row {
    grid-template-columns: 96px 1fr auto;
    gap: 14px;
  }

  /* About */
  .intro-grid {
    padding: 32px 22px 28px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro-grid h1 {
    font-size: 30px;
    line-height: 1.2;
    max-width: none;
  }

  .photo-placeholder {
    height: 150px;
  }

  .beliefs-band {
    padding: 0 22px 30px;
  }

  .beliefs-grid {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
  }

  .belief-card {
    padding: 18px 0;
    border-top: 1px solid var(--rule);
  }

  .belief-card:last-child {
    border-bottom: 1px solid var(--rule);
  }

  .belief-card h2 {
    font-size: 20px;
  }

  .belief-card p {
    font-size: 14.5px;
  }

  /* Events */
  .events-intro-grid {
    padding: 32px 22px 26px;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }

  .events-intro-grid h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .weekly-panel {
    padding: 20px 22px;
  }

  .coming-up-list-band {
    padding: 0 22px 30px;
  }

  .event-list-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .event-list-date,
  .event-list-time {
    display: none;
  }

  .event-list-meta {
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
  }

  .event-list-title {
    font-size: 20px;
  }

  .event-list-desc {
    font-size: 14.5px;
  }

  .event-list-venue {
    margin-top: 4px;
    font-size: 14.5px;
  }

  /* Contact */
  .contact-intro {
    padding: 32px 22px 0;
  }

  .contact-intro h1 {
    font-size: 30px;
    line-height: 1.2;
    max-width: none;
  }

  .contact-desktop-body {
    display: none;
  }

  .contact-mobile-body {
    display: block;
    padding: 0 22px 30px;
  }

  .mobile-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
  }

  .contact-mobile-body .map-placeholder {
    height: 170px;
    margin-bottom: 26px;
  }

  .contact-mobile-body .detail-list {
    margin-bottom: 24px;
  }

  .contact-mobile-body .getting-here-panel {
    border-top: 1px solid var(--rule);
  }
}
