/*
  Grounded In Nature — Stylesheet
  Structure:
  1) CSS Custom Properties (Design Tokens)
  2) Base / Global
  3) Layout
  4) Components
  5) Utilities
*/

/* 1) CSS Custom Properties (Design Tokens) */
:root {
  --panel: rgba(15, 18, 22, 0.78);
  --panel-light: rgba(15, 18, 22, 0.6);
  --text: #eef3f7;
  --muted: #cfd7de;
  --accent: #4fd1c5; /* teal-ish divider hint */
}

/* 2) Base / Global */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  line-height: 1.6;
  background: #111 url("../assets/tree.jpg") center/cover no-repeat fixed;
  /* subtle overlay to fade edges similar to the comp */
  position: relative;
  min-height: 100vh;
}

/* subtle vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 1200px at 50% 10%, transparent 0%, rgba(0,0,0,0.25) 70%), linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(0,0,0,0.25));
  pointer-events: none;
  z-index: 0;
}

/* 3) Layout */
.wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 5vh 16px 10vh;
}

.panel {
  width: min(860px, 92vw);
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: clamp(24px, 5vw, 48px);
  backdrop-filter: blur(3px);
}

.section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 30px 0 60px;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* 4) Components */
h1.title {
  text-align: center;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(26px, 4.7vw, 46px);
  line-height: 1.25;
  margin: 4px 0 14px;
}

.divider {
  width: 56px;
  height: 2px;
  background: #cfd7de55;
  margin: 10px auto 22px;
  border-radius: 2px;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  margin-bottom: 22px;
}

a.btn {
  --ring: rgba(255,255,255,0.5);
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--text);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 12px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.btn:hover,
a.btn:focus {
  background: var(--panel-light);
  border-color: var(--ring);
  outline: none;
}

p.lead {
  text-align: center;
  color: var(--muted);
  margin: 8px 0 18px;
}

.hr {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0, var(--accent) 12%, transparent 24%);
  opacity: 0.8;
  margin: 18px 0 26px;
  border-radius: 2px;
}

.section-image {
  min-height: 220px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  background-color: rgba(255,255,255,0.05);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* section-image image variants */
.section-image.bark {
  background-image: url("../assets/bark.jpg");
}

.section-image.creeper {
  background-image: url("../assets/tree-creeper.jpg");
}

h2 {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  font-size: clamp(14px, 2.4vw, 16px);
  line-height: 1.6;
  margin: 0 0 8px;
}

/* 5) Utilities */
.muted {
  color: var(--muted);
}

/* Give anchors some top offset so headings aren't hidden under browsers' UI */
.anchor {
  scroll-margin-top: 90px;
}


/* Sessions table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead th {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-align: left;
  vertical-align: middle;
}

.table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.03);
}

.table tbody tr:hover {
  background: var(--panel-light);
}

/* Button element styling to match anchor .btn */
button.btn {
  --ring: rgba(255,255,255,0.5);
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--text);
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

button.btn:hover,
button.btn:focus {
  background: var(--panel-light);
  border-color: var(--ring);
  outline: none;
}
