/*
Theme Name: Treasures
Theme URI: https://brucehess.com
Author: Bruce A. Hess
Description: A warm, pastoral theme for Bruce Hess’s teaching archive. Greeting hero, series library, no blog chrome.
Version: 1.0.6
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: treasures
*/

:root {
  --cream: #f6efe4;
  --paper: #fbf7f0;
  --ink: #1c1712;
  --navy: #1b2a4a;
  --navy-deep: #121c33;
  --gold: #c9a227;
  --gold-soft: #e0c36a;
  --forest: #2f4a3c;
  --juniper: #4a6a58;
  --muted: #5c5348;
  --line: rgba(28, 23, 18, 0.12);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --max: 72rem;
  --wide: 88rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3,
.site-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

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

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.1rem 0;
}

.site-header.is-solid {
  position: sticky;
  background: var(--navy-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.site-title a,
.site-nav a,
.menu-toggle {
  color: #f4ead8;
  text-decoration: none;
}

.site-title a:hover,
.site-nav a:hover {
  color: var(--gold-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a.is-external {
  color: var(--gold-soft);
}

.search-slot {
  min-width: 11rem;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.search-form input[type="search"] {
  width: 100%;
  border: 1px solid rgba(244, 234, 216, 0.28);
  background: rgba(18, 28, 51, 0.35);
  color: #f4ead8;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
}

.search-form input::placeholder {
  color: rgba(244, 234, 216, 0.65);
}

.search-form button {
  border: 0;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(244, 234, 216, 0.35);
  background: transparent;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #f7f1e6;
  background: var(--navy-deep) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 16, 24, 0.72) 0%, rgba(12, 16, 24, 0.28) 46%, rgba(12, 16, 24, 0.08) 100%),
    linear-gradient(180deg, rgba(12, 16, 24, 0.25) 0%, rgba(12, 16, 24, 0.12) 40%, rgba(12, 16, 24, 0.55) 100%);
}

.hero--home::after {
  background:
    linear-gradient(90deg, rgba(12, 16, 24, 0.82) 0%, rgba(12, 16, 24, 0.28) 34%, rgba(12, 16, 24, 0.04) 58%, rgba(12, 16, 24, 0.18) 100%),
    linear-gradient(180deg, rgba(12, 16, 24, 0.18) 0%, rgba(12, 16, 24, 0.08) 42%, rgba(12, 16, 24, 0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5.5rem;
  max-width: 38rem;
}

.hero--home .hero__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  min-height: 100svh;
  padding: 8rem 0 2.8rem;
  box-sizing: border-box;
}

.hero--home .hero__content {
  max-width: 34rem;
  padding: 0;
}

.hero--home .hero__cta {
  flex: 0 0 auto;
  align-self: flex-end;
}

.hero--about {
  min-height: 88svh;
  background-position: 58% 18%;
}

.hero--about .hero__content {
  max-width: 40rem;
  padding: 8rem 0 4.2rem;
}

.hero--about h1 {
  margin: 0;
  font-size: clamp(4.2rem, 10vw, 7.2rem);
  line-height: 0.9;
  color: #f7f1e6;
}

.hero-roles {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.45;
  color: rgba(247, 241, 230, 0.86);
}

.about-band {
  position: relative;
  padding: 4.75rem 0 2rem;
  background: var(--cream);
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: 3rem;
  align-items: end;
  margin-top: 0;
}

.about-portrait {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(18, 28, 51, 0.32);
  background: var(--navy-deep);
}

.about-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
}

.about-portrait--couple img {
  aspect-ratio: 1 / 1;
  object-position: 50% 42%;
}

.about-lede {
  padding-bottom: 0.4rem;
}

.about-open {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
  max-width: 28rem;
}

.about-open .meta {
  display: inline;
  font-family: var(--sans);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.about-lede p + p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3.2rem 0 0;
}

.about-stat {
  margin: 0;
  padding: 1.35rem 1.3rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.about-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.about-facts-band {
  padding-top: 1.5rem;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2.4rem;
  margin: 0;
}

.about-facts div {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.about-facts dt {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-facts dd {
  margin: 0;
  max-width: 34rem;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.8rem 0 0;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.verse {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
}

.verse cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.greeting {
  margin: 1.4rem 0 1.75rem;
  max-width: 34rem;
  color: rgba(247, 241, 230, 0.88);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--navy-deep);
}

.btn-navy {
  background: var(--navy);
  color: var(--cream);
}

.btn-navy:hover {
  color: var(--cream);
  background: var(--navy-deep);
}

.btn-outline {
  background: transparent;
  border-color: rgba(27, 42, 74, 0.28);
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--navy);
}

/* Sections */
.band {
  padding: 5rem 0;
}

.band-cream {
  background: var(--cream);
}

.band-navy {
  background: var(--navy-deep);
  color: var(--cream);
}

.band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.lede {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36rem;
}

.chooser {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: stretch;
}

.chooser select {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231c1712' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border-radius: 1rem;
  padding: 1rem 2.8rem 1rem 1.1rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}

.contact-intro {
  margin-bottom: 1.5rem;
}

.wpforms-container input,
.wpforms-container textarea,
.wpforms-container select,
.entry-content input,
.entry-content textarea {
  font: inherit;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  background: var(--navy-deep);
  color: rgba(246, 239, 228, 0.72);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--gold-soft);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Inner pages */
.page-hero {
  padding: 8rem 0 3rem;
  background: var(--navy-deep);
  color: var(--cream);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.page-hero p {
  margin: 0.8rem 0 0;
  color: rgba(246, 239, 228, 0.78);
  max-width: 40rem;
}

.content-band {
  padding: 3rem 0 5rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content li {
  max-width: 42rem;
}

.message-list {
  display: grid;
  gap: 1.25rem;
}

.message-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.35rem 1.4rem 1.2rem;
}

.message-card h2,
.message-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.message-card h2 a,
.message-card h3 a {
  text-decoration: none;
  color: var(--navy);
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.excerpt {
  margin: 0.55rem 0 0;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1rem;
}

.series-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 8.5rem;
  padding: 1.2rem;
  background: #fff;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.series-card:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.series-card strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
}

.series-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.siblings {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.siblings ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.page-hero--links p:last-child {
  max-width: 36rem;
  color: rgba(246, 239, 228, 0.78);
}

.links-page .links-intro {
  max-width: 40rem;
  margin: 0 0 2.6rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.links-page .link-section {
  margin: 0 0 2.8rem;
}

.links-page .link-section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--navy);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.links-page .link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.85rem;
}

.links-page .link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1.15rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 6.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.links-page .link-card:hover,
.links-page .link-card:focus {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 28, 51, 0.08);
  text-decoration: none;
  color: inherit;
}

.links-page .link-card strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--navy);
}

.links-page .link-card span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.links-page .creation-note {
  max-width: 44rem;
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.links-page .creation-note p {
  margin: 0 0 0.85rem;
}

.links-page .latvia-note {
  max-width: 44rem;
  margin: 0 0 1rem;
  color: var(--muted);
}

.pagination {
  display: flex;
  gap: 0.7rem;
  margin-top: 2rem;
}

.single-header {
  margin-bottom: 1.6rem;
}

.single-header h1 {
  margin: 0.3rem 0 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

html5-audio,
.themeisle-content-form,
.wp-block-audio,
audio {
  width: 100%;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    background: var(--navy-deep);
    border-radius: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .search-slot {
    min-width: 0;
  }

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

  .hero {
    min-height: 92svh;
    background-position: 68% 20%;
  }

  .hero--about {
    min-height: 78svh;
    background-position: 70% 12%;
  }

  .hero--home .hero__bar {
    display: block;
    min-height: 0;
    padding: 8rem 0 3.5rem;
  }

  .hero--home .hero__content {
    max-width: 100%;
  }

  .hero--home .hero__cta {
    margin-top: 1.35rem;
  }

  .about-band {
    padding-top: 3.25rem;
  }

  .about-intro,
  .about-stats,
  .about-facts,
  .about-cta {
    grid-template-columns: 1fr;
  }

  .about-intro {
    margin-top: 0;
    gap: 1.6rem;
  }

  .about-portrait img {
    aspect-ratio: 5 / 4;
    object-position: 50% 18%;
  }

  .about-portrait--couple img {
    aspect-ratio: 1 / 1;
    object-position: 50% 42%;
  }

  .about-open {
    max-width: none;
  }

  .hero__content {
    padding-bottom: 3.5rem;
    max-width: 100%;
  }

  .verse {
    font-size: 1.7rem;
  }
}
