:root {
  --ink: #241b10;
  --muted: #6f604b;
  --honey: #d99020;
  --gold: #f5c95a;
  --leaf: #41624b;
  --paper: #fffaf0;
  --cream: #f8efe0;
  --line: rgba(36, 27, 16, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(255, 250, 240, 0.72), rgba(248, 239, 224, 0.82)),
    url("../images/apiary-1.svg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  background: transparent;
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 28px;
}

.intro {
  padding: 10px 0 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--leaf);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.slideshow {
  display: grid;
  gap: 14px;
}

.slide-frame {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e5d8bf;
  box-shadow: 0 24px 60px rgba(76, 49, 14, 0.14);
}

.slide {
  display: none;
  margin: 0;
}

.slide.is-active {
  display: block;
}

.slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  object-fit: cover;
}

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  padding: 24px clamp(22px, 5vw, 52px);
  color: #fffaf0;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0), rgba(20, 16, 10, 0.78));
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.slide figcaption strong {
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1;
}

.slide figcaption span {
  max-width: 620px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.45;
}

.slide-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 52px;
  border: 1px solid rgba(255, 250, 240, 0.7);
  border-radius: 999px;
  color: #fffaf0;
  background: rgba(36, 27, 16, 0.52);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.slide-control:hover,
.slide-control:focus-visible {
  background: rgba(36, 27, 16, 0.78);
  outline: 3px solid rgba(245, 201, 90, 0.72);
  outline-offset: 2px;
}

.slide-control-left {
  left: 18px;
}

.slide-control-right {
  right: 18px;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid rgba(36, 27, 16, 0.32);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.dot.is-active {
  border-color: var(--ink);
  background: var(--honey);
}

.story {
  max-width: 760px;
  margin: 34px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.story p {
  margin: 0;
}

.calendar-section {
  margin: 42px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.calendar-section + .calendar-section {
  margin-top: 32px;
  padding-top: 0;
  border-top: none;
}

.calendar-section .eyebrow {
  margin-bottom: 6px;
}

.previous .eyebrow {
  color: var(--muted);
}

.calendar-section h2 {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.calendar-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calendar-item {
  display: grid;
  grid-template-columns: minmax(148px, 210px) 1fr;
  gap: 12px 24px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--honey);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(248, 239, 224, 0.9));
  box-shadow: 0 12px 28px rgba(76, 49, 14, 0.08);
}

.calendar-item.is-past {
  border-left-color: var(--leaf);
  background: linear-gradient(180deg, rgba(248, 239, 224, 0.78), rgba(241, 232, 216, 0.86));
  box-shadow: 0 8px 20px rgba(76, 49, 14, 0.05);
}

.calendar-date {
  display: grid;
  gap: 4px;
  color: var(--leaf);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.calendar-month {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-year {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.calendar-body h3 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.calendar-body p {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.market-callout {
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.market-callout p {
  margin: 0 0 6px;
  color: var(--leaf);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-callout h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 16px 28px;
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-footer a {
  color: var(--leaf);
  font-weight: 800;
  text-decoration-color: rgba(65, 98, 75, 0.35);
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1040px);
    padding-top: 28px;
  }

  .slide-frame {
    min-height: 430px;
  }

  .slide img {
    aspect-ratio: 4 / 5;
    min-height: 430px;
  }

  .slide figcaption {
    padding: 74px 18px 20px;
  }

  .slide-control {
    top: 46%;
    width: 40px;
    height: 48px;
  }

  .slide-control-left {
    left: 10px;
  }

  .slide-control-right {
    right: 10px;
  }

  .calendar-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }
}
