@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600&display=swap');
/* NOTE: Barlow Condensed is a free stand-in for the licensed Typekit font
   (Helvetica Neue LT Pro Condensed). Swap in the real Typekit embed once
   this app's domain is added to the kit. */

:root {
  --paper: #FCFBF7;
  --ink: #000000;
  --moss: #808A40;
  --moss-deep: #1C2107;
  --line: rgba(0, 0, 0, 0.12);
  --muted: #5B5B4F;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px 80px;
  position: relative;
}

.day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo-inline {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .brand-logo-inline {
    height: 34px;
  }
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.brand-logo {
  height: 72px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .header-row {
    display: flex;
    flex-direction: column-reverse;
  }

  .brand-logo {
    align-self: flex-end;
    height: 40px;
    width: auto;
    margin-bottom: 10px;
  }
}

.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 6px;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}

/* ---- Hero ---- */
.hero {
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 42px;
  line-height: 0.95;
  margin-bottom: 6px;
}

.hero p {
  color: var(--muted);
  margin: 4px 0 22px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

.trail-progress {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trail-progress .seg {
  flex: 1;
  height: 3px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.trail-progress .seg.done { background: var(--moss); }
.trail-progress .seg .fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--moss);
}

.trail-caption {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---- Section headers ---- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h2 { font-size: 24px; }

.section-frame {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--moss-deep);
  font-size: 15px;
  text-transform: uppercase;
  margin: -6px 0 20px;
}

section { margin-bottom: 44px; }

/* ---- Growth line (readings) ---- */
.trail {
  position: relative;
  padding-left: 28px;
}

.trail::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: var(--line);
}

.trail::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  width: 1.5px;
  height: var(--grow, 0%);
  background: var(--moss);
  z-index: -1;
}

.waypoint {
  position: relative;
  margin-bottom: 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 16px 18px;
}

.waypoint::before {
  content: attr(data-num);
  position: absolute;
  left: -29px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waypoint.done::before {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--paper);
}

.waypoint .wp-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.waypoint h3 {
  font-size: 19px;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: normal;
}

.waypoint .intro {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 12px;
}

.waypoint .actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.btn.primary {
  background: var(--moss-deep);
  border-color: var(--moss-deep);
  color: var(--paper);
}

.btn.done {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--paper);
}

.completion-note {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--moss);
}

/* ---- Fasting board ---- */
.tag-board {
  background: var(--moss-deep);
  border-radius: 2px;
  padding: 24px 24px;
  color: var(--paper);
}

.tag-board .section-head h2 {
  color: var(--paper);
}

.tag-board .section-frame { color: rgba(252,251,247,0.75); }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  border: 1px solid rgba(252,251,247,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tag .count {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #B8C285;
}

/* ---- Events ---- */
.event {
  display: flex;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.event:last-child { border-bottom: none; }

.event .date {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--moss);
  min-width: 68px;
  line-height: 1.3;
}

.event .details h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 2px;
  text-transform: none;
}

.event .details p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.event .details p.event-location {
  color: var(--moss);
  font-weight: 500;
  margin-bottom: 3px;
}

.nav-back {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12.5px;
  color: var(--moss);
  text-decoration: none;
  margin-bottom: 18px;
  display: inline-block;
}