/* Maribee Acres Irrigation Bulletin
   White notices posted on a kraft board, under a fir-green letterhead. */

:root {
  --board: #d9ceb8;      /* kraft-brown board behind the notices */
  --paper: #ffffff;
  --ink: #2a241f;        /* warm near-black */
  --muted: #6b6258;      /* bark gray */
  --line: #e6dfd3;       /* rules on paper */
  --fir: #2c4a36;        /* letterhead band */
  --green: #2e5b3c;      /* accents on paper */
  --green-wash: #eef3ec;
  --bark: #6e4b32;       /* brown labels */
  --cream: #f4eee2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font: 1.125rem/1.6 var(--sans);
}

a { color: var(--green); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; text-wrap: balance; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 0.75rem; }

/* ---------- Letterhead ---------- */

.masthead {
  background: var(--fir);
  border-bottom: 4px solid var(--bark);
  color: var(--cream);
  text-align: center;
  padding: 1.6rem 0 1.4rem;
}

.brand-mark { display: block; width: 1.35rem; margin: 0 auto 0.65rem; fill: var(--cream); }

.brand-name {
  margin: 0;
  font-size: clamp(1.05rem, 4.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-sub { margin: 0.35rem 0 0; font-size: 0.875rem; color: #c9d3c4; }

/* ---------- Paper sheets ---------- */

.sheet {
  margin: 1.25rem 0;
  padding: 1.75rem 1.25rem 1.5rem;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(58, 42, 28, 0.2), 0 12px 28px -16px rgba(58, 42, 28, 0.5);
}

/* ---------- Notice ---------- */

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem;
  margin: 0 0 0.9rem; font-size: 0.85rem; color: var(--muted);
}

.tag {
  padding: 0.2rem 0.5rem; border-radius: 2px;
  background: var(--bark); color: var(--cream);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase;
}
.posted { white-space: nowrap; }

.notice-title { margin: 0; font-size: clamp(2rem, 8vw, 2.75rem); letter-spacing: -0.01em; }
.notice-subtitle { margin: 0.4rem 0 0; font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--muted); }

.notice h3 { margin: 2rem 0 1rem; font-size: 1.4rem; }

/* Key dates */

.key-dates { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }

.key-date {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.key-date.is-key { background: var(--green-wash); }
.key-date p { margin: 0; }

.kd-tile {
  flex: none; display: block; width: 3.9rem; overflow: hidden;
  background: var(--paper); border: 1px solid #d5cdbf; border-radius: 4px;
  box-shadow: 0 1px 1px rgba(58, 42, 28, 0.08);
  line-height: 1; text-align: center;
}
.kd-month {
  display: block; padding: 0.25rem 0;
  background: var(--green); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.kd-day { display: block; padding: 0.4rem 0 0.15rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.kd-weekday {
  display: block; padding-bottom: 0.4rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

.kd-what { font-weight: 700; line-height: 1.3; }
.kd-detail { margin-top: 0.1rem !important; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }

.countdown {
  margin-top: 0.35rem !important;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
}
.countdown[hidden] { display: none; }

/* Add to calendar */

.add-cal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem;
  margin: 1rem 0 1.5rem; font-size: 0.9rem; color: var(--muted);
}
.add-cal > span { flex-basis: 100%; }
.add-cal a {
  padding: 0.3rem 0.75rem; border: 1px solid var(--green); border-radius: 4px;
  font-weight: 600; text-decoration: none;
}
.add-cal a:hover { background: var(--green); color: #fff; }

/* Steps */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; margin: 0 0 1.1rem; padding-left: 2.75rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.05rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  font-family: var(--serif); font-size: 0.95rem; font-weight: 700;
}

.signoff { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.signoff-name { display: block; margin-top: 0.4rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); }

/* ---------- Earlier notices ---------- */

.archive > h2, .contacts > h2 { margin: 0 0 0.3rem; font-size: 1.5rem; }

.archive > h2 { margin-bottom: 1rem; }
.archive details { border-top: 1px solid var(--line); }
.archive details:last-of-type { border-bottom: 1px solid var(--line); }
.archive summary {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.85rem 0; cursor: pointer; font-weight: 700; list-style: none;
}
.archive summary::-webkit-details-marker { display: none; }
.archive summary::before { content: "+"; width: 0.9rem; flex: none; color: var(--green); }
.archive details[open] > summary::before { content: "\2013"; }
.archive summary time { margin-left: auto; color: var(--muted); font-size: 0.95rem; font-weight: 400; white-space: nowrap; }

/* A notice moved into the archive drops its paper-sheet styling */
.archive .notice { margin: 0; padding: 0 0 1.5rem; box-shadow: none; border-radius: 0; }
.archive .eyebrow, .archive .notice-title, .archive .add-cal, .archive .countdown { display: none; }
.archive .notice-subtitle { margin-top: 0; }

/* ---------- Officers ---------- */

.section-intro { margin: 0 0 1rem; color: var(--muted); }

.people { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.people li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.25rem 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}

.person-name { display: block; font-weight: 700; line-height: 1.3; }
.person-role { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.35; }

.phone {
  padding: 0.4rem 0.7rem; border: 1px solid var(--green); border-radius: 4px;
  font-size: 0.9rem; font-weight: 650; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.phone:hover { background: var(--green); color: #fff; }

/* ---------- Footer ---------- */

.site-footer { padding: 0.5rem 0 2.5rem; text-align: center; color: #5a4a3a; font-size: 0.85rem; }

/* ---------- Wider screens ---------- */

@media (min-width: 34rem) {
  .add-cal > span { flex-basis: auto; }
}

@media (min-width: 40rem) {
  .wrap { padding: 0 1.25rem; }
  .masthead { padding: 2.25rem 0 2rem; }
  .sheet { margin: 2rem 0; padding: 2.5rem 2.75rem 2rem; }
}

/* ---------- Small phones ---------- */

@media (max-width: 22.5rem) {
  .people li { grid-template-columns: 1fr; }
  .phone { justify-self: start; }
}

/* ---------- Print ---------- */

@media print {
  body { background: #fff; font-size: 11pt; }
  .masthead { background: none; color: #000; border-bottom: 2px solid #000; }
  .brand-sub { color: #333; }
  .brand-mark, .add-cal, .countdown { display: none !important; }
  .sheet { box-shadow: none; margin: 0; padding: 1rem 0; }
  .key-date, .people { break-inside: avoid; }
  a { text-decoration: none; }
}
