:root {
  color-scheme: light;
  --bg: #f4f0e8;
  --paper: #fffdf8;
  --ink: #151414;
  --muted: #635f58;
  --soft: #ece5d8;
  --line: rgba(21, 20, 20, 0.13);
  --line-strong: rgba(21, 20, 20, 0.24);
  --crimson: #8e1730;
  --teal: #0c6158;
  --gold: #bd8438;
  --blue: #315d7b;
  --shadow: 0 24px 70px rgba(38, 32, 24, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 72% 12%, rgba(189, 132, 56, 0.14), transparent 34%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 44%, #f7f6f1 100%);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, #141414 0%, var(--crimson) 52%, var(--gold) 100%);
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(142, 23, 48, 0.18);
}

.brand strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(62px, auto);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.nav a {
  min-width: 66px;
  min-height: 36px;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--muted);
  text-align: center;
}

.nav a:hover {
  background: rgba(21, 20, 20, 0.06);
  color: var(--ink);
}

.nav a.is-active {
  background: #151414;
  color: #fffdf8;
}

.view {
  display: none;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 142px);
  margin: 0 auto;
  padding: 62px 0 70px;
}

.view.is-active {
  display: block;
}

.view-home {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: auto;
  overflow: hidden;
  padding: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.view-home::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(251, 248, 241, 0.92) 0%, rgba(251, 248, 241, 0.78) 46%, rgba(251, 248, 241, 0.24) 76%, transparent),
    linear-gradient(180deg, transparent 0%, rgba(244, 240, 232, 0.96) 100%);
  content: "";
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(360px, 0.44fr);
  grid-template-rows: minmax(390px, auto) auto;
  gap: 34px 46px;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 142px);
  margin: 0 auto;
  padding: 42px 0 50px;
  align-content: center;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--crimson);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

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

h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.02;
}

h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 30px;
  line-height: 1.16;
}

h3 {
  font-size: 18px;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.78;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 26px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 17px;
  color: var(--ink);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  border-color: rgba(142, 23, 48, 0.78);
  background: linear-gradient(135deg, var(--crimson), var(--gold));
  color: #fffdf8;
  box-shadow: 0 18px 42px rgba(142, 23, 48, 0.24);
}

.button.primary::after {
  position: absolute;
  inset: -70% auto -70% -54%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(18deg);
  animation: satin-sweep 4.8s ease-in-out infinite;
  content: "";
  pointer-events: none;
}

.button.secondary {
  background: rgba(255, 253, 248, 0.72);
}

.button.secondary:hover {
  border-color: rgba(142, 23, 48, 0.28);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 28px rgba(38, 32, 24, 0.1);
}

.home-announcement {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 48px));
  min-height: 52px;
  margin: 0 auto;
  padding: 12px 16px;
  border: 1px solid rgba(142, 23, 48, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(142, 23, 48, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(248, 240, 226, 0.82)),
    var(--paper);
  box-shadow: 0 12px 34px rgba(38, 32, 24, 0.1);
}

.home-announcement .tag,
.tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(189, 132, 56, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(189, 132, 56, 0.1);
  color: #7b4d13;
  font-size: 12px;
  font-weight: 800;
}

.home-announcement h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.home-announcement p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.studio-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 430px;
  align-self: center;
}

.studio-visual::before,
.studio-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.studio-visual::before {
  inset: 12% 0 8% 6%;
  border: 1px solid rgba(21, 20, 20, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.72), rgba(255, 253, 248, 0.16)),
    linear-gradient(180deg, rgba(189, 132, 56, 0.13), rgba(142, 23, 48, 0.07));
  box-shadow: 0 28px 84px rgba(38, 32, 24, 0.12);
}

.studio-visual::after {
  inset: 27% 13% 24% 24%;
  border: 1px solid rgba(255, 253, 248, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 253, 248, 0.86), rgba(255, 253, 248, 0.2)),
    linear-gradient(135deg, rgba(12, 97, 88, 0.08), rgba(142, 23, 48, 0.1));
}

.studio-plate {
  position: absolute;
  left: 18%;
  top: 18%;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: min(340px, 72%);
  border: 1px solid rgba(21, 20, 20, 0.14);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 24px 70px rgba(38, 32, 24, 0.15);
}

.studio-plate span {
  color: var(--crimson);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.studio-plate strong {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 34px;
  line-height: 1;
}

.service-chip {
  position: absolute;
  z-index: 3;
  min-height: 34px;
  border: 1px solid rgba(21, 20, 20, 0.13);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(38, 32, 24, 0.11);
}

.service-chip-one {
  right: 6%;
  top: 31%;
}

.service-chip-two {
  left: 9%;
  bottom: 23%;
}

.service-chip-three {
  right: 12%;
  bottom: 16%;
}

.home-hub {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 0;
}

.hub-card {
  display: grid;
  min-height: 126px;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 12px 34px rgba(38, 32, 24, 0.09);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(142, 23, 48, 0.2);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 42px rgba(38, 32, 24, 0.13);
}

.hub-card span {
  color: var(--crimson);
  font-size: 12px;
  font-weight: 800;
}

.hub-card strong {
  font-size: 17px;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.page-head h1 {
  margin-bottom: 0;
}

.compact-head {
  display: block;
}

.notice-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.notice-main,
.notice-list,
.product-card,
.plan-card,
.preference-card,
.account-card,
.purchase-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.82)),
    var(--paper);
  box-shadow: var(--shadow);
}

