/* Angela Dyson – matches the original WordPress (TheFox) design.
   Colours: text #2C3E50, pink #D489B0, button pink #D891C8, links teal #04BFBF,
   footer steel blue #597F93, mobile menu light blue #7EBBFF. Font: Lato. */
:root {
  --text: #2C3E50;
  --pink: #D489B0;
  --pink-2: #D891C8;
  --link: #04BFBF;
  --link-dark: #038f8f;
  --footer: #597F93;
  --footer-dark: #4c6d7e;
  --sky: #7EBBFF;
  --grey: #65777D;
  --line: #e6e9ed;
  --tint: #F9FAFB;
  --wrap: 1170px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.45 Lato, 'Helvetica Neue', Arial, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { color: var(--link-dark); text-decoration: underline; }
h1, h2, h3, h4, .h1, .h3, .h4 { font-family: Lato, sans-serif; color: var(--text); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }
h1, .h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3, .h3 { font-size: 21px; }
.h4 { font-size: 18px; display: block; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid #9b9b9b; margin: 40px 0; }
blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--pink); font-style: italic; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.upper { text-transform: uppercase; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 100; background: #fff; padding: 8px 12px; }
.lead { font-size: 20px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.topbar { background: var(--pink); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; opacity: .85; text-decoration: none; }
.top-social { display: flex; gap: 14px; }
.navbar { background: var(--pink); box-shadow: 0 1px 3px rgba(0,0,0,.08); position: relative; z-index: 20; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; flex-wrap: wrap; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { display: block; color: #fff; padding: 22px; font-size: 18px; line-height: 23px; }
.site-nav > ul > li > a:hover, .site-nav > ul > li > a[aria-current], .site-nav > ul > li > a.current { color: #fff; text-decoration: none; background: rgba(255,255,255,.12); }
.caret { display: inline-block; width: 0; height: 0; margin-left: 8px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #fff; }
.site-nav .sub { position: absolute; left: 0; top: 100%; min-width: 290px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); display: none; padding: 6px 0; }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: block; }
.site-nav .sub a { display: block; padding: 11px 16px; color: #A1B1BC; font-size: 16px; }
.site-nav .sub a:hover { color: var(--text); text-decoration: none; background: var(--tint); }
.nav-toggle { display: none; }
.banner { padding-top: 0; padding-bottom: 0; }
.banner img { width: 100%; max-width: 1100px; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 50px 0; }
.section + .section { padding-top: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.middle { align-items: center; }
.center-text { text-align: center; }
.accent { color: #003366; font-weight: 400; font-size: 24px; line-height: 1.4; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.3em; }
.prose h3 { margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.inline-photo { margin: 1.5em 0; }
.inline-photo img { margin: 0 auto; }
.audio { margin: 1em 0 1.4em; }
.audio figcaption { font-size: 15px; color: var(--grey); margin-bottom: 4px; }
.audio audio { width: 100%; max-width: 520px; }
.btn { display: inline-block; background: var(--pink-2); color: #fff; font-weight: 900; font-size: 15px; text-transform: uppercase; padding: 9px 20px; border-radius: 2px; letter-spacing: .02em; }
.btn:hover, .btn:focus-visible { background: var(--pink); color: #fff; text-decoration: none; }

/* ---------- Home ---------- */
.next-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: start; }
.next-grid .h3 { font-weight: 700; }
.next-img img { max-width: 200px; margin: 0 auto; }
.next-none { text-align: left; }
.event-title { margin-bottom: .3em; }
.event-venue { font-weight: 700; margin: 0 0 .2em; }
.event-when { font-weight: 700; margin: 0 0 .2em; }
.event-address { margin: 0 0 .8em; }
.series-title { font-size: 34px; margin-bottom: 25px; }
.book-card { margin: 25px 0 0; }
.book-card img { width: 100%; max-width: 300px; }
.book-card figcaption { font-size: 15px; color: var(--grey); margin-top: 8px; }
.home-photo img { width: 100%; }

/* Sliders (photos, reviews, posts) */
.slider { position: relative; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 16px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slider.square .slide img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.slider.one .slide img { object-fit: contain; background: #fff; }
.slider.wide .slide { flex-basis: calc(50% - 8px); }
.slider.wide .slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.slider.posts .slide { flex-basis: calc(33.333% - 11px); }
.slider.posts { margin-bottom: 30px; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.slide-btn:hover { background: #fff; }
.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }
.slider.posts .slide-btn { top: 35%; }

/* Post cards */
.post-card { display: flex; flex-direction: column; height: 100%; color: var(--text); background: #fff; border: 1px solid var(--line); }
.post-card:hover { text-decoration: none; color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.post-img img, .post-img.noimg { width: 100%; aspect-ratio: 940 / 788; object-fit: cover; }
.post-img.noimg { display: block; background: var(--pink); opacity: .3; }
.post-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; flex: 1; }
.post-body .h4 { text-transform: uppercase; margin: 0; font-size: 17px; }
.post-body .date { color: var(--grey); font-size: 14px; }
.post-body .excerpt { font-size: 16px; }
.post-body .more { margin-top: auto; color: var(--link); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* Blog layout with sidebar */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; align-items: start; }
.sidebar .widget { margin-bottom: 40px; }
.widget-title { font-size: 18px; font-weight: 700; padding-left: 14px; border-left: 4px solid var(--sky); margin-bottom: 16px; }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.recent a { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; line-height: 1.35; }
.recent a:hover { color: var(--link); text-decoration: none; }
.recent .thumb { width: 60px; height: 60px; object-fit: cover; flex: 0 0 60px; }
.recent small { display: block; color: var(--grey); font-size: 13px; margin-top: 4px; }
.follow { display: flex; gap: 16px; flex-wrap: wrap; }
.follow a { display: inline-flex; align-items: center; gap: 6px; }
.post-hero { margin-bottom: 25px; }
.post-hero img { width: 100%; }
article .date { color: var(--grey); font-size: 15px; margin-top: -8px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 40px 0 25px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px; }
.post-nav a { max-width: 48%; }

/* Events */
.event { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event.has-img { grid-template-columns: 220px 1fr; }
.event-month h2 { margin: 30px 0 0; color: var(--pink); }
.event .prose { font-size: 17px; }

/* Books */
.book-row { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; padding-bottom: 50px; }
.book-cover img { max-width: 260px; margin: 0 auto; box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* Simple pages */
.page-split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.page-img.round img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 0 0 6px #fff, 0 2px 12px rgba(0,0,0,.2); }

/* Newsletter (Mailchimp's own form, pasted in /admin) */
.newsletter input[type=email], .newsletter input[type=text] { width: 100%; padding: 8px 10px; border: 1px solid #ccc; font: inherit; font-size: 15px; margin-bottom: 8px; }
.newsletter input[type=submit], .newsletter button { background: var(--pink-2); color: #fff; border: 0; padding: 8px 18px; font: 900 15px Lato, sans-serif; text-transform: uppercase; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #fff; margin-top: 40px; font-size: 16px; }
.site-footer a { color: #fff; }
.site-footer .widget-title { color: #fff; border-left-color: var(--sky); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 50px; padding-bottom: 40px; }
.site-footer .recent li { border-bottom-color: rgba(255,255,255,.2); }
.site-footer .recent a, .site-footer .recent small { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 6px 0 6px 18px; position: relative; }
.footer-links li::before { content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); transform: translateY(-50%); }
.footer-bottom { background: var(--footer-dark); font-size: 13px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; text-transform: uppercase; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 991px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .home-photo { grid-column: 1 / -1; max-width: 500px; }
  .next-grid { grid-template-columns: 1fr 1fr; }
  .with-sidebar { grid-template-columns: 1fr; }
  .slider.posts .slide { flex-basis: calc(50% - 8px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 17px; }
  h1, .h1, .series-title { font-size: 28px; }
  h2 { font-size: 23px; }
  .topbar-inner { min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .topbar { display: none; }
  .site-header { background: var(--pink); padding-top: 12px; }
  .banner { order: -1; }
  .site-header { display: flex; flex-direction: column; }
  .banner img { max-width: 170px; }
  .navbar { background: var(--sky); margin: 8px 12px 0; box-shadow: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 100%; height: 60px; background: none; border: 0; cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 3px; background: #fff; border-radius: 2px; position: relative; }
  .bars::before, .bars::after { content: ''; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .site-nav { display: none; padding-bottom: 10px; }
  .site-nav.open { display: block; }
  .site-nav > ul { display: block; }
  .site-nav > ul > li > a { padding: 12px 20px; font-size: 17px; }
  .site-nav .sub { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 0 20px; }
  .site-nav .sub a { color: #fff; padding: 8px 20px; }
  .site-nav .sub a:hover { background: none; color: #fff; }
  .caret { display: none; }
  .section { padding: 35px 0; }
  .grid-2, .grid-3, .next-grid, .book-row, .page-split, .post-grid, .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .event.has-img { grid-template-columns: 1fr; }
  .next-img img { margin: 0; }
  .book-cover { order: -1; }
  .book-cover img { max-width: 200px; margin: 0; }
  .page-img.round img { max-width: 260px; margin: 0 auto; }
  .slider.posts .slide { flex-basis: 85%; }
  .slider.wide .slide { flex-basis: 100%; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
