/* sophiewasmer.com: one stylesheet, mobile first, no framework. */

:root {
  /* Teal and grey from the logo. Logo teal (#4fadb5) is too light for text,
     so buttons and links use a darker shade. */
  --bg: #fbfbfa;
  --surface: #ffffff;
  --ink: #2b2e30;
  --muted: #55595c;       /* 7:1 on white */
  --heading: #45494c;
  --brand: #23757c;       /* 5.4:1 with white text */
  --brand-dark: #1a5a60;
  --logo-teal: #4fadb5;
  --line: #e1e6e6;
  --accent-bg: #ecf5f6;
  --focus: #b8541f;
  --radius: 10px;
  --wrap: 68rem;
  --display: "Belleza", var(--sans);  /* headings; self-hosted, see @font-face */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Belleza by Eduardo Tunni, SIL Open Font License 1.1 (Latin subset). */
@font-face {
  font-family: "Belleza";
  src: url(../fonts/belleza.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;  /* Belleza has one weight; 600 would be faux-bolded */
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 1.6em; }
h3 { font-size: 1.25rem; }
p, ul, ol, dl { margin: 0 0 1em; }

a { color: var(--brand); text-underline-offset: .15em; }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--brand-dark);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { top: 1rem; color: #fff; }

/* Header and navigation */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .5rem;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 150px; height: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: .25rem 0 .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.1rem;
}
.site-nav a {
  display: inline-block;
  padding: .3rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: .98rem;
}
.site-nav a:hover { color: var(--brand); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  min-height: 44px;
  text-align: center;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-small { padding: .5rem 1.1rem; font-size: .95rem; white-space: nowrap; }
.btn-large { font-size: 1.15rem; padding: 1rem 2.2rem; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--accent-bg); color: var(--brand-dark); }

.cta { margin: 1.5rem 0; }
.cta .btn { margin: 0 .5rem .5rem 0; }
.cta-note { color: var(--muted); font-size: .95rem; margin-top: .25rem; }

/* Sections */
main { display: block; }
.section { padding: 2.5rem 0; }
.section-alt { background: var(--accent-bg); }
.page-intro { padding: 2.5rem 0 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.prose { max-width: 42rem; }

.hero { padding: 2rem 0 2.5rem; }
.hero-grid { display: grid; gap: 1.75rem; align-items: center; }
.hero img, .photo { border-radius: var(--radius); }
.hero img { max-width: 420px; width: 100%; justify-self: center; }
.site-header { border-top: 4px solid var(--logo-teal); }

.cards { display: grid; gap: 1rem; padding: 0; list-style: none; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem .5rem;
}
.card h3 { margin-bottom: .35em; }
.card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { border-color: var(--brand); }
.card-link:hover .more { text-decoration: underline; }

/* Services */
.price-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.price-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.price-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .25rem 1rem;
}
.price-head h2, .price-head h3 { margin: 0; }
.price { font-weight: 600; color: var(--brand-dark); white-space: nowrap; }
.price-list p { margin: .5rem 0 0; }

.treatment { margin: 0 0 2.5rem; }
.treatment h2 { margin-top: 0; margin-bottom: .25rem; }
.price-guide { font-weight: 600; color: var(--brand-dark); margin-top: 0; }
.card .more { font-weight: 600; color: var(--brand); }

.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: .5rem; }

.callout {
  background: var(--surface);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout > :last-child { margin-bottom: 0; }

dl.details dt { font-weight: 600; margin-top: .75rem; }
dl.details dd { margin: 0; }

/* Content still to come from the Wix site. Visible on staging on purpose;
   deploy.sh refuses to publish to production while any remain. */
.todo {
  background: #fff4c2;
  outline: 2px dashed #b08900;
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem 0;
  font-size: .95rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.footer-grid { display: grid; gap: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .35rem; }

@media (min-width: 46rem) {
  .header-top { padding-top: 1.1rem; }
  .brand img { width: 200px; }
  .hero { padding: 3.5rem 0; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a { transition: background-color .15s, color .15s, border-color .15s; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (min-width: 46rem) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}



/* Book page: header plus Square's booking page in a full-height frame */
.embed-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.embed-page .site-header { flex: 0 0 auto; }
.embed-main { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.booking-note {
  flex: 0 0 auto;
  margin: 0 auto;
  padding: .6rem 16px;
  width: 100%;
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
  background: var(--accent-bg);
  border-bottom: 1px solid var(--line);
}
.booking-frame { flex: 1 1 auto; width: 100%; border: 0; display: block; }
