/* style is semantic green */
:root {
  --page-bg: #F5F8F6;      /* bg */
  --text-body: #24302B;    /* text */
  --text-muted: #5C6C64;   /* retoned green-gray */
  --accent: #7FB69E;       /* sage, links/highlights */
  --accent-light: #A9D0BE; /* hover state */
  --accent-dark: #4C8267;  /* blockquote border, subtle emphasis */
  --nav-bg: #1F3D2E;       /* header/footer bg */
  --nav-text: #EAF3EE;     /* text on nav-bg */
  --border: #DCE6E1;       
  --card-bg: #FFFFFF;
  --radius: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background-color: var(--page-bg);
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.7;
}

main {
  flex: 1;
  padding: 0 5%;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.content {
  padding: 2.5rem 20px;
  text-align: center;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.2;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
h5, h6 { font-size: 0.95rem; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }

p { margin-bottom: 1rem; color: var(--text-muted); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--accent-light); text-decoration: underline; }

blockquote {
  border-left: 3px solid var(--accent-dark);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1.2rem 0;
  font-style: italic;
}

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background-color: var(--nav-bg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2rem 1rem;
  margin-top: auto;
  font-size: 0.875rem;
}

/* Main grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.footer-grid section {
  min-width: 0;
}

footer h2 {
  font-family: "Playfair Display", serif;
  color: var(--nav-text);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

footer p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

footer dl {
  margin: 0;
}

footer dt {
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--nav-text);
}

footer dd {
  margin: 0.25rem 0 0;
}

/* Bottom copyright bar */
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 640px) {
  .footer-grid {
    gap: 1.5rem;
  }

  .footer-grid section {
    text-align: center;
  }
}

abbr[title] {
  text-decoration: underline dotted;
  text-decoration-color: var(--accent-dark);
  cursor: help;
  color: var(--text-body);
}

/* ── INLINE CODE / CODE BLOCKS ── */
code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--border);
  color: var(--text-body);
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.2rem 0;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ── LISTS ── */
ul, ol {
  margin: 0 0 1rem 1.4rem;
  color: var(--text-muted);
}

li { margin-bottom: 0.35rem; }

/* ── HORIZONTAL RULE ── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── TABLE ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text-body);
  background: var(--border);
}

tr:hover td {
  background: rgba(127, 182, 158, 0.08);
}

/* ── EMPHASIS ── */
strong, b { color: var(--text-body); font-weight: 500; }
em, i { color: inherit; }

/* ── MARK / HIGHLIGHT ── */
mark {
  background: var(--accent-light);
  color: var(--nav-bg);
  padding: 0 4px;
  border-radius: 3px;
}

/* ── KEYBOARD KEY ── */
kbd {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-body);
}

/* ── SMALL / SUP / SUB ── */
small { font-size: 0.8em; color: var(--text-muted); }
sup, sub { font-size: 0.75em; }

/* ── FIGURE ── */
figure {
  margin: 1.2rem 0;
}

figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ── DETAILS / SUMMARY ── */
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}

summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text-body);
}

/* ── FORMS ── */
input, textarea, select, button {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-body);
}

input, textarea, select {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  width: 100%;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  background: var(--accent);
  color: var(--nav-bg);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover { background: var(--accent-light); }

/* ── SELECTION ── */
::selection {
  background: var(--accent-light);
  color: var(--nav-bg);
}