/* Delfina Krause — site styles
   Design notes (keep consistent when editing; see CLAUDE.md):
   - Palette: river water and Buenos Aires jacaranda. Calm, cool and quiet.
   - Type: Newsreader (headings, quotes, blog text) + Atkinson Hyperlegible Next (body, menus, buttons).
   - One memorable element: the hand-drawn "surface line" in the hero. Everything else stays quiet.
*/

/* ---------- Fonts (self-hosted: no requests to Google or other servers) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --mist: #eef2ef;        /* page background */
  --paper: #f8faf8;       /* lighter surfaces */
  --river: #1d3a39;       /* main text, deep band */
  --current: #2e5e5a;     /* links, the surface line */
  --silt: #55635f;        /* secondary text */
  --foam: #dce6e1;        /* hairlines, borders */
  --jacaranda: #6b4f96;   /* accent: booking button, focus ring */
  --jacaranda-deep: #5a3f85;
  --glint: #e8efec;       /* text on the deep band */

  /* Type */
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Type scale (classic 16 / 18 / 21 / 24 / 36 / 48 / 60 / 72) */
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.4rem, 1.4rem + 4vw, 4.5rem);

  /* Space and measure */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4rem, 3rem + 4vw, 7rem);
  --measure: 66ch;
  --wrap: 72rem;
  --radius: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--river);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 500; }

p, ul, ol { margin: 0 0 var(--space-2); }

a {
  color: var(--current);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--river); text-decoration-thickness: 2px; }

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
/* Narrow sections stay aligned with the page's left edge; only their content is narrower. */
.narrow > * { max-width: 48rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  background: var(--river);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.preview-banner {
  margin: 0;
  padding: 0.4rem 1.25rem;
  background: var(--jacaranda-deep);
  color: #fff;
  font-size: var(--step--1);
  text-align: center;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--river);
  border-radius: var(--radius);
  background: var(--river);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover { background: var(--current); border-color: var(--current); color: #fff; }
.button-accent { background: var(--jacaranda); border-color: var(--jacaranda); color: #fff; }
.button-accent:hover { background: var(--jacaranda-deep); border-color: var(--jacaranda-deep); }
.button-light { background: transparent; border-color: var(--glint); color: var(--glint); }
.button-light:hover { background: var(--glint); border-color: var(--glint); color: var(--river); }
.button-quiet { background: transparent; color: var(--river); }
.button-quiet:hover { background: var(--river); color: var(--paper); }
.button-small { padding: 0.5rem 0.95rem; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mist);
  background: color-mix(in srgb, var(--mist) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--foam);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.85rem;
}
.wordmark {
  display: flex;
  flex-direction: column;
  color: var(--river);
  text-decoration: none;
  line-height: 1.15;
}
.wordmark-name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; }
.wordmark-role { font-size: var(--step--1); color: var(--silt); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.button) {
  color: var(--river);
  font-size: 1rem;
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--current); }

.menu-toggle {
  display: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--river);
  background: transparent;
  border: 1px solid var(--river);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 56rem) {
  /* The menu button only appears once site.js has loaded; without it the menu simply stays visible. */
  .menu-toggle:not([hidden]) { display: inline-block; }
  .menu-toggle:not([hidden]) + .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--mist);
    border-bottom: 1px solid var(--foam);
  }
  .menu-toggle:not([hidden]) + .site-nav.is-open { display: block; }
  .menu-toggle:not([hidden]) + .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: min(100% - 2.5rem, var(--wrap));
    margin: 0 auto;
    padding: 0.5rem 0 1.25rem;
  }
  .menu-toggle:not([hidden]) + .site-nav li { width: 100%; }
  .menu-toggle:not([hidden]) + .site-nav a:not(.button) { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--foam); }
  .menu-toggle:not([hidden]) + .site-nav .nav-cta { margin-top: 0.9rem; }
  .site-header { position: relative; }
}

/* ---------- Hero: the surface and what lies beneath ---------- */
.hero { padding-top: var(--space-6); padding-bottom: var(--space-5); text-align: center; }
.hero-title {
  font-size: var(--step-4);
  font-weight: 380;
  line-height: 1.02;
  letter-spacing: -0.018em;
  max-width: 13em;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}
.surface-line {
  display: block;
  width: 100%;
  height: auto;
  margin-block: var(--space-2) var(--space-4);
  overflow: visible;
  animation: surface-reveal 2.2s cubic-bezier(.3,.1,.2,1) 0.25s both;
}
.surface-line path {
  fill: none;
  stroke: var(--current);
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
@keyframes surface-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.hero-depth { display: grid; gap: var(--space-2); justify-items: center; }
.hero-questions {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.1rem);
  font-weight: 350;
  line-height: 1.3;
  max-width: 30ch;
  margin: 0 auto var(--space-2);
}
.hero-body { max-width: var(--measure); color: var(--river); }
.hero-actions { margin-top: var(--space-1); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-5); }
.section + .section { border-top: 1px solid var(--foam); }

