/* ==========================================================================
   尼可樂菁英藝術家系列 — Christopher Hinterhuber Piano Recital 2015
   Rebuilt from the original Weebly "Cento" theme as plain HTML/CSS/JS.
   ========================================================================== */

/* --- Fonts -------------------------------------------------------------- */
/* Quattrocento / Quattrocento Sans, self-hosted-free via Google Fonts.
   Falls back to a system serif/sans stack plus a CJK face for the Chinese copy. */
@import url('https://fonts.googleapis.com/css2?family=Quattrocento:wght@400;700&family=Quattrocento+Sans:wght@400;700&family=Noto+Sans+TC:wght@400;500;700&display=swap');

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink: #3e3e3e;
  --ink-strong: #333;
  --ink-black: #000;
  --muted: #b9b9b9;
  --rule: #f7f7f7;
  --field: #fafafa;
  --paper: #fff;

  --sans: 'Quattrocento Sans', 'Noto Sans TC', -apple-system, 'Segoe UI',
          'Microsoft JhengHei', sans-serif;
  --serif: 'Quattrocento', 'Noto Sans TC', Georgia, 'Microsoft JhengHei', serif;

  --shell: 760px;
  --ease: 300ms ease;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; border: 0; }
figure { margin: 0; }
hr { height: 0; margin: 30px 0; border: 0; border-top: 1px solid #e6e6e6; }

a { color: var(--muted); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--ink-strong); }

h1, h2, h3 {
  margin: 0 0 15px;
  color: var(--ink-black);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }

p { margin: 0 0 10px; line-height: 1.5; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.ta-center { text-align: center; }
.ta-right   { text-align: right; }
.ta-justify { text-align: justify; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 9;
  width: 100%;
  padding: 40px 0 0;
  background: var(--paper);
}

.brand {
  display: block;
  margin-bottom: 20px;
  color: var(--ink-black);
  text-align: center;
  letter-spacing: .04em;
  font-family: var(--sans);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
}
.brand:hover { color: var(--ink-black); }
.brand .brand-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 400;
}

.nav-toggle { display: none; }

.nav-wrap { width: 100%; padding: 10px 0; background: var(--paper); }
.nav { text-align: center; }
.nav ul { display: inline-block; margin: 0; padding: 0; list-style: none; }
.nav li { display: inline-block; padding: 0 5px; }
.nav a {
  display: block;
  padding: 5px 15px;
  color: var(--muted);
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 19px;
  transition: color var(--ease);
}
.nav a:hover,
.nav [aria-current='page'] { color: var(--ink-strong); }

/* --- Banner ------------------------------------------------------------- */
.banner-wrap {
  position: relative;
  width: 100%;
  max-width: 1115px;
  margin: 20px auto 0;
}
.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 50px 20px;
  background: #333 center center / cover no-repeat;
  text-align: center;
}
.banner::before {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
  content: '';
}
.banner-inner { position: relative; color: #fff; }
.banner h1,
.banner h2 { margin-bottom: 15px; color: #fff; font-size: 50px; }
.banner p {
  margin-bottom: 25px;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.2;
}
.banner p:last-child { margin-bottom: 0; }

/* --- Main --------------------------------------------------------------- */
.main { padding: 50px; }
.main > .shell > *:last-child { margin-bottom: 0; }

/* Poster-only landing page: let the artwork carry the full width. */
.poster { padding: 30px 0 50px; }
.poster img { display: block; margin: 0 auto; }

/* --- Columns ------------------------------------------------------------ */
/* Column bases carry the original percentages, which already sum to 100%.
   Staying nowrap lets the gap come out of the shrink instead of forcing a wrap;
   the mobile breakpoint below switches the whole thing to block flow. */
.cols {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 30px;
  margin-bottom: 10px;
}
.cols > .col { flex: 1 1 0; min-width: 0; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 8px 12px;
  background: var(--ink-strong);
  color: #fff;
  border: 2px solid var(--ink-strong);
  border-radius: 1px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  transition: all var(--ease);
}
.btn:hover { background: var(--paper); color: var(--ink-strong); }
.btn-lg { padding: 12px 16px; font-size: 16px; }
.btn-primary { background: var(--muted); border-color: var(--muted); color: #fff; }
.btn-primary:hover { background: #a1a1a1; border-color: #a1a1a1; color: #fff; }

/* --- Gallery ------------------------------------------------------------ */
.gallery { display: flex; flex-wrap: wrap; gap: 20px; }
.gallery figure { flex: 1 1 210px; }
.gallery img { display: block; width: 100%; }

/* --- Contact ------------------------------------------------------------ */
.contact-block h2 a { color: inherit; }
.venue { font-size: 15px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  width: 100%;
  margin-top: 20px;
  padding: 40px 0 30px;
  background: var(--paper);
  border-top: 2px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.site-footer p { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: underline; }
.site-footer a:hover { color: var(--ink-strong); }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 992px) {
  .shell { max-width: 768px; overflow-wrap: break-word; }
}

@media (max-width: 767px) {
  body { font-size: 15px; padding-top: 50px; }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    height: 50px;
    padding: 10px 0;
    border-bottom: 2px solid var(--rule);
  }
  .brand { margin-bottom: 0; font-size: 18px; line-height: 30px; }
  .brand .brand-sub { display: none; }
  .brand img { width: auto; height: 30px; vertical-align: middle; }

  /* Hamburger — a checkbox drives the panel so the nav works without JS. */
  .nav-toggle-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    display: block;
    width: 30px;
    height: 30px;
    cursor: pointer;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    position: absolute;
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    content: '';
    transition: all var(--ease);
  }
  .nav-toggle-label span { top: 14px; left: 4px; }
  .nav-toggle-label span::before { top: -7px; }
  .nav-toggle-label span::after  { top: 7px; }

  .nav-wrap {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    background: var(--paper);
    transition: all 400ms ease;
  }
  .nav li { display: block; padding: 0; }
  .nav a { padding: 10px 0; font-size: 15px; }

  .nav-toggle:checked ~ .nav-wrap {
    max-height: calc(100vh - 50px);
    padding: 10px 0;
    opacity: 1;
    border-bottom: 2px solid var(--rule);
  }
  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span::after  { top: 0; transform: rotate(-45deg); }

  .banner-wrap { margin-top: 0; }
  .banner { min-height: 260px; }
  .banner h1,
  .banner h2 { font-size: 2.5em; line-height: 1.25; }
  .banner p { font-size: 17px; }

  .cols { display: block; }
  .cols > .col { flex-basis: auto !important; margin-bottom: 25px; }
  .cols > .col:last-child { margin-bottom: 0; }

  .main { padding: 35px 0; }
}

@media (max-width: 480px) {
  .banner h1,
  .banner h2 { font-size: 2em; }
}

@media print {
  .site-header, .nav-wrap, .site-footer { display: none; }
}
