:root {
  color-scheme: light;
  --paper: #f3ede2;
  --paper-light: #fffaf1;
  --sheet: #e2d6c6;
  --ink: #1d2922;
  --ink-soft: #526158;
  --line: #b9aa98;
  --line-strong: #7e776d;
  --green: #315643;
  --green-deep: #243d30;
  --sun: #e9c65c;
  --coral: #a84833;
  --focus: #1e5eff;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Noto Serif TC", "Songti TC", "STSong", "PMingLiU", ui-serif, serif;
  --header-height: 64px;
}

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

html {
  min-width: 320px;
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  display: inline-flex;
  min-height: 48px;
  padding: 10px 16px;
  align-items: center;
  background: var(--green-deep);
  color: #fffdf7;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 2;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
}

.site-header__inner {
  display: flex;
  min-height: calc(var(--header-height) - 1px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.08;
}

.brand__copy strong {
  font-size: 16px;
  letter-spacing: 0.015em;
}

.brand__copy strong span {
  font-weight: 500;
}

.brand__copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

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

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

.site-nav__primary {
  display: inline-flex;
  min-height: 48px;
  padding: 7px 12px 7px 16px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--green-deep);
  background: var(--green-deep);
  color: #fffdf7;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav__primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.site-nav__primary svg {
  width: 20px;
  height: 20px;
}

.site-nav__code {
  color: var(--sun);
  font-size: 14px;
  font-weight: 600;
}

.site-nav__rule {
  width: 1px;
  height: 28px;
  margin-inline: 6px;
  background: var(--line);
}

