/* Green Bread Applications — shared styles.
   Type matches greenbreadenterprises.com: Montserrat wordmark, Playfair Display headings,
   Source Sans 3 body, on the same near-black ground, with a green accent. */

:root {
  --bg: #121212;
  --bg-raised: #1b1b1b;
  --bg-deep: #0a0a0a;
  --line: #2c2c2c;
  --text: #ececec;
  --text-muted: #a3a3a3;
  --green: #7cc47f;
  --green-strong: #5aa95e;
  --crust: #d9a86c;
  --max: 1080px;
  --prose: 720px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #a5dca7; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
}
.wordmark {
  font: 700 0.95rem/1.15 Montserrat, system-ui, sans-serif;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.wordmark span { color: var(--green); }
.wordmark small {
  display: block; margin-top: 4px;
  font-weight: 500; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-muted);
}
.wordmark:hover { color: var(--text); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  font: 600 0.8rem/1 Montserrat, system-ui, sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--green); }

/* Headings */
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 14px; }
h3 { font-size: 1.35rem; margin: 0 0 8px; }

.eyebrow {
  font: 600 0.75rem/1 Montserrat, system-ui, sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green);
  margin: 0 0 14px;
}
.lede { font-size: 1.2rem; color: var(--text-muted); max-width: 40em; margin: 0; }

/* Hero */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line);
  background: radial-gradient(1200px 400px at 50% -10%, rgba(124,196,127,0.10), transparent 70%); }
.hero.center { text-align: center; }
.hero.center .lede { margin: 0 auto; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero.center .actions { justify-content: center; }

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 4px;
  font: 700 0.8rem/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--green); color: var(--bg); background: var(--green);
}
.btn:hover { background: #a5dca7; border-color: #a5dca7; color: var(--bg); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--green); color: var(--text); }

/* Sections */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 6px; padding: 26px;
}
.card p { margin: 0 0 12px; color: var(--text-muted); }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
a.card:hover { border-color: var(--green); color: inherit; }
.card.placeholder { border-style: dashed; background: transparent; }

.tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 9px; border-radius: 3px;
  font: 600 0.68rem/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--crust); border: 1px solid rgba(217,168,108,0.45);
}
.tag.green { color: var(--green); border-color: rgba(124,196,127,0.45); }

.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.platforms li { font-size: 0.85rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-muted); }

.feature h3 { font-size: 1.2rem; }
.feature p { margin: 0; color: var(--text-muted); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--text-muted); }
.steps li strong { color: var(--text); display: block; font-weight: 600; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--green); color: var(--green);
  display: grid; place-items: center; font: 600 0.9rem/1 Montserrat, system-ui, sans-serif;
}

/* Legal / long-form prose */
.prose { max-width: var(--prose); }
.prose h2 { font-size: 1.55rem; margin: 44px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; font-family: "Source Sans 3", system-ui, sans-serif; font-weight: 700; }
.prose p, .prose li { color: #d4d4d4; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose code { font-size: 0.9em; background: var(--bg-raised); padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line); }
.meta { color: var(--text-muted); font-size: 0.95rem; }
.callout { border-left: 3px solid var(--green); background: var(--bg-raised); padding: 16px 20px; border-radius: 0 6px 6px 0; margin: 24px 0; }
.callout p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--text); }
td { color: #d4d4d4; }

.subnav { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 36px 0; font-size: 0.92rem; color: var(--text-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }
