/* Friendswood Texas Stake website
   Navy and gold, serif type. Edit the colors in :root to change the whole site. */

:root {
  --navy: #26365a;
  --navy-deep: #18223d;
  --tan: #7f5f2a;
  --gold: #c4a46b;
  --tint: #eef1f6;
  --ink: #1d2231;
  --muted: #566074;
  --line: #d3d8e3;
  --white: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 70rem;
  --prose: 40rem;
}

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

html { scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--tan); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-weight: 700; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 0.75rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font: 600 0.95rem var(--sans);
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.nav a {
  display: block;
  font: 0.9rem var(--sans);
  white-space: nowrap;
  color: var(--white);
  text-decoration: none;
  padding: 0.55rem 0.6rem;
  border-radius: 4px;
}
.nav li { position: relative; }
.nav .sub {
  display: none;
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  flex-direction: column;
  gap: 0;
  min-width: 16rem;
  padding: 0.4rem;
  background: var(--navy-deep);
  border-bottom: 3px solid var(--gold);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.nav .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1rem; }
.nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { display: flex; }
.nav .sub a { padding: 0.6rem 0.8rem; }
.nav a:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }

@media (max-width: 70rem) {
  .nav-toggle { display: inline-flex; }
  html.js .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-deep);
    padding: 0.5rem 1.25rem 1rem;
    border-bottom: 3px solid var(--gold);
  }
  html.js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 0.85rem 0.5rem; font-size: 1.05rem; }
  .nav .has-sub::after { display: none; }
  .nav .sub { display: flex; position: static; min-width: 0; padding: 0 0 0.25rem 1rem; background: transparent; border: 0; box-shadow: none; }
  .nav .sub a { padding: 0.55rem 0.5rem; font-size: 0.98rem; opacity: 0.9; }
}
@media (max-width: 70rem) {
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .nav ul { flex-wrap: wrap; flex-direction: row; }
}

/* ---------- Heroes ---------- */

.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: var(--navy-deep);
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(24, 34, 61, 0.1) 0%, rgba(24, 34, 61, 0.05) 40%, rgba(24, 34, 61, 0.85) 100%);
}
.hero__body {
  min-height: min(82vh, 42rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 3rem 3.5rem;
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero p { margin: 0; font-size: 1.25rem; max-width: 32rem; }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(24, 34, 61, 0.88), rgba(24, 34, 61, 0.4));
}
.page-hero .wrap { padding-block: clamp(3rem, 9vw, 6rem); }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 5.5vw, 3.5rem); line-height: 1.1; }
.page-hero p { margin: 0.6rem 0 0; font-size: 1.15rem; max-width: 34rem; color: #e6eaf3; }

/* ---------- Notice band ---------- */

.notice { background: var(--navy); color: var(--white); border-bottom: 4px solid var(--gold); }
.notice .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 1.75rem;
}
.notice h2 { margin: 0; font-size: 1.5rem; line-height: 1.25; }
.notice p { margin: 0.25rem 0 0; color: #e3e8f2; }

.button {
  display: inline-block;
  font: 700 1rem var(--sans);
  color: var(--navy-deep);
  background: var(--gold);
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
}
.button:hover { background: #d6bb86; color: var(--navy-deep); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--tint { background: var(--tint); }

.intro { max-width: var(--prose); margin-inline: auto; text-align: center; }
.intro h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.15;
  color: var(--navy);
}
.intro p { margin: 0 0 1rem; }
.subtitle { margin: 0 0 1rem; font-size: 1.2rem; font-style: italic; color: var(--tan); }

.scripture { max-width: 34rem; margin: 1.5rem auto 0; font-style: italic; color: var(--navy); }
.scripture cite { display: block; margin-top: 0.25rem; font: normal 0.9rem var(--sans); color: var(--muted); }

.grid { display: grid; gap: 2rem 2.5rem; margin-top: 2.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.item h3 { margin: 0 0 0.25rem; font-size: 1.3rem; color: var(--navy); line-height: 1.25; }
.item p { margin: 0; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}
.split img { width: 100%; border-radius: 6px; background: var(--tint); aspect-ratio: 4 / 3; object-fit: cover; }

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--tint); }

/* ---------- Home doorways ---------- */

.doors { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.doors a {
  display: block;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.doors a:hover { background: var(--tint); color: var(--ink); }
.doors strong { display: block; font-size: 1.5rem; line-height: 1.25; color: var(--navy); }
.doors span { color: var(--muted); }

/* ---------- People ---------- */

.person { border-left: 4px solid var(--gold); padding-left: 1rem; }
.person h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; color: var(--navy); }
.person p { margin: 0; font-style: italic; color: var(--muted); }

.contact-list { margin: 1rem 0; padding-left: 1.25rem; }
.contact-list li { margin-bottom: 0.35rem; }
.email { font: 600 1rem var(--sans); }

/* ---------- Wards and buildings ---------- */

.wards { list-style: none; margin: 2.5rem auto 0; padding: 0; max-width: 46rem; border-top: 1px solid var(--line); }
.wards li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.wards h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; color: var(--navy); }
.wards .time { font: 600 1rem var(--sans); white-space: nowrap; }
.wards a { grid-column: 1 / -1; font-size: 1rem; }

