/* Sunny&120 — same type system as zacjoki.com */

/* Fonts */
@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Colors */
:root {
  --bg: #f9f9f9;
  --text: #161616;
  --muted: #6b6b6b;
  --rule: #dcdcdc;
  --sun: #161616;        /* accent: black (gray/white in dark mode) */
  --field: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #ececec;
    --muted: #9a9a9a;
    --rule: #333333;
    --sun: #ececec;
    --field: #1b1b1b;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Apple Garamond", "EB Garamond", Garamond, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s;
}
a:hover,
a:focus-visible { text-decoration-color: currentColor; }

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

/* Navigation */
.nav {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}
.nav .brand {
  text-decoration: none;
  font-size: 1.35rem;
  white-space: nowrap;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.4rem;
}
.nav ul a {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.nav ul a:hover,
.nav ul a[aria-current="page"] { color: var(--text); }

/* Layout */
.page {
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 11vh, 7rem) 1.5rem 5rem;
}

.masthead {
  text-align: center;
  margin-bottom: clamp(3rem, 9vh, 5.5rem);
}

h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.masthead .sub {
  max-width: 32rem;
  margin: 1.25rem auto 0;
  text-wrap: balance;
  font-style: italic;
  color: var(--muted);
}

/* The ampersand gets the italic + the heat */
.amp {
  font-style: italic;
  color: inherit;
  padding: 0 0.02em;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}
.grid + .grid,
.grid + section,
section + .grid { margin-top: 3rem; }

