/* The apex pages of prenovastrani.si.
   Deliberately the same rules as supabase/functions/_shared/templates/layout.html,
   so a static page and a server-rendered one do not look like two companies.
   The hexes are PREVIEW_BRAND and SITE_BRAND from
   packages/core/src/preview/brand.ts; `pnpm test:preview` asserts their
   contrast, which is the reason they may be copied rather than imported. */
:root {
  --bg: #14171c;
  --ink: #f4f5f7;
  --ink-muted: #b6bcc6;
  --accent: #f2b134;
  --accent-ink: #14171c;
  --border: #2a2f37;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --paper: #ffffff;
  --paper-ink: #1c1f24;
  --paper-muted: #5c636d;
  --rule: #e2e5ea;
  --wash: #f7f8fa;
  --link: #7a4a00;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--paper-ink);
  font: 17px/1.62 var(--font);
  -webkit-text-size-adjust: 100%;
}

/* Keyboard users first, and it is four lines. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

header { background: var(--bg); color: var(--ink); padding: 14px 20px; }
header a { color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .2px; }

main { max-width: 44rem; margin: 0 auto; padding: 44px 20px 60px; width: 100%; }

/* A short page (the cookie page is four sentences) otherwise leaves the footer
   floating in the middle of the screen, which reads as a page that failed. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main, .card-wrap { flex: none; }
main { flex: 1 0 auto; }

h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h2 { font-size: 1.22rem; line-height: 1.3; margin: 2.2em 0 .7em; }
main > h2:first-child { margin-top: 0; }
h3 { font-size: 1.05rem; margin: 1.8em 0 .4em; }
p, li { max-width: 38rem; text-wrap: pretty; hyphens: none; }
p { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

code { background: var(--wash); border: 1px solid var(--rule); padding: 1px 5px; border-radius: 3px; font-size: .92em; }

/* Every tappable thing clears 44px, because this is read on a phone, outdoors,
   by someone who is not looking for it. */
.button {
  display: inline-block; min-height: 48px; padding: 13px 24px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 7px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.06); }
.button-quiet { background: transparent; color: var(--paper-ink); border: 1px solid #aeb4bd; }

.muted { color: var(--paper-muted); font-size: .94rem; }

.card { border: 1px solid var(--rule); border-radius: 10px; padding: 20px 22px; margin: 22px 0; background: var(--paper); }
.card-wash { background: var(--wash); }

table { border-collapse: collapse; width: 100%; }
td, th { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }

footer { border-top: 1px solid var(--border); background: var(--bg); color: var(--ink-muted); padding: 24px 20px; font-size: .93rem; }
footer a { color: var(--ink-muted); }
footer p { max-width: 44rem; margin: .3em auto; }

@media (max-width: 560px) {
  main { padding: 30px 18px 44px; }
}
