/* ============================================================
   edzanelli.com  |  shared stylesheet
   Same principles as seniorminder.com: serif display over a light sans body,
   a centered column, soft warm-white cards on a paper ground, quiet dividers.
   Palette is edzanelli's own: paper, ink, navy, teal, brass.
   ============================================================ */

:root {
  --paper:        #F6F3EE;
  --card:         #FFFDFA;
  --ink:          #22303C;
  --ink-light:    #5A6874;
  --navy:         #1B2A41;
  --teal:         #1F6F78;
  --teal-light:   #2A8A94;
  --teal-dark:    #175A61;
  --brass:        #B8923E;
  --rule:         rgba(27, 42, 65, 0.12);
  --rule-soft:    rgba(27, 42, 65, 0.07);
  --shadow:       0 2px 12px rgba(27, 42, 65, 0.04);
  --shadow-lift:  0 4px 24px rgba(27, 42, 65, 0.07);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1040px;
  --text-col: 720px;
}

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

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

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Paper grain, as on seniorminder.com */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--teal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--teal-light); }
a:active { color: var(--brass); }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; color: var(--ink-light); }
strong { font-weight: 500; color: var(--ink); }

.lead { font-size: 1.2rem; line-height: 1.7; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }
.narrow { max-width: var(--text-col); margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* Small label above a group, as "Get in Touch" on seniorminder.com */
.label {
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
}

.divider { width: 40px; height: 1px; background: var(--brass); opacity: 0.6; margin: 2.5rem auto; }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header { position: relative; z-index: 3; padding: 1.4rem 0 1.1rem; border-bottom: 1px solid var(--rule-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-family: var(--sans); font-weight: 400; font-size: 1rem; color: var(--ink); letter-spacing: 0.01em; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: 8px;
  padding: 0.5rem 0.9rem; font: inherit; font-weight: 400; color: var(--navy); cursor: pointer; min-height: 44px;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; min-height: 46px; border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--teal); background: var(--card); border: 1px solid rgba(31, 111, 120, 0.35);
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); color: var(--teal-dark); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff; border: none;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-dark) 100%);
  box-shadow: 0 4px 16px rgba(31, 111, 120, 0.3);
}
.btn-primary:hover { color: #fff; box-shadow: 0 6px 24px rgba(31, 111, 120, 0.4); }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }

/* Rows of plain serif links, as the contact links on seniorminder.com */
.links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem 2rem; }
.links a { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--teal); }
.links a:hover { color: var(--teal-light); }

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card.accent-teal { border-top: 3px solid var(--teal); }
.card.accent-brass { border-top: 3px solid var(--brass); }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
main { flex: 1; position: relative; z-index: 2; }
.section { padding: 4rem 0; }
.section h2 { margin-bottom: 1.75rem; }
.section > .wrap > h2.center { margin-bottom: 2rem; }

/* Hero */
.hero { padding: 4rem 0 3rem; text-align: center; }
.hero .mark { width: min(520px, 80vw); margin: 0 auto 2rem; }
.hero h1 { max-width: 16em; margin: 0 auto 1rem; }
.hero .lead { max-width: 34em; margin: 0 auto 2rem; }
.hero .links { margin-top: 0.5rem; }

/* Proof strip: one card, three columns */
.proof { display: grid; grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
.proof strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--navy); margin-bottom: 0.25rem; }
.proof p { margin: 0; font-size: 1rem; }

/* Card grids */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.work .tag { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-light); margin-bottom: 0.75rem; }

.roles { list-style: none; margin: 0 0 1rem; }
.roles li { padding: 0.35rem 0; border-bottom: 1px solid var(--rule-soft); font-size: 0.97rem; }
.roles li:last-child { border-bottom: 0; }

/* Availability */
.availability { text-align: center; }
.availability .lead { max-width: 36em; margin: 0 auto 2rem; }

/* ------------------------------------------------------------
   About
   ------------------------------------------------------------ */
.about { padding: 3.5rem 0 4rem; }
.about-head { text-align: center; margin-bottom: 3rem; }
.about-head h1 { margin-bottom: 0.75rem; }
.portrait {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem;
  border: 4px solid var(--card); box-shadow: var(--shadow-lift);
}
.placeholder-img {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #E9E4DC; color: var(--ink-light); font-size: 0.9rem; padding: 1rem;
}
.portrait.placeholder-img { border-radius: 50%; }
.about-body section, .about-body figure { margin-bottom: 2.5rem; }
.about-body h2 { margin-bottom: 0.75rem; }
.candid { border-radius: 18px; box-shadow: var(--shadow-lift); aspect-ratio: 3 / 2; }
figcaption { font-size: 0.9rem; color: var(--ink-light); text-align: center; margin-top: 0.75rem; }
.about .links { margin-top: 1.5rem; }