.site-nav__secondary {
  display: inline-flex;
  min-height: 48px;
  padding: 7px 10px;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav__secondary:hover {
  background: #eee4d6;
  color: var(--ink);
}

.site-nav__secondary small {
  font-size: 12px;
  font-weight: 600;
}

main {
  min-height: 0;
}

.launch {
  display: grid;
  max-width: 1440px;
  min-height: 535px;
  margin: 0 auto;
  padding: clamp(38px, 5.5vw, 76px) clamp(28px, 6vw, 96px) clamp(32px, 4vw, 56px);
  grid-template-columns: minmax(0, 0.83fr) minmax(500px, 1.17fr);
  align-items: center;
  gap: clamp(34px, 6vw, 92px);
}

.launch__copy {
  max-width: 570px;
}

.overline {
  display: flex;
  margin: 0 0 20px;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.overline__line {
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--coral);
}

.overline__index {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-block-start: 0;
}

h1 {
  max-width: 12.5ch;
  margin-bottom: 22px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.25vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

h1 em {
  display: inline;
  color: var(--green);
  font-style: normal;
}

.launch__lede {
  max-width: 37rem;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.75;
}

.launch__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
}

.button--primary {
  background: var(--coral);
  color: #fffdf7;
}

.button--primary:hover {
  background: #8f3e2c;
  transform: translateY(-1px);
}

.button--quiet {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button--quiet:hover {
  border-color: var(--ink);
  background: var(--paper-light);
}

.launch__note {
  display: flex;
  max-width: 34rem;
  margin: 28px 0 0;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.launch__note-mark {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  background: var(--sun);
  transform: rotate(45deg);
}

.workmat {
  min-width: 0;
  margin: 0;
}

.workmat__header {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.workmat__kicker {
  margin-bottom: 3px;
  color: var(--coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workmat h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.workmat__stamp {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transform: rotate(2deg);
}

.desk-sheet {
  position: relative;
  min-height: 378px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--sheet);
  box-shadow: 12px 14px 0 rgba(36, 61, 48, 0.14);
  isolation: isolate;
  transform: rotate(-1.25deg);
}

.desk-sheet__rule {
  position: absolute;
  z-index: -1;
  width: 60px;
  height: 1px;
  background: var(--coral);
  opacity: 0.68;
}

.desk-sheet__rule--one {
  top: 42px;
  left: 65px;
}

.desk-sheet__rule--two {
  right: 32px;
  bottom: 38px;
}

.material-card {
  position: absolute;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 5px 6px 0 rgba(36, 61, 48, 0.14);
}

.material-card__topline {
  display: flex;
  padding: 9px 11px 0;
  justify-content: space-between;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.material-card__label {
  margin: 5px 11px 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.material-card--picture {
  top: 34px;
  left: 54px;
  width: 44%;
  padding-bottom: 0;
  transform: rotate(-4deg);
}

.picture-sketch {
  display: block;
  width: calc(100% - 22px);
  height: auto;
  margin: 9px 11px 0;
}

.material-card--toy {
  top: 34px;
  right: 24px;
  width: 27%;
  min-height: 160px;
  background: #f4e4c6;
  transform: rotate(5deg);
}

.toy-sketch {
  position: relative;
  width: 110px;
  height: 105px;
  margin: 10px auto 0;
}

.toy-sketch__ring {
  position: absolute;
  top: 8px;
  left: 15px;
  width: 78px;
  height: 78px;
  border: 13px solid var(--coral);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.toy-sketch__body {
  position: absolute;
  right: 11px;
  bottom: 7px;
  width: 30px;
  height: 54px;
  border: 3px solid var(--ink);
  border-radius: 12px 12px 6px 6px;
  background: var(--green);
  transform: rotate(19deg);
}

.toy-sketch__dot {
  position: absolute;
  right: 15px;
  bottom: 52px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
}

.material-card--paper {
  right: 26px;
  bottom: 18px;
  width: 39%;
  min-height: 145px;
  padding-bottom: 6px;
  background: #fffdf7;
  transform: rotate(2.7deg);
}

.paper-prompt {
  margin: 12px 16px 4px;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}

.paper-prompt span {
  color: var(--coral);
  font-family: var(--font-body);
  font-size: 17px;
}

.paper-lines {
  display: grid;
  gap: 5px;
  margin: 12px 16px 0;
}

.paper-lines i {
  display: block;
  width: 84%;
  height: 1px;
  background: var(--line);
}

.paper-lines i:nth-child(2) {
  width: 66%;
}

.paper-lines i:nth-child(3) {
  width: 74%;
}

.desk-sheet__pencil {
  position: absolute;
  right: 27px;
  bottom: 26px;
  width: 15px;
  height: 152px;
  border: 1px solid var(--ink);
  background: var(--sun);
  box-shadow: 3px 4px 0 rgba(36, 61, 48, 0.15);
  transform: rotate(29deg);
}

.desk-sheet__pencil::before {
  position: absolute;
  top: -15px;
  left: -1px;
  width: 13px;
  height: 15px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  background: #e5d8c8;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
}

.desk-sheet__pencil i {
  position: absolute;
  top: 10px;
  right: 0;
  left: 0;
  height: 7px;
  border-block: 1px solid var(--ink);
  background: var(--coral);
}

.desk-sheet__arrow {
  position: absolute;
  top: 34px;
  right: 24px;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 32px;
  transform: rotate(-12deg);
}

.workmat figcaption {
  max-width: 45rem;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.workflow {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
}

.workflow__inner {
  display: grid;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(28px, 6vw, 96px);
  grid-template-columns: minmax(210px, 0.6fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.workflow__intro .overline {
  margin-bottom: 8px;
}

.workflow__intro h2 {
  max-width: 10ch;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 31px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.workflow__steps {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.workflow__steps li {
  display: grid;
  min-height: 84px;
  padding: 8px 20px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-content: center;
  gap: 12px;
  border-left: 1px solid var(--line);
}

.workflow__number {
  color: var(--coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.workflow__steps strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.workflow__steps p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px clamp(28px, 6vw, 96px) 28px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 1040px) {
  .site-header__inner,
  .launch,
  .workflow__inner,
  .site-footer {
    padding-inline: 28px;
  }

  .launch {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    gap: 36px;
  }

  .material-card--picture {
    left: 44px;
    width: 45%;
  }

  .material-card--toy {
    right: 20px;
    width: 28%;
  }

  .material-card--paper {
    right: 22px;
    width: 39%;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 60px;
  }

  .site-header__inner {
    padding-inline: 16px;
    gap: 12px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }

  .brand__copy small,
  .site-nav__code,
  .site-nav__rule,
  .site-nav__secondary {
    display: none;
  }

  .brand__copy strong {
    font-size: 15px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav__primary {
    padding-inline: 10px;
    gap: 5px;
    font-size: 15px;
  }

  .site-nav__primary svg {
    width: 18px;
    height: 18px;
  }

  .site-nav__secondary {
    min-width: 44px;
    min-height: 48px;
    padding-inline: 5px;
    justify-content: center;
    font-size: 0;
  }

  .site-nav__secondary small {
    font-size: 12px;
  }

  .launch {
    display: flex;
    min-height: 0;
    padding: 34px 20px 30px;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
  }

  .launch__copy {
    max-width: none;
  }

  .overline {
    margin-bottom: 14px;
  }

  h1 {
    max-width: 13.4ch;
    margin-bottom: 18px;
    font-size: clamp(37px, 11vw, 51px);
  }

  .launch__lede {
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.65;
  }

  .launch__note {
    margin-top: 20px;
  }

  .workmat__header {
    align-items: flex-start;
  }

  .workmat h2 {
    font-size: 29px;
  }

  .desk-sheet {
    min-height: 335px;
  }

  .material-card--picture {
    top: 28px;
    left: 22px;
    width: 52%;
  }

  .material-card--toy {
    top: 30px;
    right: 10px;
    width: 28%;
    min-height: 130px;
  }

  .toy-sketch {
    width: 80px;
    height: 76px;
    margin-top: 4px;
    transform: scale(0.78);
    transform-origin: center top;
  }

  .material-card--paper {
    right: 8px;
    bottom: 8px;
    width: 48%;
    min-height: 129px;
  }

  .paper-prompt {
    margin: 8px 12px 4px;
    font-size: 21px;
  }

  .paper-lines {
    margin: 8px 12px 0;
  }

  .material-card__topline {
    padding-inline: 8px;
    font-size: 12px;
  }

  .material-card__label {
    margin-inline: 8px;
    font-size: 17px;
  }

  .desk-sheet__pencil {
    right: 12px;
    bottom: 16px;
    height: 120px;
    transform: rotate(29deg) scale(0.78);
    transform-origin: bottom right;
  }

  .desk-sheet__arrow {
    top: 30px;
    right: 12px;
    font-size: 26px;
  }

  .workmat figcaption {
    margin-top: 12px;
    font-size: 15px;
  }

  .workflow__inner {
    display: block;
    padding: 26px 20px 20px;
  }

  .workflow__intro h2 {
    max-width: none;
    margin-bottom: 16px;
  }

  .workflow__steps {
    grid-template-columns: 1fr;
  }

  .workflow__steps li {
    min-height: 70px;
    padding: 12px 0;
    grid-template-columns: 38px minmax(0, 1fr);
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .workflow__steps li:last-child {
    border-bottom: 1px solid var(--line);
  }

  .workflow__steps p {
    margin-top: 3px;
  }

  .site-footer {
    display: block;
    padding: 18px 20px 28px;
  }

  .site-footer nav {
    margin-top: 12px;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 16px;
  }

  .site-header__inner {
    padding-inline: 10px;
  }

  .brand {
    gap: 7px;
  }

  .brand__mark {
    width: 28px;
    height: 28px;
    font-size: 19px;
  }

  .brand__copy strong {
    font-size: 14px;
  }

  .site-nav__primary {
    min-height: 48px;
    padding-inline: 8px;
    font-size: 14px;
  }

  .site-nav__secondary {
    min-width: 42px;
    padding-inline: 3px;
  }

  .launch {
    padding-inline: 16px;
  }

  .launch__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }

  .button {
    width: 100%;
    min-height: 52px;
    padding-inline: 10px;
    font-size: 16px;
  }

  .workmat__stamp {
    font-size: 12px;
  }

  .desk-sheet {
    min-height: 305px;
  }

  .material-card--picture {
    top: 28px;
    left: 22px;
    width: 52%;
  }

  .material-card--toy {
    top: 30px;
    right: 10px;
    width: 28%;
    min-height: 130px;
  }

  .material-card--paper {
    right: 8px;
    bottom: 8px;
    width: 48%;
    min-height: 118px;
  }

  .paper-prompt {
    font-size: 18px;
  }

  .desk-sheet__pencil {
    right: 4px;
    bottom: 12px;
    transform: rotate(29deg) scale(0.64);
  }

  .workflow__inner {
    padding-inline: 16px;
  }
}

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

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

@media (forced-colors: active) {
  .brand__mark,
  .site-nav__primary,
  .button--primary,
  .material-card,
  .desk-sheet {
    border: 1px solid CanvasText;
  }

  .site-nav__primary,
  .button--primary {
    background: ButtonFace;
    color: ButtonText;
  }
}

@media print {
  .site-header,
  .skip-link,
  .launch__actions,
  .site-footer nav {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
