@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Noto+Sans+TC:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --paper: #fbf7f5;
  --white: #fffdfb;
  --ink: #3d2c2e;
  --muted: #695458;
  --rose: #8b4660;
  --blush: #f4e5e7;
  --line: #e7d5d3;
  --display: "Cormorant Garamond", Georgia, "PingFang TC", serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 "Noto Sans TC", "PingFang TC", sans-serif; }
a { color: var(--rose); text-underline-offset: .22em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--rose); outline-offset: 5px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 4rem); letter-spacing: .03em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }

header { border-bottom: 1px solid var(--line); background: var(--white); }
.bar { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { color: var(--ink); font: 700 2rem/1 var(--display); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.3rem; }
.nav a, .footer a { font-size: .9rem; text-decoration: none; color: var(--muted); }
.nav a:hover, .footer a:hover, .nav [aria-current="page"] { color: var(--rose); text-decoration: underline; }

.hero { padding-block: clamp(2.6rem, 7vw, 6.2rem); display: grid; align-items: center; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 8vw, 7rem); }
.hero p { color: var(--muted); max-width: 34rem; margin-top: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin-top: 1.8rem; }
.button { display: inline-flex; justify-content: center; background: var(--ink); color: white; text-decoration: none; font-weight: 600; border-radius: 999px; padding: .78rem 1.3rem; }
.button:hover { color: white; background: var(--rose); }
.card-frame { margin: 0; align-self: center; display: grid; place-items: center; min-width: 0; padding: clamp(1rem, 3.8vw, 2.5rem); background: var(--blush); border-radius: 50% 50% 3px 3px / 30% 30% 3px 3px; }
.card { position: relative; width: min(100%, 290px); isolation: isolate; box-shadow: 0 18px 35px #56263c26; }
.card img { display: block; width: 100%; height: auto; }
.card figcaption { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .3rem; color: var(--ink); }
.card figcaption strong { font: 600 clamp(2.25rem, 4vw, 3.5rem)/1 var(--display); }
.card figcaption span { font-size: .84rem; letter-spacing: .16em; }
.features { display: grid; grid-template-columns: .8fr 1fr; gap: 2.5rem; border-top: 1px solid var(--line); padding-block: 2.5rem 4rem; }
.features p { color: var(--muted); margin-bottom: 0; max-width: 40rem; }

.document { max-width: 810px; padding-block: clamp(2.8rem, 7vw, 5.5rem); }
.document h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.document .date { color: var(--muted); margin-top: 1rem; }
.languages { margin-block: 1.25rem 2rem; display: flex; gap: 1rem; }
.document section + section { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2.5rem; }
.document h3 { font-size: 1.14rem; margin: 1.6rem 0 .55rem; }
.document ul { padding-inline-start: 1.4rem; }
.document li { padding-inline-start: .25rem; margin-block: .6rem; }
.document section[id] { scroll-margin-top: 1rem; }
.support .email { margin-block: 1.25rem; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.footer { border-top: 1px solid var(--line); background: var(--white); }
.footer .bar { min-height: 92px; }
.footer small { color: var(--muted); }

@media (max-width: 660px) {
  .wrap { width: calc(100% - 2rem); }
  .bar { min-height: 72px; gap: .85rem; flex-wrap: wrap; padding-block: 1rem; }
  .nav { gap: .6rem 1rem; }
  .hero, .features { grid-template-columns: 1fr; gap: 1.5rem; }
  .card { width: min(70%, 235px); }
  .card-frame { max-width: 390px; width: 100%; margin-inline: auto; }
  .actions { row-gap: 1rem; }
  .footer .bar { align-items: flex-start; flex-direction: column; justify-content: center; }
}
