@layer reset, tokens, base, layout, components;

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

  html {
    text-size-adjust: none;
  }

  body,
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }

  img,
  picture {
    display: block;
    max-width: 100%;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
  }
}

@layer tokens {
  :root {
    /* Screen equivalents of the print CMYK palette in docs/brand/README.md. */
    --colour-forest: #0e301c;
    --colour-forest-deep: #082418;
    --colour-gold: #bd9434;
    --colour-cream: #f5eedf;
    --colour-white: #fffdf7;
    --colour-ink: #17231c;

    --font-display: "Bebas Neue", sans-serif;
    --font-body: "Montserrat", sans-serif;
    --font-script: "Playlist Script", "Segoe Script", cursive;

    --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.94rem);
    --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
    --step-1: clamp(1.25rem, 1.1rem + 0.65vw, 1.6rem);
    --step-2: clamp(1.75rem, 1.35rem + 1.7vw, 2.6rem);
    --step-3: clamp(3.2rem, 1.9rem + 5.5vw, 6.8rem);

    --space-xs: 0.5rem;
    --space-s: 0.85rem;
    --space-m: 1.5rem;
    --space-l: clamp(2rem, 5vw, 4rem);
    --space-xl: clamp(4rem, 10vw, 8rem);
    --content-width: 72rem;
    --measure: 62ch;
    --radius: 1rem;
    --shadow: 0 1.4rem 4rem rgb(8 36 24 / 18%);
  }
}

@layer base {
  html {
    background: var(--colour-cream);
    color: var(--colour-ink);
    font-family: var(--font-body);
    line-height: 1.6;
  }

  body {
    min-height: 100vh;
  }

  h1,
  h2,
  h3 {
    color: var(--colour-forest);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.95;
    text-wrap: balance;
  }

  h1 {
    font-size: var(--step-3);
    letter-spacing: 0.025em;
  }

  h2 {
    font-size: var(--step-2);
  }

  h3 {
    font-size: var(--step-1);
  }

  p {
    max-width: var(--measure);
  }

  a {
    color: var(--colour-forest);
    font-weight: 600;
    text-underline-offset: 0.2em;
  }

  a:hover {
    color: var(--colour-gold);
  }

  :focus-visible {
    outline: 0.2rem solid var(--colour-gold);
    outline-offset: 0.2rem;
  }

  ::selection {
    background: var(--colour-gold);
    color: var(--colour-forest-deep);
  }
}

@layer layout {
  .container {
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
  }

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

  .stack > * + * {
    margin-block-start: var(--space-m);
  }

  .cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
    align-items: center;
  }

  .holding-page {
    display: grid;
    min-height: 100vh;
    padding: var(--space-m);
    place-items: center;
  }
}

@layer components {
  .holding-card {
    position: relative;
    width: min(100%, 58rem);
    overflow: hidden;
    padding: clamp(2rem, 7vw, 6rem);
    background: var(--colour-white);
    border: 1px solid rgb(14 48 28 / 18%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .holding-card::after {
    position: absolute;
    right: -4rem;
    bottom: -6rem;
    width: 15rem;
    aspect-ratio: 1;
    background: var(--colour-gold);
    border-radius: 50%;
    content: "";
    opacity: 0.16;
  }

  .holding-card h1 span {
    display: block;
    margin-top: var(--space-xs);
    font-family: var(--font-body);
    font-size: 0.28em;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .eyebrow {
    margin-bottom: var(--space-s);
    color: var(--colour-gold);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .script {
    margin-block: var(--space-m) var(--space-xs);
    color: var(--colour-forest);
    font-family: var(--font-script);
    font-size: var(--step-2);
    line-height: 1.2;
  }

  .intro {
    font-size: var(--step-0);
  }

  .contact-list {
    display: flex;
    margin-top: var(--space-l);
    flex-direction: column;
    gap: var(--space-s);
    align-items: flex-start;
    font-style: normal;
  }

  .contact-list a {
    overflow-wrap: anywhere;
  }

  .button {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.7rem 1.15rem;
    align-items: center;
    justify-content: center;
    background: var(--colour-forest);
    border-radius: 999px;
    color: var(--colour-white);
    text-decoration: none;
  }

  .button:hover {
    background: var(--colour-gold);
    color: var(--colour-forest-deep);
  }
}
