:root {
  color-scheme: light;
  --ink: #17130d;
  --muted: #6e675c;
  --line: #d9cdb8;
  --pet: #0f6b4f;
  --game: #383271;
  --gold: #b88a3b;
  --paper: #fffaf1;
  --bg: #f4efe6;
  --panel: #fffdf8;
  --night: #11100d;
  --rose: #9f5f4b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Avenir Next, Segoe UI, Helvetica Neue, Arial, sans-serif;
  font-size: 14pt;
  line-height: 1.6;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, .92), rgba(244, 239, 230, .96) 380px),
    repeating-linear-gradient(90deg, rgba(23, 19, 13, .025) 0 1px, transparent 1px 72px),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(184, 138, 59, .12), transparent 20%, transparent 80%, rgba(56, 50, 113, .09)),
    linear-gradient(180deg, rgba(255, 255, 255, .62), transparent 45%);
}

header, main, footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
}

header { padding: 34px 0 24px; }

.brandbar {
  background: rgba(255, 253, 248, .94);
  border: 1px solid rgba(217, 205, 184, .95);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(44, 35, 22, .12);
  padding: clamp(22px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}

.brandbar::before {
  content: "";
  position: absolute;
  left: clamp(22px, 4vw, 44px);
  right: clamp(22px, 4vw, 44px);
  top: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 59, .72), transparent);
}

.brandbar::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 138, 59, .13);
  border-radius: 6px;
  pointer-events: none;
}

.brandbar > * { position: relative; z-index: 1; }

.wordmark {
  display: inline-block;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(24pt, 5vw, 46pt);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .95;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 138, 59, .85);
  padding-bottom: 9px;
}

.menu {
  width: max-content;
  margin-top: 20px;
}

.menu summary {
  list-style: none;
  width: max-content;
  cursor: pointer;
  color: var(--paper);
  border: 1px solid var(--night);
  border-radius: 999px;
  background: var(--night);
  padding: 8px 16px;
  font-size: 10pt;
  font-weight: 800;
  user-select: none;
}

.menu summary::-webkit-details-marker { display: none; }

.menu summary::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.menu[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.menu-panel {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 10pt;
}

.menu-panel a,
.brand-link {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(217, 205, 184, .95);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  padding: 7px 12px;
  font-weight: 700;
}

.menu-panel a:hover,
.brand-link:hover {
  background: var(--night);
  border-color: var(--night);
  color: var(--paper);
  text-decoration: none;
}

a { color: #265184; text-underline-offset: 3px; }

h1, h2 {
  font-family: Georgia, Times New Roman, serif;
  letter-spacing: 0;
  line-height: 1.18;
  color: var(--ink);
}

h1 { font-size: clamp(22pt, 4vw, 36pt); margin: 0 0 14px; }
h2 { font-size: 17pt; margin: 28px 0 10px; }
p, li { font-size: 11.5pt; }

.hook,
.topic {
  font-size: 13.5pt;
  color: #272117;
}

.lede {
  color: #3f382f;
  max-width: 790px;
  margin: 18px 0 0;
  font-size: 12.5pt;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 9.5pt;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--gold);
  text-transform: uppercase;
}

.visual-stage {
  margin-top: 30px;
  min-height: clamp(300px, 44vw, 430px);
  border: 1px solid rgba(23, 19, 13, .18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 16, 13, .32), rgba(17, 16, 13, .02) 48%, rgba(17, 16, 13, .5)),
    url("assets/petpixeldaily-hero.png") center / cover no-repeat,
    var(--night);
  box-shadow: 0 34px 100px rgba(17, 16, 13, .24);
  position: relative;
  overflow: hidden;
}

.visual-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 250, 241, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 241, .09) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: soft-light;
  opacity: .5;
}

.visual-stage::after {
  content: "Pet wellness / indie strategy / daily editorial";
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: rgba(255, 250, 241, .86);
  font-size: 9.5pt;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pixel-card,
.stitch-line,
.scan-band { display: none; }

.ticker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 22px;
  max-width: 520px;
}

.tick {
  min-height: 4px;
  border-radius: 999px;
  background: var(--gold);
  opacity: .75;
}

.tick:nth-child(2n) { background: var(--pet); }
.tick:nth-child(3n) { background: var(--game); }
.tick:nth-child(5n) { background: var(--rose); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.card,
article {
  background: rgba(255, 253, 248, .96);
  border: 1px solid rgba(217, 205, 184, .95);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(44, 35, 22, .09);
  position: relative;
}

.card {
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 138, 59, .65);
  box-shadow: 0 26px 70px rgba(44, 35, 22, .13);
}

.card h2 { font-size: 16pt; margin-top: 12px; }
.card h2 a { color: var(--ink); text-decoration-thickness: 1px; }

.meta {
  color: var(--muted);
  font-size: 10pt;
  margin-top: 0;
}

.badge {
  display: inline-block;
  font-size: 8.5pt;
  color: #fff;
  border: 1px solid rgba(23, 19, 13, .12);
  border-radius: 999px;
  padding: 4px 9px;
  margin: 0 8px 6px 0;
  font-weight: 800;
}

.pet,
.pet-link { background: var(--pet); color: #fff; }
.game,
.game-link { background: var(--game); color: #fff; }

main > article {
  max-width: 860px;
  padding: clamp(24px, 4vw, 46px);
  margin: 32px auto;
}

article::before {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--gold), rgba(184, 138, 59, .12));
}

.faq {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 8px;
}

.final-note {
  font-size: 11.5pt;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: #3f382f;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  font-size: 10pt;
  font-weight: 800;
  text-decoration: none;
}

.topic-tag:hover {
  color: #fff;
  filter: brightness(.92);
  text-decoration: none;
}

.pet-tag { background: var(--pet); }
.game-tag { background: var(--game); }

.archive-link {
  margin: 8px 0 34px;
  text-align: center;
}

.archive-link a {
  display: inline-flex;
  border: 1px solid rgba(217, 205, 184, .95);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink);
  background: rgba(255, 253, 248, .8);
  font-weight: 800;
  text-decoration: none;
}

.archive-day {
  max-width: 860px;
  margin: 24px auto;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.archive-day ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.archive-day li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(217, 205, 184, .55);
}

.archive-day span,
.archive-day em {
  color: var(--muted);
  font-size: 9.5pt;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10.5pt;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 640px) {
  header, main, footer { width: min(100% - 28px, 1120px); }
  header { padding-top: 20px; }
  .brandbar { padding: 22px; }
  .menu,
  .menu summary { width: 100%; }
  .menu summary { text-align: center; }
  .menu-panel { display: grid; grid-template-columns: 1fr; }
  .menu-panel a { padding: 9px 12px; text-align: center; }
  .visual-stage { min-height: 300px; background-position: center; }
  .visual-stage::after { right: 20px; font-size: 8.5pt; }
  .ticker { grid-template-columns: repeat(3, 1fr); }
  main > article { padding: 24px; }
  .archive-day li { grid-template-columns: 1fr; gap: 4px; }
  footer { align-items: flex-start; flex-direction: column; }
}
