/* therapy21st.net — same look as the original site, rebuilt to fit phones and desktops.
   Original colors kept: light grey page, grey text panel, pale yellow headings and highlights,
   Gill Sans, and the Yosemite photo strips at the top and bottom. */

:root {
  --page-bg: #cccccc;
  --panel: #6e6e6e;      /* original panel was #808080; a touch darker so white text is easier to read */
  --text: #ffffff;
  --yellow: #ffff99;
  --orange: #ffb347;
  --navy: #003399;       /* the blue the original home page used for its menu */
  --column: 680px;       /* one width for photo strips, menu and text panel so everything lines up */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 8px 12px 24px;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.page {
  max-width: var(--column);
  margin: 0 auto;
}

/* ---- photo strips ---- */
.banner {
  display: block;
  width: 100%;
  height: auto;
}
/* Her name sits on the photo as text, in the original's pale yellow, so any photo can be swapped in */
.banner-link { display: block; position: relative; text-decoration: none; }
.banner-link::after {           /* soft shade along the bottom so the name stays readable on light skies */
  content: "";
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(20, 24, 40, .6), rgba(20, 24, 40, 0));
  pointer-events: none;
}
.site-name {
  position: absolute; left: 14px; right: 14px; bottom: 9px; z-index: 1;
  font-family: Verdana, Geneva, "DejaVu Sans", sans-serif;
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--yellow);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.site-name small { font-size: .62em; font-variant: small-caps; letter-spacing: .02em; }
body.home .site-name { font-size: 1.65rem; bottom: 14px; }

/* ---- menu ---- */
.site-nav { margin: 14px 0 18px; text-align: center; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 6px;
}
.site-nav a {
  display: inline-block;
  padding: 8px 10px;
  color: var(--navy);
  text-decoration: none;
  border-radius: 3px;
}
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(255, 255, 255, .45); }
.site-nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---- text panel ---- */
.box1 {
  background: var(--panel);
  padding: 22px 28px 28px;
  box-shadow: 2px 2px 10px 6px #999;
  text-align: left;
}

.box1 > :first-child { margin-top: 0; }

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--yellow);
  line-height: 1.25;
}
h1 { font-size: 1.45rem; text-align: center; margin: .2em 0 .8em; }
h2 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
h3, h4 { font-size: 1.02rem; margin: 1.4em 0 .4em; }

p { margin: 0 0 1em; }

.box1 a { color: #ffffff; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.box1 a:visited { color: #e6e6e6; }
.box1 a:hover, .box1 a:focus-visible { color: var(--yellow); }

.hl { color: var(--yellow); }
.accent, .contact { color: var(--orange); }
.contact { text-align: center; }
.center { text-align: center; }

hr {
  width: 75%;
  margin: 1.8em auto;
  border: 0;
  height: 4px;
  background: var(--yellow);
}

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

ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }

/* ---- footer ---- */
.site-footer { margin-top: 22px; text-align: center; }
.site-footer .contact { color: #fffbd0; margin-bottom: 14px; }
.site-footer .contact a { color: inherit; }
.pt-verify { position: absolute; }

/* ---- home page: cloud photo behind the column, like the original ---- */
body.home .page {
  background: url(img/home-sky.jpg) center top / cover no-repeat;
  padding-bottom: 1px;
}
body.home .tagline {
  margin: 22px 0 6px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #6b6b6b;
}
body.home .site-nav { margin: 10px 0 24px; }
body.home .site-nav ul { gap: 6px 10px; margin-bottom: 8px; }
body.home .site-nav a { font-size: 1.05rem; }
body.home .site-nav a:hover { background: rgba(255, 255, 255, .55); }
body.home .home-contact { text-align: center; color: #3d4a66; margin: 0; font-size: 1rem; font-weight: 600; }
body.home .site-footer { margin-top: 4px; }
body.home .site-footer .contact { color: #3d4a66; }   /* dark slate: readable on the light sky (pale yellow was not) */

/* ---- phones ---- */
@media (max-width: 600px) {
  body { padding: 0 0 16px; font-size: 16px; }
  .box1 { padding: 18px 16px 22px; box-shadow: none; }
  .site-nav { margin: 8px 8px 12px; }
  .site-nav ul, body.home .site-nav ul { gap: 0 2px; margin-bottom: 0; }
  .site-nav a { padding: 5px 8px; font-size: 15.5px; }
  h1 { font-size: 1.3rem; }
  .site-name { font-size: 1rem; left: 10px; bottom: 6px; }
  body.home .site-name { font-size: 1.15rem; bottom: 10px; }
}
