/* drdanepstein.com.au - hand-tuned static styles. No framework, no build step. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 560;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-560.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-600.woff2") format("woff2");
}

:root {
  --paper: oklch(97.6% 0.009 84);
  --paper-deep: oklch(95.2% 0.015 84);
  --ink: oklch(30% 0.012 75);
  --ink-soft: oklch(45% 0.016 75);
  --line: oklch(88% 0.015 84);
  --green: oklch(45% 0.075 168);
  --green-deep: oklch(38.5% 0.075 168);
  --green-tint: oklch(92.5% 0.028 168);
  --clay: oklch(58% 0.105 45);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

::selection { background: var(--green-tint); }

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

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

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

h1, h2, h3 { font-family: var(--serif); font-weight: 560; margin: 0 0 1rem; }
h1 { font-size: clamp(2.3rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.2rem); line-height: 1.15; }
h3 { font-size: 1.4rem; line-height: 1.2; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.9rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- header ---------- */

.top {
  max-width: 1120px;
  margin-inline: auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark { font-family: var(--serif); font-size: 1.2rem; margin: 0; }

.top-actions { display: flex; align-items: center; gap: 1.4rem; }

.phone-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.phone-link:hover { color: var(--green); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--green); color: var(--paper); }
.btn-primary:hover { background: var(--green-deep); color: var(--paper); transform: translateY(-1px); }
.btn-small { padding: 0.55rem 1.05rem; font-size: 0.92rem; }
.btn-wide { width: 100%; }

.cta-alt { color: var(--ink-soft); font-size: 1rem; }
.cta-alt:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad) clamp(2.5rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 11fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 1.8rem;
}

.cta-row { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }

.nudge {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 36ch;
  padding-left: 0.9rem;
  border-left: 2px solid var(--clay);
}

.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  transform: translate(16px, 16px);
}
.hero-photo img { position: relative; border-radius: 10px; }

/* hero entrance - one calm stagger, nothing else moves on this page */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * , .hero-photo {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-photo { transform: none; animation-name: fade; animation-duration: 0.9s; }
  .hero-text > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-text > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-text > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-text > *:nth-child(5) { animation-delay: 0.24s; }
  .hero-photo { animation-delay: 0.1s; }
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

/* ---------- trust row ---------- */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust ul {
  max-width: 1120px;
  margin-inline: auto;
  padding: 1.1rem var(--pad);
  list-style: none;
  margin-block: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  flex-wrap: wrap;
}
.trust li { font-size: 0.92rem; color: var(--ink-soft); }
.trust li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 0.6rem; vertical-align: 2px; }

/* ---------- about ---------- */

.about {
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-photo { margin: 0; }
.about-photo img { border-radius: 10px; }
.about-text p:not(.eyebrow) { max-width: 36rem; }
.about-text p:last-child { margin-bottom: 0; }

/* ---------- help ---------- */

.help {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 var(--pad) clamp(3rem, 8vw, 5.5rem);
}
.help-list {
  margin: 2.2rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem clamp(2.5rem, 5vw, 4.5rem);
}
.help-list div { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.help-list dt { font-family: var(--serif); font-weight: 560; font-size: 1.3rem; margin-bottom: 0.45rem; }
.help-list dd { margin: 0; color: var(--ink-soft); }

/* ---------- visit / booking ---------- */

.visit {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 8vw, 5rem);
}
.visit > div, .visit > aside {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
@supports (display: grid) {
  .visit {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    padding-inline: max(var(--pad), calc(50vw - 560px));
  }
  .visit > div, .visit > aside { max-width: none; margin-inline: 0; padding-inline: 0; }
}

address { font-style: normal; margin: 0 0 1rem; line-height: 1.6; }

.visit-links { display: flex; gap: 1.6rem; margin: 0 0 1.8rem; }

.hours { border-collapse: collapse; width: 100%; max-width: 25rem; }
.hours caption { font-family: var(--serif); font-weight: 560; font-size: 1.15rem; text-align: left; margin-bottom: 0.5rem; }
.hours th, .hours td { padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.hours th { text-align: left; font-weight: 400; color: var(--ink-soft); }
.hours td { text-align: right; }

.hours-note { font-size: 0.88rem; color: var(--ink-soft); max-width: 25rem; }

.book-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.4rem, 3vw, 2rem);
  align-self: start;
}
.book-card h3 { margin-bottom: 1.2rem; }

.widget-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 2px solid var(--clay);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}
.widget-row img { border-radius: 50%; }
.widget-name { font-weight: 600; line-height: 1.25; }
.widget-name small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.widget-hint {
  position: absolute;
  top: -0.75rem;
  right: 0.9rem;
  background: var(--paper);
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0.45rem;
  transform: rotate(-2deg);
}

.book-card ol { margin: 1.3rem 0; padding-left: 1.25rem; }
.book-card li { margin-bottom: 0.4rem; }
.book-card li::marker { color: var(--green); font-weight: 600; }

.book-note { font-size: 0.88rem; color: var(--ink-soft); text-align: center; margin: 0.9rem 0 0; }

/* ---------- utility pages (/book, 404) ---------- */

.book-page {
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(2.5rem, 8vw, 5rem) var(--pad);
}
.book-page .wordmark { margin-bottom: 2.4rem; }
.book-page h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); }
.book-page .lede { margin-bottom: 1.6rem; }
.book-page .widget-row { max-width: 22rem; margin-block: 1.8rem 1rem; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem var(--pad) 2.8rem;
}
footer p {
  max-width: 1120px;
  margin: 0.35rem auto;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }

/* ---------- small screens ---------- */

@media (max-width: 820px) {
  .hero, .about { grid-template-columns: 1fr; }
  .hero { padding-top: 1.2rem; }
  .hero-photo { order: 2; }
  .hero-photo::before { display: none; }
  .about-photo { order: -1; }
  .help-list { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; gap: 2.5rem; }
  .trust ul { flex-direction: column; gap: 0.55rem; padding-block: 1rem; }
}

@media (max-width: 560px) {
  .phone-link { display: none; }
  .cta-row .btn { width: 100%; }
  .cta-row { gap: 0.9rem; }
}
