@font-face {
  font-family: "Courgette";
  src: url("../fonts/Courgette-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #211f1a;
  background: #fff3cc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.6;
  background: #fff3cc;
}

header,
main,
footer {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #e8c76a;
}

header > a {
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  color: #1f5fa8;
}

nav {
  display: flex;
  gap: 20px;
}

a {
  color: #b87800;
  text-underline-offset: 3px;
}

a:hover {
  color: #8a5900;
}

main {
  padding: 72px 0;
}

section {
  margin-bottom: 64px;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 700px;
  letter-spacing: -0.03em;
}

h2 {
  margin-top: 0;
  color: #2b271e;
}

h3 {
  margin-bottom: 4px;
  color: #3a3222;
}

p {
  max-width: 680px;
  margin-top: 0;
}

code {
  background: #f7e3a3;
  padding: 2px 5px;
  border-radius: 4px;
}

footer {
  padding: 28px 0 48px;
  border-top: 1px solid #e8c76a;
}

footer a {
  margin-right: 20px;
}

footer p {
  margin-top: 20px;
  color: #756f63;
}

@media (max-width: 650px) {
  header {
    align-items: flex-start;
    gap: 20px;
  }

  nav {
    flex-direction: column;
    gap: 6px;
    text-align: right;
  }

  main {
    padding: 48px 0;
  }
}


.primary-button {
  display: inline-block;
  margin-top: 12px;
  padding: 11px 18px;
  background: #1f5fa8;
  color: #ffffff;
  text-decoration: none;
  border-radius: 7px;
  font-weight: 600;
}

.primary-button:hover {
  background: #194f8c;
  color: #ffffff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.feature-card {
  padding: 16px 18px;
  background: #fff9e8;
  border: 1px solid #e8c76a;
  border-radius: 10px;
}

.feature-card p {
  margin-bottom: 0;
}

@media (max-width: 650px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 10px 18px 14px;
}

.feature-card h3 {
  margin-top: 0;
}

.feature-card {
  padding: 14px 18px 16px;
}

.feature-card {
  padding: 20px 18px 16px;
}

@media (max-width: 650px) {
  footer a {
    display: block;
    width: fit-content;
    margin: 0 0 8px;
  }
}


header {
  justify-content: space-between;
}

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

@media (max-width: 650px) {
  .brand-mark {
    width: 46px;
    height: 46px;
  }
}

header > a {
  position: relative;
  top: 6px;
}

@media (max-width: 650px) {
  header {
    align-items: center;
  }

  header > a {
    top: 7px;
  }
}


.motto {
  margin: 28px 0 42px;
  font-size: 1rem;
  font-weight: 600;
  color: #1f5fa8;
  letter-spacing: 0.01em;
}


header > a {
  font-size: 1.7rem;
}

.motto {
  margin: -27px 0 42px;
  font-size: 1.7rem;
}

.motto {
  padding-left: 0.42em;
  text-indent: -0.42em;
}


.motto-courgette {
  font-family: "Courgette", cursive;
  font-weight: 400;
}

.motto-print {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.motto-print {
  color: #211f1a;
}

.motto-print {
  font-weight: 600;
}

.motto-print {
  font-weight: 500;
}
