:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #d8dee8;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --pink: #d3165f;
  --green: #12805c;
  --blue: #2563eb;
  --amber: #c27a13;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(211, 22, 95, 0.05), rgba(18, 128, 92, 0.04)),
    var(--surface-soft);
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 56px;
  border-bottom: 1px solid rgba(216, 222, 232, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.header-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--pink);
  font-size: 20px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  border-color: var(--line);
  background: #ffffff;
}

.site-nav a[aria-current="page"] {
  border-color: rgba(211, 22, 95, 0.28);
  color: var(--pink);
  background: #fff5f8;
}

.home-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.home-button:hover {
  border-color: rgba(211, 22, 95, 0.32);
  color: var(--pink);
}

main {
  display: grid;
  gap: 34px;
  padding-bottom: 48px;
}

.home-page main {
  gap: 0;
  padding-bottom: 40px;
}

.home-section {
  width: min(1180px, calc(100vw - 56px));
  display: grid;
  gap: 14px;
  margin-inline: auto;
  padding: 18px 0 8px;
  border-bottom: 1px solid rgba(216, 222, 232, 0.75);
}

.intro-copy {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: none;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(216, 222, 232, 0.75);
}

.hero-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.hero-brand .brand-mark {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.hero-brand h1,
.hero-brand small {
  display: block;
  line-height: 1.05;
}

.hero-brand h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 950;
}

