@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

@layer reset, base, layout;

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

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

  a {
    color: inherit;
    text-decoration: none;
  }

  ul,
  ol {
    list-style: none;
  }
}

@layer base {
  :root {
    --color-primary: #542929;
    --color-fg: #faf6f0;
    --color-black: #1c0b0b;

    /* Rose and Sage Tints */
    --color-tint-1: #783e3e;
    --color-tint-2: #9c5757;
    --color-tint-3: #8ca88d;
    --color-tint-4: #e3d9ce;

    /* Dark Accents */
    --color-black-tint-1: #2e1616;
    --color-black-tint-2: #422020;

    --font-heading: "Oswald", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --text-h1: 4rem;
    --text-h2: 2.5rem;
    --text-h3: 1.5rem;
    --text-body: 1.125rem;
    --text-small: 0.875rem;
    --space-section: 8rem;
    --space-gutter: 2rem;
    --leading-body: 1.65;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--color-primary);
    color: var(--color-fg);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(
      ellipse at 50% -10%,
      var(--color-tint-1) 0%,
      var(--color-primary) 45%,
      var(--color-black-tint-2) 100%
    );
  }

  h1,
  h2,
  h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  h1 {
    font-size: var(--text-h1);
  }
  h2 {
    font-size: var(--text-h2);
  }
  h3 {
    font-size: var(--text-h3);
  }
  p {
    margin-top: 1em;
  }
  a {
    text-decoration: underline;
  }
  a:hover {
    text-decoration: none;
  }

  ::selection {
    background-color: var(--color-fg);
    color: var(--color-primary);
  }

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

@layer layout {
  .container {
    padding: 4em;
    align-content: center;
  }
  .container-thin {
    max-width: 32em;
    height: 100vh;
    margin: auto;
  }

  .title {
    text-align: center;
    margin-bottom: 2em;
  }

  .title h1 {
    font-size: clamp(4rem, 14vw, 7rem);
    background: linear-gradient(
      135deg,
      var(--color-fg) 0%,
      var(--color-tint-4) 55%,
      var(--color-tint-3) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  .links {
    display: flex;
    justify-content: center;
  }

  .link-list-item {
    margin: 8px;
    display: flex;
    justify-content: center;
  }

  .link-list-item > a {
    display: inline-block;
    padding: 0.6em 1.6em;
    border: 1px solid var(--color-tint-2);
    border-radius: 999px;
    text-decoration: none;
    background-color: var(--color-black);
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }
  .link-list-item > a:hover {
    text-decoration: none;
    background-color: var(--color-tint-3);
    border-color: var(--color-tint-3);
    color: var(--color-black);
    transform: translateY(-2px);
  }

  .privacy ul {
    list-style: inside;
  }
  .privacy h2,
  h3 {
    margin-top: 1.5em;
  }
}
