/* =============================================================
   Remembering Our Village — website styles
   Colours and fonts are taken from the Dopamine Fast info PDF.
   ============================================================= */

/* ---- Colours and fonts: change these to restyle the whole site ---- */
:root {
  --sage: #becfb2;       /* light green: cover + 1-on-1 section */
  --sage-deep: #7d8d72;  /* the thin frame on the cover */
  --forest: #485241;     /* dark green */
  --cream: #faf2e9;      /* warm off-white */
  --ink: #231f20;        /* near-black text and leaf prints */

  --serif: "Ovo", Georgia, "Times New Roman", serif;
  --sans: "Fahkwang", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);    /* space at the left/right edges */
  --pad-y: clamp(3.5rem, 9vw, 6.5rem);    /* space above/below each section */
  color-scheme: light;
}


/* ---- Basics ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1.1em; }

h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: .35em;
}

h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 1.5em 0 .5em;
}

/* the little "th" / "st" in dates */
sup {
  font-size: .6em;
  line-height: 0;
  position: relative;
  top: -.7em;
  vertical-align: baseline;
}

hr {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: .75;
  margin: 1.5rem 0 2rem;
}

/* big sans-serif intro sentence under each heading */
.lead {
  font-family: var(--sans);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.45;
  margin-bottom: 1.4em;
}

.subtitle {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.3;
  margin: 0 0 2rem;
  opacity: .85;
}

/* "Re(moon)membering Our Village" */
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: .02em;
  text-decoration: none;
  margin: 0 0 1.25rem;
}
.wordmark img {
  display: inline;
  width: .5em;
  height: .5em;
  margin: 0 .04em;
  vertical-align: .08em;
}

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 1.8em;
  background: var(--forest);
  color: var(--cream);
  border: 1px solid var(--forest);
  transition: background-color .2s, color .2s;
}
.button:hover, .button:focus-visible { background: transparent; color: var(--forest); }
/* for buttons on the dark green sections */
.button--light { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.button--light:hover, .button--light:focus-visible { background: transparent; color: var(--cream); }


/* ---- Top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem var(--gutter);
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .9rem;
}
.topbar .wordmark { margin: 0; font-size: .95rem; }
.topbar__links { display: flex; align-items: center; gap: 1.5rem; }
.topbar__links a { text-decoration: none; }
.topbar__links a:hover { text-decoration: underline; }
.topbar__join { border: 1px solid currentColor; padding: .35em .9em; }
@media (max-width: 700px) {
  .topbar__links a:not(.topbar__join) { display: none; }
}


/* ---- Cover ---- */
.cover {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 3.2rem);
  min-height: calc(100svh - 3.2rem);
  padding: 44vw var(--gutter) 30vw;
  background: var(--sage);
  color: var(--forest);
  text-align: center;
}
/* the thin frame from the PDF cover */
.cover::before {
  content: "";
  position: absolute;
  inset: clamp(1rem, 4vw, 2.75rem);
  border: 2px solid var(--sage-deep);
  pointer-events: none;
}
.cover__fern { position: absolute; z-index: 1; pointer-events: none; }
.cover__fern--top { top: -4vw; right: -10vw; width: 56vw; }
.cover__fern--bottom { bottom: -8vw; left: -5vw; width: 24vw; }
.cover__text { position: relative; z-index: 2; max-width: 36rem; }

.cover__title {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 11vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .5em;
}
.cover__title span { display: block; }
.cover__the { font-size: .6em; letter-spacing: .08em; }

.cover__dates, .cover__price {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 4.2vw, 2rem);
  line-height: 1.3;
  margin: 0;
}
.cover__dates { text-transform: uppercase; }
.cover__price { margin-bottom: 1.2em; }
.cover__tagline {
  font-size: clamp(1.1rem, 3.2vw, 1.45rem);
  line-height: 1.45;
  margin-bottom: 2em;
}
.cover__wordmark {
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  line-height: 1.15;
  margin: 3rem 0 0;
}

@media (min-width: 760px) {
  .cover { padding: 7rem var(--gutter) 6rem; }
  .cover__fern--top { top: -3rem; right: -8rem; width: min(40vw, 600px); }
  .cover__fern--bottom { bottom: -5rem; left: -2rem; width: min(22vw, 330px); }
}


/* ---- Coloured sections ("bands") ---- */
.band {
  position: relative;
  overflow: hidden;
  padding: var(--pad-y) var(--gutter);
}
.band--forest { background: var(--forest); color: var(--cream); }
.band--cream  { background: var(--cream); color: var(--ink); }
.band--sage   { background: var(--sage); color: var(--ink); }
.band--sage h2, .band--sage h3, .band--sage .subtitle { color: var(--forest); }

.wrap { max-width: 44rem; margin: 0 auto; }
.wrap--wide { max-width: 60rem; }

