:root {
  --paper: #f7f3eb;
  --paper-deep: #efe7da;
  --ink: #252b20;
  --quiet-ink: #5d665a;
  --forest: #2e4b32;
  --deep-green: #345b4b;
  --sage: #648a69;
  --brown: #6d402f;
  --clay: #906f54;
  --copper: #b36f45;
  --stone: #757d81;
  --line: rgba(37, 43, 32, 0.16);
  --light-line: rgba(247, 243, 235, 0.22);
  --shadow: 0 18px 44px rgba(37, 43, 32, 0.16);
  --measure: 72rem;
  --narrow-measure: 48rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body:has(.admin-toolbar) {
  padding-bottom: 4.75rem;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--forest);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--brown);
}

:focus-visible {
  outline: 0.16rem solid var(--copper);
  outline-offset: 0.2rem;
}

h1,
h2,
h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: 3.75rem;
  margin: 0;
}

h2 {
  font-size: 2.25rem;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.55rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 243, 235, 0.93);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 0.95rem max(1.25rem, calc((100vw - var(--measure)) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-identity {
  display: block;
  flex: 0 0 auto;
  width: 13.75rem;
}

.site-identity img {
  height: auto;
  width: 100%;
}

.primary-navigation ul {
  align-items: center;
  display: flex;
  gap: 1.45rem;
}

.primary-navigation a {
  color: var(--ink);
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.3rem 0;
  text-decoration: none;
}

.primary-navigation a[aria-current="page"] {
  border-bottom: 0.14rem solid var(--forest);
  color: var(--forest);
}

.site-notice {
  background: var(--deep-green);
  color: var(--paper);
  padding: 0.9rem max(1.25rem, calc((100vw - var(--measure)) / 2));
}

.site-notice p {
  margin: 0;
}

.home-hero {
  isolation: isolate;
  min-height: 42rem;
  position: relative;
}

.home-hero figure {
  inset: 0;
  margin: 0;
  position: absolute;
  z-index: -2;
}

.home-hero figure img {
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.home-hero::after {
  background: rgba(21, 25, 19, 0.4);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.home-hero > div {
  color: var(--paper);
  margin: 0 auto;
  max-width: var(--measure);
  padding: 11rem 1.25rem 6.5rem;
}

.home-hero > div > p,
.happening-preview > header p,
.page-heading > p {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 41rem;
  text-shadow: 0 0.12rem 1.4rem rgba(0, 0, 0, 0.35);
}

.hero-summary {
  font-size: 1.18rem;
  margin-top: 1.5rem;
  max-width: 34rem;
}

.home-hero nav a,
.request-invitation a,
.page-heading > a,
.empty-calendar a,
.happening-detail footer a,
.space-section a,
.request-form-section button {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  text-decoration: none;
}

.home-hero nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
  margin-top: 2rem;
}

.home-hero nav a:first-child,
.request-invitation a,
.page-heading > a,
.request-form-section button {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}

.home-hero nav a {
  border-color: var(--paper);
  color: var(--paper);
}

.home-pillars,
.happening-preview,
.request-invitation,
.interior-page {
  margin: 0 auto;
  max-width: var(--measure);
  padding: 4.5rem 1.25rem;
}

.home-pillars {
  text-align: center;
}

.home-pillars h2 {
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: 2.75rem;
  text-transform: uppercase;
}

.home-pillars ul {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-pillars li {
  border-left: 1px solid var(--line);
  padding: 0 2rem;
}

.home-pillars li:first-child {
  border-left: 0;
}

.home-pillars p {
  color: var(--quiet-ink);
  margin: 0 auto;
  max-width: 15rem;
}

.happening-preview {
  border-top: 1px solid var(--line);
}

.happening-preview > header,
.calendar-section > h2 {
  margin-bottom: 2rem;
}

.happening-list {
  border-top: 1px solid var(--line);
}

.happening-summary {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: 5.8rem minmax(0, 1fr) auto;
  padding: 1.45rem 0;
}

.happening-summary time {
  align-items: center;
  background: rgba(100, 138, 105, 0.12);
  display: flex;
  flex-direction: column;
  min-height: 5.8rem;
  justify-content: center;
  text-transform: uppercase;
}

.happening-summary time span {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.happening-summary time strong {
  color: var(--forest);
  font-size: 2rem;
  line-height: 1;
}

.happening-summary h3 a {
  color: var(--brown);
  text-decoration: none;
}

.happening-summary div > p:first-child {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.happening-summary div > p {
  margin-bottom: 0.4rem;
}

.happening-summary > a,
.happening-preview > p a {
  color: var(--forest);
  font-weight: 700;
  white-space: nowrap;
}

.happening-preview > p {
  margin-top: 1.5rem;
}

.empty-calendar {
  border: 1px solid var(--line);
  padding: 2rem;
}

.request-invitation {
  align-items: stretch;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding-bottom: 0;
}

.request-invitation > div {
  align-self: center;
  padding: 4rem 3rem 4rem 0;
}

.request-invitation figure {
  margin: 0;
  min-height: 22rem;
}

.request-invitation img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.interior-page {
  display: grid;
  gap: 3rem;
}

.page-heading {
  max-width: var(--narrow-measure);
}

.page-heading h1 {
  color: var(--brown);
  margin-bottom: 1rem;
}

.page-heading > p:last-child {
  color: var(--quiet-ink);
  font-size: 1.12rem;
}

.calendar-section,
.work-section,
.faq-content,
.contact-methods,
.contact-next-steps,
.request-form-section {
  max-width: var(--narrow-measure);
}

.happening-detail {
  max-width: var(--narrow-measure);
}

.happening-detail header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.happening-detail header p {
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.happening-detail time {
  color: var(--quiet-ink);
  display: block;
  font-weight: 700;
  margin-top: 1rem;
}

.happening-details {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 2rem;
}

.happening-detail footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.profile-section,
.space-section,
.request-context {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.profile-section figure,
.space-section figure,
.request-detail figure {
  margin: 0;
}

.profile-section img,
.space-section img,
.request-detail img {
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  width: 100%;
}

.profile-section img {
  max-height: 38rem;
  object-fit: cover;
  object-position: center top;
}

.space-section img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-section,
.contact-methods,
.contact-next-steps {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.request-context {
  align-items: start;
}

.request-context aside {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.request-context aside h2 {
  font-size: 1.35rem;
}

.request-context li {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}

.request-context li:first-child {
  border-top: 0;
}

.request-form-section {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.form-errors {
  background: #f2dfd6;
  border: 1px solid rgba(109, 64, 47, 0.24);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.form-errors li {
  list-style: disc;
  margin-left: 1.25rem;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 1.5rem;
}

legend {
  color: var(--forest);
  font-weight: 700;
  padding: 0 0.35rem;
}

label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

label:has(input[type="checkbox"]) {
  align-items: center;
  display: flex;
}

input,
textarea,
select {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--ink);
  min-height: 2.8rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

textarea {
  resize: vertical;
}

.request-detail {
  max-width: var(--measure);
}

.request-detail figure {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
}

.request-detail figcaption {
  color: var(--quiet-ink);
  font-style: italic;
}

.faq-content {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.faq-section {
  margin-bottom: 2.5rem;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}

.faq-question {
  color: var(--brown);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.contact-methods address {
  border-top: 1px solid var(--line);
  font-style: normal;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.contact-next-steps li {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}

.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding: 3rem max(1.25rem, calc((100vw - var(--measure)) / 2)) 1rem;
}

.site-footer section {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 1fr) 10rem;
}

.footer-identity img {
  width: 12rem;
}

.site-footer address {
  font-style: normal;
}

.site-footer nav li {
  margin-bottom: 0.35rem;
}

.site-footer small {
  border-top: 1px solid var(--line);
  display: block;
  margin-top: 2.25rem;
  padding-top: 1rem;
  text-align: center;
}

.admin-toolbar {
  align-items: center;
  background: rgba(37, 43, 32, 0.95);
  bottom: 0;
  color: var(--paper);
  display: flex;
  gap: 1rem;
  justify-content: center;
  left: 0;
  padding: 0.8rem 1rem;
  position: fixed;
  right: 0;
  z-index: 30;
}

.admin-toolbar p {
  margin: 0;
}

.admin-toolbar nav {
  display: flex;
  gap: 0.75rem;
}

.admin-toolbar a {
  color: var(--paper);
  font-weight: 700;
}

.content_block_editor.admin .rendered_content {
  outline: 1px dashed rgba(179, 111, 69, 0.7);
  outline-offset: 0.25rem;
  cursor: pointer;
}

.cb-modal.hidden {
  display: none;
}

.cb-modal {
  inset: 0;
  position: fixed;
  z-index: 100;
}

.cb-modal-backdrop {
  background: rgba(37, 43, 32, 0.55);
  inset: 0;
  position: absolute;
}

.cb-modal-dialog {
  background: var(--paper);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  left: 50%;
  max-height: calc(100vh - 4rem);
  max-width: 42rem;
  overflow: auto;
  padding: 1rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 2rem);
}

.cb-modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cb-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
}

.cb-plain {
  min-height: 10rem;
}

.btn-like {
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
}

.btn-like.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}

@media (max-width: 900px) {
  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .primary-navigation ul {
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .home-hero {
    min-height: 35rem;
  }

  .home-hero > div {
    padding-top: 8rem;
  }

  .home-pillars ul,
  .request-invitation,
  .profile-section,
  .space-section,
  .request-context,
  .request-detail figure,
  .site-footer section {
    grid-template-columns: 1fr;
  }

  .home-pillars li {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 0;
  }

  .home-pillars li:first-child {
    border-top: 0;
  }

  .happening-summary {
    align-items: start;
    grid-template-columns: 4.9rem minmax(0, 1fr);
  }

  .happening-summary > a {
    grid-column: 2;
  }

  .request-invitation > div {
    padding: 0 0 2rem;
  }

  .site-footer {
    margin-top: 3rem;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.15rem;
  }

  .site-identity {
    width: 11.5rem;
  }

  .home-hero {
    min-height: 31rem;
  }

  .home-hero > div {
    padding: 6.25rem 1rem 4rem;
  }

  .home-hero nav,
  .happening-detail footer {
    align-items: stretch;
    flex-direction: column;
  }

  .happening-summary {
    gap: 1rem;
  }

  .happening-summary time {
    min-height: 4.9rem;
  }

  fieldset {
    padding: 1rem;
  }
}
