/* Julie A. Low, MD · juliealowmd.com
 * Navy carries the text. Ochre carries the accents. Ivory is the ground.
 */

/* --- Fonts (self-hosted variable fonts, latin subset, OFL) --- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-italic-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/source-sans-3-italic-latin.woff2) format("woff2");
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
address { font-style: normal; }
button { font: inherit; }

/* --- Tokens --- */
:root {
  --ivory: #F5EEDC;
  --ivory-soft: #E6DBBF;
  --navy: #18263F;
  --navy-deep: #0F1A2E;
  --navy-muted: #4A5870;
  --ochre: #C59134;
  --ochre-deep: #7A5812;
  --hairline: #D4C3A1;
  --hairline-dark: rgba(245, 238, 220, 0.22);
  --field: #FFFDF7;
  --field-line: #998356;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui: var(--body);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --measure: 600px;
  --measure-wide: 800px;
  --page: 880px;
}

/* --- Base --- */
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
p { text-wrap: pretty; }

a { color: var(--ochre-deep); text-decoration: none; text-underline-offset: 3px; transition: color 0.15s ease; }
a:hover { color: var(--navy); text-decoration: underline; }

/* Focus: navy ring on ivory pages, ochre ring inside the navy hero (both > 3:1). */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 1px;
}
.hero-section :focus-visible { outline-color: var(--ochre); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: var(--ivory);
  padding: 10px 16px;
  border-radius: 2px;
  z-index: 100;
  font-family: var(--ui);
  font-size: 14px;
}
.skip-link:focus { left: 8px; text-decoration: none; }
.hero-section .skip-link { background: var(--ivory); color: var(--navy); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Page wrappers --- */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
  text-align: center;
}
.page > main { flex: 1; }
.hero-section {
  background: var(--navy);
  color: var(--ivory);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero-section .page-inset {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3) 0;
  text-align: center;
}
.hero-section .site-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline-dark);
  color: var(--ivory-soft);
}
.hero-section .home { margin: auto; padding-bottom: var(--space-5); }

/* --- Site header --- */
.site-header {
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
}
.hero-section .site-header {
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}
.site-header .brand {
  display: inline-block;
  font-family: var(--display);
  font-variation-settings: "opsz" 48, "wght" 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin-bottom: var(--space-2);
  padding: 8px 4px;
  color: var(--navy);
}
.site-header .brand:hover { text-decoration: none; color: var(--ochre-deep); }
.hero-section .site-header .brand { color: var(--ivory); }
.hero-section .site-header .brand:hover { color: var(--ochre); }

.site-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-muted);
}
.site-nav a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}
.site-nav a:hover { color: var(--ochre-deep); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom: 1px solid var(--ochre);
}
.hero-section .site-nav ul { color: var(--ivory-soft); }
.hero-section .site-nav a:hover { color: var(--ochre); }
.hero-section .site-nav a[aria-current="page"] { color: var(--ivory); }

/* --- Home (business card) --- */
.home {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-3) 0 var(--space-2);
  text-align: center;
}
.home .name {
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "wght" 400;
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.home .credential {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}
.home .intro {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ivory);
  max-width: 44ch;
  margin: 0 auto var(--space-3);
}
.home .consult {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ivory-soft);
  max-width: 44ch;
  margin: 0 auto var(--space-3);
}
.home .addr-block {
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ivory);
  margin: 0 auto;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  max-width: 40ch;
}
.home .addr-label {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: var(--space-1);
}
.home .addr-block a { color: var(--ivory); display: inline-block; padding: 10px 4px; line-height: 1.4; min-height: 44px; }
.home .addr-block a:hover { color: var(--ochre); }
.home .addr-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 var(--space-1); }
.home .addr-links .dot { color: var(--ochre); }

/* --- Calls to action --- */
.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.article .cta-row { margin-top: var(--space-4); }

.btn {
  display: inline-block;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--navy); color: var(--ivory); }
.btn-primary:hover { background: var(--navy-deep); color: var(--ivory); text-decoration: none; }
.hero-section .btn-primary { background: var(--ochre); color: var(--navy); }
.hero-section .btn-primary:hover { background: var(--ochre-deep); color: var(--ivory); }

.btn-text {
  display: inline-flex;
  align-items: center;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--ochre);
  min-height: 44px;
  padding: 0 0 3px;
}
.btn-text:hover { color: var(--ochre-deep); text-decoration: none; }
.hero-section .btn-text { color: var(--ivory); }
.hero-section .btn-text:hover { color: var(--ochre); }

/* --- Article pages --- */
.article-header {
  padding-top: var(--space-3);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  text-align: center;
}
.article-header::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--ochre);
  margin: var(--space-4) auto 0;
}
.article-header h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "wght" 500;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}
.article-header .deck {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--navy-muted);
  max-width: 44ch;
  margin: var(--space-3) auto 0;
}

.article {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: left;
}
.article-wide { max-width: var(--measure-wide); }
.article p {
  margin-bottom: var(--space-3);
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
}
.article h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 48, "wght" 500;
  font-weight: 500;
  font-size: 24px;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  letter-spacing: -0.005em;
  text-align: center;
  color: var(--navy);
}

