@font-face { font-family: "Federo"; font-weight: 400; font-display: swap; src: url("/fonts/federo-400.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url("/fonts/literata-400.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url("/fonts/literata-600.woff2") format("woff2"); }

:root {
  --limewash: #F2F5F1;
  --ink: #1B2838;
  --green: #2C6B52;
  --red: #BF3A21;
  --ochre: #E0AE3A;
  --sky: #CFE0EA;
  --blue: #2F5F8F;
  --straw: #F3E3B4;
  --display: "Federo", "Gill Sans", "Trebuchet MS", sans-serif;
  --text: "Literata", "Iowan Old Style", Georgia, serif;
  --measure: 38rem;
  --rule: rgba(27, 40, 56, 0.25);
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--limewash);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

a { color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.page { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; }

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}
.lodge-name { font-family: var(--display); font-size: 1.375rem; line-height: 1.2; margin: 0; }
.lodge-name a { color: var(--ink); text-decoration: none; }
.lodge-name small { display: block; font-family: var(--text); font-size: 0.875rem; color: var(--green); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--display);
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--red); }

/* ---------- The wall and the doorway ---------- */
/* A yellow painted wall with a stencilled pattern, and a doorway at Sundborn:
   an ink outline filled with colour. */
.wall {
  background-color: var(--ochre);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='%23F2F5F1' fill-opacity='.42'%3E%3Cellipse cx='18' cy='11' rx='3' ry='6'/%3E%3Cellipse cx='18' cy='25' rx='3' ry='6'/%3E%3Cellipse cx='11' cy='18' rx='6' ry='3'/%3E%3Cellipse cx='25' cy='18' rx='6' ry='3'/%3E%3Ccircle cx='54' cy='54' r='3.2'/%3E%3Ccircle cx='54' cy='18' r='1.6'/%3E%3Ccircle cx='18' cy='54' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  padding: 2.25rem 0 2.5rem;
}
.door { position: relative; isolation: isolate; max-width: 44rem; margin: 0 auto; }
.lintel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 1rem 1.25rem;
  border: 2.5px solid var(--ink);
  margin: 0 -0.5rem;
}
.lintel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  z-index: -1;
}
.lintel h1 {
  font-size: clamp(2.5rem, 11.5vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--limewash);
  margin: 0;
  text-align: center;
}

.opening {
  position: relative;
  border: 2.5px solid var(--ink);
  border-top: 0;
  padding: 1.75rem 2rem 2.5rem;
  text-align: center;
}
.opening::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* green door posts either side of a pale blue opening, red threshold */
  background:
    linear-gradient(var(--red), var(--red)) bottom / 100% 10px no-repeat,
    linear-gradient(to right, var(--green) 0 14px, var(--sky) 14px calc(100% - 14px), var(--green) calc(100% - 14px));
}
.door-label { margin: 0; font-size: 1rem; }
.door-date { font-family: var(--display); font-size: clamp(1.75rem, 6.5vw, 2.75rem); line-height: 1.15; margin: 0.15rem 0 0; }
.door-topic {
  font-family: var(--display);
  font-size: clamp(1.25rem, 4.6vw, 1.625rem);
  line-height: 1.25;
  color: var(--red);
  margin: 1rem auto 0;
  padding-top: 1rem;
  border-top: 2.5px solid var(--ink);
  max-width: 30rem;
}
/* With no topic yet, the line under the date sits above whatever comes next. */
.door-date + .door-about, .door-date + .door-where { margin-top: 1rem; padding-top: 1rem; border-top: 2.5px solid var(--ink); }
.door-about { margin: 0.4rem auto 0; max-width: 30rem; line-height: 1.55; }
.door-where { margin: 1rem auto 1.4rem; max-width: 26rem; line-height: 1.5; font-weight: 600; }

.button {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.125rem;
  color: var(--ink);
  background: var(--limewash);
  border: 2.5px solid var(--ink);
  padding: 0.55rem 1.25rem;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
}
.button:hover { color: var(--ink); background: var(--ochre); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.before-then { text-align: center; margin: 1.75rem auto 0; max-width: 34rem; line-height: 1.45; }
.before-then a { color: var(--ink); font-weight: 600; }

/* ---------- Intro ---------- */
.intro { max-width: 40rem; margin: 2.5rem auto 0; text-align: center; text-wrap: balance; }
.lede { margin: 0; font-size: 1.1875rem; line-height: 1.55; }
@media (min-width: 40rem) {
  .lede { font-size: 1.3125rem; }
}

/* ---------- Sections ---------- */
.section { border-top: 2.5px solid var(--ink); margin-top: 3.5rem; padding-top: 2rem; }
.section h2, .band h2 { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.15; margin: 0 0 1rem; }
.section h3 { font-size: 1.375rem; line-height: 1.25; margin: 0 0 0.4rem; }
.section p { max-width: var(--measure); margin: 0 0 1rem; }

.split { display: grid; gap: 2rem; }
@media (min-width: 54rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: 3.5rem; align-items: start; }
}

