/* DESIGN_VARIANCE: 6; MOTION_INTENSITY: 2; VISUAL_DENSITY: 3 */

:root {
  color-scheme: light;
  --page: #fff8ea;
  --paper: #fffdf8;
  --ink: #21473b;
  --ink-soft: #5f7169;
  --line: #31564a;
  --line-soft: #d7e1da;
  --accent: #f17b43;
  --accent-strong: #c1491e;
  --action-ink: #173a31;
  --mint: #e5f3e8;
  --sky: #e8f2f8;
  --yellow: #fff0b5;
  --peach: #ffe5d9;
  --shadow: 5px 6px 0 rgba(33, 71, 59, 0.13);
  --radius: 22px;
  --font-rounded: ui-rounded, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background-color: var(--page);
  background-image: radial-gradient(rgba(49, 86, 74, 0.13) 1px, transparent 1.2px);
  background-position: 0 0;
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-rounded);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
}

button {
  border: 0;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.page-shell {
  min-height: 100dvh;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.preview-notice {
  border-bottom: 1px dashed rgba(49, 86, 74, 0.58);
  background: var(--yellow);
  color: var(--action-ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
}

.preview-notice .container {
  padding-block: 8px;
}

.topbar {
  border-bottom: 1px dashed rgba(49, 86, 74, 0.48);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 50px;
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.77fr);
  gap: clamp(46px, 7vw, 92px);
  align-items: center;
  padding-block: 66px 82px;
}

.hero-copy {
  min-width: 0;
}

.kicker,
.footer-eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.15em;
}

.kicker::before {
  content: "";
  width: 27px;
  height: 3px;
  display: inline-block;
  margin: 0 9px 3px 0;
  border-radius: 999px;
  background: var(--accent);
  transform: rotate(-3deg);
}

.hero h1 {
  margin: 12px 0 0;
  font-size: clamp(64px, 7.7vw, 102px);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero h1 span {
  color: var(--accent);
  -webkit-text-stroke: 1px var(--accent-strong);
  text-shadow: 3px 4px 0 rgba(193, 73, 30, 0.11);
}

.hero-lead {
  max-width: 31em;
  margin: 26px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 730;
  line-height: 1.8;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.hero-note::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid var(--line);
  border-radius: 48% 52% 45% 55%;
  background: var(--yellow);
  transform: rotate(10deg);
}

.hero-visual {
  position: relative;
  min-height: 424px;
  display: grid;
  place-content: center;
  overflow: hidden;
  border: 2px dashed var(--line);
  border-radius: 43% 57% 46% 54% / 51% 43% 57% 49%;
  background: var(--mint);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: center;
  transform: rotate(1.15deg);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border: 2px solid var(--line);
  border-radius: 50%;
  opacity: 0.72;
}

.hero-visual::before {
  width: 122px;
  height: 122px;
  top: -30px;
  right: -18px;
  background: var(--yellow);
}

.hero-visual::after {
  width: 84px;
  height: 84px;
  bottom: 27px;
  left: -28px;
  background: var(--peach);
}

.hero-visual span,
.hero-visual small {
  position: relative;
  z-index: 1;
}

.hero-visual span {
  font-size: 23px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.hero-visual small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.resources-section {
  padding-bottom: 104px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-index {
  width: 44px;
  height: 41px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 45% 55% 48% 52%;
  background: var(--accent);
  color: var(--action-ink);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 2px 3px 0 rgba(33, 71, 59, 0.18);
  transform: rotate(-5deg);
}

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

.resource-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 24px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 24px 20px 25px 21px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.resource-card:nth-child(even) {
  border-radius: 20px 25px 21px 24px;
}

.resource-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 25px 26px 22px;
}

.resource-heading-copy {
  min-width: 0;
}

.resource-category {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px 880px 999px 900px;
  background: var(--yellow);
  color: var(--action-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.resource-card:nth-child(2) .resource-category,
.resource-card:nth-child(4) .resource-category {
  background: var(--peach);
}

.resource-title {
  margin: 13px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 2.8vw, 31px);
  font-weight: 950;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.resource-title-link {
  text-decoration: none;
}

.resource-title-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.resource-description {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.68;
}

.resource-detail-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 5px;
  white-space: nowrap;
}

.resource-detail-link:hover {
  color: var(--accent-strong);
}

.media-placeholder {
  position: relative;
  display: grid;
  place-content: center;
  overflow: hidden;
  border: 0;
  border-block: 2px dashed var(--line);
  background: var(--mint);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.resource-card:nth-child(2) .media-placeholder {
  background: var(--sky);
}

.resource-card:nth-child(3) .media-placeholder {
  background: var(--yellow);
}

.resource-card:nth-child(4) .media-placeholder {
  background: var(--peach);
}

.resource-cover {
  min-height: 252px;
  overflow: hidden;
  border-block: 2px dashed var(--line);
  background: var(--mint);
  text-decoration: none;
}

.resource-cover:not(.media-placeholder) {
  display: block;
}

.resource-cover-image {
  width: 100%;
  height: 252px;
  display: block;
  object-fit: cover;
}

.resource-cover-mobile,
.resource-cover-type {
  display: none;
}

.resource-cover-mobile-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.media-placeholder::before,
.media-placeholder::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(49, 86, 74, 0.72);
  border-radius: 50%;
}

.media-placeholder::before {
  width: 94px;
  height: 94px;
  top: -38px;
  right: 11%;
}

.media-placeholder::after {
  width: 64px;
  height: 64px;
  bottom: -25px;
  left: 9%;
}

.media-placeholder-label,
.media-placeholder small {
  position: relative;
  z-index: 1;
}

.media-placeholder-label {
  max-width: calc(100% - 48px);
  justify-self: center;
  padding: 9px 14px;
  border: 2px solid var(--line);
  border-radius: 13px 10px 12px 11px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 3px 4px 0 rgba(33, 71, 59, 0.13);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  transform: rotate(-1deg);
}

.media-placeholder small {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.resource-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 23px 26px 22px;
}

.resource-meta-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.resource-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.resource-tag-list li {
  padding: 5px 9px;
  border: 1px dashed var(--line);
  border-radius: 9px 11px 8px 10px;
  background: var(--page);
  color: var(--action-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.resource-audience {
  max-width: 15em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  text-align: right;
}

.resource-card-footer {
  margin-top: auto;
  padding: 0 26px 27px;
}

.resource-action,
.copy-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid var(--line);
  border-radius: 15px 12px 16px 13px;
  background: var(--accent);
  box-shadow: 3px 4px 0 var(--line);
  color: var(--action-ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, transform 100ms ease, box-shadow 100ms ease;
}

.resource-action {
  width: 100%;
}

.resource-action-mobile {
  display: none;
}

.resource-action:hover,
.copy-button:hover {
  background: #ff925d;
}

.resource-action:active,
.copy-button:active {
  box-shadow: 1px 2px 0 var(--line);
  transform: translate(2px, 2px);
}

.support-section {
  padding-block: 84px 88px;
  border-block: 2px dashed var(--line);
  background: var(--yellow);
}

.support-inner {
  position: relative;
}

.section-heading-light .section-index {
  background: var(--paper);
}

.support-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-list li {
  display: grid;
  grid-template-columns: 51px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  padding: 23px 24px;
  border: 2px solid var(--line);
  border-radius: 19px 23px 20px 22px;
  background: var(--paper);
  box-shadow: 4px 5px 0 rgba(33, 71, 59, 0.12);
}

.support-list li:nth-child(even) {
  border-radius: 23px 19px 22px 20px;
}

.support-list li > span {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--line);
  border-radius: 48% 52% 44% 56%;
  background: var(--mint);
  font-size: 12px;
  font-weight: 950;
  transform: rotate(-4deg);
}

.support-list li:nth-child(2) > span,
.support-list li:nth-child(4) > span {
  background: var(--peach);
  transform: rotate(4deg);
}

.support-list h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.3;
}

.support-list p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
}

.support-note {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.footer {
  padding-block: 62px 28px;
  background: var(--ink);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 72px;
  align-items: end;
}

.footer-eyebrow {
  color: #ffab80;
}

.footer h2 {
  margin: 7px 0 0;
  color: var(--paper);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.footer p {
  max-width: 42em;
  margin: 13px 0 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: 14px;
  font-weight: 620;
}

.usage-note {
  padding: 20px 22px;
  border: 1px dashed rgba(255, 253, 248, 0.42);
  border-radius: 16px 20px 15px 19px;
}

.usage-note p:first-child {
  margin-top: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px dashed rgba(255, 253, 248, 0.3);
  color: rgba(255, 253, 248, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.footer-bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-block: -13px;
  color: var(--paper);
  text-underline-offset: 4px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 30;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 17px;
  border: 2px solid var(--paper);
  border-radius: 13px 11px 14px 12px;
  background: var(--ink);
  box-shadow: 3px 4px 0 rgba(33, 71, 59, 0.18);
  color: var(--paper);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.state-message {
  grid-column: 1 / -1;
  padding: 34px 24px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.state-message h3,
.state-message p {
  margin: 0;
}

.state-message p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.skeleton-card {
  min-height: 632px;
  border: 2px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.68) 50%, transparent 65%)
      0 0 / 220% 100%,
    #f1eadb;
  animation: skeleton-sweep 1.5s ease-in-out infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes skeleton-sweep {
  to {
    background-position: -220% 0, 0 0;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 38px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .resource-card-body {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .resource-audience {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 767px) {
  /* Mobile catalog: DESIGN_VARIANCE 4; MOTION_INTENSITY 1; VISUAL_DENSITY 8. */
  .container {
    width: min(calc(100% - 24px), 620px);
  }

  .preview-notice {
    display: none;
  }

  .topbar-inner {
    min-height: 52px;
  }

  .brand-logo {
    height: 36px;
  }

  .hero {
    display: block;
    padding-block: 18px 15px;
  }

  .kicker,
  .hero-lead,
  .hero-note,
  .hero-visual {
    display: none;
  }

  .hero h1 {
    margin: 0;
    font-size: clamp(24px, 7.2vw, 30px);
    line-height: 1.08;
    letter-spacing: -0.055em;
    white-space: nowrap;
  }

  .hero h1 br {
    display: none;
  }

  .resources-section {
    padding-bottom: 28px;
  }

  .section-heading {
    gap: 0;
    margin-bottom: 9px;
  }

  .section-heading h2 {
    font-size: 19px;
    line-height: 1.3;
  }

  .section-index {
    display: none;
  }

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

  .resource-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "cover"
      "action";
    aspect-ratio: 1 / 1;
    border-radius: 14px 12px 15px 13px;
    box-shadow: 2px 3px 0 rgba(33, 71, 59, 0.13);
  }

  .resource-card:nth-child(even) {
    border-radius: 12px 15px 13px 14px;
  }

  .resource-card-heading {
    display: none;
  }

  .resource-category,
  .resource-description,
  .resource-detail-link,
  .resource-card-body {
    display: none;
  }

  .resource-card .resource-cover {
    display: none;
  }

  .resource-cover-mobile {
    grid-area: cover;
    min-height: 0;
    display: grid;
    overflow: hidden;
    border-bottom: 1.5px dashed var(--line);
    background: var(--mint);
  }

  .resource-card:nth-child(2) .resource-cover-mobile {
    background: var(--sky);
  }

  .resource-card:nth-child(3) .resource-cover-mobile {
    background: var(--yellow);
  }

  .resource-card:nth-child(4) .resource-cover-mobile {
    background: var(--peach);
  }

  .resource-cover-type {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 10px 11px;
    color: var(--ink);
    font-size: clamp(18px, 6.1vw, 25px);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.075em;
    text-align: left;
    text-shadow: 2px 2px 0 rgba(255, 253, 248, 0.72);
    text-wrap: balance;
    overflow-wrap: anywhere;
    transform: rotate(-1.2deg);
  }

  .resource-card:nth-child(2) .resource-cover-type {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: right;
    transform: rotate(1deg);
  }

  .resource-card:nth-child(3) .resource-cover-type {
    align-items: center;
    font-size: clamp(19px, 6.4vw, 26px);
    transform: rotate(-0.6deg);
  }

  .resource-card:nth-child(4) .resource-cover-type {
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    transform: rotate(0.8deg);
  }

  .resource-title {
    margin: 0;
    min-width: 0;
    font-size: 13px;
    line-height: 1.28;
    letter-spacing: -0.01em;
  }

  .resource-title-link {
    display: none;
  }

  .resource-card-footer {
    grid-area: action;
    display: block;
    margin: 0;
    padding: 8px;
  }

  .resource-action {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 11px 9px 12px 10px;
    box-shadow: 2px 2px 0 var(--line);
    font-size: 13px;
  }

  .resource-action-desktop {
    display: none;
  }

  .resource-action-mobile {
    display: inline;
  }

  .resource-action:active {
    box-shadow: 1px 1px 0 var(--line);
    transform: translate(1px, 1px);
  }

  .support-section {
    display: none;
  }

  .footer {
    padding-block: 27px 18px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .footer-eyebrow,
  .usage-note,
  .footer-bottom span {
    display: none;
  }

  .footer h2 {
    margin: 0;
    font-size: 23px;
  }

  .footer p {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.55;
  }

  .footer-bottom {
    justify-content: flex-end;
    margin-top: 10px;
  }

  .state-message {
    padding: 18px 14px;
  }

  .toast {
    bottom: calc(70px + env(safe-area-inset-bottom));
    z-index: 31;
  }

  .skeleton-card {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }
}

@media (max-width: 260px) {
  .container {
    width: calc(100% - 20px);
  }

  .hero h1 {
    font-size: 21px;
    letter-spacing: -0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
