:root {
  --orange: #f2674a;
  --black: #15130f;
  --cream: #f5e8d0;
  --accent: #f2674a;
  --card: #f5e8d0;
  --cream-rgb: 245 232 208;
  --black-rgb: 21 19 15;
  --shadow-rgb: 0 0 0;
  --pad: clamp(24px, 5vw, 78px);
  --sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", Georgia, serif;
  --fashion: "Bodoni Moda", "Noto Serif TC", "Songti TC", Georgia, serif;
}

:root[data-color-version="kz-brand"] {
  --orange: #8c9dad;
  --black: #303b43;
  --cream: #f8f6f2;
  --accent: #ffbe98;
  --card: #f3e6dc;
  --cream-rgb: 248 246 242;
  --black-rgb: 48 59 67;
  --shadow-rgb: 48 59 67;
}

:root[data-color-version="orange-creative"] {
  --orange: #eb670e;
  --blue: #2a3582;
  --black: #161616;
  --cream: #ffffff;
  --accent: #eb670e;
  --card: #ffffff;
  --cream-rgb: 255 255 255;
  --black-rgb: 22 22 22;
  --blue-rgb: 42 53 130;
  --shadow-rgb: 22 22 22;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--orange) var(--cream); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--orange); border: 2px solid var(--cream); border-radius: 999px; }
body { margin: 0; background: var(--cream); color: var(--black); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

.notes-nav { position: fixed; z-index: 20; top: 14px; left: 50%; width: min(760px, calc(100% - 32px)); height: 62px; transform: translateX(-50%); }
.notes-nav nav { height: 100%; padding: 6px; display: grid; grid-template-columns: 86px 1fr 126px; align-items: center; gap: 8px; border-radius: 999px; background: var(--black); color: var(--cream); box-shadow: 0 10px 30px rgb(var(--black-rgb) / .18); }
.notes-logo, .back-home { height: 100%; display: grid; place-items: center; border-radius: 999px; }
.notes-logo { position: relative; overflow: hidden; background: #000; }
.notes-logo span { position: relative; width: 32px; aspect-ratio: 1; border: 2px solid var(--orange); border-radius: 50%; background: var(--cream); }
.notes-logo span::after { content: ""; position: absolute; width: 34%; aspect-ratio: 1; left: 50%; top: 50%; border-radius: 50%; background: var(--black); transform: translate(-50%,-50%); }
.notes-logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; border: 0; border-radius: inherit; }
.notes-nav nav > strong { font-family: var(--sans); text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.back-home { grid-template-columns: auto auto; align-content: center; justify-content: center; gap: 7px; background: var(--accent); color: var(--black); font-size: 12px; font-weight: 700; }

main { min-height: calc(100svh - 120px); }
.notes-hero { min-height: 72svh; padding: 160px var(--pad) 80px; display: flex; flex-direction: column; justify-content: center; background: var(--orange); }
.eyebrow { margin-bottom: clamp(42px, 7vh, 74px); font-size: 11px; font-weight: 700; letter-spacing: .09em; }
.notes-hero h1 { max-width: 1040px; font-family: var(--sans); font-size: clamp(46px, 6vw, 88px); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.intro { max-width: 700px; margin-top: 42px; font-family: var(--serif); font-size: clamp(16px, 1.35vw, 20px); font-weight: 400; line-height: 1.7; letter-spacing: 0; }

.notes-list { min-height: 72svh; padding: 96px var(--pad) 120px; }
.list-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 24px; border-bottom: 1px solid rgb(var(--black-rgb) / .58); }
.list-heading h2 { font-family: var(--sans); font-size: clamp(34px, 4vw, 60px); font-weight: 700; letter-spacing: -.03em; }
.list-heading span { color: var(--orange); font-size: 12px; font-weight: 700; }
.empty-note { min-height: 280px; padding: 42px 0; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr); align-content: center; gap: clamp(32px, 8vw, 120px); border-bottom: 1px solid rgb(var(--black-rgb) / .58); }
.empty-note span { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 52px); font-weight: 400; line-height: 1.35; }
.empty-note p { max-width: 520px; font-family: var(--serif); font-size: 17px; line-height: 1.72; letter-spacing: 0; }
.notes-cards[hidden], .empty-note[hidden] { display: none; }
.note-card { position: relative; min-height: 250px; padding: 38px 0; display: grid; grid-template-columns: minmax(160px, .45fr) minmax(320px, 1.25fr) auto; gap: clamp(28px, 6vw, 90px); align-items: start; border-bottom: 1px solid rgb(var(--black-rgb) / .58); transition: color .24s ease, padding-left .24s ease; }
.note-card-meta { display: grid; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.note-date { opacity: .62; }
.note-card-copy h3 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 54px); font-weight: 400; line-height: 1.32; letter-spacing: 0; }
.note-card-copy p { max-width: 640px; margin-top: 20px; font-family: var(--serif); font-size: 16px; line-height: 1.72; letter-spacing: 0; }
.note-read { align-self: end; font-size: 12px; font-weight: 700; white-space: nowrap; }
.note-card:hover { color: var(--accent); padding-left: 8px; }

.notes-footer { padding: 30px var(--pad); display: flex; justify-content: space-between; gap: 24px; background: var(--black); color: var(--cream); font-size: 12px; font-weight: 700; }
.notes-footer div { display: flex; gap: 28px; }
.notes-footer a:hover { color: var(--accent); }

/* Version 3 keeps articles calm and reserves colour for navigation cues. */
:root[data-color-version="orange-creative"] .notes-logo { background: transparent; }
:root[data-color-version="orange-creative"] .notes-logo img {
  inset: 50% auto auto 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1.42);
}
:root[data-color-version="orange-creative"] .notes-hero { background: var(--cream); }
:root[data-color-version="orange-creative"] .eyebrow { color: var(--orange); }
:root[data-color-version="orange-creative"] .notes-footer { background: var(--blue); }

@media (max-width: 760px) {
  :root { --pad: 22px; }
  .notes-nav { top: 8px; width: calc(100% - 16px); height: 52px; }
  .notes-nav nav { padding: 4px; grid-template-columns: 38px 1fr 84px; gap: 3px; }
  .notes-logo span { width: 25px; }
  .notes-logo img { transform: scale(1.35); }
  .notes-nav nav > strong { font-size: 11px; }
  .back-home { gap: 3px; font-size: 9.5px; }
  .notes-hero { min-height: 82svh; padding-top: 120px; }
  .notes-hero h1 { font-size: clamp(36px, 9.3vw, 44px); line-height: 1.18; }
  .intro { margin-top: 32px; font-size: 16px; }
  .notes-list { padding-top: 70px; }
  .list-heading { display: block; }
  .list-heading span { display: block; margin-top: 10px; }
  .empty-note { grid-template-columns: 1fr; gap: 24px; }
  .note-card { min-height: 0; grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
  .note-card-meta { grid-template-columns: 1fr auto; }
  .note-read { justify-self: end; }
  .notes-footer { display: block; }
  .notes-footer div { margin-top: 18px; }

  :root[data-color-version="orange-creative"] .notes-logo img {
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%) scale(1.42);
  }
}
