/* GUXO website styles. Plain CSS, no build step. */

/* Fonts: self-hosted, latin subset, only the weights in use.
   Both are under the SIL Open Font License (see fonts/OFL-*.txt). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/manrope-400.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/manrope-500.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/manrope-800.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-mono-500.woff2") format("woff2");
}

:root {
  /* Brand colours */
  --bone: #F7F6F2;  /* background */
  --ink: #141413;   /* text */
  --sand: #E9E4D8;
  --taupe: #B8AE9C;
  --red: #D92D20;   /* accent, not final: change it here only */

  /* Derived from the brand colours */
  --ink-soft: color-mix(in srgb, var(--ink) 72%, var(--bone));

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max-width: 76rem;
  --section: clamp(4.5rem, 3rem + 8vw, 9rem);
  --radius: 1.5rem;

  color-scheme: light;
}

/* Base */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

::selection {
  background: var(--ink);
  color: var(--bone);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-weight: 500;
  text-decoration: none;
}

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

/* Small uppercase labels (DM Mono) */

.label {
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 0.6rem + 0.3vw, 0.8125rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-wrap: wrap;
  color: var(--ink-soft);
}

/* Header */

.site-header {
  padding-block: 1.25rem;
}

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

.brand {
  flex: none;
  display: block;
}

/* The wordmark has a descender, so nudge it down to sit level with the nav text. */
.brand img {
  width: 5.5rem;
  transform: translateY(16%);
}

.site-nav {
  display: flex;
  gap: clamp(1.125rem, 4vw, 2.5rem);
}

.site-nav a {
  padding-block: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--red);
}

/* Sections */

.band {
  padding-block: var(--section);
}

.band--sand {
  background: var(--sand);
}

.band--flush-top {
  padding-top: 0;
}

.band > .wrap > .label {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

[id] {
  scroll-margin-top: 2rem;
}

/* Hero */

.hero {
  padding-block: clamp(3.5rem, 1.5rem + 9vw, 8.5rem) var(--section);
}

.hero .label {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.hero .label::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--red);
}

.hero h1 {
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-size: clamp(2.75rem, 1.4rem + 6.6vw, 7.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__sub {
  max-width: 38rem;
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero .button {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

/* The gap */

.gap .wrap {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

.gap h2 {
  font-size: clamp(2.25rem, 1.3rem + 4.4vw, 4.75rem);
}

.gap p {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-soft);
}

.gap p span {
  display: block;
}

.gap p span + span {
  margin-top: 0.35em;
}

.gap p span:last-child {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (min-width: 60rem) {
  .gap .wrap {
    grid-template-columns: 1.5fr 1fr;
    align-items: end;
  }
}

/* How it works */

.steps {
  display: grid;
  gap: 2.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.steps h3 {
  font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem);
}

.steps p {
  max-width: 22rem;
  margin-top: 0.875rem;
  color: var(--ink-soft);
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

/* What's inside */

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

.card {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--sand);
}

.card h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  letter-spacing: -0.03em;
}

.card p {
  margin-top: auto;
  color: var(--ink-soft);
}

.card strong {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

@media (min-width: 60rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .card {
    min-height: 20rem;
  }
}

/* Closer */

.closer {
  padding-block: clamp(6rem, 3rem + 14vw, 13rem);
  background: var(--ink);
  color: var(--bone);
}

.closer p {
  font-size: clamp(2.75rem, 1rem + 9vw, 10rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.closer span {
  display: block;
}

/* Footer */

.site-footer {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2.5rem;
}

.footer__email {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.footer__email:hover {
  color: var(--red);
}

.footer__legal {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-top: 1.5rem;
  padding-right: max(0px, 100% - 44rem); /* full-width rule, readable line length */
  border-top: 1px solid var(--taupe);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.footer__bottom p {
  color: var(--ink-soft);
}

.footer__bottom a {
  padding-block: 0.5rem;
  font-weight: 500;
}

/* Text pages (privacy policy, 404) */

.page {
  padding-block: clamp(3rem, 1.5rem + 7vw, 7rem) var(--section);
}

.page h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 5rem);
  letter-spacing: -0.04em;
}

.page__lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.page .button {
  margin-top: 2.5rem;
}

.prose {
  max-width: 42rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 0.875rem;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: 1rem;
}

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

.prose li + li {
  margin-top: 0.5rem;
}

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

.prose strong {
  font-weight: 800;
}

.prose a:hover {
  color: var(--red);
}

.prose address {
  font-style: normal;
}
