/* WingStory guide presentation layer. Load after the supplied style.css. */
:root,
:root:not([data-theme="light"]),
:root[data-theme="light"],
:root[data-theme="dark"] {
  color-scheme: light;
  --bg: #f7f4ed;
  --surface: #fffcf6;
  --surface-2: #f0e9dd;
  --ink: #32291f;
  --muted: #746a5e;
  --line: #dfd5c5;
  --accent: #a8412e;
  --accent-2: #c45637;
  --accent-soft: #f3e4d9;
  --accent-ink: #fffaf4;
  --shadow: 0 3px 14px rgb(62 40 19 / 4%);
  --radius: 12px;
  --ws-serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { background: var(--bg); line-height: 1.85; overflow-wrap: anywhere; }
body, button, input, select, textarea { font-family: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
a { text-underline-offset: .22em; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: rgb(168 65 46 / 12%); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #9f432f; outline-offset: 4px; }
button, input, select, textarea { max-width: 100%; }
.container { max-width: 1264px; padding-left: 32px; padding-right: 32px; }
.site-header { background: #fffcf6; border-bottom: 1px solid var(--line); box-shadow: none; }
.hdr { min-height: 82px; gap: 24px; }
.brand { min-width: 0; }
.brand img { flex-shrink: 0; }
.wordmark { font-size: 21px; letter-spacing: -.25px; line-height: 1.25; }
.wordmark b { color: var(--accent); }
.wordmark small { display: block; margin: 5px 0 0; font-size: 10px; letter-spacing: .12em; font-weight: 500; }
.nav { min-width: 0; align-items: center; gap: 3px; }
.nav a { border-radius: 4px; padding: 8px 11px; font-size: 13px; font-weight: 600; color: #62584e; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); background: #f3e8dc; }
.hero { padding: 46px 0 24px; }
.hero h1, .post h1 { font-family: var(--ws-serif); font-weight: 700; letter-spacing: -.035em; }
.hero h1 { max-width: 900px; font-size: clamp(30px, 4vw, 44px); }
.hero .kicker { border-radius: 3px; background: #f0dfd0; color: #893625; font-size: 12px; letter-spacing: .06em; }
.hero p { max-width: 800px; }
.section-title { font-family: var(--ws-serif); font-size: 26px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.card { border-radius: 10px; box-shadow: none; }
.card img { aspect-ratio: 1.9; }
.card .c-body { padding: 18px 21px 22px; }
.card .c-tag { color: #9b422e; font-size: 12px; }
.card h3 { font-size: 18px; line-height: 1.6; }
.card p { font-size: 14px; }
.update-box { box-shadow: none; border-radius: 8px; }
.layout { grid-template-columns: minmax(0, 1fr) 248px; padding-top: 34px; gap: 30px; }
.post { padding: 40px 46px 44px; box-shadow: none; border-radius: 10px; }
.post h1 { font-size: clamp(25px, 3vw, 34px); }
.post .meta { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.post h2 { font-size: 23px; border-left-width: 3px; padding-left: 14px; }
.post h3 { font-size: 18px; }
.post p, .post li { line-height: 1.95; }
.post table { overscroll-behavior-x: contain; }
.post .hero-img { border: 0; border-radius: 6px; }
.side { min-width: 0; }
.side-box { box-shadow: none; top: 104px; padding: 19px; }
.side-box h2 { font-family: var(--ws-serif); font-size: 18px; }
.side-box li a { padding: 10px 0; }
.next { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.next a { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 16px; }
.tool { border-radius: 8px; }
.tool-row > *, .tool-row label { min-width: 0; max-width: 100%; }
.tool input:focus, .tool select:focus { outline: 3px solid #dfbaa5; }
.site-footer { background: #eee7dc; padding: 35px 0 40px; }
.site-footer .f-links { gap: 10px 24px; }
.site-footer .f-links a { padding: 3px 0; }
.site-footer p { max-width: 1000px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer-grid h2 { font-size: 15px; margin: 0 0 13px; color: var(--ink); }
.footer-grid > div > a:not(.brand) { display: block; padding: 5px 0; }
.footer-grid .brand { margin-bottom: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 35px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: 11px; }
.tool input,.tool select { font-size: 16px; min-height: 44px; }
.tool .tbtn { min-height: 44px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--accent); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* A large original landscape gives the library its sense of place. */
.ws-hero { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 46px; padding: 48px 0 52px; }
.ws-hero-copy { min-width: 0; padding: 8px 0; }
.ws-eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .12em; margin: 0 0 27px; }
.ws-eyebrow span { margin: 0 6px; color: #b6a18b; }
.ws-hero h1 { font-family: var(--ws-serif); font-size: clamp(34px, 3.8vw, 51px); font-weight: 700; line-height: 1.38; letter-spacing: -.045em; margin: 0 0 22px; }
.ws-hero h1 span { color: var(--accent); }
.ws-hero-lead { font-size: 19px; line-height: 1.8; margin: 0 0 17px; }
.ws-hero-description { color: var(--muted); font-size: 14px; line-height: 1.95; max-width: 390px; margin: 0; }
.ws-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 28px 0 17px; }
.ws-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 11px 22px; min-height: 48px; border: 1px solid var(--accent); border-radius: 5px; color: var(--accent-ink); background: var(--accent); text-decoration: none; font-size: 14px; font-weight: 700; transition: background .15s; }
.ws-button:hover { background: #873222; border-color: #873222; }
.ws-button span { font-size: 20px; font-weight: 400; }
.ws-text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration-thickness: 1px; }
.ws-fine-print { color: #7b7166; font-size: 11px; letter-spacing: .035em; margin: 0; }
.ws-hero-art { min-width: 0; margin: 0; position: relative; }
.ws-hero-art img { width: 100%; height: 510px; display: block; object-fit: cover; object-position: 69% 50%; border-radius: 130px 10px 110px 10px; }
.ws-hero-art figcaption { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-family: var(--ws-serif); color: #776a5a; font-size: 12px; letter-spacing: .12em; margin-top: 13px; }
.ws-art-line { display: inline-block; width: 48px; height: 1px; background: #bc9c7c; }

/* Distinct reading sections rather than a wall of repeated image cards. */
.ws-section { margin: 0; padding: 46px 0 0; }
.ws-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.ws-section-heading > * { min-width: 0; }
.ws-section-index { font-size: 11px; color: var(--accent); letter-spacing: .1em; font-weight: 700; margin: 0 0 10px; }
.ws-section-index span { color: #bda68d; margin: 0 6px; }
.ws-section-heading h2 { font-family: var(--ws-serif); font-weight: 700; font-size: clamp(25px, 2.8vw, 32px); line-height: 1.45; letter-spacing: -.035em; margin: 0; }
.ws-section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.ws-editions { padding-top: 10px; }
.ws-edition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ws-edition { display: block; text-decoration: none; color: var(--ink); padding: 27px 30px 22px; border: 1px solid var(--line); border-radius: 6px; transition: border-color .15s, background .15s; }
.ws-edition:hover { border-color: #b3644f; background: #f8eee3; }
.ws-edition-classic { background: #f1e4d7; }
.ws-edition-tms { background: #fffaf1; }
.ws-edition-label { display: inline-block; color: #944331; letter-spacing: .06em; font-size: 11px; font-weight: 700; border-bottom: 1px solid #c48d72; padding-bottom: 3px; }
.ws-edition h3 { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-family: var(--ws-serif); font-size: 25px; line-height: 1.5; margin: 13px 0 8px; }
.ws-edition h3 span { color: var(--accent); font-family: system-ui, sans-serif; font-size: 24px; font-weight: 400; }
.ws-edition p { font-size: 13px; color: #6f6051; margin: 0 0 23px; }
.ws-edition-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid #d9c7b7; padding-top: 14px; font-size: 10px; color: #7c6e5e; }
.ws-edition-bottom b { font-size: 11px; color: var(--accent); }
.ws-section-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.ws-section-note a { margin-left: 7px; }
.ws-route-layout { display: grid; grid-template-columns: .74fr 1.26fr; gap: 32px; }
.ws-first-read { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 31px 34px; color: #fff9ef; text-decoration: none; background: #963f2e; border-radius: 7px; min-width: 0; }
.ws-first-read:hover { background: #873727; }
.ws-small-label { font-size: 11px; letter-spacing: .07em; font-weight: 700; }
.ws-first-read .ws-small-label { color: #f2d2ad; }
.ws-first-read h3 { font-family: var(--ws-serif); font-size: 31px; line-height: 1.55; letter-spacing: -.035em; margin: 24px 0 15px; }
.ws-first-read p { font-size: 13px; color: #f3ded0; max-width: 260px; margin: 0 0 30px; line-height: 1.9; }
.ws-feature-link { display: inline-flex; gap: 38px; padding-top: 15px; border-top: 1px solid #c07d60; font-size: 12px; margin-top: auto; font-weight: 700; }
.ws-feature-link span { font-size: 18px; font-weight: 400; line-height: 1.5; }
.ws-book-lines { position: absolute; right: -17px; bottom: 39px; transform: rotate(-24deg); opacity: .17; pointer-events: none; }
.ws-book-lines i { display: block; height: 12px; width: 105px; border: 1px solid #f7d7ae; margin-top: 8px; border-radius: 2px; }
.ws-route-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.ws-route { display: flex; align-items: flex-start; gap: 13px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); padding: 22px 0; min-width: 0; }
.ws-route:hover h3 { color: var(--accent); }
.ws-route-number { font-size: 10px; color: #a78b70; font-variant-numeric: tabular-nums; padding-top: 4px; }
.ws-route > div { flex: 1; min-width: 0; }
.ws-route h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.65; }
.ws-route p { color: var(--muted); font-size: 12px; line-height: 1.85; margin: 0 0 15px; }
.ws-route div > span { color: var(--accent); font-size: 11px; font-weight: 700; }
.ws-route > b { font-size: 19px; font-weight: 400; color: var(--accent); }
.ws-job-shelf { display: flex; align-items: center; gap: 10px 30px; flex-wrap: wrap; padding: 19px 0; margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ws-job-shelf > span { color: var(--muted); font-size: 12px; margin-right: auto; }
.ws-job-shelf a { min-height: 36px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; text-decoration: none; }
.ws-job-shelf a:hover { text-decoration: underline; }
.ws-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ws-tool-link { padding: 27px 28px 25px; text-decoration: none; color: var(--ink); background: #f2ebdf; min-width: 0; }
.ws-tool-link + .ws-tool-link { border-left: 1px solid var(--line); }
.ws-tool-link:hover { background: #eee1d2; }
.ws-tool-icon { display: block; width: 36px; height: 36px; color: #99513a; margin-bottom: 18px; }
.ws-tool-icon svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ws-tool-link h3 { margin: 0 0 8px; font-family: var(--ws-serif); font-size: 22px; line-height: 1.5; }
.ws-tool-link p { color: var(--muted); font-size: 12px; margin: 0 0 19px; line-height: 1.85; }
.ws-tool-link > span:last-child { display: flex; justify-content: space-between; gap: 16px; color: var(--accent); font-size: 11px; font-weight: 700; }
.ws-tool-link > span:last-child b { font-size: 18px; font-weight: 400; }
.ws-reading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.ws-reading-column { min-width: 0; }
.ws-reading-column h3 { color: #8a563e; font-size: 12px; letter-spacing: .05em; margin: 0; padding-bottom: 15px; border-bottom: 2px solid #ab7759; }
.ws-reading-column a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.ws-reading-column a span { color: #a0664d; }
.ws-reading-column a:hover { color: var(--accent); }
.ws-editorial-note { margin: 54px 0 55px; padding: 29px 32px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 8px 40px; border: 1px solid var(--line); border-left: 3px solid #ad6245; background: #fffaf1; }
.ws-editorial-note .ws-small-label { color: var(--accent); }
.ws-editorial-note h2 { font-family: var(--ws-serif); font-size: 21px; line-height: 1.65; margin: 11px 0 0; }
.ws-editorial-note p { color: var(--muted); font-size: 12px; line-height: 1.95; margin: 0; }
.ws-editorial-note > a { grid-column: 2; justify-self: start; }

@media (max-width: 1080px) {
  .hdr { flex-wrap: wrap; gap: 8px 20px; padding-top: 15px; padding-bottom: 8px; }
  .nav { width: 100%; margin: 0; padding: 0; flex: auto; }
  .nav a { padding: 7px 10px; }
  .ws-hero { gap: 30px; }
  .ws-hero-art img { height: 470px; border-radius: 100px 8px 90px 8px; }
  .ws-hero h1 { font-size: 39px; }
  .ws-route-layout { grid-template-columns: .84fr 1.16fr; gap: 24px; }
  .ws-route-list { gap: 0 18px; }
  .ws-first-read { padding: 28px; }
  .ws-route { gap: 8px; }
  .ws-route h3 { font-size: 15px; }
  .post { padding: 30px; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side-box { position: static; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .container { padding-left: 22px; padding-right: 22px; }
  .ws-hero { grid-template-columns: minmax(0, 1fr); gap: 27px; padding: 35px 0 35px; }
  .ws-hero-copy { padding: 0; }
  .ws-eyebrow { margin-bottom: 20px; }
  .ws-hero h1 { font-size: clamp(34px, 7vw, 46px); margin-bottom: 16px; }
  .ws-hero-lead { font-size: 17px; margin-bottom: 13px; }
  .ws-desktop-break { display: none; }
  .ws-hero-description { max-width: 530px; }
  .ws-hero-actions { margin-top: 22px; margin-bottom: 12px; }
  .ws-hero-art img { height: auto; aspect-ratio: 1.6; border-radius: 70px 7px 60px 7px; object-position: 65% 50%; }
  .ws-hero-art figcaption { font-size: 11px; margin-top: 10px; }
  .ws-section { padding-top: 36px; }
  .ws-editions { padding-top: 10px; }
  .ws-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .ws-section-heading > p br { display: none; }
  .ws-section-heading > .ws-text-link { min-height: 30px; }
  .ws-section-heading h2 { font-size: 28px; }
  .ws-edition-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ws-edition { padding: 23px 25px 20px; }
  .ws-edition h3 { font-size: 25px; }
  .ws-edition p { margin-bottom: 20px; }
  .ws-route-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ws-first-read { padding: 27px 29px; }
  .ws-first-read h3 { margin: 16px 0 12px; font-size: 28px; }
  .ws-first-read h3 br { display: none; }
  .ws-first-read p { max-width: 100%; margin-bottom: 22px; }
  .ws-route-list { gap: 0 24px; }
  .ws-route h3 { font-size: 16px; }
  .ws-job-shelf { gap: 4px 26px; padding: 15px 0; }
  .ws-job-shelf > span { flex-basis: 100%; }
  .ws-tools-grid { grid-template-columns: minmax(0, 1fr); }
  .ws-tool-link { padding: 23px 25px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 15px; }
  .ws-tool-link + .ws-tool-link { border-left: none; border-top: 1px solid var(--line); }
  .ws-tool-icon { grid-column: 1; grid-row: 1 / 4; margin: 0; }
  .ws-tool-link h3 { grid-column: 2; font-size: 22px; margin-bottom: 7px; }
  .ws-tool-link p, .ws-tool-link > span:last-child { grid-column: 2; }
  .ws-tool-link p { margin-bottom: 12px; }
  .ws-reading-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ws-reading-column a { font-size: 14px; }
  .ws-editorial-note { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px; margin: 38px 0 38px; }
  .ws-editorial-note h2 { margin-top: 9px; }
  .ws-editorial-note > a { grid-column: 1; min-height: 32px; }
}
@media (max-width: 480px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .hdr { padding-top: 13px; }
  .brand img { width: 36px; height: 36px; }
  .wordmark { font-size: 20px; }
  .nav { gap: 0; }
  .nav a { padding: 7px 10px; font-size: 12px; }
  .ws-hero h1 { font-size: 34px; }
  .ws-hero-description { font-size: 13px; }
  .ws-hero-actions { gap: 20px; }
  .ws-button { padding: 10px 17px; gap: 20px; font-size: 13px; }
  .ws-hero-art img { aspect-ratio: 1.28; border-radius: 64px 6px 50px 6px; }
  .ws-section-heading h2 { font-size: 26px; }
  .ws-edition { padding: 20px; }
  .ws-edition h3 { font-size: 23px; }
  .ws-edition-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
  .ws-route-list { grid-template-columns: minmax(0, 1fr); }
  .ws-route { padding: 18px 0; gap: 14px; }
  .ws-route h3 { font-size: 16px; margin-bottom: 5px; }
  .ws-route p { margin-bottom: 6px; }
  .ws-first-read { padding: 25px; }
  .ws-tool-link { grid-template-columns: 30px minmax(0, 1fr); padding: 22px 18px; gap: 0 13px; }
  .ws-tool-icon, .ws-tool-icon svg { width: 28px; height: 28px; }
  .ws-tool-link h3 { font-size: 20px; }
  .ws-job-shelf { gap: 3px 24px; }
  .post { padding: 23px 18px 28px; }
  .post h1 { font-size: 25px; }
  .post h2 { font-size: 21px; }
  .layout { padding-top: 21px; }
  .tool { padding: 16px 14px; }
  .site-footer { padding: 28px 0 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