section {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.stack > section + section { margin-top: 3rem; }

h2 {
  margin: 0 0 0.6rem;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h3 {
  margin: 0 0 0.25rem;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}

p { margin: 0; }
p + p { margin-top: 0.9rem; }

.lede {
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 300;
  line-height: 1.35;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li {
  display: flex;
  gap: 0.75rem;
}
.list li + li { margin-top: 0.4rem; }
.num {
  flex: none;
  min-width: 1.6rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.note {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.muted { color: var(--muted); }

/* Text link with an arrow, used for calls to action */
.go {
  white-space: nowrap;
}
.go::after { content: " \2192"; }

/* Pillars (home) */
.pillar .num { color: var(--muted); }
.pillar h3 { display: flex; gap: 0.6rem; align-items: baseline; }
.pillar h3 .num { font-size: 0.9rem; min-width: 0; }

/* Events (calendar + home) */
.month + .month { margin-top: 3rem; }
.event {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0 1.5rem;
  padding: 1.25rem 0;
}
.event + .event { border-top: 1px solid var(--rule); }
.event .day {
  font-weight: 300;
  font-size: 3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.event .dow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}
.event .meta {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.event .actions {
  margin-top: 0.6rem;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
}
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Past events */
.past + .past { margin-top: 4rem; }
.past .meta { color: var(--muted); margin-bottom: 0.6rem; }
.photos {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.photos a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--rule);
}
.photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.photos a:hover img { opacity: 0.85; }
.photos .wide { grid-column: span 2; aspect-ratio: auto; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  margin-bottom: 2.5rem;
}
.filters button {
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0.25rem 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.filters button[aria-pressed="true"] {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; width: auto; }
.lightbox p {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #cfcfcf;
  font-style: italic;
  font-size: 1rem;
  padding: 0 1rem;
}

/* Board */
.member .photo {
  aspect-ratio: 4 / 5;
  background: var(--rule);
  margin-bottom: 1rem;
  overflow: hidden;
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.member .role { color: var(--muted); font-style: italic; margin-bottom: 0.5rem; }
.member.open h3 { color: var(--muted); }

/* Forms */
form { display: grid; gap: 1.25rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label { display: grid; gap: 0.35rem; }
label > span {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
input, select, textarea {
  font: inherit;
  font-size: 1.15rem;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.6rem 0.75rem;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 55%, calc(100% - 0.8rem) 55%;
  background-size: 0.3rem 0.3rem;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--text);
}
fieldset { border: 0; margin: 0; padding: 0; }
legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.checks {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0.4rem 1.75rem;
}
.checks label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 1.1rem;
  cursor: pointer;
}
.checks input {
  width: 1rem;
  height: 1rem;
  padding: 0;
  flex: none;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--sun);
}

.button {
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--text);
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: opacity 0.15s;
}
.button:hover { opacity: 0.85; }
.button.ghost { color: var(--text); background: transparent; border-color: var(--rule); }
.button.ghost:hover, .button.ghost[aria-pressed="true"] { border-color: var(--text); opacity: 1; }
.form-status { font-style: italic; color: var(--muted); min-height: 1.5em; }

/* Donate */
.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}
.amounts .button { padding: 0.85rem 0.5rem; font-size: 1.15rem; letter-spacing: 0; text-transform: none; }
.give { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.give .button { width: 100%; }

/* Phones */
@media (max-width: 640px) {
  body { font-size: 1.15rem; }
  .nav { flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.25rem 1rem 0; }
  .nav ul { justify-content: center; gap: 0.2rem 1.1rem; }
  .page { padding-left: 1rem; padding-right: 1rem; }
  .grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .grid + .grid, .grid + section, section + .grid { margin-top: 2.25rem; }
  .row { grid-template-columns: 1fr; }
  .checks { flex-direction: column; gap: 0.4rem; }
  .event { grid-template-columns: 4rem 1fr; gap: 0 1rem; }
  .event .day { font-size: 2.4rem; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .amounts { grid-template-columns: repeat(2, 1fr); }
}

/* Home pillars sit inside one section, so no rules of their own */
.pillars { margin-top: 1.25rem; gap: 2rem 4rem; }

/* Board: three across */
.grid.board { grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; }
.member .photo.initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  font-size: 3.5rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
}
.member.open .photo.initials { font-style: italic; color: var(--rule); }
@media (max-width: 860px) {
  .grid.board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid.board { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .member h3 { font-size: 1.25rem; }
  .member .photo.initials { font-size: 2.5rem; }
}

/* Home: just the logo and tagline, centered */
.hero {
  min-height: calc(100vh - 9rem);
  min-height: calc(100svh - 9rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.hero h1 { width: min(100%, 38rem); }
.hero .logo { width: 100%; height: auto; }
.hero .sub {
  max-width: 32rem;
  margin: 2rem auto 0;
  font-style: italic;
  color: var(--muted);
  text-wrap: balance;
}
@media (prefers-color-scheme: dark) {
  .hero .logo { filter: invert(1); }
}

/* Home: the page links sit under the tagline */
.home-nav { margin-top: 2.5rem; }
.home-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}
.home-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.home-nav a:hover,
.home-nav a:focus-visible { color: var(--text); }
body.home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.home .hero { min-height: 0; flex: 1; width: 100%; }
@media (max-width: 640px) {
  .home-nav ul { gap: 0.6rem 1.25rem; max-width: 20rem; margin: 0 auto; }
}

/* Social icons, bottom of every page */
.social {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.social ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}
.social a {
  display: block;
  padding: 0.35rem;
  color: var(--muted);
  transition: color 0.15s;
}
.social a:hover,
.social a:focus-visible { color: var(--text); }
.social svg { display: block; width: 1.25rem; height: 1.25rem; fill: currentColor; }
.home .social { width: 100%; }

/* Inner pages: boxed logo top left, links top right */
.nav { align-items: center; }
.nav .brand { display: block; flex: none; }
.nav .brand img { height: 2.75rem; width: auto; }
@media (prefers-color-scheme: dark) {
  .nav .brand img { filter: invert(1); }
}
@media (max-width: 640px) {
  .nav .brand img { height: 2.5rem; }
}

/* Past Events: jump links + three parts */
.jump {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  margin: -1.5rem 0 3.5rem;
}
.jump a {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.jump a:hover { color: var(--text); }
.part { scroll-margin-top: 1.5rem; }
.part + .part { margin-top: 5rem; }
h2.part-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
#photo-wall .photos { margin-top: 0; }
.minute {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0;
}
.minute .meta { color: var(--muted); font-size: 1rem; margin-bottom: 0.25rem; }
.minute .actions {
  margin-top: 0.6rem;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
}

/* Calendar: interests */
.interests { margin-bottom: 2.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.chips button {
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chips button:hover { border-color: var(--text); }
.chips button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.event.is-past { opacity: 0.6; }

/* Past Events: "see more" links */
.more { margin-top: 1rem; }

@media (max-width: 640px) {
  .chips button { font-size: 1rem; padding: 0.3rem 0.85rem; }
}

.rsvp-note { font-style: italic; color: var(--muted); margin: 0.25rem 0 1rem; }

/* Donate: video */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 0.75rem;
  background: #000;
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-empty { background: transparent; border: 1px solid var(--rule); }
.video-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
  font-style: italic;
}
.video-ph .play {
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  position: relative;
}
.video-ph .play::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.1rem;
  border-color: transparent transparent transparent var(--muted);
}

/* Events page: Upcoming / Past tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: -1.5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}
.tabs a {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.6rem 0.25rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="true"] { color: var(--text); border-bottom-color: var(--text); }
.tabs a { white-space: nowrap; }
@media (max-width: 640px) {
  .tabs { gap: 1.25rem; }
  .tabs a { font-size: 0.75rem; letter-spacing: 0.14em; }
}

/* Join: interest checkboxes in a single row (they wrap only if the screen is too narrow) */
.checks { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; }
.checks label { white-space: nowrap; }
