/* Chi Le Ma shared styles. Brand tokens from the Brand & Style Guide. */
:root {
  --paper: #FAF6EF; --cream: #F3E6D2; --cream-2: #ECDFC9; --card: #FFFDF8;
  --ink: #3A2A22; --brown: #5B3A2B; --russet: #9A3F1F; --orange: #C5612F;
  --sage: #8E9B7E; --lucky: #953329; --line: #E6D9C4; --line-2: #C9B79C; --muted: #D9C7AA;
  --display: 'Cormorant Garamond', Georgia, serif; --body: 'Lora', Georgia, serif;
  --sc: 'Noto Serif SC', serif; --tc: 'Noto Serif TC', serif; --roman: 'Noto Serif', Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--russet); } a:hover { color: var(--brown); }
.art { mix-blend-mode: multiply; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.band { background: var(--cream); }
.zh-sc { font-family: var(--sc); } .zh-tc { font-family: var(--tc); } .roman { font-family: var(--roman); font-size: 14px; color: var(--brown); }
.eyebrow { font-size: 13px; letter-spacing: 0.16em; color: var(--russet); text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; }
h1.display { font-size: clamp(36px, 6vw, 56px); }
h2.display { font-size: clamp(28px, 4vw, 38px); }
.lede { font-size: 18px; color: var(--brown); margin: 0; }
.muted { color: var(--brown); }
.italic { font-family: var(--display); font-style: italic; }
[hidden] { display: none !important; }
.placeholder { background: #FFF3D6; border-radius: 4px; padding: 0 4px; align-self: flex-start; justify-self: start; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-top { background: var(--brown); color: var(--cream); text-align: center; padding: 10px 16px; font-size: 14px; letter-spacing: 0.04em; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.logo .zh { font-family: var(--sc); font-size: 24px; font-weight: 700; color: var(--russet); }
.logo .en { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: 0.22em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; letter-spacing: 0.06em; }
.site-nav a { text-decoration: none; color: var(--ink); padding: 10px 0; }
.site-nav a[aria-current="page"] { color: var(--russet); }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); }
.site-footer a { color: var(--cream); }
.site-footer .wrap { padding-top: 44px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer .brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer .brand .logo { color: var(--cream); }
.site-footer .brand .logo .zh { color: var(--cream); font-size: 22px; }
.site-footer nav { flex: 1 1 360px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 28px; font-size: 15px; }
.site-footer nav a { padding: 8px 0; }
.site-footer .legal { padding-top: 0; font-size: 13px; color: var(--muted); }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--russet); color: var(--paper); font-family: var(--body); font-size: 16px; letter-spacing: 0.05em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brown); color: var(--paper); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--russet); border: 1.5px solid var(--russet); }
.btn-outline:hover { background: var(--cream); color: var(--russet); }
.btn-block { width: 100%; min-height: 56px; font-size: 17px; }
.chip { min-height: 44px; padding: 6px 18px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink); font-family: var(--body); font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--russet); background: var(--russet); color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.option { min-height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); font-family: var(--body); font-size: 15px; cursor: pointer; padding: 6px 12px; }
.option[aria-pressed="true"] { border: 2px solid var(--russet); background: var(--cream); }
.swatch { width: 44px; height: 44px; border-radius: 999px; border: 1px solid #BFA984; cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { border: 2px solid var(--russet); box-shadow: inset 0 0 0 3px var(--paper); }
.field-label { font-size: 13px; letter-spacing: 0.12em; color: var(--brown); text-transform: uppercase; }
.field-label strong { color: var(--ink); letter-spacing: 0.04em; text-transform: none; }

/* Forms */
.input, textarea.input { width: 100%; min-height: 52px; padding: 12px 18px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--card); font-family: var(--body); font-size: 16px; color: var(--ink); }
.signup { display: flex; flex-wrap: wrap; gap: 10px; }
.signup .input { flex: 1 1 220px; min-width: 0; border-radius: 999px; }
.form-note { font-size: 15px; color: var(--brown); margin: 0; min-height: 1.6em; }

/* Product cards */
.grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.card:hover .card-name { text-decoration: underline; }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--cream-2); border-radius: 16px; overflow: hidden; margin-bottom: 6px; }
.card-types { font-size: 12px; letter-spacing: 0.12em; color: var(--russet); }
.card-name { font-size: 16px; font-weight: 600; line-height: 1.35; }
.card-phrase { font-size: 24px; font-weight: 700; line-height: 1.25; }
.card-meaning { font-family: var(--display); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--brown); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; color: var(--brown); }
.tag { font-size: 12px; color: var(--brown); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; }

/* Garment mockup: garment SVG with the art on top */
.mock { position: absolute; inset: 0; container-type: inline-size; }
.mock svg { position: absolute; inset: 5%; width: 90%; height: 90%; }
.mock .print { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1cqw; }
.mock .print img { width: 72%; height: auto; mix-blend-mode: multiply; }
.mock .print .p-zh { font-weight: 700; line-height: 1.15; color: var(--ink); font-size: 5cqw; }
.mock .print .p-en { font-family: var(--display); font-style: italic; color: var(--brown); font-size: 2.1cqw; line-height: 1.2; }
.mock.tee .print, .mock.sweatshirt .print { top: 27%; width: 40%; }
.mock.tote .print { top: 44%; width: 46%; }
.mock.cap .print { top: 34%; width: 18%; }

/* Accordions */
details.acc { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.acc > summary { min-height: 44px; display: flex; align-items: center; font-size: 16px; font-weight: 600; cursor: pointer; }
details.acc > div, details.acc > p, details.acc > ul { margin: 0 0 14px; font-size: 15px; color: var(--brown); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
