/* 威省少林武術館 — style.css
   色系：赭紅（牌匾漆色）／黃銅（金屬釘飾）／米宣紙底色
------------------------------------------------------------------ */

:root {
  --ink:        #241a14;
  --paper:      #efe6d2;
  --paper-deep: #e3d5ac;
  --red:        #7a1b1b;
  --red-deep:   #4f1010;
  --brass:      #a87b2e;
  --brass-light:#c79a46;
  --line:       rgba(36, 26, 20, 0.14);

  --font-display: "Noto Serif TC", serif;
  --font-body:    "Noto Sans TC", sans-serif;

  --nav-h: 64px;
  --radius: 3px;
  --max-w: 760px;

  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, #f6efdd 0%, var(--paper) 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); }
a:hover { color: var(--red-deep); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
  padding: 0 20px;
  background: var(--red);
  border-bottom: 3px solid var(--brass);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.emblem {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--brass-light);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--paper);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: 8px;
  flex: 1 1 auto;
}

.main-nav button {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(239, 230, 210, 0.82);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.main-nav button:hover { color: var(--paper); }

.main-nav button[aria-current="true"] {
  color: var(--paper);
  border-bottom-color: var(--brass-light);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.btn-login {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius);
  background: var(--brass);
  color: var(--red-deep);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--brass-light);
  transition: background .15s ease;
}
.btn-login:hover { background: var(--brass-light); color: var(--red-deep); }

.hamburger {
  display: none;
  width: 36px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
}

/* ---------- hero / plaque ---------- */

.hero {
  display: flex;
  justify-content: center;
  padding: 44px 20px 24px;
}

.plaque {
  width: 100%;
  max-width: var(--max-w);
  text-align: center;
  padding: 34px 28px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  border: 2px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(36,26,20,0.22), inset 0 0 0 6px rgba(168,123,46,0.14);
  position: relative;
}

.plaque::before,
.plaque::after {
  content: "";
  position: absolute;
  top: 10px; bottom: 10px;
  width: 1px;
  background: rgba(199, 154, 70, 0.5);
}
.plaque::before { left: 10px; }
.plaque::after  { right: 10px; }

.plaque h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 6vw, 42px);
  color: var(--paper);
  letter-spacing: .04em;
}

.plaque .tagline {
  margin: 10px 0 0;
  color: var(--brass-light);
  font-size: 15px;
  letter-spacing: .08em;
}

/* ---------- content panels ---------- */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 20px 60px;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.28);
}

.link-list li {
  border-top: 1px solid var(--line);
}
.link-list li:first-child { border-top: none; }

.link-list a,
.link-list .disabled {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  border-inline-start: 3px solid transparent;
  transition: border-color .15s ease, background .15s ease;
}

.link-list a:hover {
  border-inline-start-color: var(--red);
  background: rgba(122, 27, 27, 0.06);
}

.link-list .disabled {
  color: #9a8f7c;
  cursor: not-allowed;
}
.link-list .disabled .note {
  margin-inline-start: auto;
  font-size: 13px;
  color: #a99c82;
}

/* year picker (details/summary) */

.year-picker {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.28);
  overflow: hidden;
}

.year-picker summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 700;
  color: var(--red-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.year-picker summary::-webkit-details-marker { display: none; }

.year-picker summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.year-picker[open] summary::after { transform: rotate(-135deg); }

.year-picker .link-list {
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

/* ---------- footer ---------- */

.site-footer {
  text-align: center;
  padding: 26px 20px 40px;
  color: #6b6050;
  font-size: 13px;
}
.site-footer .sep {
  display: inline-block;
  margin: 0 8px;
  border-left: 1px solid var(--line);
  height: 11px;
  vertical-align: middle;
}
.site-footer a { color: #6b6050; }
.site-footer a:hover { color: var(--red); }

/* ---------- mobile ---------- */

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--red-deep);
    border-bottom: 3px solid var(--brass);
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav button {
    text-align: start;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(239,230,210,0.1);
    border-inline-start: 3px solid transparent;
  }
  .main-nav button[aria-current="true"] {
    border-bottom-color: rgba(239,230,210,0.1);
    border-inline-start-color: var(--brass-light);
    background: rgba(0,0,0,0.12);
  }
  .hamburger { display: flex; }
  .btn-login { padding: 7px 14px; font-size: 13px; }
  .plaque { padding: 26px 18px; }
}
