/* Pinewater Apiary — linen ground, serif text, honey and pine accents */

:root {
  --ground: #f7f4ec;
  --text:   #23281f;
  --muted:  #6a6f60;
  --line:   #ddd6c3;
  --panel:  #fffdf6;
  --honey:  #b9770e;
  --pine:   #3d5a45;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #161a15;
    --text:   #e6e2d3;
    --muted:  #9a9d8c;
    --line:   #30362c;
    --panel:  #1d221b;
    --honey:  #e0a53a;
    --pine:   #8fb39a;
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.6;
}

.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

a { color: var(--pine); text-underline-offset: 0.18em; }
a:hover { color: var(--honey); }

/* masthead */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 2.5rem 0 1.25rem;
  border-bottom: 3px double var(--line);
}

.mark {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}

.mark a { color: inherit; text-decoration: none; }
.mark em { color: var(--honey); }

.nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--honey); }

/* text */

.intro {
  margin: 2.75rem 0 2.5rem;
  font-size: 1.35rem;
  line-height: 1.45;
  font-style: italic;
  max-width: 38rem;
}

h2 {
  margin: 2.75rem 0 1rem;
  font-size: 1.25rem;
  font-weight: normal;
  font-style: italic;
  color: var(--pine);
}

h2::before { content: "\2014\00a0"; color: var(--honey); }

p { margin: 0 0 1rem; max-width: 40rem; }

/* honey cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--honey);
  padding: 1.1rem 1.25rem 1rem;
}

.card h3 { margin: 0; font-size: 1.2rem; font-weight: normal; }
.card .when { margin: 0.1rem 0 0.7rem; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.03em; }
.card p { font-size: 0.97rem; }
.card .size { margin: 0; font-size: 0.85rem; color: var(--pine); font-variant-numeric: tabular-nums; }

/* year table */

.year { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.year th, .year td { padding: 0.65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.year th { width: 11.5rem; padding-right: 1rem; font-weight: normal; font-style: italic; color: var(--honey); white-space: nowrap; }

@media (max-width: 34rem) {
  .year th, .year td { display: block; width: auto; }
  .year th { border-bottom: 0; padding-bottom: 0; }
  .year td { padding-top: 0.15rem; }
}

.note { padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); font-size: 0.95rem; }

.where { font-size: 1.1rem; }

.next { margin-top: 2.5rem; font-style: italic; }

/* footer */

.foot {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 3px double var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.foot p { margin: 0 0 0.25rem; max-width: none; }
.foot a { color: inherit; }
