:root {
  color-scheme: light;
  --ink: #2f2630;
  --muted: #766c75;
  --pink-grid: #fdadd8;
  --pink-line: #fcd3e6;
  --window-shadow: #fcdfb1;
  --link: #5a4bb7;
  --cta: #5150a9;
  --cta-hover: #41408f;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background-color: var(--pink-grid);
  background-image: url("../../assets/question/decor/bg-grid.png");
  background-repeat: repeat;
  background-size: 12px 12px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  background: transparent;
}

a {
  color: var(--link);
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover {
  color: #3f3489;
}

a:focus-visible {
  outline: 3px solid #7b4ce2;
  outline-offset: 3px;
  border-radius: 2px;
}

.article-page {
  display: flex;
  width: 100%;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  padding-top: max(32px, env(safe-area-inset-top));
}

.article-window {
  position: relative;
  width: min(calc(100% - 48px), 680px);
}

.article-window-panel {
  position: relative;
  isolation: isolate;
}

.article-window-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--window-shadow);
  border-radius: 12px;
  content: "";
  pointer-events: none;
  transform: translate(6px, 5px);
}

.article-titlebar {
  position: relative;
  z-index: 0;
  display: flex;
  width: 100%;
  height: 38px;
  align-items: flex-start;
  padding: 8px 16px 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  background: linear-gradient(
    90deg,
    #acb1fd 0%,
    #a696fc 30.258%,
    #9c97fc 47.596%,
    #97a9fc 74.185%,
    #ac9bfc 100%
  );
  border: 1px solid #000;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 1px 1px 0 #000, inset 3px 1px 0 #fffffd;
}

.article-content {
  position: relative;
  z-index: 1;
  margin-top: -10px;
  padding: 30px clamp(20px, 5vw, 48px) 40px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 12px;
  box-shadow: inset 3px 0 0 var(--pink-line);
}

.article-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid #d9d9d9;
}

.article-eyebrow {
  margin: 0 0 7px;
  color: #7a62ca;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  color: #00000e;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.03em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.article-body > p:first-child {
  margin-top: 28px;
}

.article-body section {
  margin-top: 38px;
  scroll-margin-top: 24px;
}

h2 {
  margin: 0 0 14px;
  color: #00000e;
  font-size: 18px;
  line-height: 1.5;
}

p,
li {
  font-size: 16px;
  line-height: 1.85;
}

p {
  margin: 18px 0 0;
}

ul,
ol {
  margin: 14px 0 0;
  padding-left: 1.45em;
}

li + li {
  margin-top: 10px;
}

.example-list {
  list-style: none;
  padding-left: 0;
}

.example-list li {
  padding: 0;
}

.article-cta {
  margin-top: 42px;
}

.article-cta p {
  margin-top: 10px;
}

.article-cta-button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  background: var(--cta);
  border-radius: 10px;
}

.article-cta-button:hover {
  color: #fff;
  background: var(--cta-hover);
}

@media (max-width: 560px) {
  .article-content {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 360px) {
  .article-content {
    padding-right: 17px;
    padding-left: 17px;
  }
}

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