/* ------------------------------------------------------------
   Ask
   ------------------------------------------------------------ */
.ask-main { padding: 2.5rem 0 4rem; }
.ask-main h1 { text-align: center; margin-bottom: 0.5rem; }
.ask-main .lead { text-align: center; max-width: 36em; margin: 0 auto 2rem; }
.ask-card { padding: 1.75rem; }
.ask-controls { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: end; margin-bottom: 1.25rem; }
.ask-controls label { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 400; color: var(--ink); letter-spacing: 0.01em; }
.ask-controls select {
  font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
  padding: 0.65rem 2.5rem 0.65rem 0.9rem; min-height: 44px; min-width: 150px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231B2A41' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; outline: none;
}
.ask-controls select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.12); }
.ask-controls .btn { min-width: 110px; }
.stage { position: relative; background: var(--navy); border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.stage-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; background: var(--navy); color: #C9D2DC; font-family: var(--serif); font-size: 1.35rem; }
.status { min-height: 1.6em; margin: 0.9rem 0 0; color: var(--teal); font-weight: 400; }
.composer { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.composer input {
  flex: 1; font-family: var(--sans); font-size: 1rem; font-weight: 300; padding: 0.65rem 0.9rem; min-height: 44px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.composer input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.12); }
.composer input:disabled { opacity: 0.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.transcript { margin-top: 1.25rem; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--rule-soft); }
.transcript:empty { display: none; }
.turn { display: grid; grid-template-columns: 5.5em 1fr; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--rule-soft); }
.turn .who { font-size: 0.85rem; font-weight: 400; color: var(--ink-light); padding-top: 2px; }
.turn-avatar .who { color: var(--teal); font-weight: 500; }
.turn-divider { padding: 0.6rem 0 0.25rem; font-size: 0.82rem; color: var(--ink-light); font-style: italic; }
.disclosure, .fallback { font-size: 0.9rem; color: var(--ink-light); text-align: center; margin: 0; }
.disclosure { margin-top: 1.5rem; }
.note { font-size: 0.85rem; color: var(--ink-light); text-align: center; margin: 0.75rem 0 0; opacity: 0.85; }

/* ------------------------------------------------------------
   Read: the script box, its counter, and the limits note
   ------------------------------------------------------------ */
.script-field textarea {
  display: block; width: 100%; resize: vertical; min-height: 9rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 300; line-height: 1.65;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.script-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.12); }
.script-field textarea:disabled { opacity: 0.5; }
.counter { font-size: 0.82rem; color: var(--ink-light); text-align: right; margin: 0.35rem 0 0; }
.read-go { display: flex; margin: 0.9rem 0 1.25rem; }
.read-go .btn { min-width: 110px; }

.note.limits {
  text-align: left; opacity: 1; max-width: var(--text-col); margin: 1.75rem auto 0;
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 1.1rem 1.25rem;
}
.note.limits h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.note.limits p { margin: 0; font-size: 0.85rem; }
.caps { font-variant: small-caps; letter-spacing: 0.04em; }
.ask-cta { text-align: center; margin-top: 2.5rem; }
.ask-cta p { margin-bottom: 1rem; }

/* ------------------------------------------------------------
   Prose pages (privacy)
   ------------------------------------------------------------ */
.prose { padding: 3rem 0 4rem; }
.prose h1 { text-align: center; margin-bottom: 1.5rem; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer { position: relative; z-index: 2; padding: 2.5rem 1.5rem 2.75rem; text-align: center; border-top: 1px solid var(--rule-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem; margin: 0 0 0.9rem; font-size: 0.9rem; }
.site-footer .copy { font-size: 0.82rem; opacity: 0.8; margin: 0; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 639px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--paper); border-bottom: 1px solid var(--rule-soft); padding: 0.5rem 1.5rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; min-height: 44px; }
  .nav a[aria-current="page"] { border-bottom: 0; }
    .logo-link img { height: 42px; }
  .links { flex-direction: column; gap: 0.9rem; }
  .ask-controls label, .ask-controls select, .ask-controls .btn { width: 100%; }
  .read-go .btn { width: 100%; }
  .turn { grid-template-columns: 1fr; gap: 2px; }
  .card { padding: 1.5rem; }
}

@media (min-width: 640px) {
  .proof { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .hero { padding: 5rem 0 3.5rem; }
  .section { padding: 4.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