.article .note {
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
  max-width: 44ch;
  margin: 0 auto var(--space-3);
}

.article .pullquote {
  font-family: var(--display);
  font-variation-settings: "opsz" 48, "wght" 400;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 26px);
  line-height: 1.45;
  color: var(--ivory);
  background: var(--navy);
  text-align: center;
  max-width: 560px;
  margin: var(--space-5) auto 0;
  padding: var(--space-4);
  border-radius: 2px;
}
.article .pullquote::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--ochre);
  margin: 0 auto var(--space-3);
}

/* --- Portrait (About) --- */
.article .portrait {
  float: right;
  width: 240px;
  height: auto;
  margin: 6px 0 var(--space-3) var(--space-4);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--hairline);
}
.article .clear { clear: both; }

/* --- Two-column sections (Contact, Practice) --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-4);
  text-align: left;
}
.two-col h2 { text-align: left; margin-top: 0; }
.two-col section + section { margin-top: 0; }
.two-col .stacked + .stacked { margin-top: var(--space-4); }
.article .two-col p {
  text-align: left;
  max-width: none;
  margin: 0 0 var(--space-2);
}
.info-list {
  list-style: disc;
  padding-left: 1.2em;
  margin: 0 0 var(--space-2);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
}
.info-list li + li { margin-top: var(--space-1); }

/* --- Services row (Practice) --- */
.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
}
.services-row li {
  border-top: 2px solid var(--ochre);
  padding-top: var(--space-2);
}
.services-row .svc-title {
  display: block;
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "wght" 500;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  color: var(--navy);
  text-wrap: balance;
}

/* --- Contact form --- */
.contact-form { display: flex; flex-direction: column; gap: var(--space-2); max-width: 560px; }
.contact-form label { display: block; }
.contact-form label > span {
  display: block;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-muted);
  margin-bottom: 6px;
}
.contact-form .req { display: inline; color: var(--ochre-deep); margin-left: 2px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--navy);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 2px;
  padding: 12px 14px;
  line-height: 1.4;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}
.contact-form button { align-self: flex-start; margin-top: var(--space-1); }
.article .form-privacy {
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy-muted);
  margin: 0 0 var(--space-1);
}
.article .form-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--navy-muted);
  margin: var(--space-1) 0 0;
}
.form-note a { color: var(--navy); text-decoration: underline; }

/* --- Office block (Contact) --- */
.contact-stack {
  text-align: center;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  padding: var(--space-3) 0 0;
  border-top: 2px solid var(--ochre);
  margin: var(--space-5) 0 0;
}
.contact-stack a { color: var(--navy); display: inline-block; padding: 12px 0; line-height: 1; min-height: 44px; }
.contact-stack a:hover { color: var(--ochre-deep); }
.contact-stack .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin-top: var(--space-2);
}

/* --- Footer --- */
.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-4) 0 var(--space-3);
  border-top: 2px solid var(--ochre);
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-muted);
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-4); }
  .two-col .stacked + .stacked { margin-top: var(--space-4); }
  .services-row { grid-template-columns: 1fr; gap: 0; }
  .services-row li { padding: var(--space-2) 0; border-top: 1px solid var(--hairline); }
  .services-row li:first-child { border-top: 2px solid var(--ochre); }
}
@media (max-width: 720px) {
  .site-nav ul { gap: var(--space-3); }
  .article .portrait { float: none; display: block; width: 220px; margin: 0 auto var(--space-4); }
  .cta-row { flex-direction: column; gap: var(--space-2); }
  .hero-section .site-header { margin-bottom: var(--space-3); }
}
/* Laptop-height screens: pull the primary button up toward the fold. */
@media (max-height: 860px) and (min-width: 721px) {
  .hero-section .page-inset { padding-top: var(--space-3); }
  .hero-section .site-header { margin-bottom: var(--space-3); }
  .home .name { margin-bottom: var(--space-2); }
  .home .intro, .home .consult, .home .credential { margin-bottom: var(--space-2); }
  .home .addr-block { padding: var(--space-2) 0; }
  .hero-section .cta-row { margin-top: var(--space-2); }
}

/* --- Print --- */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .skip-link, .site-nav, .cta-row, .contact-form, .form-privacy, .form-note { display: none !important; }
  .hero-section { background: none; color: var(--navy); padding-bottom: 0; }
  .hero-section .site-header .brand, .home .name, .home .intro, .home .consult, .home .credential,
  .home .addr-block, .home .addr-block a, .home .addr-label { color: var(--navy); }
  .home .addr-block { border-color: var(--hairline); }
  .hero-section { min-height: 0; }
  .hero-section .site-footer { border-color: var(--hairline); color: var(--navy-muted); }
  .page { min-height: 0; }
  .article .pullquote { background: none; color: var(--navy); border: 1px solid var(--hairline); }
  .two-col { grid-template-columns: 1fr; gap: var(--space-3); }
  .site-footer { margin-top: var(--space-4); }
  .article .portrait { width: 160px; box-shadow: none; }
  a { color: var(--navy); text-decoration: none; }
}
