/* Iron Fern house styles — updated February 14, 2025, N. Ostrowski.
   If you ever have to edit this: every name in here starts with if-,
   the colors at the top are the greens and clays we mix the shelf
   labels from, and you'll want to change them there rather than
   hunting for a hex code halfway down. */

:root {
  --if-moss: #46592f;
  --if-moss-deep: #2f3d1f;
  --if-olive: #7c8a4e;
  --if-olive-pale: #b7bf90;
  --if-bark: #6b4a2f;
  --if-bark-deep: #4a3220;
  --if-clay: #a8714a;
  --if-page: #f7f4ea;
  --if-pot-bg: #fffdf7;
  --if-edge: #ddd6c0;
  --if-text: #34301f;
  --if-soft: #6f6a54;
  --if-leading: 1.62;
  --if-gutter: 1.5rem;
  --if-round: 3px;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--if-page);
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 15px;
  line-height: var(--if-leading);
  color: var(--if-text);
  background-color: var(--if-page);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  color: var(--if-bark);
  font-weight: bold;
  line-height: 1.25;
  margin: 0 0 0.6em 0;
}

h1 { font-size: 1.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.24rem; }
h3 { font-size: 1.05rem; color: var(--if-bark-deep); }
h4 { font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--if-moss); }

p { margin: 0 0 1.05em 0; }

a {
  color: var(--if-moss);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--if-clay);
}

ul, ol { margin: 0 0 1.1em 0; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

hr {
  border: 0;
  border-top: 1px solid var(--if-edge);
  margin: 2rem 0;
}

/* ---------- page frame, signboard, nav ---------- */

.if-shopfront {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.if-signboard {
  border-bottom: 3px double var(--if-olive-pale);
  padding: 1.6rem 0 1.1rem 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-column-gap: 0.9rem;
  align-items: center;
}

.if-signboard-frond {
  display: block;
  width: 54px;
  height: 54px;
}

.if-signboard-name {
  margin: 0;
  font-size: 1.5rem;
  color: var(--if-bark-deep);
  letter-spacing: 0.01em;
}

.if-signboard-name a {
  color: inherit;
  text-decoration: none;
}

.if-signboard-line {
  margin: 0.15rem 0 0 0;
  font-size: 0.78rem;
  color: var(--if-soft);
  letter-spacing: 0.04em;
}

.if-benchnav {
  padding: 0.75rem 0 0.9rem 0;
  border-bottom: 1px solid var(--if-edge);
  margin-bottom: 1.9rem;
}

.if-benchnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, auto));
  grid-gap: 0.35rem 1.15rem;
  justify-content: start;
}

.if-benchnav-item { margin: 0; }

.if-benchnav-link {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--if-moss-deep);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.if-benchnav-link:hover {
  border-bottom-color: var(--if-olive);
  color: var(--if-moss-deep);
}

.if-benchnav-link-open {
  border-bottom-color: var(--if-clay);
  color: var(--if-clay);
}

/* ---------- opening line and the two-column spread ---------- */

.if-leadin {
  font-size: 1.02rem;
  color: var(--if-moss-deep);
  border-left: 4px solid var(--if-olive-pale);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.if-passage { margin-bottom: 2.4rem; }

.if-spread {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  grid-gap: 2.2rem;
  align-items: start;
}

@media (max-width: 41rem) {
  .if-spread { grid-template-columns: 1fr; }
  .if-signboard { grid-template-columns: 42px 1fr; }
  .if-signboard-frond { width: 42px; height: 42px; }
}

/* ---------- the tray of pots (teaser blocks) ---------- */

.if-tray {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  grid-gap: var(--if-gutter);
  margin: 0 0 2.4rem 0;
  padding: 0;
  list-style: none;
}

.if-tray-wide {
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.if-pot {
  background-color: var(--if-pot-bg);
  border: 1px solid var(--if-edge);
  border-top: 4px solid var(--if-olive);
  border-radius: var(--if-round);
  padding: 1.15rem 1.2rem 1.25rem 1.2rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  grid-row-gap: 0.35rem;
}

.if-pot-clay { border-top-color: var(--if-clay); }
.if-pot-pale { border-top-color: var(--if-olive-pale); }

.if-pot-drawing {
  margin: 0 0 0.55rem 0;
  display: block;
  width: 100%;
  height: 92px;
}

.if-pot-name {
  margin: 0 0 0.2rem 0;
  font-size: 1.02rem;
}

.if-pot-name a { text-decoration: none; }
.if-pot-name a:hover { text-decoration: underline; }

.if-pot-label {
  margin: 0 0 0.5rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--if-soft);
}

.if-pot-text {
  margin: 0 0 0.75rem 0;
  font-size: 0.88rem;
}

.if-pot-link {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* ---------- plant write-ups and their at-a-glance rows ---------- */

.if-writeup {
  border-top: 1px solid var(--if-edge);
  padding-top: 1.6rem;
  margin-bottom: 2.4rem;
}

.if-writeup-top {
  display: grid;
  grid-template-columns: 74px 1fr;
  grid-column-gap: 1rem;
  align-items: start;
}

.if-writeup-latin {
  font-style: italic;
  color: var(--if-soft);
  font-size: 0.86rem;
  margin: -0.35rem 0 0.8rem 0;
}

.if-atglance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  grid-gap: 0.75rem 1.4rem;
  margin: 1.1rem 0 1.2rem 0;
  padding: 0.95rem 1.1rem;
  background-color: var(--if-pot-bg);
  border: 1px solid var(--if-edge);
  border-radius: var(--if-round);
}

.if-atglance-term {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--if-moss);
}

