/* Public homepage and signed-in home. Colors come from tokens.css. */

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 64px 32px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 56px;
}

.hero-copy {
  flex: 1 1 500px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.02;
}

.hero-lede {
  margin: 0;
  max-width: 560px;
  font-size: 20px;
  color: var(--ink-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-large {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 17px;
  gap: 8px;
}

.hero-note,
.fine,
.source-line,
.when,
.news-meta,
.book-meta,
.saint-tip {
  color: var(--muted);
  font-size: 15px;
}

.fine { font-size: 14px; }

.preview {
  flex: 1 1 480px;
  min-width: 0;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(43, 37, 33, 0.35);
}

.preview-bar,
.preview figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-bottom: 1px solid #EFE7D8;
  font-size: 13px;
  color: var(--muted);
}

.preview figcaption {
  border-bottom: 0;
  border-top: 1px solid #EFE7D8;
}

.preview-strong { font-weight: 700; color: var(--ink); }

.preview-body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chips,
.cites {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.chip:first-child { background: #F3ECF7; color: #3F2756; }

.preview-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.preview-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.preview-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #EFE7D8;
}

.tool,
.mini-cite {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
}

.tool-on {
  background: var(--dark);
  color: var(--on-primary);
  border-color: var(--dark);
}

.mini-cite {
  font-size: 12px;
  font-weight: 700;
  color: var(--chip-ink);
  background: var(--chip-bg);
  border-color: var(--chip-border);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}

.mini-cite-scripture {
  color: #7A2318;
  background: #F6E1DE;
  border-color: #F6E1DE;
}

.made-for {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-light);
}

.made-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
}

.made-label { font-weight: 700; margin-right: 8px; }

.pill {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.pill:hover { color: var(--ink); }

.sunday { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
}

.section-head h2,
.how h2,
.band h2,
.books h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
}

.sunday-grid,
.free-grid,
.plans,
.shelf,
.steps {
  display: grid;
  gap: 20px;
}

.sunday-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.sunday-card { overflow: hidden; display: flex; flex-direction: column; }

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-card { position: relative; overflow: hidden; }

.accent { height: 6px; }
.accent-violet { background: var(--season-violet); }
.accent-rose { background: var(--season-rose); }
.accent-green { background: var(--season-green); }
.accent-red { background: var(--season-red); }
.accent-white { background: var(--gold); }

.quote {
  margin: 0;
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
}

.quote-short { font-size: 23px; line-height: 1.45; }

.quote .source-line {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 14px;
  display: inline-block;
  white-space: nowrap;
}

