/* ==========================================================================
   PRICED.CHEAP — foundation
   The first light site in the studio. Palette sampled from the icon: sage
   #71a277 with its darker outline #5d8962, the receipt paper #fefefe and the
   greyed second sheet behind it. Cream ground so the white receipt reads as
   paper on a counter, not a card on a screen.
   ========================================================================== */

:root {
  --ground: #f4f3ec;
  --ground-2: #ece9de;
  --paper: #fffdf7;
  --surface: #ffffff;

  --sage: #71a277;
  --sage-deep: #5d8962;
  --sage-ink: #3f6b47;
  --sage-tint: #e6efe6;
  --sage-tint-2: #d4e3d5;

  --ink: #1b2a1e;
  --text: #2a3a2d;
  --text-2: #55665a;
  --text-3: #7a8a7e;
  --text-4: #9daaa0;

  --rule: rgba(27, 42, 30, 0.10);
  --rule-2: rgba(27, 42, 30, 0.16);
  --rule-sage: rgba(93, 137, 98, 0.35);

  --font-display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1080px;
  --header-h: 72px;
  --r: 14px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms var(--ease);
  --t: 320ms var(--ease);
  --t-slow: 560ms var(--ease);
}

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

html {
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; background: var(--ground); line-height: 1.65; overflow-x: hidden; }

::selection { background: var(--sage); color: #fff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
}
p { color: var(--text-2); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 500;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 0.875rem;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
}
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

/* A sage wash behind the hero and nothing else. On a light page the ambient
   layer has to be almost invisible or it reads as a stain. */
.ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; height: 100vh; }
.ambient-wash {
  position: absolute; top: -30%; right: -10%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113, 162, 119, 0.22), transparent 66%);
  filter: blur(60px);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.rule { height: 1px; width: 100%; background: var(--rule); }
/* Receipt tear line — the one decorative motif on the page. */
.rule-tear {
  height: 0; width: 100%;
  border-top: 2px dashed var(--rule-2);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--rd, 0ms); }
.js .reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
