/*
Theme Name: Finishing Well
Theme URI: https://example.com/finishing-well
Author: Evergreen Media
Description: A calm, responsive wellness coaching theme based on the Finishing Well website concept.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: finishing-well
*/

:root {
  --fw-ink: #233f35;
  --fw-muted: #789084;
  --fw-text: #29312e;
  --fw-line: #d8dcda;
  --fw-paper: #ffffff;
  --fw-placeholder: #d8d8d8;
  --fw-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fw-text);
  background: var(--fw-paper);
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--fw-ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.fw-wrap { width: min(calc(100% - 64px), var(--fw-max)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--fw-line); background: rgba(255,255,255,.97); }
.site-header__inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.site-branding { flex: 0 0 auto; }
.site-title { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 700; letter-spacing: .28em; line-height: 1; }
.site-title a { color: var(--fw-ink); text-decoration: none; }
.custom-logo { max-height: 64px; width: auto; }
.menu-toggle { display: none; border: 1px solid var(--fw-ink); background: transparent; color: var(--fw-ink); padding: 9px 12px; font: inherit; }
.primary-menu { display: flex; align-items: center; gap: clamp(24px, 3.3vw, 50px); list-style: none; margin: 0; padding: 0; }
.primary-menu a { color: var(--fw-text); text-decoration: none; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .23em; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--fw-muted); }

.fw-hero { position: relative; min-height: 520px; display: grid; align-items: center; background: #d8d8d8 center/cover no-repeat; overflow: hidden; }
.fw-placeholder { position: relative; overflow: hidden; background-color: var(--fw-placeholder); }
.fw-placeholder:not(.has-image)::before, .fw-placeholder:not(.has-image)::after { content: ""; position: absolute; left: -20%; top: 50%; width: 140%; height: 1px; background: #b6b6b6; transform-origin: center; }
.fw-placeholder:not(.has-image)::before { transform: rotate(29deg); }
.fw-placeholder:not(.has-image)::after { transform: rotate(-29deg); }
.fw-placeholder__label { position: absolute; inset: 0; display: grid; place-items: center; color: #7a7a7a; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; text-align: center; padding: 20px; }
.fw-hero__card { position: relative; z-index: 1; width: min(650px, 63%); margin-block: 80px; padding: 48px 42px 44px; border-radius: 13px; background: rgba(255,255,255,.95); }
.fw-eyebrow { margin: 0 0 18px; color: var(--fw-muted); text-transform: uppercase; font-weight: 700; font-size: 13px; letter-spacing: .24em; }
.fw-verse { margin: 0 0 40px; color: var(--fw-ink); font-family: Georgia, serif; font-size: clamp(21px, 2.15vw, 28px); font-style: italic; line-height: 1.4; }
.fw-button { display: inline-block; padding: 17px 27px; border-radius: 5px; background: var(--fw-ink); color: #fff; text-decoration: none; text-transform: uppercase; font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .23em; transition: transform .15s ease, opacity .15s ease; }
.fw-button:hover { color: #fff; opacity: .9; transform: translateY(-1px); }

.fw-section { padding-block: 82px; }
.fw-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .85fr); gap: clamp(60px, 10vw, 145px); align-items: center; }
.fw-copy { max-width: 680px; }
.fw-copy p { margin: 0 0 26px; }
.fw-copy p:last-child { margin-bottom: 0; }
.fw-emphasis { color: var(--fw-ink); font-weight: 700; }
.fw-portrait { width: min(100%, 330px); aspect-ratio: .92; justify-self: end; background-position: center; background-size: cover; }

.fw-page { padding-block: 68px 92px; }
.fw-page h1 { margin: 0 0 38px; color: var(--fw-ink); font-size: clamp(34px, 4vw, 48px); line-height: 1.15; letter-spacing: .08em; }
.fw-page h2 { margin: 0 0 28px; color: var(--fw-ink); font-size: clamp(30px, 3vw, 42px); line-height: 1.2; letter-spacing: .08em; }
.fw-page__lead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr); gap: clamp(50px, 9vw, 130px); align-items: start; }
.fw-page__image { width: 100%; aspect-ratio: .93; background-position: center; background-size: cover; }
.fw-page__body p { margin: 0 0 22px; }
.fw-page__wide { margin-top: 62px; }
.fw-expect { margin-top: 58px; }
.fw-expect h2 { margin-bottom: 34px; font-size: 15px; text-transform: uppercase; letter-spacing: .27em; }
.fw-expect__item { margin-left: 20px; margin-bottom: 22px; }
.fw-expect__item h3 { margin: 0 0 5px; color: var(--fw-ink); font-size: 17px; letter-spacing: .07em; }
.fw-expect__item p { margin: 0; }
.fw-content { max-width: 850px; }
.fw-content > :first-child { margin-top: 0; }
.fw-content h2, .fw-content h3 { color: var(--fw-ink); }
.site-footer { padding: 35px 0; border-top: 1px solid var(--fw-line); color: #647169; font-size: 12px; text-align: center; }

@media (max-width: 820px) {
  .fw-wrap { width: min(calc(100% - 38px), var(--fw-max)); }
  .site-header__inner { min-height: 86px; flex-wrap: wrap; gap: 16px; }
  .site-title { font-size: 22px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding-bottom: 22px; }
  .site-nav.is-open { display: block; }
  .primary-menu { display: grid; gap: 10px; }
  .primary-menu a { display: block; padding: 7px 0; }
  .fw-hero { min-height: 500px; }
  .fw-hero__card { width: 100%; margin-block: 55px; padding: 36px 28px; }
  .fw-grid, .fw-page__lead { grid-template-columns: 1fr; gap: 42px; }
  .fw-portrait { justify-self: start; width: min(100%, 420px); }
  .fw-page__image { width: min(100%, 480px); }
  .fw-section, .fw-page { padding-block: 55px; }
  .fw-page__wide { margin-top: 42px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .fw-wrap { width: min(calc(100% - 28px), var(--fw-max)); }
  .fw-button { width: 100%; text-align: center; padding-inline: 15px; }
  .fw-hero__card { padding: 30px 22px; }
}
