/* postgres.scot — one stylesheet, no frameworks, no external fonts.
   Skin follows the PostgresEDI page on cloomba: light grey page, white
   rounded card, dark navy serif headings, blue links. */

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(montserrat-400-latin.woff2) format('woff2'); /* self-hosted */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(montserrat-600-latin.woff2) format('woff2'); /* self-hosted; the PostgresEDI wordmark face (SemiBold) */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(lato-400-latin.woff2) format('woff2'); /* self-hosted */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f2f5f8;        /* light grey page, like cloomba */
  --card: #ffffff;
  --fg: #374151;        /* body text */
  --heading: #1e3a5f;   /* dark navy headings */
  --muted: #6b7280;     /* tagline, footer */
  --accent: #1d5d90;    /* links — cloomba/postgres blue */
  --accent-bright: #216ba5;
  --line: #e4e7ec;      /* borders */
  --radius: 16px;
  --display: Montserrat, "Century Gothic", Futura, system-ui, sans-serif;
  color-scheme: light dark;
}

/* dark theme follows the user's preference, zinc tones like cloomba (not black) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;      /* zinc-950 */
    --card: #1b1b1f;    /* zinc-900 */
    --fg: #c8cad1;      /* zinc-300 */
    --heading: #dbe6f5;
    --muted: #9a9ca6;   /* zinc-400 */
    --accent: #6aa5d8;
    --accent-bright: #8bbce8;
    --line: #2a2a30;    /* zinc-800 */
  }
  .card { box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* to revert to Lato: "17px/1.65 Lato, ..." — the Lato face below stays loaded */
  text-align: center;
}

main {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  padding: 3rem 1.25rem 0;
  box-sizing: border-box;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(30, 58, 95, .06);
  padding: 2.5rem 2rem;
}

.marks { display: flex; align-items: center; justify-content: center; gap: 1.75rem; flex-wrap: wrap; }
.flag { width: 170px; height: 170px; border-radius: 16px; } /* identical box and rounding to .logo */
.logo { width: 170px; height: 170px; border-radius: 16px; } /* logo jpg has a white ground; rounding keeps it sticker-like on the dark card */

h1 {
  margin: .5rem 0 0;
  font: 600 2.2rem/1.2 var(--display);
  color: var(--heading);
}

.tagline { margin: .5rem 0 0; font-size: 1.05rem; color: var(--muted); }

h2 {
  margin: 2.2rem 0 .6rem;
  font: 600 1.5rem/1.3 var(--display);
  color: var(--heading);
}

.blurb { margin: 0 auto 1.4rem; max-width: 36rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s;
}
a:hover, a:active { color: var(--accent-bright); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }

img { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }
.cloomba-embed { border-radius: 8px; border: 1px solid var(--line); }

footer { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 1.75rem 1.25rem; }
.flinks { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
footer a { font-size: .85rem; color: var(--muted); }
footer a:hover { color: var(--accent); }
.legal { margin: 0 auto; max-width: 42rem; font-size: .72rem; line-height: 1.6; color: var(--muted); }

@media (max-width: 480px) {
  .card { padding: 1.75rem 1rem; }
  h1 { font-size: 1.8rem; }
  .flag, .logo { width: 130px; height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
