/* miocado.org — independent avocado guide, zero external assets */
:root {
  --paper: #f7f8f2;
  --card: #fffefb;
  --ink: #1f2419;
  --muted: #5f6a56;
  --line: #dfe4d4;
  --green: #2f6b32;
  --green-deep: #1f4a22;
  --flesh: #c8e07a;
  --pit: #7a4b22;
  --accent: #9a7b1f;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Charter, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 248, 242, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--green-deep); letter-spacing: 0.01em; line-height: 1.1; }
.brand:hover { text-decoration: none; }
.brand span { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }
.site-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); font-size: 15px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-deep); border-bottom-color: var(--flesh); text-decoration: none; }

/* hero */
.hero {
  background:
    radial-gradient(620px 240px at 88% -25%, rgba(200, 224, 122, 0.4), transparent 65%),
    linear-gradient(135deg, var(--green-deep), var(--green) 58%, #3d7f3a);
  color: #f4faf0;
  padding: 62px 0 56px;
}
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 45px); line-height: 1.12; margin: 14px 0 16px; max-width: 22ch; }
.hero .lede { font-size: 18px; max-width: 64ch; color: rgba(244, 250, 240, 0.93); margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; color: var(--accent); font-weight: 700; margin: 0; }
.hero .kicker { color: var(--flesh); }

/* page head */
.page-head { padding: 46px 0 6px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(28px, 4.5vw, 40px); margin: 12px 0 0; line-height: 1.15; }

/* content */
main { padding-bottom: 40px; }
.intro { max-width: 74ch; margin: 26px 0 8px; }
.intro p { margin: 0 0 14px; }
.sec { max-width: 78ch; margin-top: 34px; }
.sec h2 { margin-top: 0; }
h2 { font-family: var(--serif); font-size: 25px; line-height: 1.25; margin: 38px 0 12px; }
h3 { font-family: var(--serif); font-size: 19px; line-height: 1.3; margin: 20px 0 8px; }
.group-note { color: var(--muted); margin: -4px 0 18px; max-width: 74ch; font-size: 15px; }
.closing { max-width: 74ch; margin-top: 32px; font-size: 17.5px; }
.related { margin-top: 26px; font-size: 15px; }
ul.steps, ol.steps { padding-left: 20px; margin: 12px 0; max-width: 74ch; }
ul.steps li, ol.stages li { margin-bottom: 7px; }

/* topic grid (index) */
.topicgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 30px 0 8px; }
.topic {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 10px; padding: 16px 18px; color: var(--ink);
}
.topic:hover { text-decoration: none; border-left-color: var(--flesh); box-shadow: 0 5px 18px rgba(31, 36, 25, 0.08); }
.topic strong { font-family: var(--serif); font-size: 18px; color: var(--green-deep); }
.topic span:last-child { font-size: 14.5px; color: var(--muted); }
.t-k { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--accent); font-weight: 700; }

/* variety cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin: 16px 0 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 16px; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.card h2 { font-family: var(--serif); font-size: 21px; margin: 0; }
.card p { margin: 0 0 10px; }
.badge { white-space: nowrap; background: #eaf3dd; color: var(--green-deep); border: 1px solid #cfe0b6; border-radius: 999px; font-size: 12.5px; font-weight: 700; padding: 2px 10px; }
ul.attrs { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--muted); }
ul.attrs li { margin-bottom: 5px; line-height: 1.5; }
ul.attrs .k { display: inline-block; min-width: 108px; text-transform: uppercase; letter-spacing: 0.07em; font-size: 11.5px; font-weight: 700; color: var(--accent); }

/* data tables */
.tablewrap { overflow-x: auto; margin: 22px 0 8px; }
table.data { border-collapse: collapse; width: 100%; min-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
table.data caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; max-width: 74ch; }
table.data th, table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15.5px; }
table.data thead th { background: #eef2e6; font-family: var(--serif); font-size: 16px; color: var(--green-deep); }
table.data tbody th { font-weight: 600; width: 34%; }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data .sub { display: block; font-style: italic; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.tablenote { font-size: 14.5px; color: var(--muted); max-width: 74ch; margin: 6px 0 0; }

/* boxes */
.box { background: #eef3e5; border: 1px solid #d6e2c4; border-radius: 12px; padding: 18px 22px; margin: 28px 0; max-width: 78ch; }
.box h3 { margin-top: 0; color: var(--green-deep); }
.box p { margin: 0 0 8px; font-size: 15.5px; }
.box p:last-child { margin-bottom: 0; }
ol.stages { margin: 10px 0 0; padding-left: 20px; }

/* faq */
.faq { max-width: 78ch; margin-top: 36px; }
.faq h2 { margin-top: 0; }
.qa { border-bottom: 1px solid var(--line); padding: 6px 0 14px; margin-top: 10px; }
.qa h3 { font-size: 18px; margin: 8px 0 4px; }
.qa p { margin: 0; }

/* methodology + footer */
.method { margin-top: 44px; padding: 22px 24px; background: #f1f3e9; border: 1px solid var(--line); border-radius: 12px; max-width: 80ch; }
.method h2 { margin-top: 0; font-size: 20px; }
.method p { margin: 0; font-size: 15px; color: #4a5342; }
.site-footer { border-top: 1px solid var(--line); background: #eef1e6; margin-top: 40px; }
.site-footer .site-nav { padding: 22px 0 8px; }
.disclaimer { max-width: 80ch; font-size: 13.5px; color: var(--muted); margin: 8px 0; }
.copy { font-size: 13.5px; color: var(--muted); padding-bottom: 26px; margin: 4px 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 42px 0 38px; }
  .head-row { justify-content: flex-start; }
  .cards, .topicgrid { grid-template-columns: 1fr; }
  ul.attrs .k { min-width: 92px; }
}
