/* sparcpoint.com — the one stylesheet (ADR-008). Light only, mobile first, no script, no inline style (ADR-004).
   Colours live only in :root; every other rule reads var(--…).

   Shell classes, for page fragments (layout.html owns header, nav, main and footer):
   .skip       the skip link to #main, visible only when focused (layout)
   .wordmark   "Sparcpoint" in the header (layout)
   .lockup     the inline Saypoint lockup <svg> on Home
   .tagline    the tagline under the lockup, in Cormorant Garamond
   .play-cta   the Google Play call to action, as <p> (coming soon) or <a> (listing set); filled in by the build
   .meta       a quiet secondary line, such as a legal page's "Effective … · Last updated …" and "Published by …"
   Plain h1/h2/h3, p, ul, ol, table, a and section need no class. */

:root {
  --ground: #f6f1e8;         /* ClassicalGround */
  --raised: #fbf8f2;         /* W100 */
  --card: #fefcf8;           /* W50 */
  --hairline: #e3dccf;       /* W250 */
  --text: #221f1b;           /* W900 */
  --text-secondary: #6d6558; /* W600 */
  --gold: #7d5411;           /* Accent.A700, brand paper gold (OD-1) */
  --ink: #201f1d;            /* Neutral.Ink */
  --endorsement: #605d5d;    /* Neutral.N700 */
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-italic.ttf') format('truetype');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: 2.5rem;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 500;
  margin: 2.5rem 0 0.5rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 1.75rem 0 0.4rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  background: var(--card);
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--hairline);
}

th {
  font-weight: 600;
}

/* The skip link: off screen until a keyboard reaches it. */
.skip {
  position: absolute;
  left: 0.75rem;
  top: -10rem;
  padding: 0.5rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 0.25rem;
  z-index: 1;
}

.skip:focus,
.skip:focus-visible {
  top: 0.75rem;
}

/* Header, main and footer share one centred 42rem column; header and footer grounds run full width. */
main {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

header,
footer {
  padding-left: max(1.25rem, calc((100% - 42rem) / 2 + 1.25rem));
  padding-right: max(1.25rem, calc((100% - 42rem) / 2 + 1.25rem));
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: underline;
}

nav ul,
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 0.95rem;
}

main {
  padding-top: 2.25rem;
  padding-bottom: 3rem;
}

footer {
  background: var(--raised);
  border-top: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

footer p {
  margin: 0 0 0.5rem;
}

footer ul {
  margin-bottom: 0.5rem;
}

section {
  margin-top: 2.5rem;
}

.lockup {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin: 1rem 0 1.25rem;
}

.tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.meta {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

/* A quiet bordered pill, never a filled button: nothing is sold here. */
.play-cta {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--ground);
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1.4;
}

a.play-cta {
  text-decoration: none;
  transition: background-color 120ms ease;
}

a.play-cta:hover {
  background: var(--card);
  text-decoration: underline;
}

@media (min-width: 48rem) {
  h1 {
    font-size: 3rem;
  }

  main {
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
