:root {
  --ink: #183d36;
  --muted: #617570;
  --teal: #1b6957;
  --pale: #e6f0e9;
  --paper: #faf9f5;
  --line: #dce4dc;
  --error: #9f362d;
  font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: white;
  border: 1px solid var(--teal);
  border-radius: 10px;
  padding: 10px 18px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.5;
}
button.secondary,
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.danger {
  color: var(--error);
  background: #fff4f1;
  border-color: #e7bdb4;
}
button.small {
  padding: 6px 10px;
  font-size: 13px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px max(24px, calc((100vw - 1200px) / 2));
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand {
  text-decoration: none;
  font-size: 25px;
  font-weight: 750;
  white-space: nowrap;
}
.brand small {
  font-size: 11px;
  display: block;
  letter-spacing: 4px;
  padding-left: 29px;
  color: var(--muted);
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
nav a {
  text-decoration: none;
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 70px;
  min-height: 70vh;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.25;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 29px;
  line-height: 1.4;
}
h3 {
  font-size: 20px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 18px;
}
.muted,
small {
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 50px 0 76px;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
}
.hero-art {
  border-radius: 35% 35% 12px 12px;
  background: var(--pale);
  padding: 65px 34px 30px;
  position: relative;
}
.lesson-note {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 18px 45px #183d3610;
  transform: rotate(-3deg);
  border: 1px solid #fff;
}
.lesson-note strong {
  font-size: 23px;
}
.lesson-line {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 22px 0;
}
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pale);
  font-weight: 700;
}
.gift-tag {
  background: #f2ddb4;
  padding: 15px 20px;
  border-radius: 12px;
  margin-left: 50px;
  margin-top: 22px;
  transform: rotate(3deg);
}
section {
  margin-bottom: 64px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head p {
  max-width: 520px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 27px;
  min-width: 0;
}
.card.accent {
  background: var(--pale);
  border-color: #b8cfc0;
}
.card p {
  color: var(--muted);
}
.price {
  font-size: 42px;
  line-height: 1.3;
  margin: 22px 0;
}
.price small {
  font-size: 15px;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--pale);
  font-size: 12px;
  color: var(--teal);
}
.badge.warn {
  background: #fff0d3;
  color: #865621;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stack > * + * {
  margin-top: 16px;
}
.wide {
  width: 100%;
}
.empty {
  background: #f2f4ef;
  border: 1px dashed #c5d0c7;
  border-radius: 12px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}
.note {
  padding: 16px 20px;
  border-radius: 10px;
  background: #f5eddc;
  font-size: 14px;
  white-space: pre-line;
}
.error {
  color: var(--error);
  white-space: pre-line;
}
.success {
  color: var(--teal);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bbcbbf;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  margin: 5px 0 16px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  vertical-align: middle;
  accent-color: var(--teal);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 14px 0;
  font-weight: 400;
}
.check input {
  flex: none;
  margin-top: 6px;
}
form .error {
  margin: 12px 0;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #f0f4ef;
  font-weight: 600;
  white-space: nowrap;
}
td small {
  display: block;
  max-width: 240px;
  overflow-wrap: anywhere;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 25px;
}
.tabs button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.tabs button.active {
  background: var(--ink);
  color: white;
}
.page-title {
  font-size: 36px;
  margin: 10px 0;
}
.stat {
  font-size: 34px;
  font-weight: 650;
  margin: 4px 0;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 850px;
  line-height: 1.9;
}
.loading {
  padding: 60px;
  text-align: center;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(620px, calc(100vw - 30px));
  max-height: 90vh;
  padding: 35px;
  box-shadow: 0 30px 100px #102c3430;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #162f2a80;
  backdrop-filter: blur(3px);
}
.close {
  position: absolute;
  right: 12px;
  top: 9px;
  background: none;
  color: var(--muted);
  border: 0;
  font-size: 26px;
  padding: 0 8px;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 15px 24px;
  border-radius: 12px;
  max-width: 90vw;
  z-index: 5;
  box-shadow: 0 8px 40px #0002;
}
footer {
  border-top: 1px solid var(--line);
  max-width: 1200px;
  padding: 28px 24px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin: 14px 0 0;
  color: var(--muted);
}
video {
  width: 100%;
  margin-top: 20px;
  border-radius: 10px;
  background: #111;
}
code {
  overflow-wrap: anywhere;
  font-size: 12px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #c69135;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  header {
    padding: 14px 18px;
    align-items: flex-start;
  }
  .brand {
    font-size: 21px;
  }
  nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: end;
    max-width: 220px;
  }
  nav a {
    font-size: 12px;
  }
  nav button {
    padding: 6px 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 20px 0 45px;
  }
  .hero-art {
    max-width: 480px;
  }
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
  .section-head {
    display: block;
  }
  .card {
    padding: 22px;
  }
  main {
    padding: 25px 18px;
  }
  .price {
    font-size: 36px;
  }
  .hero h1 br {
    display: none;
  }
  section {
    margin-bottom: 45px;
  }
}
