:root {
  color-scheme: light;
  --paper: #fffaf4;
  --paper-deep: #fff3e7;
  --surface: #ffffff;
  --orange: #e98243;
  --orange-deep: #b85627;
  --orange-soft: #f8c994;
  --orange-pale: #fde6d1;
  --ink: #362a24;
  --muted: #75665e;
  --line: #ead8c9;
  --green: #78825b;
  --shadow: 0 24px 70px rgba(93, 54, 30, 0.11);
  --radius-lg: 32px;
  --radius-md: 20px;
  --page: min(1180px, calc(100vw - 48px));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 7%, rgba(248, 201, 148, 0.22), transparent 25rem),
    var(--paper);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:focus-visible {
  outline: 3px solid rgba(233, 130, 67, 0.42);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
}

.site-header__inner {
  width: var(--page);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid rgba(234, 216, 201, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(105, 63, 34, 0.12);
}

.brand small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  width: var(--page);
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
  align-items: center;
  gap: 36px;
  padding: 76px 0 88px;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 8.6em;
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: clamp(52px, 5.2vw, 78px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.hero__lead {
  max-width: 31em;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.text-link,
.inline-links a {
  color: var(--orange-deep);
  font-weight: 750;
  text-decoration: none;
}

.text-link span,
.inline-links span,
.contact__email span {
  display: inline-block;
  margin-left: 0.24em;
  transition: transform 180ms ease;
}

.text-link:hover span,
.inline-links a:hover span,
.contact__email:hover span {
  transform: translate(3px, -1px);
}

.availability {
  margin: 0;
  padding-left: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  border-left: 1px solid var(--line);
}

.hero__visual {
  position: relative;
  min-height: 510px;
  isolation: isolate;
}

.hero__notebook {
  position: absolute;
  z-index: -1;
  inset: 18px 10px 26px 56px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(234, 216, 201, 0.92);
  border-radius: 48px 48px 88px 48px;
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}

.hero__notebook::before {
  position: absolute;
  inset: 24px;
  content: "";
  border: 2px dashed rgba(210, 160, 116, 0.38);
  border-radius: 32px 32px 68px 32px;
}

.hero__notebook::after {
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 220px;
  height: 220px;
  content: "";
  background: var(--orange-pale);
  border-radius: 50%;
}

.hero__ring {
  position: absolute;
  left: -20px;
  width: 58px;
  height: 18px;
  border: 7px solid #dda762;
  border-radius: 999px;
  background: transparent;
}

.hero__ring--one { top: 120px; }
.hero__ring--two { top: 222px; }
.hero__ring--three { top: 324px; }

.hero__paw {
  position: absolute;
  top: 112px;
  right: 94px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  color: var(--orange-soft);
  font-size: 60px;
  line-height: 1;
  opacity: 0.85;
}

.hero__line {
  position: absolute;
  left: 90px;
  height: 4px;
  background: var(--orange-pale);
  border-radius: 99px;
}

.hero__line--one { top: 128px; width: 190px; }
.hero__line--two { top: 156px; width: 130px; }

.hero__pet {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(80, 50, 31, 0.14));
}

.hero__pet--cat {
  z-index: 2;
  top: 58px;
  right: 176px;
  width: min(56%, 330px);
}

.hero__pet--dog {
  z-index: 3;
  right: -20px;
  bottom: -18px;
  width: min(61%, 365px);
}

.intro-band {
  width: 100%;
  padding: 44px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: #fff9f3;
  background: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: clamp(18px, 2vw, 27px);
}

.intro-band p {
  margin: 0;
}

.intro-band p:last-child {
  color: #e8c7ab;
  text-align: right;
}

.features {
  width: var(--page);
  margin: 0 auto;
  padding: 132px 0 144px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 74px;
}

.section-heading h2,
.care-note h2,
.contact h2,
.legal-hero h1,
.status-page h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: clamp(40px, 4.2vw, 62px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 31em;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: 38px;
}

.feature {
  grid-column: 2 / span 5;
  min-height: 210px;
  padding: 36px 28px 34px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.feature--offset {
  grid-column: 8 / span 5;
  margin-top: 80px;
}

.feature--wide {
  grid-column: 1 / span 7;
}

.feature--last {
  grid-column: 6 / span 7;
  margin-top: 46px;
}

.feature__number {
  margin: 4px 0 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature h3 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.3;
}

.feature p:last-child {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
}

.care-note {
  width: var(--page);
  margin: 0 auto 118px;
  padding: clamp(44px, 7vw, 82px);
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 86px);
  background: var(--paper-deep);
  border: 1px solid rgba(234, 216, 201, 0.86);
  border-radius: var(--radius-lg);
}

.care-note__mark {
  position: relative;
  min-height: 160px;
  display: grid;
  place-items: center;
}

.care-note__mark::before,
.care-note__mark::after {
  position: absolute;
  content: "";
  border: 1px solid var(--orange-soft);
  border-radius: 50%;
}

.care-note__mark::before { width: 158px; height: 158px; }
.care-note__mark::after { width: 118px; height: 118px; }

.care-note__mark img {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  box-shadow: 0 14px 28px rgba(104, 61, 34, 0.14);
}

.care-note p {
  max-width: 38em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.inline-links {
  margin-top: 30px;
  display: flex;
  gap: 28px;
}

.contact {
  width: var(--page);
  margin: 0 auto;
  padding: 0 0 110px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px 70px;
}

.contact p {
  max-width: 36em;
  margin: 18px 0 0;
  color: var(--muted);
}

.contact__email {
  color: var(--orange-deep);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__status {
  grid-column: 1 / -1;
  margin: 16px 0 0 !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  min-height: 150px;
  padding: 36px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px 56px;
  color: #f9eee4;
  background: var(--ink);
  font-size: 14px;
}

.site-footer__brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.site-footer__brand strong {
  font-size: 18px;
}

.site-footer__brand span,
.site-footer__links,
.icp-link {
  color: #cdb9aa;
}

.site-footer__links {
  display: flex;
  gap: 24px;
}

.site-footer a:hover {
  color: #fff;
}

.icp-link {
  text-decoration: none;
  white-space: nowrap;
}

/* Legal and status pages */
.subpage-header .site-header__inner {
  min-height: 78px;
}

.legal-main,
.status-main {
  width: min(860px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 78px 0 120px;
}

.legal-hero {
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

.legal-hero p {
  margin: 18px 0 0;
  color: var(--muted);
}

.legal-language-nav {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 750;
}

.legal-language-nav a {
  color: var(--orange-deep);
}

.legal-document {
  padding-top: 58px;
}

.legal-document + .legal-document {
  margin-top: 78px;
  padding-top: 78px;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.2vw, 40px);
}

.legal-document__date {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.legal-document section + section {
  margin-top: 42px;
}

.legal-document h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.legal-document p {
  margin: 9px 0 0;
  color: #564942;
}

.status-page {
  min-height: calc(100vh - 228px);
  display: grid;
  align-content: center;
  padding: 40px 0 80px;
}

.status-page__icon {
  width: 92px;
  margin-bottom: 32px;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(104, 61, 34, 0.14);
}

.status-page p {
  max-width: 38em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.status-page__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}

.primary-link {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--orange-deep);
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
}

.primary-link[hidden] {
  display: none;
}

.quiet-link {
  color: var(--orange-deep);
  font-weight: 750;
}

.invite-code-note {
  min-height: 1.7em;
  font-size: 14px !important;
}

@media (max-width: 920px) {
  :root { --page: min(100% - 36px, 760px); }

  .site-nav { gap: 18px; }
  .site-nav a:nth-child(1),
  .site-nav a:nth-child(4) { display: none; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 62px 0 56px;
  }

  .hero__copy { max-width: 680px; }
  .hero__visual { min-height: 500px; }
  .hero__notebook { inset: 16px 5vw 24px 7vw; }
  .hero__pet--cat { right: 42%; width: 40%; }
  .hero__pet--dog { right: 4%; width: 45%; }

  .intro-band {
    padding-inline: 28px;
    flex-direction: column;
  }

  .intro-band p:last-child { text-align: left; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .feature { grid-column: 1 / span 6; }
  .feature--offset { grid-column: 7 / span 6; }
  .feature--wide { grid-column: 1 / span 8; }
  .feature--last { grid-column: 5 / span 8; }

  .care-note { grid-template-columns: 140px 1fr; }
  .care-note__mark::before { width: 132px; height: 132px; }
  .care-note__mark::after { width: 100px; height: 100px; }
  .care-note__mark img { width: 94px; }

  .contact { grid-template-columns: 1fr; align-items: start; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer__links { order: 3; grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --page: calc(100vw - 32px); }

  body { font-size: 15px; }
  .site-header__inner { min-height: 72px; }
  .brand { font-size: 18px; }
  .brand img { width: 38px; height: 38px; }
  .brand small { display: none; }
  .site-nav { gap: 14px; font-size: 12px; }

  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); }
  .hero__lead { margin-top: 24px; font-size: 16px; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .availability { padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }

  .hero__visual { min-height: 365px; margin-top: 6px; }
  .hero__notebook { inset: 10px 0 12px 12px; border-radius: 32px 32px 58px 32px; }
  .hero__notebook::before { inset: 16px; border-radius: 23px 23px 44px 23px; }
  .hero__ring { left: -28px; transform: scale(0.76); }
  .hero__ring--one { top: 82px; }
  .hero__ring--two { top: 157px; }
  .hero__ring--three { top: 232px; }
  .hero__line--one { left: 64px; top: 90px; width: 110px; }
  .hero__line--two { left: 64px; top: 112px; width: 78px; }
  .hero__pet--cat { top: 44px; right: 43%; width: 47%; }
  .hero__pet--dog { right: -5%; bottom: -14px; width: 58%; }

  .intro-band { font-size: 18px; }
  .features { padding: 90px 0 96px; }
  .section-heading { margin-bottom: 52px; }
  .section-heading h2,
  .care-note h2,
  .contact h2,
  .legal-hero h1,
  .status-page h1 { font-size: 39px; }

  .feature-list { display: block; }
  .feature,
  .feature--offset,
  .feature--wide,
  .feature--last {
    min-height: auto;
    margin: 0;
    padding: 28px 0 30px;
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .feature h3 { font-size: 24px; }

  .care-note {
    margin-bottom: 84px;
    padding: 42px 28px;
    grid-template-columns: 1fr;
    gap: 22px;
    border-radius: 24px;
  }

  .care-note__mark { min-height: 112px; justify-items: start; }
  .care-note__mark::before,
  .care-note__mark::after { left: 0; }
  .care-note__mark::before { width: 110px; height: 110px; }
  .care-note__mark::after { left: 16px; width: 78px; height: 78px; }
  .care-note__mark img { margin-left: 24px; width: 64px; border-radius: 16px; }
  .inline-links { flex-direction: column; gap: 12px; }
  .contact { padding-bottom: 80px; }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 42px;
  }

  .site-footer__brand { flex-direction: column; gap: 2px; }
  .site-footer__links { grid-column: auto; flex-wrap: wrap; gap: 12px 20px; }

  .legal-main,
  .status-main { width: calc(100vw - 32px); padding-top: 56px; }
  .legal-document { padding-top: 44px; }
  .legal-document + .legal-document { margin-top: 60px; padding-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
