/* Seloria's website, in the app's own palette (Seloria/Resources/Assets.xcassets) and type. */

:root {
  --paper: #F7F3EC;
  --card: #FFFCF7;
  --ink: #231F1A;
  --ink-muted: #7A7063;
  --hairline: #E4DCCF;
  --accent: #8C5E3C;
  --shadow: 0 1px 2px rgb(35 31 26 / 0.06), 0 12px 32px rgb(35 31 26 / 0.10);
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151310;
    --card: #201D18;
    --ink: #EEE7DB;
    --ink-muted: #A09688;
    --hairline: #342F28;
    --accent: #D1A57E;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; display: block; }

.wrap { width: min(100% - 32px, 1040px); margin-inline: auto; }
.wrap.narrow { width: min(100% - 32px, 680px); }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-family: var(--serif); font-size: 24px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.langs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--hairline); border-radius: 999px; }
.langs a { padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-muted); }
.langs a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(35 31 26 / 0.08); }

/* Type */
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 58px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 22px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-muted); max-width: 36em; }
.muted { color: var(--ink-muted); }

/* Hero */
.hero { padding: clamp(32px, 7vw, 88px) 0 24px; }
.hero h1 { margin: 14px 0 18px; max-width: 14em; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; padding: 14px 24px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none;
}
.store svg { width: 18px; height: 18px; fill: currentColor; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--ink-muted); }

/* Screenshots */
.shots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 32px);
  padding: 40px 0 16px;
}
.shot figure { margin: 0; }
.shot img {
  border-radius: 28px; border: 1px solid var(--hairline); box-shadow: var(--shadow);
  aspect-ratio: 588 / 1280; width: 100%; height: auto; background: var(--card);
}
.shot figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-muted); text-align: center; }
@media (max-width: 720px) {
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; }
}

/* Sections and cards */
section { padding: clamp(40px, 7vw, 80px) 0 0; }
section > .wrap > h2 { margin: 10px 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 24px;
}
.card h3 { margin: 12px 0 8px; }
.card p { margin: 0; color: var(--ink-muted); font-size: 16px; }
.icon { display: block; width: 28px; height: 28px; color: var(--accent); }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.plus { background: var(--card); border: 1px solid var(--hairline); border-radius: 22px; padding: clamp(24px, 4vw, 40px); }
.plus .cards { margin-top: 20px; }
.plus .card { background: var(--paper); }
.free { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; font-size: 15px; color: var(--ink-muted); }
.free .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 28px; margin: 24px 0 0; padding: 0; list-style: none; }
.promise li { display: flex; gap: 12px; align-items: flex-start; }
.promise .icon { width: 22px; height: 22px; flex: none; margin-top: 3px; }

/* Long-form pages (privacy, support) */
.doc { padding: clamp(24px, 6vw, 64px) 0 0; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin: 12px 0 10px; }
.doc h2 { font-size: 26px; margin: 44px 0 10px; }
.doc h3 { font-size: 19px; font-family: var(--sans); font-weight: 600; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.summary { background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 20px 24px; margin: 28px 0 8px; }
.summary p { margin: 0; }
.hairline { border: 0; border-top: 1px solid var(--hairline); margin: 40px 0 0; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.contact .store { margin-top: 0; }
details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--hairline); }
summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
  font-family: var(--serif); font-size: 20px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details > div { padding: 0 0 16px; color: var(--ink-muted); }
details > div p { margin: 0 0 10px; color: var(--ink-muted); }

/* Footer */
.site-footer { margin-top: clamp(56px, 9vw, 104px); padding: 28px 0 40px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-muted); }
.scripture-note { flex-basis: 100%; margin: 0; font-size: 13px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
