/* ════════════════════════════════════════════════════════════════════════
   cv.acupofmoka.com — Base Reset & Variables
   Mobile-first, 480px column; desktop gets a wider centered stage.
   Color palette: warm coral-red + deep slate on warm cream.
   ════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* Brand palette — friendly, editorial, trustworthy */
  --brand:        #E8503C;   /* primary action / accent / links */
  --brand-deep:   #C7402E;   /* hover / pressed */
  --brand-soft:   #FCE9E4;   /* tint background for badges / cards */

  --dark:         #2B3340;   /* headlines */
  --mid:          #6B7585;   /* secondary text */
  --light:        #FBF6EE;   /* page background tint */
  --white:        #FFFFFF;   /* card / surface */
  --border:       #EAE4DA;   /* hairline dividers */

  --shadow-sm:    0 1px 2px rgba(43, 51, 64, .06);
  --shadow-md:    0 4px 14px rgba(43, 51, 64, .08);
  --shadow-lg:    0 10px 28px rgba(43, 51, 64, .10);

  --r:            8px;
  --r-lg:         14px;

  --sans:   'Inter', 'Trebuchet MS', 'Segoe UI', 'PingFang SC', 'Helvetica Neue', sans-serif;
  --serif:  Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Songti SC', serif;
  --mono:   'JetBrains Mono', 'Courier New', ui-monospace, monospace;
}

html { background: var(--light); }

body {
  font-family: var(--sans);
  background: var(--light);
  color: var(--dark);
  max-width: 480px;        /* keep mobile column intact */
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }

/* ── Header ── */
header {
  background: var(--white);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 99;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.hd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .4px;
  color: var(--mid);
}
.hd-tagline { color: var(--mid); }
.hd-edition {
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .7px;
}
.hd-row {
  padding: 14px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Logo — text + bitmap mark (image) hybrid */
.logo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
  font-style: italic;
  color: var(--dark);
  letter-spacing: -.3px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#logo-text { line-height: 1; }
.logo-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex: 0 0 auto;
  object-fit: contain;
}

.hd-back {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dark);
  font-size: 13.5px;
  font-weight: 600;
  min-width: 60px;
}
.hd-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--dark);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hd-back:active svg,
.hd-back:active { stroke: var(--brand); color: var(--brand); }
.hd-ph { min-width: 60px; }

/* ── Hamburger toggle ── */
.hd-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 26px;
  height: 26px;
  min-width: 26px;
  margin-left: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.hd-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: background .15s ease;
}
.hd-burger:active span { background: var(--brand); }

/* ── Drawer nav: soft text-links, not button pills ── */
.hd-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 4px 0 12px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}
.hd-nav.open { display: flex; }
.hd-nav a {
  color: var(--dark);
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 11px 4px;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .12s ease, background .12s ease;
}
.hd-nav a:last-child { border-bottom: none; }
.hd-nav a::after {
  content: '\203A';          /* › */
  color: var(--mid);
  font-size: 16px;
  font-weight: 400;
  margin-left: 8px;
  transition: color .12s ease, transform .12s ease;
}
.hd-nav a:active { background: var(--light); color: var(--brand); }
.hd-nav a:active::after { color: var(--brand); transform: translateX(2px); }
.hd-nav a.active {
  background: transparent;
  color: var(--brand);
}
.hd-nav a.active::after { color: var(--brand); }

/* ── Footer ── */
footer {
  background: var(--dark);
  padding: 22px 16px;
  text-align: center;
  margin-top: 8px;
}
footer a {
  color: #c8cdd6;
  font-size: 13px;
  margin: 0 12px;
  transition: color .12s ease;
}
footer a:active { color: var(--brand); }
footer a:hover { color: #fff; }

/* ── Category tag badge ── */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 2px 8px;
  color: #fff;
  background: var(--brand);
  line-height: 1.6;
  border-radius: 4px;
}

/* ── Section header row (shared) ── */
.sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  background: var(--white);
}
.sec-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  color: var(--dark);
}
.sec-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  position: relative;
}
.sec-more::after {
  content: '\2192';
  margin-left: 3px;
}
.sec-more:active { color: var(--brand-deep); }

/* ── Desktop stage: center the 480px column on a wider canvas ── */
@media (min-width: 720px) {
  body {
    background: var(--light);
    box-shadow: var(--shadow-md);
    min-height: 100vh;
  }
  header {
    box-shadow: var(--shadow-md);
  }
}