/* Shared chrome for the three saveordie.app pages.
 *
 * The pages themselves keep the designer's inline styles verbatim — this file
 * holds only what an inline style attribute cannot express: the page
 * background, pseudo-elements, and the hover/active states that the design
 * export encoded as non-standard `style-hover` / `style-active` attributes. */

html {
  height: 100%;
  background-color: oklch(0.97 0.006 100);
  /* Paper grain, inlined as a data URI so the page has no asset dependency. */
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.20  0 0 0 0 0.14  0 0 0 0 0.08  0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  color: oklch(0.26 0.025 50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100%;
  background: transparent;
  font-family: "Inter", system-ui, sans-serif;
}

/* The two tea stains. Fixed and behind everything, so scrolling a long policy
   page doesn't drag them along. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 110vw 75vh at 85% 10%, oklch(0.65 0.06 45 / 0.22), oklch(0.65 0.06 45 / 0) 100%),
    radial-gradient(ellipse 110vw 75vh at 5% 90%, oklch(0.62 0.045 30 / 0.2), oklch(0.62 0.045 30 / 0) 100%);
  background-repeat: no-repeat, no-repeat;
}

::selection {
  background: oklch(0.46 0.14 30);
  color: oklch(0.97 0.02 80);
}

a {
  color: oklch(0.46 0.14 30);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: oklch(0.36 0.12 30);
}

:focus-visible {
  outline: 2px solid oklch(0.46 0.14 30);
  outline-offset: 2px;
}

.footer-link {
  color: oklch(0.4 0.028 50);
  text-decoration: none;
  border-bottom: 1px solid oklch(0.62 0.045 55);
  padding-bottom: 2px;
}

.footer-link:hover {
  color: oklch(0.46 0.14 30);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 0.5rem;
  background: oklch(0.46 0.14 30);
  color: oklch(0.97 0.02 80);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 0 oklch(0.35 0.1 30);
}

.btn-google:hover {
  background: oklch(0.4 0.13 30);
  color: oklch(0.97 0.02 80);
}

.btn-google:active {
  background: oklch(0.36 0.12 30);
}
