/* Sheila Cowley – Playwright | Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --bg:         #edebe3;
  --surface:    #e3e0d6;
  --text:       #222821;
  --text-muted: #68786e;
  --nav-bg:     #1d2f25;
  --nav-text:   #cedad4;
  --nav-accent: #7fb89a;
  --accent:     #3d6e52;
  --accent-b:   #4e7a8e;
  --link:       #2d5848;
  --link-hov:   #1a3a2e;
  --border:     #c0ccc5;
  --head:       #1d2f25;
  --caption:    #6a7a72;
  --max-w:      960px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #1a2620;
    --surface:    #202d27;
    --text:       #d6e2da;
    --text-muted: #889e93;
    --nav-bg:     #111b16;
    --nav-text:   #b0c8ba;
    --nav-accent: #6aaa87;
    --accent:     #5c9a78;
    --accent-b:   #6a9db8;
    --link:       #72b898;
    --link-hov:   #98d4b6;
    --border:     #2c3e35;
    --head:       #c4ddd0;
    --caption:    #7a9488;
  }
}
:root[data-theme="dark"] {
    --bg:         #1a2620;
    --surface:    #202d27;
    --text:       #d6e2da;
    --text-muted: #889e93;
    --nav-bg:     #111b16;
    --nav-text:   #b0c8ba;
    --nav-accent: #6aaa87;
    --accent:     #5c9a78;
    --accent-b:   #6a9db8;
    --link:       #72b898;
    --link-hov:   #98d4b6;
    --border:     #2c3e35;
    --head:       #c4ddd0;
    --caption:    #7a9488;
}

html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

/* ── HEADER ── */
header { background: var(--nav-bg); }
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
}
.site-branding {
  padding: 28px 0 0;
  flex: 1 1 280px;
  min-width: 0;
}
.site-branding a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--nav-text);
  text-decoration: none;
  display: block;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  transition: color 0.2s;
}
.site-branding a:hover { color: var(--nav-accent); }
.tagline {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a9e8c;
  margin-top: 5px;
  display: block;
}
nav { flex: 0 0 auto; align-self: flex-end; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; }
nav ul li a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nav-text);
  text-decoration: none;
  padding: 13px 16px 18px;
  opacity: 0.88;
  transition: color 0.18s, background 0.18s, opacity 0.18s;
}
nav ul li a:hover { color: #fff; opacity: 1; background: rgba(255,255,255,0.07); }
nav ul li a.active { color: var(--nav-accent); opacity: 1; }

/* ── MAIN ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 32px 100px;
}

/* ── PAGE TITLE ── */
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 2.4rem;
  color: var(--head);
  line-height: 1.15;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 48px 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--head);
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-size: 2.1rem; margin: 0 0 0.6em; }
h2 { font-size: 1.6rem; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 1.5em 0 0.4em; }
h4 { font-size: 1.05rem; margin: 1.2em 0 0.3em; font-family: 'DM Sans', sans-serif; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; color: var(--accent); }

main > *:first-child, .content > *:first-child { margin-top: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.6em; margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }
em { font-style: italic; }

/* ── LINKS ── */
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--link-hov); }

/* ── IMAGES ── */
img { max-width: 100%; height: auto; display: block; }
figure { margin: 2em 0; }
figure.aligncenter, figure.align-center { text-align: center; }
figure.aligncenter img, figure.align-center img { margin: 0 auto; }
figure.alignleft { float: left; margin: 0.4em 2.5em 1em 0; max-width: 50%; }
figure.alignright { float: right; margin: 0.4em 0 1em 2.5em; max-width: 50%; }
figcaption {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--caption);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.5;
}
.clearfix::after { content: ''; display: block; clear: both; }

/* ── GALLERY ── */
.wp-block-gallery, .blocks-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 2em 0;
}
.wp-block-gallery figure, .blocks-gallery-grid li figure { margin: 0; flex: 1 1 180px; }
.wp-block-gallery figure img, .blocks-gallery-grid li figure img { width: 100%; height: 200px; object-fit: cover; }

/* ── VIDEO ── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2em 0;
  background: #111;
  border-radius: 2px;
}
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ── BUTTONS ── */
.btn-link {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 2px;
  margin: 6px 4px;
  transition: background 0.2s;
}
.btn-link:hover { background: var(--link-hov) !important; }

/* ── DIVIDER ── */
hr, .separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}
.spacer { display: block; }

/* ── CONTACT ── */
.contact-links {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form {
  margin-top: 2.5em;
  padding-top: 2em;
  border-top: 1px solid var(--border);
}
.contact-form label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--head);
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 18px;
  color: var(--text);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 30px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--link-hov); }

/* ── FOOTER ── */
footer {
  background: var(--nav-bg);
  color: #7a9e8c;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  text-align: center;
  padding: 28px 32px;
  letter-spacing: 0.03em;
}
footer a { color: #9bbfb0; text-decoration: none; }
footer a:hover { color: var(--nav-text); }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  html { font-size: 16px; }
  main { padding: 36px 20px 70px; }
  .header-inner { padding: 0 20px; }
  nav ul li a { padding: 9px 11px 13px; font-size: 0.7rem; }
  figure.alignleft, figure.alignright { float: none; max-width: 100%; margin: 1.5em 0; }
  .page-title { font-size: 1.9rem; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
@media print { header, footer, nav { display: none; } main { padding: 0; } }
