@import url("palette.css?v=3");
@import url("button-suite.css?v=4");

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--palette-black);
  color: var(--palette-white);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.archive-view-nav {
  position: relative;
  z-index: 2;
  width: min(100% - 24px, 680px);
  margin: 14px auto 2px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(var(--palette-white-rgb), 0.25);
  border-radius: 12px;
  background: var(--palette-navy);
  overflow: hidden;
}

.archive-view-nav a {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px 7px 8px;
  border-bottom: 3px solid transparent;
  color: rgba(var(--palette-white-rgb), 0.8);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.archive-view-nav a + a { border-left: 1px solid rgba(var(--palette-white-rgb), 0.25); }
.archive-view-nav .nav-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.archive-view-nav a:hover { color: var(--palette-white); background: var(--palette-navy); }
.archive-view-nav a.active,
.archive-view-nav a[aria-current="page"] {
  border-bottom-color: var(--palette-sky);
  color: var(--palette-white);
  background: var(--palette-navy);
}
.archive-view-nav a:focus-visible {
  outline: 3px solid var(--palette-sky);
  outline-offset: -3px;
}

@media (max-width: 600px) {
  .archive-view-nav a { padding-inline: 2px; font-size: 10px; letter-spacing: 0; }
}

.site-header {
  min-height: clamp(300px, 39.77vw, 520px);
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-position: center 43%;
  background-size: cover;
  background-repeat: no-repeat;
}

.site-header h1 {
  margin: 0;
  color: var(--palette-amber);
  align-self: flex-end;
  transform: translateX(-0.01em);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(var(--palette-black-rgb), 0.5);
}

.site-header h1 .www-prefix {
  display: inline-block;
  margin-right: 0.08em;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.04em;
  vertical-align: baseline;
}
.site-header h1 .blogs-word { font: inherit; }
.site-header p {
  margin: 1px 0 0;
  color: var(--palette-amber);
  transform: translateX(-1.6em);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(var(--palette-black-rgb), 0.8);
}

/* Wide/landscape screens: keep the title and subtitle together as one
   compact, right-aligned group instead of letting the subtitle drift inward. */
@media (min-width: 601px) and (orientation: landscape) {
  .site-header {
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: clamp(32px, 5vw, 58px);
    padding-right: clamp(24px, 5vw, 72px);
    text-align: right;
  }
  .site-header h1 {
    align-self: auto;
    transform: none;
    font-size: clamp(42px, 5vw, 68px);
  }
  .site-header p {
    align-self: auto;
    margin-top: 6px;
    transform: none;
    font-size: clamp(16px, 1.65vw, 22px);
  }
}

.story-grid {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.story-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--palette-navy);
  border-radius: 14px;
  background: var(--palette-navy);
  color: var(--palette-white);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.story-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--palette-white-rgb), 0.25);
}

.story-card:focus-visible {
  outline: 3px solid var(--palette-sky);
  outline-offset: 3px;
}

.story-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--palette-navy);
}

.story-info {
  padding: 15px 18px 18px;
}

.story-info h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.story-info p {
  margin: 0;
  color: rgba(var(--palette-white-rgb), 0.8);
}

.story-badge {
  display: inline-block;
  margin: 0 0 9px;
  padding: 5px 9px;
  border: 1px solid rgba(var(--palette-white-rgb), 0.5);
  border-radius: 999px;
  color: rgba(var(--palette-white-rgb), 0.8);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.story-badge.private {
  border-color: var(--palette-sky);
  color: var(--palette-sky);
}

.notice {
  padding: 30px 20px;
  text-align: center;
  color: rgba(var(--palette-white-rgb), 0.8);
}

/* Story gallery: two edge-to-edge 9:16 photo/video tiles per row. */
.gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
}

.gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--palette-black);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  background: var(--palette-black);
}

/* Captions may remain in Markdown but do not consume gallery height. */
.gallery-item figcaption,
.gallery-item .gallery-caption,
.gallery-caption {
  display: none;
}

