* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

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

/* ===== Desktop chrome (default) ===== */

.d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0));
}

.brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.nav-link:hover {
  opacity: 1;
}

.d-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 24px 32px;
  z-index: 10;
  font-size: 13px;
  color: #888;
}

/* Mobile chrome hidden on desktop */

.m-header,
.m-footer,
.m-closing-text {
  display: none;
}

/* ===== Shared feed ===== */

.feed {
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 24px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.entry {
  width: 100%;
  margin-bottom: 96px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

/* Desktop caption: numbering, then "title, date — text" combined below (screenshot_03) */

.m-caption {
  display: none;
}

.entry-index {
  font-size: 13px;
  color: #111;
  margin-bottom: 8px;
}

.entry-caption-text {
  margin: 0;
  font-size: 14px;
  color: #333;
  max-width: 46em;
}

/* Mobile caption (hidden on desktop via .m-caption above) */

.entry-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.entry-number {
  color: #111;
}

.entry-title {
  color: #111;
  font-weight: 600;
}

.entry-date {
  color: #9a9a9a;
}

.entry-text {
  margin: 0;
  font-size: 14px;
  color: #333;
  max-width: 46em;
}

/* ===== Information overlay (shared) ===== */

.info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.info-overlay.open {
  display: flex;
}

.info-box {
  position: relative;
  background: #fff;
  padding: 48px 64px;
  min-width: 220px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.info-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 4px;
}

.info-close:hover {
  color: #111;
}

/* ===== Mobile layout ===== */

@media (max-width: 680px) {

  .d-header,
  .d-footer {
    display: none;
  }

  .d-caption {
    display: none;
  }

  .m-caption {
    display: block;
  }

  .entry-image {
    cursor: pointer;
  }

  .entry-text {
    display: none;
    margin-top: 4px;
  }

  .entry.expanded .entry-text {
    display: block;
  }

  /* Sticky top bar: bold label + rule */
  .m-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #111;
    padding: 14px 20px;
    text-align: center;
  }

  .m-brand {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
  }

  .feed {
    max-width: 480px;
    padding: 28px 20px 24px;
  }

  .entry {
    margin-bottom: 56px;
  }

  .entry-image {
    margin-bottom: 14px;
  }

  .entry-meta {
    gap: 10px;
    margin-bottom: 8px;
  }

  .m-closing-text {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    font-size: 13px;
    color: #888;
    text-align: left;
  }

  /* Sticky bottom bar: bold labels + rule */
  .m-footer {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fff;
    border-top: 1px solid #111;
    padding: 14px 20px;
    justify-content: center;
    gap: 28px;
  }

  .m-nav-link {
    background: none;
    border: none;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    color: inherit;
    cursor: pointer;
    padding: 0;
  }

  .info-box {
    padding: 40px 48px;
    min-width: 200px;
  }
}
