@import url("production/buttons.css");

:root {
  color-scheme: light;
  --pine: #16352d;
  --pine-deep: #102821;
  --paper: #fbf6ed;
  --cream: #f1e9d9;
  --gold: #d1aa73;
  --teal: #246760;
  --ink: #202b28;
  --muted: #52605a;
  --line: #ddd4c2;
  font: 100%/1.7 Inter, system-ui, "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal); text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #188a79;
  outline-offset: 4px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Noto Serif TC", "PMingLiU", serif; text-wrap: balance; }
h1 { margin-bottom: .8rem; font-size: clamp(2.65rem, 6vw, 5.35rem); line-height: 1.07; }
h2 { margin-bottom: .85rem; font-size: clamp(1.85rem, 3.5vw, 3rem); line-height: 1.18; }
h3 { margin-bottom: .5rem; font-size: 1.22rem; line-height: 1.35; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-inline-start: 1.3rem; }
.wrap { width: min(74rem, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 5; background: white; padding: .7rem; }
.skip:not(:focus) { transform: translateY(-170%); }
.site-header { position: relative; z-index: 1; background: #fffdf7; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.5rem; display: flex; align-items: center; gap: .8rem 1.3rem; }
.brand { display: inline-flex; align-items: center; flex: none; gap: .75rem; text-decoration: none; color: var(--pine); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font-size: 1.2rem; letter-spacing: .045em; }
.brand small { max-width: 17ch; color: var(--muted); font-size: .82rem; }
.desktop-nav { margin-inline-start: auto; }
.nav-links { display: flex; flex-wrap: wrap; gap: .15rem 1rem; margin: 0; padding: 0; list-style: none; }
.nav-links a, .language summary, .mobile-menu summary {
  display: flex; align-items: center; min-height: 44px;
}
.nav-links a { color: var(--pine); text-decoration: none; font-size: .94rem; font-weight: 650; line-height: 1.3; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: #9a753e; text-decoration-thickness: 2px; }
.language { flex: none; position: relative; }
.language summary, .mobile-menu summary { cursor: pointer; padding-inline: .55rem; }
.language summary { gap: .4rem; font-size: .9rem; }
.language summary::after { content: "▾"; }
.language ul {
  position: absolute; inset: 100% 0 auto auto; z-index: 2;
  min-width: 9rem; margin: 0; padding: .45rem; list-style: none;
  background: #fffdf7; border: 1px solid var(--line); border-radius: .45rem;
  box-shadow: 0 .65rem 1.5rem #10282112;
}
.language a { display: flex; align-items: center; min-height: 44px; padding-inline: .6rem; }
.mobile-menu { display: none; }
.hero { background: var(--pine); color: var(--paper); }
.hero p { max-width: 58ch; color: #f1ede2; font-size: clamp(1.03rem, 1.8vw, 1.21rem); }
.home-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(30rem, 47vw, 45rem); overflow: hidden; }
.home-hero img, .home-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.home-hero img { object-fit: cover; object-position: center 45%; }
.home-hero::after { content: ""; background: linear-gradient(90deg, #102821fa 0%, #102821ed 30%, #10282175 67%, #10282128); }
.home-hero .wrap { padding-block: clamp(3rem, 8vw, 7rem); }
.home-hero h1 { max-width: 16ch; }
.home-hero h1 span { display: block; color: #f0c98f; }
.home-hero p { max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .5rem 1.05rem;
  border: 1px solid transparent; border-radius: .4rem;
  background: var(--pine); color: white; font-weight: 700; text-decoration: none;
}
.button:hover { background: #245247; }
.hero .button, .dark .button { background: var(--gold); color: #172a22; }
.hero .button:hover, .dark .button:hover { background: #e9c58d; }
.hero .button.secondary { background: #1028215e; color: white; border-color: #f6e6c9ab; }
.section { padding-block: clamp(2.8rem, 6.25vw, 5.9rem); }
.section + .section { border-top: 1px solid var(--line); }
.compact { padding-block: clamp(2.5rem, 6vw, 5rem); }
.compact h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.page-media, .split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(1.4rem, 4vw, 4.5rem);
}
.page-media img, .feature-image {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .7rem;
}
.page-media img { border: 1px solid #f6e6c946; }
.soft { background: var(--cream); }
.dark { background: var(--pine); color: white; }
.dark a:not(.button) { color: #f5d59f; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.05rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  min-width: 0; padding: clamp(1.2rem, 2.3vw, 1.8rem);
  background: #fffdf7; border: 1px solid var(--line); border-radius: .65rem; color: var(--ink);
}
.card a:not(.button) { color: var(--teal); }
.card h3 { color: var(--pine); }
.card time, .meta { color: var(--muted); font-size: .94rem; }
.portrait { width: 100%; max-height: 25rem; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 23%; border-radius: .4rem; margin-bottom: 1rem; }
.article-image { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: .4rem; margin-bottom: 1rem; }
.prose { max-width: 48rem; overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin-top: 2rem; }
.prose li + li { margin-top: .4rem; }
.resource-list { display: flex; flex-wrap: wrap; gap: .35rem .6rem; list-style: none; padding: 0; }
.resource-list li { padding: .15rem .55rem; border: 1px solid var(--line); border-radius: .3rem; }
.footer { padding-block: 2rem; background: var(--pine-deep); color: #f3eadb; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer a { color: #f0cc91; }
.footer .brand { font-size: 1.15rem; font-weight: 700; }
.footer address { font-style: normal; overflow-wrap: anywhere; }
@media (max-width: 68rem) {
  .desktop-nav { display: none; }
  .header-inner { min-height: 4.65rem; }
  .language { margin-inline-start: auto; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu .nav-links {
    position: absolute; inset: 100% 0 auto auto;
    display: grid; width: min(17rem, 75vw); padding: .65rem 1rem;
    background: #fffdf7; border: 1px solid var(--line); border-radius: .4rem;
    box-shadow: 0 .65rem 1.5rem #10282112;
  }
}
@media (max-width: 44rem) {
  .split, .page-media, .grid, .grid.two { grid-template-columns: 1fr; }
  .home-hero::after { background: linear-gradient(90deg, #102821f2, #102821ab); }
  .brand { gap: .45rem; }
  .brand img { width: 36px; height: 36px; }
  .brand small { font-size: .75rem; }
  .header-inner { gap: .35rem; }
}