@media (max-width: 600px) {
  .site-header {
    min-height: 0px;
    aspect-ratio: 1989 / 791;
    padding: 22px 14px 18px;
    justify-content: flex-start;
    background-position: center center;
    background-size: contain;
  }
  .site-header h1 {
    font-size: 44px;
  }
  .story-grid {
    display: block;
    padding: 12px;
  }
  .story-card {
    margin-bottom: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-card {
    transition: none;
  }
}

/* USER CIRCLE LAUNCHER START */
.user-launcher {
  grid-column: 1 / -1;
  width: min(100%, 460px);
  margin: 0 auto 12px;
  padding: 8px 4px 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 14px;
}
.user-launcher-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--palette-white);
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.user-avatar {
  width: clamp(62px, 17vw, 80px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--palette-sky);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(var(--palette-white-rgb), 0.1), var(--palette-navy));
  box-shadow: 0 2px 12px rgba(var(--palette-black-rgb), 0.5);
  transition: transform 150ms ease, border-color 150ms ease;
}
.user-avatar img { width:100%; height:100%; display:block; object-fit:cover; }
.user-avatar-initial { color:var(--palette-amber); font-size:clamp(22px,6vw,30px); font-weight:750; line-height:1; }
.user-launcher-name {
  width:100%; overflow:hidden; color:var(--palette-white);
  font-size:clamp(12px,3.4vw,15px); font-weight:600; line-height:1.15;
  white-space:nowrap; text-overflow:ellipsis;
}
.user-launcher-item:hover .user-avatar,
.user-launcher-item:focus-visible .user-avatar { transform:translateY(-2px); border-color:var(--palette-amber); }
.user-launcher-item:focus-visible { outline:none; }
@media (max-width:600px) {
  .user-launcher { width:100%; margin:0 auto 8px; padding:8px 0 10px; column-gap:9px; row-gap:12px; }
}
@media (prefers-reduced-motion:reduce) { .user-avatar { transition:none; } }
/* USER CIRCLE LAUNCHER END */


/* V21: the root banner doubles as the site-introduction entry point. */
.site-header.site-header-link {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.site-header.site-header-link:focus-visible {
  outline: 3px solid var(--palette-amber);
  outline-offset: -3px;
}

/* V22.7.53: compact symbol-only footer on the main entry page. */
.home-symbol-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100% - 24px, 1100px);
  margin: 8px auto 4px;
  padding: 7px 4px calc(4px + env(safe-area-inset-bottom));
  color: rgba(var(--palette-white-rgb), 0.8);
  -webkit-user-select: none;
  user-select: none;
}
.home-symbol-footer .home-copyright { font-size: 12px; line-height: 1; }
.home-symbol-footer .home-social {
  position: relative;
  display: inline-flex;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  color: rgba(var(--palette-white-rgb), 0.8);
  flex: 0 0 14px;
}
.home-symbol-footer .home-instagram { border: 1.4px solid currentColor; border-radius: 4px; }
.home-symbol-footer .home-instagram::before {
  content: '';
  width: 5px;
  height: 5px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
}
.home-symbol-footer .home-instagram::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  right: 2px;
  top: 2px;
  border-radius: 50%;
  background: currentColor;
}
.home-symbol-footer .home-youtube {
  width: 17px;
  flex-basis: 17px;
  height: 12px;
  border: 1.3px solid currentColor;
  border-radius: 4px;
}
.home-symbol-footer .home-youtube::before {
  content: '';
  margin-left: 1px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid currentColor;
}
.home-symbol-footer .home-x {
  border: 1.2px solid currentColor;
  border-radius: 2px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

/* V22.7.57: tiny build number at lower-left; symbols remain lower-right. */
.home-symbol-footer .home-version {
  font-size: 10px;
  line-height: 1;
  color: rgba(var(--palette-white-rgb), 0.8);
  letter-spacing: 0.02em;
}
.home-symbol-footer .home-footer-symbols {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
