/*
Theme Name: Wellsprings Classic
Theme URI: https://wellspringsofcontinuum.com/
Author: OpenRouter Migration
Description: Classic PHP theme for Wellsprings of Continuum. Content lives in WordPress pages.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: wellsprings-classic
*/

:root {
  --blue: #2a93b1;
  --soft-blue: #cae0f7;
  --red: #990000;
  --link: #0033cc;
  --text: #111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #cc0000;
}

img {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

.site-header {
  text-align: center;
  background: #fff;
  padding-top: 18px;
}

.site-rule {
  border: 0;
  border-top: 1px solid #999;
  margin: 0 0 12px;
}

.site-logo {
  display: inline-block;
  width: min(626px, calc(100% - 40px));
  height: auto;
}

.primary-navigation {
  margin: 12px auto 48px;
}

.primary-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
}

.primary-menu li {
  margin: 0;
}

.primary-menu a {
  display: block;
  padding: 9px 13px;
  font-size: 16px;
}

.primary-menu .current-menu-item > a {
  color: #cc0000;
}

.site-main {
  width: 100%;
}

.page-shell {
  width: min(1120px, 86%);
  margin: 0 auto 56px;
  padding: 32px;
  background: #fff;
  border-radius: 10px;
}

.entry-title,
.clean-content h1 {
  color: var(--red);
  font-family: "Handlee", cursive;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 28px;
}

.clean-content h2 {
  color: var(--red);
  font-family: "Handlee", cursive;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
  margin: 42px 0 18px;
}

.clean-content h3 {
  color: #000;
  font-family: "Handlee", cursive;
  font-size: 24px;
  font-weight: 400;
  margin: 28px 0 12px;
}

.clean-content p {
  margin: 0 0 18px;
}

.clean-content ul {
  margin: 0 0 22px 24px;
}

.clean-content li {
  margin-bottom: 8px;
}

.intro {
  font-size: 20px;
  text-align: center;
}

.center {
  text-align: center;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.card {
  border: 2px solid var(--blue);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  margin: 0 0 24px;
}

.soft-card {
  background: #d5f8f8;
  border: 1px solid #5791a8;
  border-radius: 28px;
  padding: 24px;
}

.person-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  border: 2px solid var(--soft-blue);
  border-radius: 18px;
  padding: 22px;
  margin: 0 0 30px;
  background: #fff;
}

.person-card__media {
  text-align: center;
}

.person-card__media img {
  max-width: 180px;
  border-radius: 3px;
}

.person-card__name {
  font-weight: 700;
  margin-top: 10px;
}

.location {
  font-weight: 700;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 28px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.directory-grid a {
  display: block;
}

.graduate-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.graduate-table th,
.graduate-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.graduate-table tr:nth-child(even) {
  background: #e7e9eb;
}

.graduate-table tr:nth-child(odd) {
  background: #cae0f7;
}

.float-right {
  float: right;
  margin: 0 0 18px 24px;
  max-width: 42%;
}

.float-left {
  float: left;
  margin: 0 24px 18px 0;
  max-width: 42%;
}

.quote-box {
  float: left;
  width: 270px;
  margin: 6px 28px 20px 0;
  border: 2px solid #5791a8;
  border-radius: 14px;
  padding: 18px;
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.3;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.responsive-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

.site-footer {
  text-align: center;
  background: #fff;
  padding: 24px 16px 32px;
  font-size: 14px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

@media screen and (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .page-shell {
    width: 94%;
    padding: 22px;
  }

  .primary-menu {
    display: block;
  }

  .primary-menu a {
    padding: 10px;
  }

  .two-column,
  .person-card,
  .video-grid,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .float-right,
  .float-left,
  .quote-box {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 0 0 22px;
  }
}