/* Carved for the web. Tokens from src/theme/carvedTokens.ts; type is the app's default Tactile set
   (Georgia with native system text, src/theme/tokens.ts). Shapes are printed by carved-kit.js. */
:root {
  --paper: #F3EAD8; --sheet: rgba(251, 247, 238, .95); --sheet-solid: #FBF7EE;
  --ink: #232A44; --ochre: #B8862F; --ochre-text: #86611F; --ochre-fill: #EBD3A0; --muted: #5E6274;
  --season: #4D6A45; --season-edge: #364A30; --on-season: #F7EFDD;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.dusk { --paper: #1D2340; --sheet: rgba(32, 38, 74, .95); --sheet-solid: #20264A; --ink: #F0E5CC;
  --ochre: #D9AE5F; --ochre-text: #D9AE5F; --ochre-fill: #7A6431; --on-season: #191E35; --muted: #B9B3A3;
  --season: #A3C092; --season-edge: #BED3B3; }
.advent { --season: #5A4A8A; --season-edge: #3F3461; }
.dusk.advent, .dusk .advent { --season: #B9ACE6; --season-edge: #CEC5EE; }
.gold { --season: #A9502F; --season-edge: #763821; }
.dusk.gold, .dusk .gold { --season: #E9A283; --season-edge: #F0BEA8; }
.rose { --season: #8E4E5E; --season-edge: #633742; }
.dusk.rose, .dusk .rose { --season: #EBB0BF; --season-edge: #F1C8D2; }

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type: screenTitle 30/34 serif 600, item 17 sans 600, meta 13, prayerBody 20/30 serif, Scripture italic. */
.display { font: 700 clamp(56px, 13vw, 200px)/.86 var(--serif); letter-spacing: -.035em; margin: 0; }
.title { font: 700 clamp(40px, 6.4vw, 92px)/.98 var(--serif); letter-spacing: -.025em; margin: 0; }
.h2 { font: 700 clamp(30px, 3.6vw, 52px)/1.04 var(--serif); letter-spacing: -.02em; margin: 0; }
.lede { font: 400 clamp(18px, 1.6vw, 22px)/1.45 var(--sans); margin: 0; max-width: 34ch; }
.prayer { font: 400 20px/30px var(--serif); margin: 0; }
.scripture { font: italic 400 clamp(20px, 2vw, 26px)/1.45 var(--serif); margin: 0; }
.cite { margin-top: 10px; font: 600 14px/1.2 var(--sans); color: var(--ochre-text); }
.meta { font: 400 13px/18px var(--sans); color: var(--muted); }
.item { font: 600 17px/22px var(--sans); }

/* Printed surfaces: carved-kit.js lays the cut print in .cv-holder behind the content. */
[data-cut] { position: relative; isolation: isolate; }
.cv-holder { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cv-holder svg { display: block; width: 100%; height: 100%; overflow: visible; }
.card { padding: 22px 20px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 14px 8px; text-align: center; font: 600 15px/1.2 var(--sans); }

/* Block: the one primary action. Press: sink 1pt, ink 16%, scale .985, 120ms (contract section 4). */
.block { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  color: var(--on-season); font: 700 17px/1 var(--sans); border: 0; background: none; cursor: pointer;
  transition: transform 120ms var(--ease), filter 120ms var(--ease); -webkit-tap-highlight-color: transparent; }
.block:active, .block.is-pressed { transform: translateY(1px) scale(.985); filter: brightness(.84); }
.block .ico { width: 22px; height: 22px; }
.block.wide { width: 100%; }
.block.busy { pointer-events: none; }
.block.busy::after { content: ""; position: absolute; inset: 2px; z-index: 1; border-radius: 8px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.18), transparent) 0 0 / 40% 100% no-repeat; animation: roller 900ms linear infinite; }
@keyframes roller { from { background-position: -60% 0; } to { background-position: 160% 0; } }

.tile, .chip, .roundel, .tab { transition: transform 120ms var(--ease); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile:active, .chip:active, .roundel:active { transform: translateY(1px) scale(.985); }
:focus-visible { outline: 2px solid var(--season); outline-offset: 4px; border-radius: 10px; }

/* Chip: proof at rest, an inked Block when selected (ink spread 220ms). */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; background: none;
  color: var(--ink); font: 600 15px/1 var(--sans); }
.chip.is-selected { color: var(--on-season); }
.chip.is-selected .cv-holder { animation: inkspread 220ms cubic-bezier(.3, 1.4, .5, 1); }
@keyframes inkspread { from { transform: scale(.72); opacity: 0; } to { transform: none; opacity: 1; } }

.roundel { display: grid; place-items: center; width: 44px; height: 44px; }
.roundel .ico { width: 22px; height: 22px; }
.ico { display: inline-block; width: 24px; height: 24px; flex: none; }
.ico svg { display: block; width: 100%; height: 100%; }
.ico.lg { width: 32px; height: 32px; }
.ico.xl { width: 48px; height: 48px; }

.field { width: 100%; min-height: 96px; border: 0; background: transparent; color: var(--ink); font: 400 20px/30px var(--serif); resize: none; outline: none; padding: 0; }
.field::placeholder { color: color-mix(in srgb, var(--ink) 48%, transparent); font-style: italic; }
.input { width: 100%; height: 52px; border: 0; background: transparent; color: var(--ink); font: 400 17px var(--sans); padding: 0 16px; outline: none; }
.input::placeholder { color: color-mix(in srgb, var(--ink) 50%, transparent); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px/1 var(--serif); }
.brand img { width: 32px; height: 32px; }
.nav .links { display: flex; align-items: center; gap: 28px; font: 600 15px var(--sans); }
@media (max-width: 760px) { .nav .links a:not(.block) { display: none; } }

/* Entrance: heading, text, picture, 70ms apart. Content is visible without the script. */
.js [data-rise] { opacity: 0; transform: translateY(24px); }
.js [data-rise].in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; }
  .block.busy::after { animation: none; }
  .chip.is-selected .cv-holder { animation: none; }
}
