:root {
  color-scheme: light;
  --paper: #faf6f2;
  --surface: #fdfaf8;
  --ink: #1b1718;
  --muted: #5a504e;
  --line: #dcd0c8;
  --accent: #e74813;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #a33417; outline-offset: 5px; }
.shell { width: min(calc(100% - 36px), 1080px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1; top: 10px; left: 10px; padding: 12px; background: white; }
.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header { border-bottom: 1px solid var(--line); background: #fffdfc; }
.masthead { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: .5em; font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { flex: 0 0 auto; width: 2.05em; height: 1.19em; color: var(--ink); background: currentColor; clip-path: polygon(31% 2%, 66% 2%, 35% 81%, 0% 81%, 31% 2%, 68% 24%, 100% 24%, 72% 98%, 38% 98%, 68% 24%); }
nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 32px); }
nav a { font-size: 1rem; font-weight: 600; text-decoration: none; }
nav a:hover, .back-top:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 52px); padding-block: clamp(24px, 3vw, 36px); }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; line-height: 1; letter-spacing: -.055em; }
h1 span { color: var(--accent); }
.hero p { max-width: 44ch; margin-top: 16px; font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.45; }
.hero-art { justify-self: end; width: min(100%, 390px); height: auto; aspect-ratio: 608 / 425; object-fit: cover; border-radius: 16px; background: #351433; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65em; min-height: 44px; margin-top: 20px; padding: .65em 1.05em; border-radius: 10px; background: var(--ink); color: white; font-size: 1rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #422d3d; }
.button svg, .app-link svg { width: 1.12em; height: 1.12em; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button svg { color: #ff794a; }

.apps, .about, .footer { border-top: 1px solid var(--line); }
.apps { padding-block: 24px clamp(30px, 4vw, 48px); }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.125rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
.apps h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 10px; border-radius: 4px; background: var(--accent); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(15px, 1.8vw, 22px); margin-top: 20px; }
.app { display: flex; flex-direction: column; padding: clamp(12px, 1.15vw, 18px); border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.app-art { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.app-art img { width: 100%; height: auto; }
.launch-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 1.3vw, 20px); aspect-ratio: 16 / 10; background: var(--launch-surface); color: var(--launch-ink); text-align: center; }
.launch-placeholder svg { width: clamp(48px, 5vw, 64px); aspect-ratio: 1; padding: clamp(10px, 1.15vw, 15px); border: 1px solid var(--launch-stroke); border-radius: 50%; background: var(--launch-icon); stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.launch-placeholder p { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.035em; }
.launch-placeholder--merodi { --launch-surface: #eee8f9; --launch-ink: #453178; --launch-icon: #f8f4ff; --launch-stroke: #c7b7e7; }
.launch-placeholder--science { --launch-surface: #e1f1ee; --launch-ink: #155e58; --launch-icon: #f3fbf9; --launch-stroke: #a1ccc5; }
.launch-placeholder--prayer { --launch-surface: #f4ebd7; --launch-ink: #654b23; --launch-icon: #fcf7eb; --launch-stroke: #d8c394; }
.app-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(13px, 1.2vw, 18px) 4px 3px; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.04em; }
.app-copy > p:first-of-type { margin: 8px 0 16px; max-width: 55ch; color: var(--muted); line-height: 1.45; font-size: 1rem; }
.app-link { display: inline-flex; align-items: center; min-height: 30px; gap: 5px; margin-top: auto; font-size: 1rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.app-link:hover { color: #9a2e10; }

.about { display: grid; grid-template-columns: 1fr 1.45fr; align-items: start; gap: 24px; padding-block: clamp(24px, 3vw, 36px); }
.about p { max-width: 57ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.5; }
.footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-block: 24px; }
.footer .brand { font-size: 1rem; }
.company-details { display: grid; gap: 4px; margin: 9px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.company-details div { display: flex; flex-wrap: wrap; column-gap: .45em; }
.company-details dt { font-weight: 600; }
.company-details dd { margin: 0; }
.back-top { color: var(--muted); text-decoration: none; font-size: .91rem; white-space: nowrap; }

@media (max-width: 720px) {
  .masthead { min-height: 61px; gap: 12px; }
  .hero { grid-template-columns: 1fr; gap: 22px; }
  h1 { font-size: clamp(2.125rem, 9vw, 2.75rem); }
  .hero-art { justify-self: start; width: min(90%, 320px); aspect-ratio: 16 / 9; object-position: center 51%; }
  .app-grid, .about { grid-template-columns: 1fr; }
  .about { gap: 12px; }
  .footer { flex-direction: column; }
}

@media (max-width: 355px) {
  .masthead .brand { font-size: .88rem; }
  nav { gap: 12px; }
}