/* leaf prints that sit in the top-right / bottom-left corners of a section */
.leaf-top {
  float: right;
  width: clamp(8.5rem, 34vw, 23rem);
  margin: calc(-1 * var(--pad-y) - 1rem) calc((100% - 100vw) / 2 - 1.5rem) 1rem 1.5rem;
}
.leaf-bottom {
  display: block;
  width: clamp(7rem, 20vw, 15rem);
  margin: 2.5rem 0 calc(-1 * var(--pad-y) - 2rem) calc((100% - 100vw) / 2 - 1rem);
}

.two-columns {
  columns: 2 14rem;
  column-gap: 2.5rem;
  padding-left: 1.2em;
  margin: 0 0 1.3em;
}
.two-columns li { break-inside: avoid; }


/* ---- Welcome ---- */
.welcome { display: grid; gap: 0 clamp(2rem, 5vw, 4rem); }
.welcome__text { position: relative; z-index: 1; max-width: 40rem; }
.welcome__vine {
  position: absolute;
  left: -3.5rem;
  bottom: -2rem;
  height: 85%;
  width: auto;
  opacity: .16;
  pointer-events: none;
}
@media (min-width: 860px) {
  .welcome { grid-template-columns: minmax(9rem, 16rem) minmax(0, 40rem); justify-content: center; }
  .welcome__vine {
    position: static;
    opacity: 1;
    width: 100%;
    height: auto;
    justify-self: end;
    align-self: end;
    margin-bottom: calc(-1 * var(--pad-y) - 2rem);
  }
}


/* ---- "Focus of the day" lists ---- */
.focus { text-align: center; padding-bottom: 0; }
.focus::before {
  content: "";
  display: block;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  border-top: 1px solid currentColor;
  opacity: .6;
}
.focus .wordmark { margin-bottom: 2rem; }
.focus__when {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 3.5vw, 1.9rem);
  line-height: 1.3;
  margin: 0;
}
.focus__title {
  font-size: clamp(3rem, 10vw, 5.25rem);
  line-height: 1.1;
  margin: 0 0 .3em;
}
.focus__label {
  font-family: var(--sans);
  font-size: clamp(.85rem, 2.2vw, 1.15rem);
  letter-spacing: .4em;
  text-transform: uppercase;
  padding-left: .4em;
  margin: 0 0 2.5rem;
}
.focus__list {
  list-style-position: inside;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.35;
}
.focus__list li { margin: 0 0 .75em; text-wrap: balance; }
.focus__list--two { max-width: 58rem; }
@media (min-width: 760px) {
  .focus__list--two { columns: 2; column-gap: 3rem; }
  .focus__list--two li { break-inside: avoid; }
}
/* the skeleton leaf peeking up from the bottom edge */
.focus__leaf {
  --w: clamp(11rem, 30vw, 17rem);
  display: block;
  width: var(--w);
  margin: 2.5rem auto calc(var(--w) * -0.62);
}


/* ---- Week 4 nest ---- */
.nest { display: block; width: min(100%, 26rem); margin: 2.5rem auto 1rem; }


/* ---- The Accompanied Sessions ---- */
.columns { display: grid; gap: 0 3rem; }
@media (min-width: 760px) { .columns { grid-template-columns: 1fr 1fr; } }
.columns h3 { font-size: 1.45rem; margin-top: 1em; }
.columns ul { padding-left: 1.2em; }
.columns li { margin-bottom: .6em; }
.price { font-size: 1.25rem; margin: 1.5rem 0; }


/* ---- Fast Feedback ---- */
.quote {
  margin: 0 0 2.25rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
}
.quote p { margin: 0 0 .4em; }
.quote strong { font-weight: 700; }
.quote cite { font-style: normal; font-size: .95rem; letter-spacing: .06em; }
.quote cite::before { content: "– "; }


/* ---- Join Us ---- */
.join__when { text-align: center; margin: 2.5rem 0 2rem; }
.join__when p { margin: 0; }
.join__next { font-size: 1.1rem; }
.join__dates, .join__price { font-family: var(--sans); line-height: 1.3; }
.join__dates { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.join__price { font-size: clamp(1.3rem, 3.5vw, 1.6rem); }

/* the two "Registration" buttons, side by side on wider screens */
.register {
  display: grid;
  gap: 1rem 1.75rem;
  margin: 0 0 2.5rem;
}
@media (min-width: 620px) { .register { grid-template-columns: 1fr 1fr; } }
.register .button { display: block; text-align: center; line-height: 1.7; }


/* ---- Footer ---- */
.footer {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid rgba(250, 242, 233, .25);
  font-size: .95rem;
}
.footer p { margin: 0 0 .4rem; }
.footer .wordmark { margin-bottom: .6rem; }
