/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  font-weight: normal;
}

/* 9. Create a root stacking context */
#root,
#__next {
  isolation: isolate;
}

/**
 * LLLLLLL.INK STYLES.
 */

:root {
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1rem;

  a {
    color: inherit;
  }
}

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


header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 1rem;
    border-bottom: 0.5px solid lightgray;
    font-size: 1.2rem;

    h1 {
        font-size: 1.5rem;
    }

    ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 2rem;

        li {
            display: inline-block;
            margin: 0;

            a {
                color: inherit;
            }
        }
    }
}

main {
    container-type: inline-size;
}

.narrow-layout {
    max-width: 40rem;
    padding: 1rem;
}

.simple-layout {
    max-width: 70rem;
    display: grid;
    padding: 1rem;
    gap: 4rem;
    grid-template-columns: 1fr;

    @media (min-width: 60rem) {
        grid-template-columns: 2fr 1fr;
    }
}

.title {
  margin: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.link {
    text-decoration: none;
    color: blue;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.5rem;
  border: 0.5px solid lightgray;
  background: white;
}

.form-textarea {
  width: 100%;
  padding: 0.5rem;
  border: 0.5px solid lightgray;
  background: white;
  resize: vertical;
  font-family: inherit;
}

.form-button {
  padding: 0.5rem 1rem;
  border: 0.5px solid lightgray;
  background: white;
  color: black;
  cursor: pointer;
}

.form-button:hover {
  background: black;
  color: white;
}

.error-message {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid red;
  background: #ffe;
}

.info-message {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid blue;
  background: #eef;
}
