/* Oficio Divino — same palette as the app (iOS/Theme.swift). */
:root {
  --paper: #faf8f0;
  --card: #ffffff;
  --ink: #1f231e;
  --muted: #5f655c;
  --olive: #475c45;
  --olive-soft: #e7ebe1;
  --burgundy: #7a3d38;
  --gold: #a88754;
  --line: #e4e0d4;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1c1a;
    --card: #242724;
    --ink: #ecebe4;
    --muted: #a8aca2;
    --olive: #a6b891;
    --olive-soft: #2c3329;
    --burgundy: #e0a691;
    --line: #353a34;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--olive); }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 28px; box-shadow: 0 10px 30px rgba(40, 50, 35, .18); }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
.hero h1 { font-size: clamp(38px, 7vw, 60px); }
.lead { font-size: 20px; color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--olive); color: var(--paper);
  padding: 14px 26px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 16px;
}
.button:hover { filter: brightness(1.08); }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 24px 0 64px; }
.shots img { border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(40, 50, 35, .12); }
@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(4, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 32px; }
  .shots img { scroll-snap-align: center; }
}

/* Features */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { font-size: 34px; text-align: center; margin-bottom: 36px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.feature h3 { font-size: 21px; color: var(--olive); }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.hours { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hours li { background: var(--olive-soft); color: var(--olive); border-radius: 999px; padding: 6px 16px; font-family: var(--serif); }

.quote { text-align: center; font-family: var(--serif); font-size: clamp(22px, 3.4vw, 30px); color: var(--burgundy); max-width: 720px; margin: 0 auto; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Long-form pages */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(34px, 6vw, 46px); }
.page h2 { font-size: 25px; margin-top: 40px; color: var(--olive); }
.page h3 { font-size: 19px; margin-top: 28px; }
.page .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.summary { background: var(--olive-soft); border-radius: 16px; padding: 20px 24px; margin: 24px 0 8px; }
.summary p { margin: 0; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.page th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-top: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }
