/* Sharpy — getsharpy.com
   =====================================================================
   Every colour, face and radius in this file comes from DESIGN.md, which
   measured them off sharpsana.com's own computed styles. Do not introduce a
   value that is not in that document.

   Light is the product's own palette: "white where you work". Dark is
   DESIGN.md's overlay palette — true black with white ink at the same three
   opacities the light palette uses — which is what the product looks like
   when it speaks over another app.
   ===================================================================== */

:root {
  color-scheme: light;

  --accent:        #238BB5;
  --ink:           #0f172b;
  --ink-deep:      #020618;
  --muted:         rgb(15 23 43 / 0.62);
  --faint:         rgb(15 23 43 / 0.48);
  --hairline:      rgb(15 23 43 / 0.10);
  --track:         rgb(15 23 43 / 0.16);
  --canvas:        #ffffff;
  --canvas-sunken: #f8fafc;
  --on-accent:     #ffffff;

  /* DESIGN.md: radius 12, measured from the site's own buttons. The mark is
     deliberately not 12 — a uniform bubble radius is on the anti-pattern list. */
  --radius:      12px;
  --radius-mark: 6px;

  /* DESIGN.md: Space Grotesk 600 display, Inter body. `system-ui` is banned as
     a display face, so the display stack falls back to Inter and then to a real
     grotesque before it gives up. */
  --font-display: "Space Grotesk", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* 4pt base unit. */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --ink:           #ffffff;
    --ink-deep:      #ffffff;
    --muted:         rgb(255 255 255 / 0.62);
    --faint:         rgb(255 255 255 / 0.48);
    --hairline:      rgb(255 255 255 / 0.10);
    --track:         rgb(255 255 255 / 0.16);
    --canvas:        #000000;
    --canvas-sunken: #000000;
  }
}

/* ---------------------------------------------------------------- reset */

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, background-color 160ms ease,
              border-color 160ms ease;
}

a:hover { color: var(--accent); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--s-1);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: var(--canvas-sunken);
  border: 1px solid var(--hairline);
  border-radius: var(--s-1);
  padding: 0.1em 0.35em;
}

/* --------------------------------------------------------------- layout */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

.shell {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: static;
  display: inline-block;
  margin: var(--s-3) 0;
}

/* --------------------------------------------------------------- header */

.masthead {
  border-bottom: 1px solid var(--hairline);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) 0;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-mark);
  display: block;
  flex: none;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
  text-decoration: none;
}

.wordmark:hover { color: var(--ink-deep); }

/* ----------------------------------------------------------------- hero */

.hero {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 9vh, 5rem) 0;
}

.hero__inner { max-width: 44rem; }

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  /* Centres the dot on the first line when the label wraps at narrow widths. */
  margin-top: 0.53em;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 var(--s-3);
  max-width: 34rem;
}

.lede strong {
  font-weight: 500;
  color: var(--ink);
}

/* --------------------------------------------------------------- action */

.action {
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}

.button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.8125rem 1.375rem;
  text-decoration: none;
}

.button:hover {
  color: var(--on-accent);
  background: var(--ink-deep);
  border-color: var(--ink-deep);
}

@media (prefers-color-scheme: dark) {
  .button:hover {
    color: var(--accent);
    background: var(--canvas);
    border-color: var(--accent);
  }
}

.action__note {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 30rem;
}

/* --------------------------------------------------------------- footer */

.colophon {
  border-top: 1px solid var(--hairline);
}

.colophon__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-4) 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.colophon__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.colophon__meta {
  margin: 0;
  color: var(--faint);
}

@media (min-width: 40rem) {
  .colophon__meta { margin-left: auto; }
}

/* ---------------------------------------------------------- legal pages */

.doc {
  flex: 1 1 auto;
  padding: var(--s-6) 0 var(--s-7);
}

.doc__inner { max-width: 44rem; }

.doc h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  margin-bottom: var(--s-2);
}

.doc__stamp {
  font-size: 0.875rem;
  color: var(--faint);
  margin: 0 0 var(--s-5);
}



.doc h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink-deep);
  margin: var(--s-6) 0 var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
}

.doc h2:first-of-type { margin-top: var(--s-5); }

.doc p {
  margin: 0 0 var(--s-3);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.doc p.lead {
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.doc strong { color: var(--ink); font-weight: 600; }

.doc ul {
  margin: 0 0 var(--s-3);
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.doc li { margin-bottom: var(--s-2); }

.doc li::marker { color: var(--track); }

.doc dl {
  margin: 0 0 var(--s-4);
  padding: 0;
}

.doc dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
  margin-top: var(--s-3);
}

.doc dd {
  margin: var(--s-1) 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}


.backlink {
  display: inline-block;
  margin-bottom: var(--s-4);
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.backlink:hover { color: var(--accent); }

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
