/* A Word in Season: Scripture is set in Cardo, everything written about it in Alegreya Sans.
   Red is used only for the words of Jesus. Gilt is used only for rules and frames. */
:root {
  --paper: #F3EBD7;
  --leaf: #FBF6EA;
  --ink: #2A231C;
  --ink-hover: #3E342A;
  --faded: #5F5444;
  --red: #8B1A10;
  --gilt: #B38B3D;
  --rule: #CDB37A;
  --rule-soft: #E0D2AE;
  --leader: #B4A27E;
  --field: #8A7A60;
  --tool: #C4B089;
  --serif: Cardo, "Iowan Old Style", Georgia, serif;
  --sans: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--sans); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; }
a { color: var(--ink); text-decoration-color: var(--gilt); text-underline-offset: 4px; }
a:hover { color: var(--faded); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; border-radius: 4px; background: var(--ink); color: var(--leaf); }
.skip:focus { left: 8px; }

.wrap { max-width: 760px; margin: 0 auto; padding-left: clamp(20px, 5vw, 40px); padding-right: clamp(20px, 5vw, 40px); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; font: italic 400 1.5rem/1.2 var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.0625rem; font-weight: 500; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gilt); text-underline-offset: 6px; }

/* Page rhythm */
main { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 88px); padding-top: clamp(40px, 8vw, 80px); }
h1 { font-family: var(--serif); font-size: clamp(2.25rem, 6.5vw, 3.5rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3.8vw, 2.125rem); line-height: 1.2; text-wrap: balance; }
em { font-style: italic; }
.page-head { display: flex; flex-direction: column; gap: 24px; }
.prose { display: flex; flex-direction: column; gap: 1em; }
.prose p, .practice p { max-width: 36em; font-size: 1.1875rem; line-height: 1.65; }
.lead-p { max-width: 34em; font-size: 1.1875rem; line-height: 1.6; color: var(--faded); }
.small { font-size: 1rem; color: var(--faded); }

/* Verses */
.verses { display: flex; flex-direction: column; }
.verse { padding: 28px 0; border-top: 1px solid var(--rule-soft); }
.verses .verse:first-child, .result-verses .verse:first-child { border-top: 0; padding-top: 0; }
.verse figure { display: flex; flex-direction: column; gap: 10px; }
.verse blockquote { font-family: var(--serif); font-size: clamp(1.3125rem, 2.6vw, 1.5rem); line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.verse.red blockquote { color: var(--red); }
.verse figcaption { font-size: 1.0625rem; font-weight: 500; color: var(--faded); }
.note { max-width: 36em; margin-top: 16px; font-size: 1.125rem; line-height: 1.65; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tools[hidden] { display: none; }
.tool { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--tool); border-radius: 4px; background: transparent; color: var(--ink); font: 500 1rem/1 var(--sans); cursor: pointer; }
.tool:hover { background: var(--leaf); }
.tool svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Prayer and practice */
.prayer, .practice, .related, .season { display: flex; flex-direction: column; gap: 14px; }
.prayer p { max-width: 34em; font-size: 1.25rem; font-style: italic; line-height: 1.65; }

/* Notes of care */
.care { padding: 18px 20px; border: 1px solid var(--rule); border-radius: 6px; background: var(--leaf); }
.care.urgent { border: 2px solid var(--ink); }
.care p { font-size: 1.0625rem; line-height: 1.6; }
.care h2 { margin-bottom: 8px; font-size: 1.625rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--leaf); font: 500 1.125rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink-hover); color: var(--leaf); }
.btn.ghost { border-color: var(--field); background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--leaf); color: var(--ink); }
.btn[hidden] { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Home: the verse finder */
.hero { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.hero h1 { font-size: clamp(2.375rem, 7vw, 3.75rem); line-height: 1.08; }
.hero h1 label { cursor: text; }
.hero-sub { max-width: 32em; font-size: 1.1875rem; color: var(--faded); text-wrap: pretty; }
.finder { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-top: 16px; }
.finder textarea { width: 100%; padding: 16px 18px; border: 1px solid var(--field); border-radius: 6px; background: var(--leaf); color: var(--ink); font: 400 1.1875rem/1.5 var(--sans); resize: vertical; }
.finder textarea::placeholder { color: #6B5F4D; opacity: 1; }
.finder-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.msg { margin-top: 4px; font-size: 1.0625rem; color: var(--faded); text-align: center; }
.results { display: flex; flex-direction: column; gap: 18px; width: 100%; margin-top: 12px; text-align: left; }
.results:empty { display: none; }
.results-head { display: flex; flex-direction: column; gap: 4px; }
.results-head h2:focus { outline: none; }
.matched { color: var(--faded); }
.result-verses { display: flex; flex-direction: column; }
.results .more { font-size: 1.0625rem; }
.care-line { font-size: 1rem; color: var(--faded); }

/* The feelings index: set like the helps page at the front of a gift Bible */
.index { display: flex; flex-direction: column; }
.index > h2 { margin-bottom: 4px; }
.index h3 { margin: 24px 0 2px; font: 500 1.0625rem/1.4 var(--sans); color: var(--faded); }
.index-list { margin: 0; padding: 0; list-style: none; }
.index-row { display: flex; align-items: baseline; gap: 12px; padding: 14px 2px; color: var(--ink); text-decoration: none; }
.index-row:hover { color: var(--ink); }
.index-label { min-width: 0; font-family: var(--serif); font-size: clamp(1.3125rem, 2.8vw, 1.5rem); line-height: 1.25; }
.index-row:hover .index-label { text-decoration: underline; text-decoration-color: var(--gilt); text-underline-offset: 6px; }
.leader { flex: 1 1 16px; min-width: 16px; border-bottom: 2px dotted var(--leader); }
.index-ref { font-size: 1rem; color: var(--faded); white-space: nowrap; }

/* Today's verse */
.today { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 48px); border: 3px double var(--gilt); background: var(--leaf); text-align: center; }
.today-date { min-height: 1.6em; font-size: 1rem; color: var(--faded); }
.today .verse { padding: 6px 0 0; border: 0; }
.today .verse figure { align-items: center; }
.today .verse blockquote { max-width: 30em; font-size: clamp(1.375rem, 3.2vw, 1.75rem); line-height: 1.5; text-wrap: balance; }
.today .tools { justify-content: center; }
.today-more a { font-weight: 500; }

/* About, contact, privacy */
.legal { display: flex; flex-direction: column; gap: 18px; max-width: 40em; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { margin-top: 18px; font-size: clamp(1.5rem, 3.2vw, 1.75rem); }
.legal p, .legal li { font-size: 1.125rem; line-height: 1.65; }
.legal ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 1.2em; }
.updated { font-size: 1rem; color: var(--faded); }
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 34em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--field); border-radius: 6px; background: var(--leaf); color: var(--ink); font: 400 1.125rem/1.5 var(--sans); }
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { margin-top: clamp(64px, 10vw, 96px); border-top: 1px solid var(--rule); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 28px; padding-top: 36px; padding-bottom: 48px; font-size: 1rem; line-height: 1.55; color: var(--faded); }
.foot-h { margin-bottom: 6px; font: 500 1.0625rem/1.4 var(--sans); color: var(--ink); }
.foot-feelings ul { margin: 0; padding: 0; list-style: none; columns: 3 9em; column-gap: 24px; }
.foot-feelings li { break-inside: avoid; }
.foot-feelings a, .foot-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--faded); }
.foot-meta { display: flex; flex-direction: column; gap: 8px; }
.foot-brand { font: italic 400 1.25rem/1.3 var(--serif); color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
