/* ohomdc.com, Open Hearts, Open Minds Drum Circle. Built Oct 9, 2026.
   Colours come from the painted drum the logo is drawn from:
   cream rawhide, deep ink blue lettering, Celtic green knot.
   Fonts are self-hosted (see /fonts/fonts.css). No JavaScript on the page. */

:root {
  --parchment: #f4ede1;
  --parchment-deep: #ebe1cf;
  --cream: #f7e9cf;
  --ink: #1f2b6e;
  --ink-deep: #151e52;
  --text: #2a2520;
  --muted: #5e554b;
  --celtic: #1e8a72;
  --celtic-text: #166b58;
  --night: #17140f;
  --night-raised: #221d17;
  --night-text: #ede3d1;
  --night-muted: #bdb19d;
  --night-link: #7fcfb6;
  --rule: rgba(31, 43, 110, 0.16);
  --rule-night: rgba(237, 227, 209, 0.14);

  --font-serif: 'Alegreya', Georgia, 'Times New Roman', serif;
  --font-sans: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --radius: 6px;
  --shadow-photo: 0 1px 2px rgba(42, 37, 32, 0.08), 0 22px 44px -22px rgba(42, 37, 32, 0.42);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
output {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

a {
  color: var(--celtic-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--celtic);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: rgba(30, 138, 114, 0.22);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--parchment);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
  color: var(--parchment);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

main section[id] {
  scroll-margin-top: 76px;
}

/* ---------- header (dark, stays on top) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(23, 20, 15, 0.97);
  border-bottom: 1px solid var(--rule-night);
  transition: box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover {
  color: #fff8ea;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.15;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--night-text);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--night-link);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  border: 1.5px solid rgba(247, 233, 207, 0.7);
  border-radius: 999px;
  color: var(--cream);
}

.site-nav .nav-cta:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--parchment);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.btn:hover {
  background: var(--ink-deep);
  color: var(--parchment);
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff8ea;
  color: var(--ink-deep);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(247, 233, 207, 0.6);
}

.btn-outline-light:hover {
  background: rgba(247, 233, 207, 0.1);
  color: #fff8ea;
}

.btn[aria-pressed="true"] {
  background: var(--night-link);
  color: var(--night);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 500;
  font-size: 1.1rem;
}

/* ---------- hero (dark, photo bleeds to the edge) ---------- */

.hero {
  display: grid;
  background: var(--night);
  color: var(--night-text);
}

.hero-text {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}

.hero-text-inner {
  max-width: 36rem;
}

.hero-photo {
  position: relative;
  order: -1;
  aspect-ratio: 4 / 3;
  max-height: 64vh;
  overflow: hidden;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--night) 0%, rgba(23, 20, 15, 0) 38%);
  pointer-events: none;
}

.hero h1 {
  color: var(--cream);
  font-weight: 500;
  line-height: 1;
}

.hero .h1-tail {
  color: var(--night-link);
}

.next-circle {
  margin-top: 2rem;
  padding: 1.05rem 1.35rem 1.15rem;
  border: 1px solid var(--rule-night);
  border-left: 3px solid var(--celtic);
  border-radius: var(--radius);
  background: rgba(237, 227, 209, 0.04);
}

.next-circle p {
  margin: 0;
}

.nc-label {
  color: var(--night-muted);
  font-weight: 500;
  font-size: 1rem;
}

.nc-when {
  margin-top: 0.15rem;
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.65rem);
  line-height: 1.25;
}

.nc-sub {
  margin-top: 0.2rem;
  color: var(--night-link);
  font-size: 1.02rem;
}

.nc-sub:empty,
.when-next:empty {
  display: none;
}

/* call link inside the hero card, so a phone visitor can call without scrolling */
.nc-call {
  margin-top: 0.15rem;
}

.nc-call a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--night-text);
  font-weight: 500;
  font-size: 1.05rem;
}

.nc-call a:hover {
  color: var(--night-link);
}

.h1-name {
  display: block;
  font-size: clamp(2.85rem, 6.6vw, 5.4rem);
  letter-spacing: -0.015em;
}