.prose { max-width: var(--measure); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.25rem; }
.prose strong { font-weight: 650; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--foam);
}
.about-name {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.about-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--silt);
  max-width: 40ch;
  margin-bottom: var(--space-3);
}

/* Services: headings hang to the left of their text */
.services h2 { margin-bottom: var(--space-4); }
.service {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.2fr);
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--foam);
}
.service h3 { max-width: 14ch; }
.service .prose ul { columns: 2; column-gap: var(--space-4); max-width: 30rem; }

/* Quote band: the one deep-water moment */
.quote-band {
  background: var(--river);
  color: var(--glint);
  padding-block: var(--space-6);
}
.quote { margin: 0 0 var(--space-4); }
.quote p {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-weight: 350;
  line-height: 1.25;
  max-width: 28ch;
  margin: 0;
}

/* FAQ */
.faq h2 { margin-bottom: var(--space-3); }
.faq-item { border-top: 1px solid var(--foam); }
.faq-item:last-of-type { border-bottom: 1px solid var(--foam); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 1.1rem;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 500;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--current);
  flex: none;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .prose { padding-bottom: var(--space-3); }

/* Contact */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: end;
}
.contact-intro { color: var(--silt); margin-bottom: 0.25rem; }
.contact-email { margin: 0; }
.contact-email a {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.contact-call h3 { font-size: var(--step-1); max-width: 26ch; }

/* Certificates and memberships */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.cert { margin: 0; }
.cert img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--foam);
  border-radius: var(--radius);
}
.cert figcaption { margin-top: 0.5rem; font-size: var(--step--1); color: var(--silt); }
.member-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.member-list img { height: 64px; width: auto; }

/* ---------- Inner pages ---------- */
.page-header { padding-top: var(--space-5); padding-bottom: var(--space-3); }
.page-title { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); font-weight: 400; }
.page-lead { font-size: var(--step-1); color: var(--silt); max-width: 50ch; }
.page-body { padding-bottom: var(--space-5); }
.page-intro { margin-bottom: var(--space-4); }

.room { padding-block: var(--space-4); border-top: 1px solid var(--foam); }
.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-4);
  align-items: start;
}
.room-photos { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.room-photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--foam);
}

/* Blog */
.post-list { margin: 0; padding: 0; list-style: none; max-width: 48rem; }
.post-list-item { padding-block: var(--space-3); border-top: 1px solid var(--foam); }
.post-list-title { font-size: var(--step-2); margin-bottom: 0.35rem; }
.post-list-title a { color: var(--river); text-decoration: none; }
.post-list-title a:hover { text-decoration: underline; }
.post-list-summary { color: var(--silt); max-width: var(--measure); }
.post-meta { color: var(--silt); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.post-back { font-size: var(--step--1); margin-bottom: var(--space-2); }
.prose-serif {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 64ch;
  padding-bottom: var(--space-5);
}
.prose-serif h2 { font-size: var(--step-2); margin-top: var(--space-4); }
.prose blockquote {
  margin: var(--space-3) 0;
  padding-left: var(--space-2);
  border-left: 2px solid var(--jacaranda);
  font-style: italic;
}
.empty-note { color: var(--silt); max-width: var(--measure); }

/* Contact strip at the end of inner pages */
.contact-strip { background: var(--paper); border-top: 1px solid var(--foam); padding-block: var(--space-4); }
.contact-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.contact-strip-text { font-family: var(--font-serif); font-size: var(--step-1); margin: 0; max-width: 34ch; }
.contact-strip-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--river); color: var(--glint); padding-block: var(--space-4); font-size: 1rem; }
.site-footer a { color: var(--glint); }
.site-footer a:hover { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3) var(--space-4);
}
.footer-id p { margin: 0; }
.footer-name { font-family: var(--font-serif); font-size: var(--step-1); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-copy { grid-column: 1 / -1; margin: 0; font-size: var(--step--1); opacity: 0.85; }

/* ---------- Small screens ---------- */
@media (max-width: 52rem) {
  .about-grid, .service, .contact-grid, .room-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 22rem; }
  .service .prose ul { columns: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-grid { align-items: start; }
}

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .surface-line { animation: none; }
}

@media print {
  .site-header, .preview-banner, .contact-strip, .menu-toggle, .surface-line { display: none; }
  body { background: #fff; }
}
