:root {}

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

html {
  /* stops mobile browsers from trying to adjust text sizes for mobile */
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
  /* stop macOS from rendering fonts thicker */
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable;
}

body {
  min-block-size: 100svh;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
input,
label,
button {
  line-height: 1.1;
}

body,
h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-inline-size: 100%;
}

/* ******** GENERAL STYLES ******** */
body {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1rem;
  display: flex;
  align-content: center;
  text-align: center;
  background: grey;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
}

p {
  font-weight: 500;
  max-width: 40ch;
}

hr {
  width: 80%;
  opacity: 0.5;
}

/* ******** COMPOSITION / LAYOUT ******** */
.flow>*+* {
  margin-block-start: var(--flow-space, 1rem);
}

.flex {
  display: flex;
  gap: var(--gap, 1rem);
}

.grid {
  --column-count: 1;
  --column-size: 1fr;
  --column-template: repeat(var(--column-count, 1), var(--column-size, 1fr));
  display: grid;
  gap: var(--gap, 1rem);
  grid-template-columns: var(--column-template);
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.place-center {
  align-items: center;
  justify-content: center;
}

.m-inline-auto {
  margin-inline: auto;
}

/* ******** COMPONENTS ******** */
.container {
  max-width: 35rem;
  padding-block: 1rem;
  padding-inline: 3rem;
  border-radius: 1rem;
  box-shadow: 4px 4px 15px hsl(0 0% 50% / .5);
  background: #fff;

  @media(width < 475px) {
    border-radius: 0;
    padding-inline: 1.5rem;
  }
}

.logo {
  max-inline-size: 15rem;
}

.links {
  --gap: 1.25rem;
}

.button {
  color: hsl(0 0 100);
  background: hsl(88 79% 28%);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  width: 100%;
  padding-inline: 2em;
  padding-block: 1em;
  border-radius: 100vw;
  box-shadow: 4px 4px 15px hsl(0 0% 50% / .5);

  &:is(:hover, :focus-visible) {
    scale: 1.05;
    background: hsl(88 79% 22%);
    outline-offset: 5px
  }
}

.socials img {
  max-width: 2.5rem;

  &:is(:hover, :focus-visible) {
    scale: 1.3;
  }
}