.hero-brand small {
  margin-top: 5px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 950;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.eyebrow {
  color: var(--pink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 46px;
  line-height: 0.95;
}

.intro-copy p {
  max-width: none;
  margin-bottom: 0;
  color: #344054;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.25;
}

.content-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.content-section {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.library-panel {
  min-width: 0;
}

.library-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 27px;
  line-height: 1.05;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.filter-toolbar[hidden] {
  display: none;
}

.filter-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.filter-button-mode {
  border-color: rgba(211, 22, 95, 0.24);
  color: #be185d;
  background: #fff5f8;
}

.filter-button-mode[data-filter="__favorites"] {
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
  background: #eef4ff;
}

.filter-button.is-active {
  border-color: rgba(211, 22, 95, 0.32);
  color: #ffffff;
  background: var(--pink);
}

.filter-button-mode.is-active {
  border-color: #172033;
  color: #ffffff;
  background: #172033;
}

.filter-button-mode[data-filter="__favorites"].is-active {
  border-color: var(--blue);
  background: var(--blue);
}

.favorite-page {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.favorite-page-head,
.favorite-editor,
.favorite-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.favorite-page-head h3,
.favorite-subhead h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.12;
}

.favorite-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.favorite-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.favorite-tab small {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.favorite-tab.is-active {
  border-color: rgba(211, 22, 95, 0.35);
  color: var(--pink);
  background: #fff5f8;
}

.favorite-name-field {
  min-width: min(360px, 100%);
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 950;
}

.favorite-name-field input {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
}

.favorite-name-field input:focus {
  border-color: rgba(211, 22, 95, 0.45);
  outline: 3px solid rgba(211, 22, 95, 0.14);
}

.favorite-board,
.favorite-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 12px;
}

.favorite-qr-tile,
.favorite-add-tile,
.favorite-candidate {
  min-height: 278px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.favorite-add-tile {
  place-items: center;
  border-style: dashed;
  color: var(--pink);
  background: #fff8fb;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.favorite-add-tile span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(211, 22, 95, 0.26);
  border-radius: 999px;
  background: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.favorite-qr-tile strong,
.favorite-candidate strong,
.favorite-add-tile strong {
  color: #172033;
  font-size: 16px;
  line-height: 1.25;
}

.favorite-qr-tile img {
  width: min(138px, 100%);
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.favorite-qr-tile p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.favorite-tile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.favorite-qr-tile .content-action,
.favorite-candidate .content-action {
  min-height: 38px;
  min-width: 84px;
  padding: 0 12px;
  font-size: 13px;
}

.favorite-picker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.favorite-empty-text {
  margin: 0;
  color: #667085;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
}

.favorite-candidate {
  min-height: 226px;
  align-content: space-between;
}

.favorite-candidate span {
  display: block;
  margin-bottom: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.favorite-candidate-art {
  width: 100%;
  min-height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.favorite-candidate-art img {
  max-height: 92px;
  object-fit: contain;
}

.danger-button {
  border-color: rgba(190, 24, 93, 0.28);
  color: #be185d;
}

.danger-button:hover {
  border-color: rgba(190, 24, 93, 0.45);
  color: #be185d;
}

.content-count {
  min-height: 22px;
  margin: 0;
  color: #526070;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.content-card {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
  perspective: 1200px;
}

.content-card.is-muted {
  background: #fbfcfd;
}

.content-card-inner {
  position: relative;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.48s ease;
}

.content-card.is-flipped .content-card-inner {
  transform: rotateY(180deg);
}

.content-card-face {
  min-height: inherit;
  backface-visibility: hidden;
}

.content-card-front {
  display: grid;
  grid-template-rows: 164px 1fr;
}

.content-card-back {
  position: absolute;
  inset: 0;
  overflow: auto;
  transform: rotateY(180deg);
  background: #ffffff;
}

.content-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #e5f7ff, #eefaf2);
}

.content-card[data-accent="green"] .content-art {
  background: linear-gradient(180deg, #e4faf0, #f7fbff);
}

.content-card[data-accent="blue"] .content-art {
  background: linear-gradient(180deg, #e7f0ff, #f9fbff);
}

.content-card[data-accent="amber"] .content-art {
  background: linear-gradient(180deg, #fff6df, #f9fbff);
}

.content-art img {
  max-width: 92%;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 12px 9px rgba(23, 32, 51, 0.18));
}

.content-placeholder {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  color: #344054;
  background: rgba(255, 255, 255, 0.76);
  font-size: 30px;
  font-weight: 950;
}

.content-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-type,
.content-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.content-type {
  color: #0f766e;
  background: #dff8ee;
}

.content-status {
  color: #7c2d12;
  background: #fff1dc;
}

.content-status.is-live {
  color: #be185d;
  background: #ffe4ef;
}

.content-body h3 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.16;
}

.content-body p {
  margin-bottom: 0;
  color: #526070;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.content-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-tags li {
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #667085;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.content-action {
  width: fit-content;
  min-width: 92px;
  color: #ffffff;
  background: #172033;
}

.qr-card-action {
  border: 1px solid var(--line);
  color: #172033;
  background: #ffffff;
}

.qr-card-action:hover {
  border-color: rgba(211, 22, 95, 0.32);
  color: var(--pink);
}

.qr-card-panel {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff7fb, #f7fbff);
}

.content-card[data-accent="green"] .qr-card-panel {
  background: linear-gradient(180deg, #f0fff8, #f8fbff);
}

.content-card[data-accent="blue"] .qr-card-panel {
  background: linear-gradient(180deg, #f1f6ff, #fbfdff);
}

.content-card[data-accent="amber"] .qr-card-panel {
  background: linear-gradient(180deg, #fff9e8, #fbfdff);
}

.qr-card-panel h3 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  line-height: 1.16;
}

.qr-card-image {
  width: clamp(138px, 54%, 178px);
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.12);
}

.qr-card-url {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: #526070;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.qr-card-notice {
  max-width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  color: #344054;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.qr-card-actions {
  justify-content: center;
  margin-top: 2px;
}

.content-action.is-disabled {
  color: #667085;
  background: #e9eef5;
}

.direction-section {
  padding-top: 8px;
}

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

.direction-grid div,
.noscript-list {
  min-height: 134px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.direction-grid strong,
.direction-grid span {
  display: block;
}

.direction-grid strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.direction-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.noscript-list {
  display: grid;
  gap: 10px;
}

.noscript-list a {
  font-weight: 900;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 20px 36px;
  border-top: 1px solid rgba(216, 222, 232, 0.8);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  background: #ffffff;
}

.footer-links {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.footer-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  text-decoration: none;
}

.footer-links a:hover {
  border-color: rgba(211, 22, 95, 0.3);
  color: var(--pink);
}

.footer-copyright {
  color: #8a95a5;
  font-size: 13px;
  font-weight: 850;
}

.qr-modal,
.class-access-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.qr-modal.is-hidden,
.class-access-modal.is-hidden {
  display: none;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.48);
}

.qr-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.class-access-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.qr-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.qr-modal-head h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.15;
}

.qr-modal-image {
  width: min(260px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-modal-url {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  color: #526070;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

body.qr-modal-open,
body.class-access-open {
  overflow: hidden;
}

.class-access-notice {
  margin-bottom: 0;
  color: #344054;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.7;
}

.class-access-notice a {
  color: var(--pink);
  font-weight: 950;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.class-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-page {
  width: min(1040px, calc(100% - 56px));
  margin-inline: auto;
  padding: 32px 0 56px;
}

.info-hero {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
}

.info-hero h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.08;
}

.info-hero p {
  max-width: 820px;
  margin-bottom: 0;
  color: #475467;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.65;
}

.info-updated {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 999px;
  color: #526070;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.info-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 18px;
}

.info-summary article {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.info-summary strong {
  color: #172033;
  font-size: 17px;
  line-height: 1.25;
}

.info-summary span {
  color: #526070;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.info-content {
  display: grid;
  gap: 12px;
}

.info-block {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.info-block-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.info-block-head span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--pink);
  font-size: 13px;
  font-weight: 950;
}

.info-block h2,
.info-block-head h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.2;
}

.info-block p {
  max-width: 820px;
  margin-bottom: 0;
  color: #526070;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.info-block a {
  color: var(--pink);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 222, 232, 0.78);
}

.info-list dt {
  color: #344054;
  font-size: 14px;
  font-weight: 950;
}

.info-list dd {
  margin: 0;
  color: #526070;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.info-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 24px;
}

@media (max-width: 980px) {
  .site-header {
    padding-inline: 24px;
  }

  .home-section {
    width: min(760px, calc(100vw - 48px));
    gap: 14px;
    padding-top: 24px;
  }

  .intro-copy {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
  }

  .intro-copy p {
    grid-column: 1 / -1;
  }

  .hero-actions {
    justify-content: flex-end;
  }

  h1 {
    font-size: 44px;
  }

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

}

@media (max-width: 720px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 14px 18px;
  }

  .header-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .home-section {
    width: calc(100vw - 36px);
    gap: 13px;
    padding-top: 14px;
  }

  .intro-copy {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 10px;
  }

  .hero-brand .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .hero-brand h1 {
    font-size: 26px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  h1 {
    font-size: 40px;
  }

  .intro-copy p {
    font-size: 15px;
  }

  .library-top {
    display: grid;
    gap: 4px;
  }

  .favorite-page-head,
  .favorite-editor {
    display: grid;
    gap: 10px;
  }

  .favorite-page-head .home-button,
  .favorite-editor .home-button {
    width: fit-content;
  }

  .favorite-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .favorite-tab {
    flex: 0 0 auto;
  }

  .favorite-board,
  .favorite-picker-grid {
    grid-template-columns: 1fr;
  }

  .content-count {
    margin: 0;
    white-space: normal;
  }

  .filter-toolbar {
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding: 9px;
    scrollbar-width: thin;
  }

  .filter-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .content-grid,
  .direction-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .content-card {
    min-height: 340px;
  }

  .content-card-front {
    grid-template-rows: 142px 1fr;
  }

  .site-footer {
    padding-inline: 18px;
  }

  .info-page {
    width: calc(100% - 36px);
    padding-top: 22px;
  }

  .info-summary {
    grid-template-columns: 1fr;
  }

  .info-hero h1 {
    font-size: 34px;
  }

  .info-hero p,
  .info-block p {
    font-size: 15px;
  }

  .info-block {
    padding: 18px;
  }

  .info-block-head {
    align-items: start;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .home-section {
    width: min(calc(100vw - 36px), 354px);
  }
}
