/* ==========================================================
   Sarah Phares — site styles
   One stylesheet shared by every page.
   Colors and fonts are set once here, in :root.
   ========================================================== */

:root {
  --text: #000;
  --background: #fff;
  --rule: #000;            /* the thin divider lines */

  --serif: "orpheuspro", Georgia, serif;   /* Orpheus Pro, from Adobe Fonts */
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --gutter: 3vw;           /* left/right page margin */
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 1rem + 0.1vw, 1.125rem);
  line-height: 1.84;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }


.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--background); padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 42px var(--gutter) 42px;
}

.site-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2.25rem);
  line-height: 1.4;
  text-decoration: none;
}

.site-nav { display: flex; gap: 1.1em; }
.site-nav a { text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }

.menu-button {
  display: none;
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 9px;
}
.menu-button span { display: block; height: 1px; width: 100%; background: var(--text); }

/* ---------- Shared text styles ---------- */

.page { padding: 32px var(--gutter) 0; }

.page-title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 2rem + 2.8vw, 4.75rem);
  line-height: 1.22;
  margin-bottom: 29px;
}

/* Large serif intro paragraphs (were H4s on Squarespace) */
.lead {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1rem + 0.72vw, 1.875rem);
  line-height: 1.366;
  margin: 0 0 32px;
}

/* Serif section labels in the left of each row */
.section-label {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1rem + 0.72vw, 1.875rem);
  line-height: 1.366;
}

.small-heading { font-family: var(--sans); font-size: 1em; font-weight: 700; margin: 0 0 1em; }

p { margin: 0 0 1em; }

hr { border: 0; height: 1px; background: var(--rule); margin: 0; }

ul.bullets { margin: 0; padding-left: 1.2em; }
ul.bullets li { margin: 0.5em 0; padding-left: 0.3em; }
ul.bullets li::marker { font-size: 0.7em; }

.note { font-style: italic; }

/* A row = a divider line, then a label on the left and content on the right */
.row {
  display: grid;
  grid-template-columns: 25% 1fr;
  column-gap: 6.3%;
  padding: 14px 0 22px;
  border-top: 1px solid var(--rule);
}
.row:last-of-type { border-bottom: 1px solid var(--rule); }
.row ul.bullets { margin-top: -0.15em; }

/* ---------- Home ---------- */

.home-statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3.5rem);
  line-height: 1.3;
  max-width: 75%;
  margin: 0 0 32px;
}
.home-statement a { text-underline-offset: 0.2em; }

.home-links {
  font-size: clamp(1.125rem, 1rem + 0.57vw, 1.625rem);
  line-height: 1.84;
  max-width: 75%;
}
.home-links .sep { margin: 0 0.25em; }

/* ---------- Two-column pages (About, service pages) ---------- */

.two-col {
  display: grid;
  grid-template-columns: 29.2% 1fr;
  column-gap: 4.2%;
  align-items: start;
}

/* ---------- About ---------- */

.about-photo {
  justify-self: end;
  width: 57%;
  aspect-ratio: 219 / 311;
  object-fit: cover;
  margin-top: 47px;
}
.about-text { max-width: 81%; margin-top: 47px; }
.about-text .lead { margin-bottom: 32px; }
.about-text hr { margin: 14px 0 42px; }

/* ---------- Approach ---------- */

.approach { max-width: 66.6%; }
.approach .intro { margin-bottom: 60px; }
.approach .row { grid-template-columns: 24% 1fr; column-gap: 7.5%; padding: 25px 0 12px; }
.approach .row .lead:last-child { margin-bottom: 20px; }

/* ---------- Service pages ---------- */

.service-intro { margin-bottom: 60px; }
.service-intro .lead { margin-bottom: 0; }

.related {
  list-style: none;
  padding: 40px 0 0;
  margin: 0;
}
.related li { margin: 0 0 0.4em; }
.related a { text-decoration: none; }
.related a:hover { text-decoration: underline; }

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 115px var(--gutter) 150px;
  margin-top: 90px;
  font-size: clamp(0.875rem, 0.875rem + 0.12vw, 1rem);
}
.site-footer p { margin: 0; }
.social { display: flex; gap: 12px; }
.social a { display: block; width: 20px; height: 20px; }
.social svg { width: 20px; height: 20px; fill: var(--text); }

/* ---------- Phones and small tablets ---------- */

@media (max-width: 767px) {
  :root { --gutter: 6vw; }

  .site-header { padding: 32px var(--gutter); position: relative; }
  .menu-button { display: flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0.4em;
    padding: 24px var(--gutter) 40px;
    background: var(--background);
    font-size: 1.5rem;
    z-index: 50;
  }
  body.menu-open .site-nav { display: flex; }

  .home-statement, .home-links { max-width: none; }

  .two-col { display: block; }
  .service-photo { margin-bottom: 40px; }
  .about-photo { width: 70%; margin: 0 0 32px; }
  .about-text { max-width: none; margin-top: 0; }
  .approach { max-width: none; }

  .row, .approach .row { grid-template-columns: 1fr; row-gap: 12px; }


  .site-footer { padding: 60px var(--gutter) 80px; margin-top: 60px; }
}
