:root {
  --bg: #FAF8F3; --card: #FFFFFF; --text: #0B2A1C; --muted: #4A5750; --line: #E6DFCC;
  --accent: #A3301A; --link: #1E5A3C; --gold: #E8C877; --accent-soft: #F6EAD0; --app: #C23B24;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1F17; --card: #12291F; --text: #F6F1E4; --muted: #B4C0B8; --line: #24402F;
    --accent: #E8C877; --link: #E8C877; --gold: #E8C877; --accent-soft: #2A3320; --app: #FF7A5C;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--muted); font: 16px/1.6 'DM Sans', system-ui, sans-serif; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
a { color: var(--link); }
strong { color: var(--text); }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; color: var(--text); margin: 0; }

header { padding: 24px 0; }
header .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px 'Fraunces', Georgia, serif; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
header nav { display: flex; gap: 20px; }
header nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
header nav a:hover { color: var(--text); }

.hero { padding-top: 16px; padding-bottom: 56px; }
.banner { display: block; width: 100%; height: auto; border-radius: 24px; background: #FAF8F3; margin-bottom: 40px; }
@media (prefers-color-scheme: dark) { .banner { box-shadow: 0 0 0 3px var(--gold); } }
.hero h1 { color: var(--text); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.05; max-width: 14ch; }
.hero p { font-size: 19px; max-width: 34em; margin: 20px 0 0; }
.name-note { font-size: 15px !important; }

section { padding: 40px 0; border-top: 1px solid var(--line); }
section > .wrap > h2::after { content: ''; display: block; width: 48px; height: 3px; border-radius: 2px; background: var(--gold); margin-top: 10px; }
section > .wrap > h2 { font-size: 28px; margin-bottom: 20px; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.app-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.app-card .top { display: flex; align-items: center; gap: 14px; }
.app-card img { width: 64px; height: 64px; border-radius: 15px; }
.app-card h3 { font-size: 22px; }
.app-card .tag { color: var(--app); font-weight: 700; font-size: 15px; }
.app-card p { margin: 0; }
.status { align-self: flex-start; background: var(--accent-soft); color: var(--text); font-weight: 700; font-size: 13px; border-radius: 12px; padding: 2px 12px; }
.links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; font-size: 15px; margin-top: auto; }
.app-card.soon { border-style: dashed; background: transparent; justify-content: center; }
.app-card.soon h3 { font-size: 18px; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.values strong { display: block; margin-bottom: 4px; }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.contact h3 { font: 700 15px 'DM Sans', sans-serif; color: var(--text); margin-bottom: 4px; }
.contact p { margin: 0; }

.doc { max-width: 720px; padding: 32px 16px 48px; }
.doc h1 { font-size: 40px; line-height: 1.1; margin-bottom: 8px; }
.doc h2 { font: 700 19px 'DM Sans', sans-serif; margin: 32px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.meta { font-size: 14px; margin-bottom: 20px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; }
footer .wrap { display: flex; gap: 8px 20px; flex-wrap: wrap; }
footer .wrap span { margin-right: auto; }
@media (max-width: 520px) { .banner { border-radius: 16px; margin-bottom: 28px; } .hero p { font-size: 17px; } header nav { gap: 14px; } }

/* Home: hills picture behind the top of the page, fading into the page color. */
body.home { position: relative; }
.sky {
  position: absolute; inset: 0 0 auto; height: 820px; z-index: -1; pointer-events: none;
  background: url(/hills.webp) center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
body.home { isolation: isolate; }
body.home header nav a, body.home .brand { color: #0B2A1C; text-shadow: 0 1px 8px rgba(255,255,255,.6); }
body.home header nav a { background: rgba(250,248,243,.78); padding: 4px 12px; border-radius: 999px; text-shadow: none; }
body.home header nav { gap: 8px; }
body.home .banner { box-shadow: 0 10px 40px rgba(11,42,28,.25); }
.hero-text { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 24px; padding: 28px 28px 24px; box-shadow: 0 10px 40px rgba(11,42,28,.12); }
.hero-text h1 { max-width: 14ch; }
.hero-text p:last-child { margin-bottom: 0; }
body.home #apps { border-top: 0; }
@media (prefers-color-scheme: dark) {
  .sky { filter: brightness(.55) saturate(.85); }
  body.home .brand { color: #F6F1E4; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
  body.home header nav a { background: rgba(12,31,23,.7); color: #F6F1E4; }
  body.home .banner { box-shadow: 0 0 0 3px var(--gold), 0 10px 40px rgba(0,0,0,.4); }
}
@media (max-width: 700px) { .hero-text { padding: 20px 18px 18px; border-radius: 18px; } .sky { height: 560px; background-image: url(/hills-900.webp); } }