.readings {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid #EFE7D8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}

.age-tabs { display: flex; flex-direction: column; gap: 18px; }

[role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #EFE7D8;
  align-self: flex-start;
}

.tab {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.angle-panel { display: flex; flex-direction: column; gap: 18px; }
.angle-panel[hidden] { display: none; }

.angle-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
}

.angle-body { margin: 0; font-size: 18px; }

.angle-copy h3 { margin: 0; font-size: 20px; font-weight: 700; }
.angle-copy p { margin: 0; }

.angle-split {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.angle-copy { flex: 999 1 360px; display: flex; flex-direction: column; gap: 8px; }

.ask {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-light);
}

.angle-split .ask { flex: 1 1 240px; }

.ask-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.ask-q {
  font-family: var(--font-scripture);
  font-size: 20px;
}

.cite {
  font-size: 13px;
  font-weight: 700;
  color: var(--chip-ink);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.muted { font-size: 14px; color: var(--muted); }

.button-dark {
  align-self: flex-start;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--dark);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.button-dark:hover { color: var(--bg); }

.how { display: flex; flex-direction: column; gap: 28px; }
.how-intro { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.steps { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.step-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.steps h3 { margin: 0; font-size: 20px; }
.steps p { margin: 0; color: var(--ink-secondary); }

.faithful {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-radius: 16px;
  background: var(--dark);
  color: var(--bg);
}

.faithful-title {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: #FFFFFF;
}

.faithful-copy { display: block; color: #D9CDB6; font-size: 17px; }

.band {
  background: var(--bg-light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band .wrap { display: flex; flex-direction: column; gap: 28px; }
.free-grid,
.plans,
.shelf { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.resource,
.guide-card,
.book,
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.resource-title,
.guide-title,
.book-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.resource span:last-child { color: var(--ink-secondary); }

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.stack { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split h2 { font-size: 36px; }

.more {
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.guide-card { padding: 20px 22px; border-radius: 14px; }
.news-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.news-title { font-weight: 600; font-size: 17px; }
.news-blurb { color: var(--ink-secondary); font-size: 16px; line-height: 1.4; }

.news-page { padding-top: 48px; padding-bottom: 80px; }
.news-page h1 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
}
.news-page .lede { margin-top: 12px; max-width: 40rem; }
.news-group { margin-top: 36px; }
.news-group h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
}
.news-group .intro {
  margin: 0 0 8px;
  max-width: 40rem;
  color: var(--ink-secondary);
}

.plan { gap: 14px; }
.plan-featured { border: 2px solid var(--primary); }
.price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}
.pitch { color: var(--ink-secondary); }
.plan ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.plan .button-primary,
.plan .button-secondary { width: 100%; }

.books { display: flex; flex-direction: column; gap: 18px; padding-top: 56px; }
.book { padding: 20px; border-radius: 14px; gap: 4px; }
.book-title { font-size: 22px; }

.season-band {
  color: #FFFFFF;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.band-violet { background: var(--season-violet); }
.band-rose { background: var(--season-rose); }
.band-green { background: var(--season-green); }
.band-red { background: var(--season-red); }
.band-white {
  background: var(--dark);
  color: var(--bg);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.band-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.home-main {
  max-width: var(--content);
  margin: 0 auto;
  padding: 36px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.greet {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-end;
  justify-content: space-between;
}

.greet h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.05;
}

.sub { margin: 4px 0 0; font-size: 17px; color: var(--ink-secondary); }

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

.main-col {
  flex: 999 1 640px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-main h2 { font-family: var(--font-display); font-weight: 600; }
.main-col h2 { font-size: 32px; }
.side-col h2 { font-size: 24px; }
.split-tight h2 { font-size: 28px; }
h2.side-label,
.prayer-card h2 { font-family: var(--font-ui); font-size: 13px; }

.compact { margin: 0; font-size: 15px; color: var(--muted); }
.compact strong { color: var(--ink); }

.empty-note { margin: 0; color: var(--ink-secondary); }

.week-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.week-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.week-mark {
  flex: 0 0 8px;
  align-self: stretch;
  width: 8px;
  border-radius: 999px;
}

.week-copy {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.week-name { font-weight: 700; }

.week-meta,
.week-lesson { color: var(--ink-secondary); }

.week-lesson { color: var(--ink); }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.doc-title { font-weight: 700; line-height: 1.3; }

.doc-meta {
  margin-top: auto;
  color: var(--ink-secondary);
  font-size: 13px;
}

.side-col {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.prayer-card {
  background: var(--dark);
  color: var(--bg);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prayer-card h2 { color: var(--gold); font-size: 13px; letter-spacing: 0.1em; }
.prayer-line {
  margin: 0;
  font-family: var(--font-scripture);
  font-size: 19px;
  line-height: 1.5;
  color: #FFFFFF;
}
.versicle { color: var(--gold); font-weight: 700; }
.on-dark { color: var(--bg); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.on-dark:hover { color: #FFFFFF; }

.color-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  display: inline-block;
}
.swatch-violet { background: var(--season-violet); }
.swatch-rose { background: var(--season-rose); }
.swatch-green { background: var(--season-green); }
.swatch-red { background: var(--season-red); }
.swatch-white { background: var(--card); border: 1px solid var(--gold); }

.saint {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.saint-date {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 10px;
  background: #FBF6E6;
  border: 1px solid var(--gold);
  color: var(--chip-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.saint-month { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.saint-day { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1; }
.saint-name { display: block; font-weight: 700; }
.saint-tip { display: block; font-size: 14px; color: var(--ink-secondary); }

.plan-note {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-note p { margin: 0; }
.plan-note form { margin: 0; }

.plan-action {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.life-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.life-nav .side-label { color: var(--muted); padding-bottom: 6px; }
.life-nav a {
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.split-tight { display: flex; flex-wrap: wrap; gap: 28px; }

.icon-button,
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  list-style: none;
}

.avatar {
  background: var(--season-violet);
  color: #FFFFFF;
  font-weight: 600;
  list-style: none;
}

.search-menu,
.account-menu { position: relative; }

.search-menu summary::-webkit-details-marker,
.account-menu summary::-webkit-details-marker { display: none; }

.search-panel,
.account-panel {
  position: absolute;
  right: 0;
  top: 52px;
  z-index: 3;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 32px -20px rgba(43, 37, 33, 0.45);
}

.search-panel label { font-weight: 600; }
.search-panel input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  font: inherit;
  color: var(--ink);
  background: var(--card);
}

.search-status { margin: 0; }

.account-name { font-weight: 700; }
.account-panel .text-button { padding-left: 0; }

@media (max-width: 720px) {
  .wrap,
  .home-main,
  .band-inner,
  .faithful { padding-left: 16px; padding-right: 16px; }
  .card-body { padding: 20px; }
  .section-head h2,
  .how h2,
  .band h2,
  .news-page h1 { font-size: 36px; }
  .side-col { max-width: none; }
}
