/*
 * Reflective Therapy site styles.
 * Visually matches the original Skeleton-based design (2016-2025),
 * rewritten as plain modern CSS with a mobile-first layout.
 */

:root {
  --font: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: #222;
  --text-strong: #000;
  --muted: #444;
  --brand: #00a4a7;
  --link-hover: #0fa0ce;
  --bg: #fff;
  --bg-alt: #eee;
  --rule: #e1e1e1;
  --field-border: #d1d1d1;
  --page-max: 1200px;
  --gutter: 20px;
}

/* ---------- Base ---------- */

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

html {
  font-size: 62.5%; /* 1rem = 10px, as in Skeleton */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1.6;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 2rem;
  color: var(--brand);
  font-weight: 300;
}

/* h1/h2 carry the old h5 look; h3 the old h6 look. */
h1,
h2 {
  font-size: 1.8rem;
  line-height: 1.5;
  letter-spacing: -0.05rem;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.6;
  letter-spacing: 0;
}

p {
  margin-top: 0;
}

a {
  color: var(--brand);
}

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

strong,
b {
  font-weight: 600;
}

ul,
ol {
  margin-top: 0;
  padding-left: 0;
}

ul {
  list-style: circle inside;
}

ol {
  list-style: decimal inside;
}

li {
  margin-bottom: 1rem;
}

ul ul,
ul ol,
ol ol,
ol ul {
  margin: 1.5rem 0 1.5rem 3rem;
  font-size: 90%;
}

p,
ul,
ol,
blockquote,
table,
form,
figure {
  margin-bottom: 2.5rem;
}

blockquote {
  margin: 1em 40px 2.5rem;
}

blockquote p {
  margin-bottom: 0;
}

hr {
  margin: 3rem 0 3.5rem;
  border: 0;
  border-top: 1px solid var(--rule);
}

code {
  margin: 0 0.2rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #f1f1f1;
  color: var(--brand);
  font-size: 1.1em;
  white-space: nowrap;
}

/* ---------- Content helpers (used from Markdown via {.class}) ---------- */

.logo-clr {
  color: var(--brand);
}

.underline {
  text-decoration: underline;
}

.compact-bottom-margin {
  margin-bottom: 0.5em;
}

/* An intro line directly above a list sits close to it. */
p:has(+ ul.compact-list) {
  margin-bottom: 0;
}

.compact-list {
  margin-top: 0.75em;
  margin-left: 1em;
  list-style: inside disc;
}

.compact-list > li {
  margin-bottom: 0.25em;
}

.inset-list {
  margin-left: 0.5em;
}

.drop-cap::first-letter {
  color: var(--brand);
  font-size: 400%;
  line-height: 0.75em;
}

.headshot {
  display: block;
  width: auto;
  height: 250px;
  margin-bottom: 1rem;
}

/* Markdown wraps a lone image in <p>; don't let that empty paragraph add space. */
p:has(> .headshot:only-child) {
  margin: 0;
}

.payment-qr {
  width: auto;
  height: 250px;
}

.map {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
}

/* ---------- PayPal form ---------- */

.paypal {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  max-width: 24rem;
}

.paypal label {
  margin-top: 0.5rem;
}

.paypal select,
.paypal input[type="text"] {
  width: 100%;
  height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.paypal select:focus,
.paypal input[type="text"]:focus {
  border-color: #33c3f0;
  outline: 0;
}

.paypal input[type="image"] {
  margin-top: 1rem;
}

/* ---------- Page frame ---------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  margin: 0 24px;
  padding: 10px 0 15px;
  text-align: center;
}

.site-header img {
  width: auto;
  height: 100px;
}

.layout {
  flex: 1;
}

.content {
  min-width: 0;
  padding-bottom: 2rem;
}

/* ---------- Navigation ---------- */

.site-nav ul {
  margin: 0;
  list-style: none;
}

.site-nav li {
  margin-bottom: 1rem;
  border-right: 8px solid var(--bg);
}

.site-nav li:hover {
  border-right-color: var(--muted);
  background-color: var(--brand);
}

.site-nav li.active,
.site-nav li.active:hover {
  border-right-color: var(--brand);
}

.site-nav a {
  display: block;
  padding: 0 10px;
  color: var(--text-strong);
  font-size: 16px;
  font-variant: small-caps;
  font-weight: 600;
  letter-spacing: 0.2rem;
  line-height: 1.5rem;
  text-decoration: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-variant: small-caps;
  font-weight: 600;
  letter-spacing: 0.2rem;
}

.nav-toggle[hidden] {
  display: none;
}

/* Three-bar menu icon drawn with borders. */
.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

/* Phones: menu collapses behind the toggle; links get larger tap targets. */
@media (max-width: 749px) {
  .js .site-nav:not(.is-open) {
    display: none;
  }

  .site-nav {
    margin-bottom: 2rem;
  }

  .site-nav li {
    margin-bottom: 0;
  }

  .site-nav a {
    padding: 1rem 1.2rem;
    font-size: 17px;
  }

  blockquote {
    margin-right: 0;
    margin-left: 20px;
  }
}

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

.site-footer {
  margin: 0 calc(-1 * var(--gutter));
  padding: 1rem var(--gutter);
  background-color: var(--bg-alt);
  color: var(--brand);
  font-size: 0.75em;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--brand);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ---------- Larger than phablet ---------- */

@media (min-width: 550px) {
  :root {
    --gutter: 40px;
  }

  h1,
  h2 {
    font-size: 2.4rem;
  }

  .site-header {
    padding: 5px 0;
  }

  .site-header img {
    height: 125px;
  }
}

/* ---------- Larger than tablet: sidebar layout ---------- */

@media (min-width: 750px) {
  .site-header {
    padding: 10px 0 25px;
  }

  .site-header img {
    height: 150px;
  }

  .layout {
    display: grid;
    grid-template-columns: 30.667% 56.667%;
    column-gap: 4%;
    align-items: start;
  }

  .layout--wide {
    grid-template-columns: 30.667% 65.333%;
  }

  .nav-toggle {
    display: none !important;
  }

  .site-nav {
    display: inline-block; /* active marker hugs the longest label */
  }

  .site-nav a {
    letter-spacing: 0;
  }

  .headshot {
    float: right;
    clear: right;
    margin: 0 0 1rem 1rem;
  }

  .content::after {
    content: "";
    display: block;
    clear: both;
  }

  .site-footer {
    margin: 0;
    font-size: 1em;
  }
}

/* ---------- Desktop ---------- */

@media (min-width: 1200px) {
  .sidebar {
    position: sticky;
    top: 2rem;
  }

  .site-nav a {
    font-size: 18px;
    letter-spacing: 0.2rem;
    line-height: 1.75rem;
  }
}
