/* The blog at devotionalapp.com/blog. Same ground as the marketing page:
   cream shell, coral sun, sage hills, the reader's own device font, and the
   wordmark's serif only on the logo. Newsreader italic carries Scripture. */
@font-face{font-family:"Selah Launch Serif";src:url("/fonts/selah-splash/playfair-display-regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Newsreader";src:url("/fonts/newsreader/newsreader-italic-400-latin.woff2") format("woff2");font-style:italic;font-weight:400;font-display:swap}
:root{
  --shell:#f7f5f1; --card:#fcfaf7; --ink:#1c1b19; --body:#3a3631; --muted:#6b655e; --stone:#e9e4dc;
  --ember:#f45a2a; --ember-solid:#cc3d0e; --ember-solid-hover:#b83408; --ember-tint:#fbe3d8;
  --viridian:#344945; --sage:#dce3d4;
  --wordmark:"Selah Launch Serif","Playfair Display",serif; --serif-italic:"Newsreader","Playfair Display",Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --ease:cubic-bezier(.23,1,.32,1); --header-h:82px;
  --t-h2:clamp(2rem,4vw,3.125rem); --t-h3:clamp(1.625rem,2.7vw,2.25rem); --t-body:1.125rem; --t-small:.875rem;
  --gap:clamp(96px,11vw,160px);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:calc(var(--header-h) + 24px);-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
a,button{touch-action:manipulation}
button,.button,.badge,.brand,.menu,.chip,.nav-links a{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body{margin:0;background:var(--shell);color:var(--ink);font:var(--t-body)/1.6 var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
p{margin:0}
h1,h2,h3{margin:0;font-weight:500;letter-spacing:-.022em;text-wrap:balance}
::selection{color:#fff;background:var(--ember-solid)}
:focus-visible{outline:2px solid var(--viridian);outline-offset:3px;border-radius:8px}
.shell{width:min(1180px,calc(100% - 48px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));margin:0 auto}

/* Header, the same bar as the marketing page. */
header{position:fixed;inset:0 0 auto;z-index:20;padding:20px 0}
header::before{content:"";position:absolute;inset:0;pointer-events:none;background:rgba(247,245,241,.92);backdrop-filter:blur(18px) saturate(140%);box-shadow:0 10px 30px rgba(55,44,33,.05);opacity:var(--chrome,0);transition:opacity 120ms linear}
.nav{position:relative;z-index:1;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}
.nav-links{display:flex;align-items:center;gap:26px;font-size:var(--t-small);color:var(--body)}
.nav-links a{white-space:nowrap;transition:color 160ms ease}
@media (max-width:1040px){.nav-links{gap:16px}}
.nav-links a[aria-current]{color:var(--ink);font-weight:600}
.nav-links .in-menu{display:none}
.brand{display:inline-flex;flex-direction:column;align-items:center;line-height:.92;transition:transform 180ms var(--ease),opacity 180ms ease}
.brand small{font:italic 400 .625rem/1.2 var(--serif-italic)}
.brand strong{margin-right:-.055em;font:400 1.1875rem/1 var(--wordmark);letter-spacing:.055em}
.brand em{font:italic 400 .75rem/1.25 var(--serif-italic)}
.nav-actions{display:flex;align-items:center;justify-content:end;gap:16px;font-size:var(--t-small)}
.nav-actions .plain{color:var(--body);transition:color 160ms ease}
.menu{display:none;place-items:center;min-width:2.75rem;min-height:2.75rem;border:0;border-radius:12px;background:none;color:var(--ink);font:inherit;font-size:var(--t-small);cursor:pointer}

.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:2.75rem;padding:.8125rem 1.25rem;border:0;border-radius:999px;font:600 var(--t-small)/1 var(--sans);white-space:nowrap;cursor:pointer;transition:transform 160ms var(--ease),background 160ms ease}
.button.primary{color:#fff;background:var(--ember-solid)}
.button.dark{color:#fff;background:var(--ink)}
.badge{display:inline-flex;align-items:center;border-radius:9px;transition:transform 160ms var(--ease)}
.badge img{display:block;width:auto;height:50px}

/* The sunrise every post gets. */
.sun{position:absolute;display:block;border-radius:50%;background:var(--ember)}
.hills{position:absolute;display:block;left:0;width:100%;bottom:-1px;pointer-events:none}
.hills-back path{fill:var(--hill-back,var(--sage))}
.hills .hill-fill{fill:var(--hill-front,var(--shell))}
.hills .hill-line{fill:none;stroke:var(--hill-line,var(--ink));stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}

.art{position:relative;overflow:hidden;isolation:isolate;aspect-ratio:4/3;border-radius:24px;background:var(--ground)}
.art .sun{left:var(--sun-x,50%);top:var(--sun-top,18%);width:var(--sun-size,40%);aspect-ratio:1;translate:-50% 0;transition:translate 900ms var(--ease)}
.art .hills-back{height:50%}
.art .hills-front{height:30%}
.art.flip .hills{transform:scaleX(-1)}
.art.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* The other scenes. Same land and palette as the sunrise, another moment. */
.scene-night .stars i{position:absolute;width:4px;height:4px;border-radius:50%;background:var(--shell);opacity:calc(.5 + var(--d) * .2)}
.moon{position:absolute;display:block;left:var(--sun-x,50%);top:var(--sun-top,18%);width:calc(var(--sun-size,40%) * .62);aspect-ratio:1;translate:-50% 0;transition:translate 900ms var(--ease)}
.moon-face{fill:var(--shell)}
.moon-shade{fill:var(--ground)}
.scene-sea .sun{top:auto;bottom:40%;translate:-50% 50%}
.water{position:absolute;display:block;left:0;bottom:-1px;width:100%;height:41%}
.water .w-back{fill:var(--hill-back)}
.water .w-mid{fill:color-mix(in srgb,var(--hill-back) 55%,var(--hill-front))}
.water .w-front{fill:var(--hill-front)}
.water .w-line{fill:none;stroke:var(--hill-line);stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}
.scene-mountains .sun{width:calc(var(--sun-size,40%) * .7)}
.art .peaks-back{height:68%}
.peaks-back path{fill:var(--hill-back)}
.art .peaks-front{height:46%}
.scene-tree .sun{width:calc(var(--sun-size,40%) * .6)}
.art .dome{height:40%}
.tree{position:absolute;display:block;left:var(--tree-x,50%);bottom:25%;height:40%;aspect-ratio:100/120;translate:-50% 0}
.tree .crown{fill:var(--hill-back);stroke:var(--hill-line);stroke-width:2;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.tree .trunk{fill:none;stroke:var(--hill-line);stroke-width:2.5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.scene-path .sun{left:var(--road-x,58%);top:auto;bottom:40%;width:calc(var(--sun-size,40%) * .6)}
.road{position:absolute;display:block;left:var(--road-x,58%);bottom:-1px;height:42%;aspect-ratio:180/100;translate:-50% 0}
.flip .road{transform:scaleX(-1)}
.road .road-fill{fill:var(--shell)}
.road .road-edge{fill:none;stroke:var(--hill-line);stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}

/* Index */
.index-head{padding-top:calc(var(--header-h) + clamp(40px,6vw,88px));padding-bottom:clamp(36px,4vw,56px)}
.index-head h1{font-size:clamp(2.75rem,6vw,5rem);line-height:1}
.lede{max-width:46ch;margin-top:18px;color:var(--body);font-size:clamp(1.0625rem,1.5vw,1.25rem);line-height:1.55;text-wrap:pretty}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:32px}
.chip{min-height:2.5rem;padding:0 1.05rem;border:0;border-radius:999px;background:var(--stone);color:var(--body);font:500 var(--t-small)/1 var(--sans);cursor:pointer;transition:background 160ms ease,color 160ms ease,transform 160ms var(--ease)}
.chip[aria-pressed="true"]{background:var(--ink);color:#fff}

.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(40px,4vw,56px) clamp(20px,2.4vw,32px)}
.card{display:flex;flex-direction:column;gap:20px;min-width:0}
.card[hidden]{display:none}
.card-copy{display:flex;flex-direction:column;gap:8px}
.kicker{display:flex;align-items:center;gap:10px;color:var(--label,var(--ember-solid));font-size:var(--t-small);font-weight:600}
.card .kicker{color:var(--ember-solid)}
.draft-tag{padding:3px 9px;border-radius:999px;background:var(--ember-tint);color:var(--ember-solid);font-size:.75rem;font-weight:600}
.card h2{font-size:1.375rem;line-height:1.2;letter-spacing:-.015em;transition:color 160ms ease}
.excerpt{color:var(--body);font-size:1rem;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.meta{color:var(--muted);font-size:var(--t-small)}

/* The newest post takes the whole row, picture beside the words. */
.card.lead{grid-column:1/-1;display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:clamp(28px,5vw,72px);padding-bottom:clamp(8px,2vw,24px)}
.card.lead .art{aspect-ratio:16/11;border-radius:32px}
.card.lead h2{font-size:clamp(1.875rem,3.4vw,2.75rem);line-height:1.08;letter-spacing:-.022em}
.card.lead .excerpt{font-size:clamp(1.0625rem,1.4vw,1.1875rem);-webkit-line-clamp:4}
.card.lead .card-copy{gap:14px}

.empty{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:clamp(28px,5vw,72px)}
.empty h2{font-size:var(--t-h3);line-height:1.12}
.empty p{margin:14px 0 26px;color:var(--body)}
.empty .art{aspect-ratio:16/11;border-radius:32px}

/* A post */
.read-bar{position:fixed;inset:0 0 auto;z-index:30;height:3px;background:var(--ember);transform:scaleX(0);transform-origin:0 50%;pointer-events:none}
.article-head{width:min(760px,calc(100% - 48px));margin:0 auto;padding-top:calc(var(--header-h) + clamp(32px,5vw,64px))}
.back{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:var(--t-small);transition:color 160ms ease}
.article-head .back{margin-bottom:clamp(28px,4vw,44px)}
.article-head h1{margin-top:14px;font-size:clamp(2.25rem,5.2vw,3.875rem);line-height:1.04}
.dek{margin-top:20px;color:var(--body);font-size:clamp(1.125rem,1.7vw,1.3125rem);line-height:1.5;text-wrap:pretty}
.article-head .meta{margin-top:22px}
.cover{margin-top:clamp(36px,5vw,56px)}
.art.wide{aspect-ratio:21/9;border-radius:32px}
.art.wide .sun{width:calc(var(--sun-size,40%) * .5)}
.art.wide .moon{width:calc(var(--sun-size,40%) * .32)}
.art.wide.scene-mountains .sun,.art.wide.scene-tree .sun,.art.wide.scene-path .sun{width:calc(var(--sun-size,40%) * .34)}
.art.wide .tree{height:52%}

.prose{width:min(680px,calc(100% - 48px));margin:clamp(44px,6vw,72px) auto 0;color:var(--body);font-size:1.1875rem;line-height:1.72}
.prose > *{margin:0 0 1.3em}
.prose h2{margin:2.1em 0 .55em;color:var(--ink);font-size:clamp(1.5rem,2.4vw,1.875rem);line-height:1.15}
.prose h3{margin:1.8em 0 .5em;color:var(--ink);font-size:1.3125rem;line-height:1.25;letter-spacing:-.012em}
.prose strong{color:var(--ink);font-weight:600}
.prose a{color:var(--ink);text-decoration:underline;text-decoration-color:rgba(204,61,14,.45);text-decoration-thickness:1.5px;text-underline-offset:3px;transition:color 160ms ease,text-decoration-color 160ms ease}
.prose ul,.prose ol{padding-left:1.25em}
.prose li{margin:.45em 0;padding-left:.2em}
.prose li::marker{color:var(--ember-solid)}
.prose blockquote{margin:2em 0;padding:0}
.prose blockquote p{color:var(--ink);font:italic 400 clamp(1.5rem,2.6vw,1.9375rem)/1.32 var(--serif-italic);letter-spacing:-.005em;text-wrap:pretty}
.prose blockquote p + p{margin-top:.6em}
.prose cite{display:block;margin-top:14px;color:var(--muted);font:500 var(--t-small)/1.4 var(--sans);font-style:normal}
.prose figure{margin:2.2em 0}
.prose figure img{display:block;width:100%;height:auto;border-radius:20px}
.prose figcaption{margin-top:12px;color:var(--muted);font-size:var(--t-small);text-align:center}
.prose hr{height:1px;margin:2.6em 0;border:0;background:var(--stone)}
.prose code{padding:.1em .35em;border-radius:6px;background:var(--stone);font-size:.9em}

.article-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;width:min(680px,calc(100% - 48px));margin:clamp(40px,5vw,56px) auto 0;padding-top:24px;border-top:1px solid var(--stone)}
.share{display:inline-flex;align-items:center;gap:8px;min-height:2.75rem;padding:0 1.1rem 0 .95rem;border:0;border-radius:999px;background:var(--stone);color:var(--ink);font:600 var(--t-small)/1 var(--sans);cursor:pointer;transition:background 160ms ease,color 160ms ease,transform 160ms var(--ease)}
.share svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.share[data-done="true"]{background:var(--sage);color:var(--viridian)}

.app-card{display:grid;grid-template-columns:1.1fr 1fr;margin-top:clamp(64px,8vw,104px);border-radius:32px;overflow:hidden;background:var(--ground)}
.app-card-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:16px;padding:clamp(36px,5vw,64px)}
.app-card-copy h2{font-size:var(--t-h3);line-height:1.12}
.app-card-copy p{max-width:44ch;margin-bottom:8px;color:var(--body)}
.app-card-copy.on-dark h2{color:#fff}
.app-card-copy.on-dark p{color:rgba(255,255,255,.86)}
.app-card .card-art{aspect-ratio:auto;min-height:320px;border-radius:0}

.more{margin-top:clamp(80px,9vw,128px);margin-bottom:var(--gap)}
.more > h2{margin-bottom:clamp(28px,3vw,40px);font-size:var(--t-h3)}

/* Closing and footer, as on the marketing page. */
.closing{position:relative;margin-top:var(--gap);padding-top:var(--gap);color:#fff;background:var(--viridian);text-align:center;overflow:hidden}
.blog-post .closing{margin-top:0}
.closing h2{color:#fff;font-size:var(--t-h2);line-height:1.08}
.closing-copy > p{max-width:48ch;margin:18px auto 0;color:rgba(255,255,255,.88);text-wrap:pretty}
.get{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:32px}
.free,.free a{color:rgba(255,255,255,.88);font-size:var(--t-small)}
.free a{text-decoration:underline;text-underline-offset:3px}
.closing-land{position:relative;height:clamp(150px,18vw,260px);margin-top:clamp(32px,4vw,56px);--hill-back:#41564f;--hill-front:var(--viridian);--hill-line:var(--sage)}
.closing-land .sun{left:50%;bottom:6%;width:clamp(180px,22vw,320px);aspect-ratio:1;transform:translate(-50%,34%)}
.closing-land .hills-back{height:78%}
.closing-land .hills-front{height:56%}
footer{padding:18px 0 calc(30px + env(safe-area-inset-bottom,0px));color:#fff;background:var(--viridian)}
footer :focus-visible{outline-color:var(--sage)}
.footer-row{display:flex;align-items:center;justify-content:space-between;gap:20px;color:rgba(255,255,255,.88);font-size:var(--t-small)}
.footer-links{display:flex;align-items:center;gap:18px}
.footer-links a{padding:6px 2px;transition:color 160ms ease}

/* Hover only where there is a real pointer; touch gets the press below. */
@media (hover:hover) and (pointer:fine){
  .nav-links a:hover,.nav-actions .plain:hover,.back:hover{color:var(--ember-solid)}
  .brand:hover{opacity:.76;transform:translateY(-1px)}
  .button.primary:hover{background:var(--ember-solid-hover);transform:translateY(-2px)}
  .button.dark:hover,.badge:hover{transform:translateY(-2px)}
  .chip:not([aria-pressed="true"]):hover{background:#e0d9ce;color:var(--ink)}
  .card:hover h2{color:var(--ember-solid)}
  .card:hover .art .sun,.card:hover .art .moon{translate:-50% -10%}
  .card:hover .scene-sea .sun{translate:-50% 30%}
  .prose a:hover{color:var(--ember-solid);text-decoration-color:var(--ember-solid)}
  .share:hover{background:#e0d9ce}
  .footer-links a:hover{color:#fff}
}
.button:active,.badge:active,.chip:active,.share:active,.menu:active{transform:scale(.97);transition-duration:90ms}
.card:active .art{transform:scale(.985);transition:transform 90ms ease}

/* Every piece arrives once and stays. Nothing loops. */
.js [data-reveal]{opacity:0;transform:translateY(18px);transition:opacity 760ms var(--ease) var(--d,0ms),transform 760ms var(--ease) var(--d,0ms)}
.js [data-reveal].visible{opacity:1;transform:none}
.js .closing-land .sun{transition:transform 1500ms var(--ease);transform:translate(-50%,70%)}
.js .closing-land.visible .sun{transform:translate(-50%,34%)}
.js .cover .art .sun,.js .cover .art .moon{animation:sun-rise 1400ms var(--ease) 150ms both}
.js .cover .scene-sea .sun{animation-name:sea-rise}
.js .cover .scene-path .sun{animation-name:none}
@keyframes sea-rise{from{translate:-50% 95%}to{translate:-50% 50%}}
@keyframes sun-rise{from{translate:-50% 45%}to{translate:-50% 0}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-delay:0ms !important;transition-duration:.01ms !important;transition-delay:0ms !important}
  .js [data-reveal]{opacity:1 !important;transform:none !important}
}
@media (prefers-reduced-transparency:reduce){header::before{background:var(--shell);backdrop-filter:none}}

@media (max-width:980px){
  .post-grid{grid-template-columns:repeat(2,1fr)}
  .card.lead{display:flex;align-items:stretch}
  .card.lead .art{aspect-ratio:16/10}
  .app-card{grid-template-columns:1fr}
  .app-card .card-art{min-height:0;aspect-ratio:16/9}
  .post-grid.three > .card:nth-child(3){display:none}
}
@media (max-width:780px){
  :root{--header-h:70px}
  .shell{width:min(100% - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px),620px)}
  .article-head,.prose,.article-foot{width:calc(100% - 32px)}
  header{padding:14px 0}
  .nav{grid-template-columns:auto 1fr}
  .nav-actions{grid-column:2;justify-self:end}
  .nav-actions .plain{display:none}
  .brand{justify-self:start;grid-row:1}
  .menu{display:grid}
  .nav-links{position:absolute;top:calc(100% + 14px);left:-16px;right:-16px;display:none;flex-direction:column;align-items:stretch;gap:0;padding:8px 16px 16px;background:var(--shell);box-shadow:0 18px 30px rgba(55,44,33,.1);font-size:var(--t-body);color:var(--ink)}
  .nav-links.open{display:flex}
  .nav-links a{padding:12px 0}
  .nav-links .in-menu{display:block}
  .post-grid,.post-grid.three{grid-template-columns:1fr}
  .post-grid.three > .card:nth-child(3){display:flex}
  .card.lead .art,.empty .art{border-radius:24px}
  .empty{grid-template-columns:1fr}
  .art.wide{aspect-ratio:4/3;border-radius:24px}
  .art.wide .sun{width:var(--sun-size,40%)}
  .art.wide .moon{width:calc(var(--sun-size,40%) * .62)}
  .art.wide.scene-mountains .sun{width:calc(var(--sun-size,40%) * .7)}
  .art.wide.scene-tree .sun,.art.wide.scene-path .sun{width:calc(var(--sun-size,40%) * .6)}
  .art.wide .tree{height:40%}
  .prose{font-size:1.125rem}
  .app-card{border-radius:24px}
  .footer-row{flex-wrap:wrap}
}