.h1-tail {
  display: block;
  margin-top: 0.3em;
  color: var(--celtic-text);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

.hero .accent {
  margin-top: 1.5rem;
  color: var(--night-text);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
}

/* ---------- photos ---------- */

.photo {
  margin: 0;
}

.photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-photo);
}

.photo figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
}

.section-dark .photo img {
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.75);
}

.section-dark .photo figcaption {
  color: var(--night-muted);
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--section-pad);
}

.section-alt {
  background: var(--parchment-deep);
}

.section-dark {
  background: var(--night);
  color: var(--night-text);
}

.section-dark h2 {
  color: var(--cream);
}

.section-dark a {
  color: var(--night-link);
}

.section h2 {
  font-weight: 500;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.08;
  margin-bottom: 1.4rem;
}

.split {
  display: grid;
  gap: clamp(2.25rem, 5vw, 5.5rem);
  align-items: center;
}

.prose {
  max-width: 36rem;
}

/* small heading inside a text column ("Not a ceremony", Nov 16, 2026) */
.prose h3 {
  margin: 2rem 0 0.6rem;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  line-height: 1.2;
}

.prose h3 + p {
  margin-top: 0;
}

.photo-portrait {
  max-width: 460px;
}

.photo-drums {
  max-width: 420px;
}

/* full-width photo under a text block (fire circle photo, Nov 16, 2026) */
.photo-wide {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

/* ---------- first time questions ---------- */

.first-time {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.first-time h3 {
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin-bottom: 1.5rem;
}

.faq {
  display: grid;
  gap: 0 3rem;
  margin: 0;
}

.faq div {
  padding-block: 1.3rem;
  border-top: 1px solid var(--rule);
}

.faq dt {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
}

.faq dd {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

/* ---------- join ---------- */

.join {
  text-align: center;
}

.join-logo {
  display: block;
  width: clamp(190px, 30vw, 280px);
  margin: 0 auto 2.25rem;
}

.join-logo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -20px rgba(31, 43, 110, 0.35);
}

.join .prose {
  margin-inline: auto;
}

.when-box {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(247, 233, 207, 0.6);
}

.when-box .when-day {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 1.75rem);
  line-height: 1.2;
}

.when-box p + p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.when-box .when-next {
  color: var(--celtic-text);
  font-weight: 500;
}

.when-box .btn {
  margin-top: 1.4rem;
}

.when-box .when-email {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
  padding-block: 0.4rem;
  font-weight: 500;
  font-size: 1.1rem;
}

/* ---------- 404 page (public/404.html) ---------- */

.not-found {
  min-height: 60vh;
}

.not-found h1 {
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.not-found .btn {
  margin-top: 0.5rem;
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: 2.5rem;
  background: var(--night);
  color: var(--night-muted);
  font-size: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--night-text);
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--night-link);
  white-space: nowrap;
}

.site-footer a:hover {
  color: var(--night-text);
}

/* ---------- larger screens ---------- */

@media (min-width: 760px) {
  .faq {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 859px) {
  .nav-optional {
    display: none;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    min-height: min(calc(100vh - 70px), 860px);
  }

  .hero-text {
    padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    padding-right: clamp(2rem, 4vw, 4rem);
  }

  .hero-photo {
    order: 0;
    aspect-ratio: auto;
    max-height: none;
  }

  .hero-photo::after {
    background: linear-gradient(to right, var(--night) 0%, rgba(23, 20, 15, 0) 30%);
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split.photo-left .photo {
    order: -1;
  }

  .photo-portrait {
    justify-self: center;
  }
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  body {
    font-size: 1.125rem;
  }

  .header-inner {
    gap: 0.75rem;
    padding-block: 0.55rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .site-nav .nav-cta {
    padding: 0.4rem 0.9rem;
    font-size: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-meta {
    justify-content: center;
  }

  /* shorter hero photo and tighter gaps, so the buttons sit fully above the fold on a phone */
  .hero-photo {
    aspect-ratio: 16 / 9;
  }

  .hero .accent {
    margin-top: 1.25rem;
  }

  .next-circle {
    margin-top: 1.5rem;
  }

  .actions {
    margin-top: 1.5rem;
  }

  .footer-brand {
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