.notice-main {
  min-height: 420px;
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(142, 23, 48, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(248, 240, 226, 0.9));
}

.notice-main h2 {
  margin: 18px 0 14px;
  font-size: 40px;
}

.notice-main p,
.product-card p,
.plan-card p,
.preference-card p,
.account-card p,
.purchase-card p {
  color: var(--muted);
  line-height: 1.68;
}

.notice-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.notice-item {
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-item time {
  color: var(--crimson);
  font-size: 12px;
  font-weight: 800;
}

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

.product-card {
  display: grid;
  min-height: 430px;
  overflow: hidden;
}

.product-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.72), rgba(255, 253, 248, 0.16)),
    linear-gradient(160deg, rgba(189, 132, 56, 0.18), rgba(142, 23, 48, 0.08));
}

.product-media::before,
.product-media::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.product-media::before {
  inset: 28px;
  border: 1px solid rgba(21, 20, 20, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(255, 253, 248, 0.34)),
    linear-gradient(135deg, rgba(12, 97, 88, 0.08), rgba(189, 132, 56, 0.11));
}

.product-media::after {
  right: 32px;
  bottom: 28px;
  width: 112px;
  height: 6px;
  border-radius: 999px;
  background: rgba(21, 20, 20, 0.18);
}

.product-media span {
  position: absolute;
  left: 34px;
  bottom: 34px;
  z-index: 1;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.product-media-icyenglish {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.7), rgba(255, 253, 248, 0.14)),
    linear-gradient(160deg, rgba(49, 93, 123, 0.18), rgba(12, 97, 88, 0.09));
}

.product-media-account {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.72), rgba(255, 253, 248, 0.16)),
    linear-gradient(160deg, rgba(142, 23, 48, 0.14), rgba(21, 20, 20, 0.08));
}

.product-body,
.plan-card,
.preference-card,
.account-card,
.purchase-card {
  padding: 24px;
}

.product-body {
  display: grid;
  align-content: start;
  gap: 14px;
}

.product-body h2,
.plan-card h2,
.purchase-card h2 {
  margin-bottom: 0;
}

.subscription-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}

.purchase-card {
  overflow: hidden;
}

.purchase-card img {
  display: block;
  width: calc(100% + 48px);
  max-height: 300px;
  margin: 24px -24px -24px;
  object-fit: cover;
  object-position: top center;
}

.plan-stack {
  display: grid;
  gap: 14px;
}

.plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.plan-card .button {
  white-space: nowrap;
}

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

.preference-card {
  display: grid;
  gap: 18px;
}

.toggle-row,
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #151414;
}

.switch::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fffdf8;
  content: "";
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 20px;
}

.account-card.hero-account {
  background:
    linear-gradient(145deg, rgba(49, 93, 123, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(236, 229, 216, 0.72));
}

.logic-list {
  display: grid;
  gap: 12px;
}

.logic-list .account-card {
  box-shadow: 0 14px 40px rgba(38, 32, 24, 0.11);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 26px 34px;
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
}

@keyframes satin-sweep {
  0%,
  52% {
    transform: translateX(0) rotate(18deg);
    opacity: 0;
  }
  64% {
    opacity: 1;
  }
  100% {
    transform: translateX(420%) rotate(18deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button.primary::after,
  .hub-card {
    animation: none;
    transition: none;
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 14px;
  }

  .nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(64px, max-content);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav a {
    min-width: 58px;
    white-space: nowrap;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero-shell,
  .notice-board,
  .subscription-layout,
  .account-layout,
  .product-grid,
  .preference-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
    padding: 30px 0 30px;
    gap: 14px;
  }

  .hero-copy,
  .studio-visual,
  .home-hub {
    grid-column: auto;
    grid-row: auto;
  }

  .home-announcement {
    grid-template-columns: auto minmax(0, 1fr);
    width: min(100% - 28px, 720px);
    margin-top: 0;
  }

  .home-announcement h2,
  .home-announcement p {
    grid-column: 1 / -1;
  }

  .home-announcement h2 {
    white-space: normal;
  }

  .studio-visual {
    min-height: 270px;
  }

  .view {
    width: min(100% - 28px, 720px);
    padding: 28px 0 44px;
  }

  h1 {
    font-size: clamp(34px, 9vw, 50px);
  }

  .lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .home-announcement {
    padding: 16px;
  }

  .home-announcement h2 {
    margin: 12px 0 8px;
    font-size: 24px;
  }

  .home-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-card {
    min-height: 92px;
    padding: 13px;
  }

  .studio-plate {
    left: 12%;
    top: 18%;
    width: min(300px, 76%);
    padding: 20px;
  }

  .studio-plate strong {
    font-size: 28px;
  }

  .page-head {
    margin-bottom: 18px;
  }

  .product-card {
    min-height: auto;
  }

  .product-media {
    width: 100%;
    height: 168px;
  }

  .plan-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav {
    grid-template-columns: none;
  }

  .topbar,
  .footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .footer {
    display: grid;
  }

  .product-card {
    min-height: auto;
  }

  .studio-visual {
    min-height: 220px;
  }

  .home-hub {
    gap: 10px;
  }

  .hub-card strong {
    font-size: 15px;
  }
}
