:root {
  /* Grey monochrome — list + article pages only */
  --g50: #f8f9fa;
  --g100: #e9ecef;
  --g200: #dee2e6;
  --g300: #ced4da;
  --g400: #adb5bd;
  --g500: #6c757d;
  --g600: #495057;
  --g700: #343a40;
  --g800: #212529;

  --ink: var(--g800);
  --paper: #ffffff;
  --muted: var(--g500);
  --line: var(--g300);
  --accent: var(--g700);
  --font-ui: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--ink);
  font-family: var(--font-ui);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body.page {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, var(--g50) 0%, transparent 60%),
    linear-gradient(180deg, var(--g50) 0%, var(--g100) 48%, var(--g200) 100%);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-nav__back,
.page-nav__brand {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-nav__back {
  color: var(--g500);
  transition: color 160ms ease;
}

.page-nav__back:hover {
  color: var(--g800);
}

.page-nav__brand {
  color: var(--g800);
}

.page-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.page-lede {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--g600);
  max-width: 38rem;
}

/* Today list */
.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.story-row {
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--g800) 14%, transparent);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.story-row:hover {
  transform: translateX(3px);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--g800) 16%, transparent);
}

.story-row__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.15rem;
}

.story-row__rule {
  width: 1px;
  align-self: stretch;
  background: var(--line);
  min-height: 1.4rem;
}

.story-row__title {
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  font-weight: 600;
  line-height: 1.35;
}

.story-row__arrow {
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--g600);
}

/* Article */
.article-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--line);
}

.article-body {
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  line-height: 1.65;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2,
.article-body h3 {
  margin: 1.75rem 0 0.7rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.article-body h2 {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
}

.article-body h3 {
  font-size: 1.05rem;
}

.article-body p,
.article-body ul,
.article-body blockquote {
  margin: 0 0 1rem;
}

.article-body ul {
  padding-left: 1.2rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body a {
  color: var(--g800);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.article-body strong {
  font-weight: 700;
}

.article-body code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
  background: var(--g100);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.article-body blockquote {
  border-left: 4px solid var(--g400);
  padding: 0.15rem 0 0.15rem 1rem;
  color: var(--g600);
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--line);
}

.article-footer a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--g500);
  transition: color 160ms ease;
}

.article-footer a:hover {
  color: var(--g800);
}

.page-status {
  padding: 2rem 0;
  color: var(--muted);
}

@media (max-width: 520px) {
  .page-shell {
    width: calc(100% - 1.25rem);
  }

  .story-row {
    grid-template-columns: auto 1px minmax(0, 1fr);
    padding: 0.9rem 0.95rem;
  }

  .story-row__arrow {
    display: none;
  }
}

.article-image {
  margin: 1.25rem 0;
}

.article-image img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 12px;
  background: var(--g100);
}

/* Product photo carousel */
.carousel {
  margin: 0 0 1.75rem;
  outline: none;
}

.carousel__frame {
  position: relative;
  overflow: hidden;
  background: var(--g100);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--g800) 14%, transparent);
  aspect-ratio: 4 / 3;
}

.carousel__track {
  height: 100%;
}

.carousel__slide {
  margin: 0;
  height: 100%;
}

.carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--g100);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--g800) 16%, transparent);
}

.carousel__btn:hover {
  background: var(--g200);
}

.carousel__btn--prev {
  left: 0.65rem;
}

.carousel__btn--next {
  right: 0.65rem;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.carousel__dot.is-active {
  background: var(--g800);
  border-color: var(--g800);
}

.carousel__status {
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@media (max-width: 520px) {
  .carousel__btn {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
}
