/* kokorone Taiwan — test site styles */
:root {
  --brass: #675128;
  --brass-dark: #4f3e1f;
  --beige: #E3DDD2;
  --paper: #F6F3EE;
  --paper-2: #EFEAE2;
  --sage: #434A33;
  --midnight: #0A2430;
  --text: #323330;
  --muted: #6b6b66;
  --line: rgba(103, 81, 40, 0.18);
  --radius: 14px;
  --header-h: 72px;
  --font: "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }
:focus-visible { outline: 2px solid var(--midnight); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--brass); font-weight: 500; line-height: 1.4; letter-spacing: 0.04em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(800px, 100% - 48px); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--brass); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(246, 243, 238, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: var(--paper);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(50, 51, 48, 0.06);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: flex-end; gap: 8px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-tag { font-size: 11px; letter-spacing: 0.2em; color: var(--sage); text-transform: uppercase; padding-bottom: 2px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; font-size: 14.5px; text-decoration: none; color: var(--text);
  border-radius: 999px; transition: color .2s, background .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brass); background: rgba(227, 221, 210, 0.7); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; border-radius: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--brass); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(50, 51, 48, 0.08);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.is-open { max-height: 480px; }
  .site-nav ul { flex-direction: column; padding: 8px 24px 20px; gap: 0; }
  .site-nav a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a:hover { background: transparent; }
}

/* ---------- Buttons & small parts ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px; text-decoration: none;
  font-size: 15px; letter-spacing: 0.08em; border: 1px solid var(--brass); transition: background .2s, color .2s;
}
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-dark); color: #fff; }
.btn-ghost { color: var(--brass); background: transparent; }
.btn-ghost:hover { background: var(--brass); color: #fff; }

.eyebrow { font-size: 12.5px; letter-spacing: 0.24em; color: var(--sage); margin-bottom: 10px; }
.lead { font-size: 18px; line-height: 1.9; color: var(--text); }
.small { font-size: 14px; color: var(--muted); }
.note { font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 16px; margin-bottom: 0; }
.pending { color: var(--midnight); background: rgba(227, 221, 210, 0.75); border-radius: 6px; padding: 2px 8px; display: inline-block; font-size: 0.95em; }

.tag { display: inline-block; font-size: 12.5px; letter-spacing: 0.12em; padding: 3px 12px; border-radius: 999px; margin-bottom: 14px; }
.tag-brass { background: var(--brass); color: #fff; }
.tag-sage { background: rgba(67, 74, 51, 0.1); color: var(--sage); border: 1px solid rgba(67, 74, 51, 0.3); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 64px) 0 88px; background: linear-gradient(180deg, var(--paper) 0%, var(--beige) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 400; letter-spacing: 0.08em; line-height: 1.45; margin-bottom: 24px; }
.hero-sub { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--text); max-width: 30em; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 48px rgba(103, 81, 40, 0.14); aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--paper-2); }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 400; margin-bottom: 12px; }
.section-intro { color: var(--muted); margin: 0; }

.card, .course-card, .vm-card, .contact-card, .notice {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.card h3, .course-card h3, .vm-card h3, .contact-card h3, .notice h3 { font-size: 20px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; margin-bottom: 48px; }
.name-card { margin: 0; display: grid; gap: 0; border-left: 2px solid var(--brass); padding-left: 28px; }
.name-card div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.name-card div:last-child { border-bottom: 0; }
.name-card dt { font-size: 22px; color: var(--brass); font-weight: 500; line-height: 1.5; }
.name-card dd { margin: 0; font-size: 15px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.meta-list { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14.5px; }
.meta-list li { display: grid; grid-template-columns: 88px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.meta-list span { color: var(--sage); }

/* Courses */
.course-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.course-card h3 { font-size: 23px; }
.course-card h4 { font-size: 15px; color: var(--sage); margin-top: 20px; margin-bottom: 6px; letter-spacing: 0.1em; }
.course-card.featured { border: 1.5px solid var(--brass); box-shadow: 0 16px 36px rgba(103, 81, 40, 0.1); }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; }
.check-list li { position: relative; padding-left: 22px; margin: 4px 0; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--brass); }
.course-next { margin-top: 24px; padding: 24px 32px; border-radius: var(--radius); background: var(--beige); border-left: 3px solid var(--sage); }
.course-next h3 { font-size: 18px; color: var(--sage); margin-bottom: 6px; }
.course-next p { margin: 0; }

/* Experience */
.experience-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.h3-lg { font-size: 24px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 20px 16px 64px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brass); color: #fff; font-size: 14px; display: grid; place-items: center; line-height: 1;
}
.steps strong { display: block; color: var(--brass); font-weight: 500; }
.notice { background: var(--beige); border-color: transparent; }
.notice h3 { color: var(--sage); }
.notice p { font-size: 15px; }
.notice p:last-child { margin-bottom: 0; }

/* Vision */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { padding: 40px; }
.vm-card h3 { font-size: 15px; letter-spacing: 0.3em; color: var(--sage); }
.vm-card p { font-size: 17px; line-height: 2; margin: 0; }
.motto { text-align: center; font-size: clamp(20px, 2.4vw, 26px); color: var(--brass); letter-spacing: 0.3em; margin: 64px 0 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 24px; align-items: start; }
.contact-line { border-top: 3px solid var(--brass); }
.email { font-size: 16px; word-break: break-all; }
.info-list { margin: 0; }
.info-list div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.info-list div:first-child { border-top: 0; }
.info-list dt { color: var(--sage); }
.info-list dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--beige); padding: 64px 0 28px; font-size: 14.5px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 14px; }
.footer-name { color: var(--brass); font-weight: 500; letter-spacing: 0.06em; margin-bottom: 4px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.footer-nav a, .footer-contact a { color: var(--text); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--brass); text-decoration: underline; }
.footer-contact a { word-break: break-all; }
.copyright { text-align: center; color: var(--muted); font-size: 13px; margin: 24px 0 0; letter-spacing: 0.06em; }

/* ---------- Privacy page ---------- */
.policy { padding: calc(var(--header-h) + 56px) 0 96px; }
.policy-head { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.policy-head h1 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 400; margin-bottom: 8px; }
.policy section { margin-top: 40px; }
.policy h2 { font-size: 21px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.policy h3 { font-size: 16.5px; color: var(--sage); margin-top: 20px; margin-bottom: 4px; }
.policy ul, .policy ol { padding-left: 1.4em; }
.policy li { margin: 4px 0; }
.policy .info-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 20px; margin-bottom: 12px; }
.back-link { margin-top: 56px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .about-grid, .experience-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid > :last-child { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 15.5px; }
  .brand img { height: 38px; }
  .hero { padding: calc(var(--header-h) + 36px) 0 64px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .about-cards, .course-grid, .vm-grid, .contact-grid, .footer-inner { grid-template-columns: 1fr; }
  .card, .course-card, .vm-card, .contact-card, .notice { padding: 24px; }
  .course-next { padding: 20px 24px; }
  .meta-list li, .info-list div { grid-template-columns: 1fr; gap: 0; }
  .name-card { padding-left: 20px; }
  .motto { letter-spacing: 0.16em; }
}
