/* Shared styles for the SmartPES site. System fonts only, no scripts.
   Look and palette follow the Oriel site by the same publisher. */

:root {
  color-scheme: light dark;
  --bg: #F7F4EF;
  --ink: #0E1A1F;
  --muted: #5B6B6A;
  --link: #1C6F66;
  --card: #FFFFFF;
  --line: #E6ECEA;
  --head: #EEF3F1;
  --bar: #16403F;
  --hero-top: #16403F;
  --hero-bottom: #0B2425;
  --hero-lede: #DCEBE7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1516;
    --ink: #E8EFED;
    --muted: #9FB2AF;
    --link: #8FD1C6;
    --card: #132122;
    --line: #243839;
    --head: #1B2D2E;
    --bar: #0F2B2B;
    --hero-top: #123636;
    --hero-bottom: #0A1B1C;
    --hero-lede: #CFE3DE;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

a { color: var(--link); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Top bar on inner pages */
.bar { background: var(--bar); color: #fff; padding: 20px 0; }
.bar a { color: #fff; font-weight: 600; text-decoration: none; }
.bar a:focus-visible { outline-color: #fff; }

/* Landing hero */
.hero { background: linear-gradient(180deg, var(--hero-top), var(--hero-bottom)); color: #fff; padding: 64px 0 52px; text-align: center; }
.hero h1 { font: 600 clamp(34px, 10vw, 46px)/1.1 Georgia, "Times New Roman", serif; margin: 0 0 12px; }
.hero p { font-size: 19px; line-height: 1.5; color: var(--hero-lede); max-width: 560px; margin: 0 auto; }

main { padding-top: 32px; padding-bottom: 48px; }

h1 { font: 600 clamp(28px, 7.5vw, 34px)/1.2 Georgia, "Times New Roman", serif; margin: 0 0 6px; }
h2 { font: 600 22px/1.3 Georgia, "Times New Roman", serif; margin: 32px 0 8px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin: 4px 0; }
.updated { color: var(--muted); margin: 0 0 24px; }

/* Landing page links */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin-top: 28px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--link); }
.card:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.card h2 { font: 600 18px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Support */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: 8px; }
details > :last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 8px 0 14px; }
th, td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
th { background: var(--head); }

/* Footer */
footer { color: var(--muted); font-size: 14px; text-align: center; padding: 8px 16px 48px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 10px; }
footer p { margin: 0 0 6px; }
