/* GolDigitals website. Light only. No external requests: fonts are self-hosted (OFL, see /assets/fonts/). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/PublicSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Brand palette (logo): gold #EF9F27 / #FAC775 / #BA7517, charcoal #2C2C2A */
  --color-background: #fbf8f1;
  --color-surface: #ffffff;
  --color-surface-warm: #f6f0e3;
  --color-text: #2c2c2a;            /* 13.2:1 on background */
  --color-text-muted: #5c5b55;      /* 6.4:1 on background */
  --color-gold: #ef9f27;            /* decorative only, never for text */
  --color-gold-light: #fac775;
  --color-gold-deep: #ba7517;       /* decorative only */
  --color-gold-text: #87540b;       /* links and small gold text: 6.0:1 on background, 5.6:1 on surface-warm */
  --color-line: #e8dfcb;
  --color-focus: #2c2c2a;

  --font-heading: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --content-width: 68rem;
  --reading-width: 46rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 1rem;
}

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

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1rem;
}

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

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

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--color-text);
  color: #ffffff;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--color-line);
  background: rgba(251, 248, 241, 0.92);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
}

.brand img {
  width: 9.5rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--color-gold);
}

@media (max-width: 34rem) {
  .site-header .container {
    flex-wrap: wrap;
    gap: 0 1rem;
  }

  .brand img {
    width: 7.25rem;
  }

  .site-nav ul {
    gap: 0.25rem 1rem;
  }

  .site-nav a {
    font-size: 0.92rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(4rem, 10vw, 7rem);
}

.hero-logo {
  width: min(100%, 34rem);
  margin: 0 0 clamp(2.5rem, 6vw, 3.5rem) -0.4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--color-gold-text);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 17ch;
}

.lead {
  max-width: 40rem;
  color: var(--color-text-muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: var(--color-text);
  color: #ffffff;
}

.button-primary:hover {
  background: #000000;
}

.button-secondary {
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.button-secondary:hover {
  background: var(--color-surface-warm);
}

/* Dissolving pixels, echoing the "G" of the logo. Decorative. */
.pixels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pixel {
  position: absolute;
  border-radius: 22%;
  opacity: 0.9;
  animation: drift 14s ease-in-out infinite alternate;
}

.pixel-1 { width: 2.6rem; height: 2.6rem; right: 14%; top: 18%; background: var(--color-gold); }
.pixel-2 { width: 1.6rem; height: 1.6rem; right: 8%;  top: 9%;  background: var(--color-gold-light); animation-delay: -4s; }
.pixel-3 { width: 1rem;   height: 1rem;   right: 4.5%; top: 24%; background: var(--color-gold-deep); animation-delay: -8s; }
.pixel-4 { width: 0.6rem; height: 0.6rem; right: 11%; top: 34%; background: var(--color-gold-light); animation-delay: -2s; }

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(-0.6rem, 0.9rem) rotate(8deg); }
}

@media (max-width: 40rem) {
  .pixel-1 { right: 14%; top: 1.4rem; width: 1.5rem; height: 1.5rem; }
  .pixel-2 { right: 7%; top: 0.6rem; width: 0.95rem; height: 0.95rem; }
  .pixel-3 { right: 5%; top: 2.6rem; width: 0.7rem; height: 0.7rem; }
  .pixel-4 { display: none; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.section-warm {
  background: var(--color-surface-warm);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.section-intro {
  max-width: var(--reading-width);
  margin-bottom: 2.5rem;
}

.section-intro p {
  color: var(--color-text-muted);
}

.rule {
  width: 3rem;
  height: 3px;
  margin: 0 0 1.25rem;
  border: 0;
  background: var(--color-gold);
}

/* ---------- Chronora ---------- */

.product {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .product {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.product-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-heading img {
  width: 3.5rem;
  flex: none;
}

.product-heading h2 {
  margin: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.5rem 0 1.5rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
}

.status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-gold);
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 36rem) {
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.feature h3::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  border-radius: 22%;
  background: var(--feature-colour, var(--color-gold));
}

.feature p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.feature-themes   { --feature-colour: #3c3489; }
.feature-sessions { --feature-colour: #ef9f27; }
.feature-checkins { --feature-colour: #1d9e75; }
.feature-rating   { --feature-colour: #d85a30; }

.small-print {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.principles li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--color-text);
}

.principles p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ---------- Contact ---------- */

.contact {
  text-align: left;
}

.contact-mail {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3.6vw, 1.9rem);
  font-weight: 600;
  color: var(--color-text);
  text-decoration-color: var(--color-gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
}

.contact-mail:hover {
  color: var(--color-gold-text);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer img {
  width: 7.5rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--color-text-muted);
}

.site-footer a:hover {
  color: var(--color-text);
}

.site-footer p {
  margin: 0;
}

/* ---------- Text pages (legal, privacy, 404) ---------- */

.page {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

.prose {
  max-width: var(--reading-width);
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  margin-bottom: 1.25rem;
}

.prose h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.prose h3 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.6rem;
}

.prose li::marker {
  color: var(--color-gold-deep);
}

.prose code {
  padding: 0.05em 0.35em;
  border-radius: 0.3rem;
  background: var(--color-surface-warm);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.prose address {
  font-style: normal;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: var(--color-surface);
}

.prose table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  background: var(--color-surface-warm);
  font-family: var(--font-heading);
  font-weight: 600;
}

.notice {
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--color-gold);
  border-radius: 0 0.6rem 0.6rem 0;
  background: var(--color-surface-warm);
}

.placeholder {
  padding: 0 0.3em;
  border-radius: 0.25rem;
  background: #fde9c4;
  outline: 1px dashed var(--color-gold-deep);
  font-weight: 600;
}

.language-switch {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.language-switch ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-switch a,
.language-switch strong {
  display: inline-block;
  padding: 0.3rem 0;
}

.language-switch strong {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-gold);
}

.not-found-code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--color-gold-deep);
  margin: 0 0 1rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header nav,
  .pixels,
  .skip-link {
    display: none;
  }

  body {
    background: #ffffff;
  }
}
