:root {
  color-scheme: light;
  font-family: "Google Sans Flex", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  color: #080808;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  padding: 0 28px;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #4263eb;
  outline-offset: 4px;
}

.page-shell {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 34px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.audience {
  margin-bottom: 1px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  display: block;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.wordmark-primary {
  font-family: "Lexend", Arial, sans-serif;
  font-weight: 400;
}

.wordmark-secondary {
  margin-left: 0.22em;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  margin: 72px 0 24px;
  color: #686868;
  font-size: 14px;
}

.breadcrumb a {
  text-underline-offset: 3px;
}

.page-intro {
  max-width: 760px;
}

h1,
h2,
h3 {
  font-family: "Lexend", Arial, sans-serif;
  font-weight: 400;
}

h1 {
  max-width: 660px;
  margin: 0 0 22px;
  font-size: clamp(34px, 4.5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.page-intro p {
  margin: 0 0 12px;
  color: #555;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.content-section {
  margin-top: 64px;
  scroll-margin-top: 28px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.section-note,
.guide-meta {
  margin: 0;
  color: #737373;
  font-size: 13px;
  line-height: 1.5;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 12px 24px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.guide-card:hover,
.quick-card:hover {
  border-color: #bfc7df;
  transform: translateY(-2px);
}

.guide-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 360;
  margin-bottom: 20px;
  border-radius: 7px;
  object-fit: cover;
}

.guide-meta,
.guide-title,
.guide-copy,
.card-action {
  margin-right: 12px;
  margin-left: 12px;
}

.guide-title {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.guide-copy {
  margin-top: 0;
  margin-bottom: 22px;
  color: #626262;
  font-size: 16px;
  line-height: 1.55;
}

.card-action {
  margin-top: auto;
  color: #4e5790;
  font-size: 14px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.pagination a {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 13px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.pagination a:hover {
  background: #f7f7fa;
}

.pagination [aria-current="page"] {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.quick-intro {
  margin: -10px 0 22px;
  color: #626262;
  font-size: 16px;
  line-height: 1.6;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quick-card {
  padding: 22px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafbfc;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.quick-label {
  color: #737373;
  font-size: 12px;
}

.quick-card h3 {
  margin: 14px 0 10px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.quick-card p {
  margin: 0;
  color: #626262;
  font-size: 14px;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 96px;
  padding: 26px 0 34px;
  border-top: 1px solid #e8e8e8;
  color: #707070;
  font-size: 14px;
  line-height: 1.5;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #080808;
  text-decoration: none;
}

.footer-brand .brand-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.footer-brand .wordmark {
  font-size: 20px;
}

.footer-note {
  margin: 0;
}

.footer-back {
  color: #333;
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  body {
    padding: 0 22px;
  }

  .site-header {
    justify-content: center;
    padding-top: 25px;
  }

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

  .breadcrumb {
    margin-top: 52px;
  }

  .content-section {
    margin-top: 48px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    margin-top: 64px;
    text-align: center;
  }
}

@media (max-width: 540px) {
  body {
    padding: 0 18px;
  }

  .audience {
    font-size: 18px;
  }

  .wordmark {
    font-size: 25px;
  }

  .brand-main {
    gap: 6px;
  }

  .brand-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }


  .page-intro p {
    font-size: 17px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 359px) {
  .site-header .wordmark {
    font-size: 22px;
  }

  .site-header .brand-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card,
  .quick-card {
    transition: none;
    transform: none;
  }
}
