/* LMYC base — no Shopify/Dawn. Tokens + root sizing. */
:root {
  --color-background: 253, 248, 243;
  --color-foreground: 63, 50, 59;
  --color-button: 66, 89, 54;
  --color-button-text: 255, 255, 255;
  --gradient-background: #fdf8f3;
  --font-body-family: "GeneralSans-Light", "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading-family: "Minion3Display-Italic", Georgia, "Times New Roman", serif;
  --font-heading-style: normal;
  --font-heading-weight: 400;
  --font-ui: var(--font-body-family);
  --lmyc-supporting-copy-font: var(--font-body-family);
  --duration-short: 0.15s;
  --duration-default: 0.25s;
  --duration-long: 0.4s;
  --lmyc-green: #425936;
  --lmyc-green-deep: #303d1c;
  --lmyc-rose: #d18e95;
  --lmyc-cream: #fdf8f3;
  --lmyc-ink: #1e1114;
}

html {
  /* Design rem = 10px (legacy LMYC/Dawn overlays). Real control via lmyc-consistency.css */
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body-family);
  color: rgb(var(--color-foreground));
  background: var(--lmyc-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 10000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--lmyc-green);
}

/* Clean site header (replaces Dawn sticky-header shell) */
.lmyc-site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(66, 89, 54, 0.12);
}

.lmyc-site-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.65rem clamp(0.85rem, 2.5vw, 1.75rem);
  min-height: 4.25rem;
}

.lmyc-site-header__brand img {
  display: block;
  height: 3.25rem;
  width: auto;
}

.lmyc-site-header__nav {
  display: none;
  justify-content: center;
}

.lmyc-site-header__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.lmyc-site-header__nav a,
.lmyc-site-header__nav button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lmyc-ink);
  padding: 0.35rem 0.15rem;
  cursor: pointer;
}

.lmyc-site-header__nav a:hover,
.lmyc-site-header__nav button:hover {
  color: var(--lmyc-green);
}

.lmyc-site-header__dropdown {
  position: relative;
}

.lmyc-site-header__panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 12rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(66, 89, 54, 0.14);
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(30, 17, 20, 0.12);
  z-index: 20;
}

.lmyc-site-header__dropdown:hover .lmyc-site-header__panel,
.lmyc-site-header__dropdown:focus-within .lmyc-site-header__panel,
.lmyc-site-header__dropdown > button[aria-expanded="true"] + .lmyc-site-header__panel {
  display: grid;
  gap: 0.35rem;
}

.lmyc-site-header__panel a {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
  font-size: 0.92rem;
}

.lmyc-site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-end;
}

.lmyc-site-header__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--lmyc-green);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lmyc-nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(66, 89, 54, 0.2);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.lmyc-nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  margin: 2px 0;
  background: var(--lmyc-green);
  border-radius: 2px;
}

@media (min-width: 1200px) {
  .lmyc-site-header__nav {
    display: flex;
  }
  .lmyc-nav-toggle {
    display: none;
  }
}

/* Compatibility aliases so older LMYC CSS still finds a header root */
#site-header.lmyc-site-header,
.lmyc-site-header#site-header {
  /* keep id for existing JS/CSS hooks */
}