.if-atglance-value {
  margin: 0.1rem 0 0 0;
  font-size: 0.87rem;
}

/* ---------- the side box ---------- */

.if-sidebox {
  background-color: var(--if-pot-bg);
  border: 1px solid var(--if-edge);
  border-radius: var(--if-round);
  padding: 1.1rem 1.15rem;
  font-size: 0.85rem;
}

.if-sidebox-head {
  margin-top: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--if-moss);
}

.if-sidebox-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.if-sidebox-list li {
  border-bottom: 1px dotted var(--if-edge);
  padding-bottom: 0.45em;
  margin-bottom: 0.45em;
}

.if-sidebox-list li:last-child { border-bottom: 0; margin-bottom: 0; }

/* ---------- charts of numbers ---------- */

.if-chart {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin: 0 0 1.6rem 0;
  background-color: var(--if-pot-bg);
}

.if-chart caption {
  text-align: left;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--if-soft);
  padding-bottom: 0.5rem;
}

.if-chart th,
.if-chart td {
  border: 1px solid var(--if-edge);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.if-chart th {
  background-color: #eeead9;
  color: var(--if-bark-deep);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- tips, the question sheet, end matter ---------- */

.if-tip {
  background-color: #eff1df;
  border-left: 4px solid var(--if-olive);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.6rem 0;
  font-size: 0.88rem;
}

.if-tip-clay {
  background-color: #f6ebe1;
  border-left-color: var(--if-clay);
}

.if-ask {
  display: grid;
  grid-template-columns: 1fr;
  grid-row-gap: 1rem;
  max-width: 30rem;
  margin-bottom: 1.8rem;
}

.if-ask-row { display: grid; grid-row-gap: 0.3rem; }

.if-ask-label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--if-moss-deep);
}

.if-ask-line,
.if-ask-box,
.if-ask-pick {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--if-edge);
  border-radius: var(--if-round);
  background-color: var(--if-pot-bg);
  color: var(--if-text);
  width: 100%;
}

.if-ask-box { min-height: 8rem; resize: vertical; }

.if-ask-send {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: var(--if-moss);
  color: #fdfcf6;
  border: 1px solid var(--if-moss-deep);
  border-radius: var(--if-round);
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  justify-self: start;
}

.if-ask-send:hover { background-color: var(--if-moss-deep); }

.if-opentimes {
  display: grid;
  grid-template-columns: 9rem 1fr;
  grid-gap: 0.3rem 1rem;
  font-size: 0.88rem;
  margin: 0 0 1.6rem 0;
}

.if-opentimes dt { color: var(--if-moss-deep); margin: 0; }
.if-opentimes dd { margin: 0; }

.if-revised {
  font-size: 0.76rem;
  color: var(--if-soft);
  margin-top: 2rem;
}

.if-endmatter {
  border-top: 3px double var(--if-olive-pale);
  margin-top: 3rem;
  padding: 1.5rem 0 2.6rem 0;
  font-size: 0.78rem;
  color: var(--if-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  grid-gap: 1.2rem;
}

.if-endmatter p { margin: 0 0 0.4em 0; }

.if-endmatter-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.if-endmatter-links li { margin-bottom: 0.3em; }

.if-endmatter a { color: var(--if-moss); }