.building { border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 6px; padding: 1.25rem 1.25rem 1.5rem; background: var(--white); }
.building h3 { margin: 0 0 0.25rem; font-size: 1.3rem; line-height: 1.25; color: var(--navy); }
.building p { margin: 0 0 0.75rem; }
.building .for { color: var(--muted); font-style: italic; }

/* ---------- Steps and resources ---------- */

.steps { counter-reset: step; list-style: none; max-width: 44rem; margin: 2.5rem auto 0; padding: 0; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.steps li::before { content: counter(step); font-size: 2.25rem; line-height: 1; font-weight: 700; color: var(--tan); }
.steps h3 { margin: 0 0 0.25rem; font-size: 1.3rem; line-height: 1.25; color: var(--navy); }
.steps p { margin: 0; }

.resources { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.resources a {
  display: block;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.resources a:hover { border-color: var(--navy); border-left-color: var(--navy); color: var(--ink); }
.resources strong { display: block; font-size: 1.3rem; line-height: 1.25; color: var(--navy); text-decoration: underline; text-underline-offset: 0.18em; }
.resources span { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }

/* ---------- Stake conference ---------- */

.jump { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.jump a {
  display: block;
  padding: 0.7rem 1.1rem;
  color: var(--white);
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  border-radius: 6px;
  font: 600 1rem var(--sans);
  text-decoration: none;
}
.jump a:hover { background: var(--navy-deep); color: var(--white); }
.jump em { display: block; font-weight: 400; color: #e4cf9f; }

.sessions { max-width: 48rem; padding-block: 1rem 4rem; }
.expand { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 1.25rem; }
.expand[hidden] { display: none; }
.expand button {
  font: 600 0.95rem var(--sans);
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.expand button:hover { border-color: var(--navy); }

details.session {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  scroll-margin-top: 5rem;
}
details.session > summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 3.5rem;
  text-align: center;
  color: var(--navy);
}
details.session > summary::-webkit-details-marker { display: none; }
details.session > summary::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 3px solid var(--tan);
  border-bottom: 3px solid var(--tan);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
details.session[open] > summary { border-bottom: 1px solid var(--line); }
details.session[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
details.session > summary:hover { background: var(--tint); }
.session__title { display: block; font-size: clamp(1.4rem, 3.5vw, 1.8rem); font-weight: 700; line-height: 1.15; }
.session__title span { display: block; margin-top: 0.2rem; font-size: 1.1rem; font-style: italic; font-weight: 400; color: var(--tan); }

.session__body { padding: 1.75rem 1.25rem 2rem; text-align: center; }
.session__art img { display: block; width: 100%; max-width: 15rem; height: auto; margin: 0 auto 1.5rem; border-radius: 6px; }
.session__note { margin: 0 0 1rem; color: var(--muted); }

.program { margin: 0; padding: 0; list-style: none; }
.program li { display: block; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.program li:first-child { border-top: 0; }
.program .role { display: block; font-size: 0.98rem; font-style: italic; color: var(--tan); }
.program .who { display: block; font-weight: 700; color: var(--navy); line-height: 1.35; }
.program .calling { display: block; font-size: 1rem; font-style: italic; color: var(--muted); }
.program .hymns { display: block; line-height: 1.5; }
.program .hymns span { display: block; margin-bottom: 0.2rem; }
.program .lang { font: 0.8rem var(--sans); color: var(--muted); }

.mission-image { max-width: 40rem; margin: 2rem auto 0; }
.mission-image img { width: 100%; border: 1px solid var(--line); border-radius: 6px; }

details.textlist { max-width: 44rem; margin: 2rem auto 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
details.textlist summary { cursor: pointer; padding: 1rem 1.25rem; font: 600 1rem var(--sans); color: var(--navy); }
details.textlist .inner { padding: 0 1.25rem 1.25rem; }
details.textlist h3 { margin: 1.25rem 0 0.5rem; font-size: 1.2rem; color: var(--navy); }
details.textlist ul { margin: 0; padding-left: 1.25rem; }
details.textlist li { margin-bottom: 0.25rem; font-size: 1rem; line-height: 1.5; }

@media (max-width: 52rem) {
  details.session > summary { padding-inline: 2.75rem 3rem; }
}

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

.site-footer {
  background: var(--navy-deep);
  color: #d6dcea;
  padding-block: 2.5rem;
  font: 0.9rem/1.65 var(--sans);
  border-top: 4px solid var(--gold);
}
.site-footer p { margin: 0; max-width: 52rem; }
.site-footer a { color: var(--white); }

/* ---------- Print ---------- */

@media print {
  .site-header, .nav-toggle, .jump, .notice .button, .skip { display: none !important; }
  body { font-size: 11pt; }
  .page-hero { background: none; color: #000; }
  .page-hero > img, .page-hero::after { display: none; }
  .page-hero h1, .page-hero p { color: #000; }
  details.session > .session__body { display: block; }
  .expand { display: none; }
  .site-footer { background: none; color: #000; border-top: 1px solid #000; }
  .site-footer a { color: #000; }
}