/* Schedule: one calendar leaf per date */
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li.entry {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}
.schedule li.year {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--green);
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid var(--rule);
}
.leaf {
  align-self: start;
  border: 2.5px solid var(--ink);
  background: #fff;
  text-align: center;
  font-family: var(--display);
  line-height: 1;
  box-shadow: 4px 4px 0 var(--sky);
}
.leaf .month { display: block; background: var(--red); color: var(--limewash); padding: 0.3rem 0 0.35rem; font-size: 1rem; border-bottom: 2.5px solid var(--ink); }
.leaf .day { display: block; font-size: 2rem; padding: 0.3rem 0 0.1rem; }
.leaf .weekday { display: block; font-family: var(--text); font-size: 0.75rem; padding-bottom: 0.4rem; }
.entry.extra .leaf .month { background: var(--blue); }
.entry h3 { margin: 0; font-size: 1.3125rem; }
.entry .about { margin: 0.25rem 0 0; line-height: 1.55; }
.entry .meta { margin: 0.35rem 0 0; font-size: 0.9375rem; line-height: 1.45; }

.facts { margin: 0; }
.facts div { padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--display); color: var(--green); }
.facts dd { margin: 0; line-height: 1.5; }
.aside-note { font-size: 0.9375rem; margin-top: 0.75rem; }

/* Our year: two painted cards */
.cards { display: grid; gap: 2rem 2.5rem; margin-top: 1.5rem; }
@media (min-width: 46rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card { position: relative; isolation: isolate; border: 2.5px solid var(--ink); padding: 1.25rem 1.5rem 0.75rem; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--straw); }
.card.winter::before { background: var(--sky); }

/* Flags */
.flags { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.flags li { text-align: center; font-size: 0.8125rem; line-height: 1.2; }
.flags svg { display: block; width: 3.6rem; height: auto; margin: 0 auto 0.35rem; }

/* ---------- Join band ---------- */
.band { background: var(--blue); color: var(--limewash); margin-top: 3.5rem; padding: 2.5rem 0 2.75rem; border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.band p { max-width: var(--measure); margin: 0 0 1rem; }
.band .button { margin-top: 0.5rem; }

.section.after-band { border-top: 0; margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--limewash); margin-top: 3.5rem; padding: 1.75rem 0 2.5rem; font-size: 0.9375rem; }
.footer p { margin: 0 0 0.3rem; }
.footer a { color: var(--limewash); }
.footer a:hover { color: var(--ochre); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Instagram ---------- */
.insta {
  background: var(--sky);
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  margin-top: 3rem;
  padding: 3rem 0 3.5rem;
}
.insta h2 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.15; margin: 0 0 0.4rem; }
.insta p { margin: 0; max-width: var(--measure); }
.insta-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.insta-head .button { background: var(--ochre); font-size: 1.25rem; }
.insta-head .button:hover { background: var(--limewash); }
.insta-posts { display: grid; gap: 2rem; margin-top: 2.25rem; justify-items: center; }
.insta-posts > * { justify-self: stretch; }
@media (min-width: 46rem) {
  .insta-posts.with-featured { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); align-items: start; }
}
/* Shown until Instagram's own script swaps in the real posts, or if it never loads. */
blockquote.instagram-media {
  margin: 0;
  width: 100%;
  max-width: 720px;
  justify-self: center;
  background: #fff;
  border: 2.5px solid var(--ink);
  padding: 2.5rem 1.25rem;
  text-align: center;
}
/* Instagram's script sets a narrow fixed size; let the embed fill the column instead. */
.insta iframe.instagram-media { margin: 0 auto !important; width: 100% !important; max-width: 720px !important; }
.entry .meta .ig { white-space: nowrap; }
/* The Instagram post about the next meeting, under the announcement. */
.door-post { max-width: 26rem; margin: 1.75rem auto 0; }
.door-post blockquote.instagram-media { padding: 1.5rem 1.25rem; text-align: center; }
.door-post iframe.instagram-media { margin: 0 auto !important; width: 100% !important; min-width: 0 !important; border: 2.5px solid var(--ink) !important; border-radius: 0 !important; }

/* ---------- Past meetings page ---------- */
.past-page { border-top: 0; max-width: 46rem; }
.past-page h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; margin: 0 0 0.5rem; }
.past-page .schedule { margin-top: 1.5rem; }
