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

:root {
  --red:    #c1440e;
  --dark:   #2b1d17;
  --mid:    #6b584c;
  --light:  #f7f2ec;
  --white:  #fdfbf8;
  --border: #e8ddd0;
  --r:      3px;
  --sans:   'Trebuchet MS', 'Segoe UI', 'PingFang SC', sans-serif;
  --serif:  Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Songti SC', serif;
  --mono:   'Courier New', ui-monospace, monospace;

  --c-world:    #b5651d;
  --c-sports:   #7a8c3a;
  --c-politics: #a13d2f;
  --c-business: #c1440e;
  --c-style:    #8a5a44;
  --c-health:   #4d7a6f;
  --c-science:  #6d5b97;
}

html { background: #4a3a30; }

body {
  font-family: var(--sans);
  background: var(--light);
  color: var(--dark);
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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: 0 2px 8px rgba(0,0,0,.08);
}
.hd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .4px;
  color: var(--mid);
}
.hd-edition {
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.hd-row {
  padding: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}
.logo {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  color: var(--dark);
  letter-spacing: -1px;
  line-height: 1;
}
.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(--red); color: var(--red); }
.hd-ph { min-width: 60px; }

/* ── Hamburger toggle ── */
.hd-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 22px;
  height: 22px;
  min-width: 60px;
  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;
}

.hd-nav {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 10px;
}
.hd-nav.open { display: flex; }
.hd-nav a {
  color: var(--mid);
  background: var(--light);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
  padding: 5px 10px;
  border-radius: 20px;
  line-height: 1.3;
}
.hd-nav a.active {
  background: var(--nav-active, var(--red));
  color: #fff;
}

/* ── Footer ── */
footer {
  background: #2b1d17;
  padding: 22px 16px;
  text-align: center;
  margin-top: 8px;
}
footer a {
  color: #aaa;
  font-size: 13px;
  margin: 0 12px;
}
footer a:active { color: var(--red); }
footer a:hover { color: #e07a45; }

/* ── 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 7px;
  color: #fff;
  background: var(--red);
  line-height: 1.6;
  border-radius: 3px;
}
.tag.World    { background: var(--c-world); }
.tag.Sports   { background: var(--c-sports); }
.tag.Politics { background: var(--c-politics); }
.tag.Business { background: var(--c-business); }
.tag.Style    { background: var(--c-style); }
.tag.Health   { background: var(--c-health); }
.tag.Science  { background: var(--c-science); }

/* ── 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(--mono);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding-left: 10px;
  border-left: 3px solid var(--red);
}
.sec-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  position: relative;
}
.sec-more::after {
  content: '\2192';
  margin-left: 3px;
}
.sec-more:active { color: var(--dark); }
