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

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
  background: #07070c;
  font-family: Inter, system-ui, sans-serif;
}

.feed-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 140, 120, 0.25), transparent 36%),
    radial-gradient(circle at 86% 72%, rgba(140, 120, 255, 0.28), transparent 40%),
    linear-gradient(150deg, #160b09, #080811 50%, #17103a);
}

.dog-emoji-picture {
  display: inline;
}

.dog-emoji {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  object-fit: contain;
  vertical-align: -0.2em;
}

.feed-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(1120px, calc(100% - 24px));
  min-height: 70px;
  margin: 12px auto 0;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(5, 5, 8, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.feed-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
}

.feed-brand > span {
  font-size: 1.65rem;
  line-height: 1;
}

.feed-header nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.feed-header nav a,
.feed-header nav #searchBtn,
.card-action,
.explore-links a,
#shufflePhoto {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.feed-header nav a {
  padding: 10px 13px;
  font-size: 0.86rem;
}

.feed-header nav #searchBtn {
  padding: 8px 12px;
}

.feed-header nav #searchBtn .dog-emoji {
  width: 1.4rem;
  height: 1.4rem;
}

.feed-header nav a:hover,
.feed-header nav a:focus-visible,
.feed-header nav #searchBtn:hover,
.feed-header nav #searchBtn:focus-visible,
.card-action:hover,
.card-action:focus-visible,
.explore-links a:hover,
.explore-links a:focus-visible,
#shufflePhoto:hover,
#shufflePhoto:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.feed-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 90px 0 76px;
}

.feed-hero {
  max-width: 850px;
  margin-bottom: 48px;
}

.feed-eyebrow,
.card-label {
  color: #ffb7a5;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feed-hero h1 {
  max-width: 850px;
  margin: 12px 0 20px;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  background: linear-gradient(90deg, #fff 8%, #ffb7a5 48%, #bfa8ff);
  background-clip: text;
  color: transparent;
}

.feed-hero > p:last-child {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feed-card,
.explore-strip {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.feed-card {
  min-width: 0;
  min-height: 400px;
  padding: 30px;
}

.feed-card > *,
.card-copy,
.dog-copy,
.card-topline > div {
  min-width: 0;
}

.feed-card h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.feed-card p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.card-action {
  display: inline-flex;
  margin-top: 24px;
  padding: 11px 14px;
}

.comic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.58fr);
  gap: 28px;
  align-items: center;
}

.comic-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

.blog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blog-card .card-action {
  margin-top: auto;
}

.post-meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.post-meta span {
  padding: 7px 9px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.photo-card {
  min-height: 530px;
}

.card-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.card-topline h2 {
  max-width: 420px;
}

#shufflePhoto {
  flex: 0 0 auto;
  padding: 10px 13px;
  cursor: pointer;
}

#randomPhotoLink {
  display: block;
  overflow: hidden;
  border-radius: 17px;
}

#randomPhoto {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease;
}

#randomPhotoLink:hover #randomPhoto,
#randomPhotoLink:focus-visible #randomPhoto {
  transform: scale(1.025);
}

.photo-caption {
  margin-top: 14px;
  font-size: 0.9rem;
}

.dog-card {
  min-height: 420px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 38px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 183, 165, 0.28), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
}

.dog-card::before {
  content: "Daily";
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.breed-of-day-image {
  width: min(210px, 70%);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.35), transparent 35%),
    linear-gradient(135deg, #ffb7a5, #bfa8ff);
  box-shadow: inset 0 0 46px rgba(255, 255, 255, 0.17), 0 22px 60px rgba(0, 0, 0, 0.34);
}

.breed-of-day-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breed-of-day-copy {
  min-width: 0;
}

.breed-of-day-copy > p {
  max-width: 660px;
  margin-inline: auto;
}

.breed-kicker {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dog-card h2 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 0.94;
  background: linear-gradient(90deg, #ffb7a5, #bfa8ff);
  background-clip: text;
  color: transparent;
}

.breed-meter {
  height: 10px;
  margin: 22px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.breed-meter span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb7a5, #bfa8ff);
}

.breed-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.breed-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.breed-daily-jump {
  display: inline-flex;
  min-height: 46px;
  margin-top: 18px;
  padding: 12px 16px;
  align-items: center;
  border-radius: 12px;
  color: #08080d;
  background: white;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease;
}

.breed-daily-jump:hover,
.breed-daily-jump:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.explore-strip {
  margin-top: 18px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.explore-strip h2 {
  margin-top: 9px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
}

.explore-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.explore-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
}

.explore-links a span {
  font-size: 1.35rem;
}

footer {
  padding: 60px;
  color: #777;
  background: #07070b;
  text-align: center;
}

.home-secret-trigger {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  opacity: 0;
}

.home-secret-trigger:focus-visible {
  border-radius: 0 8px 0 0;
  outline: 2px solid #ffb7a5;
  outline-offset: -4px;
  background: rgba(255, 183, 165, 0.16);
  opacity: 1;
}

.home-secret-dialog {
  position: fixed;
  inset: 0;
  width: min(380px, calc(100% - 28px));
  margin: auto;
  padding: 36px 30px 30px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 183, 165, 0.2), transparent 48%),
    linear-gradient(145deg, #1b1520, #0c0b13 72%);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.76), 0 0 0 1px rgba(255, 183, 165, 0.06) inset;
  text-align: center;
}

.home-secret-dialog[open] {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.home-secret-dialog::backdrop {
  background: rgba(2, 2, 7, 0.78);
  backdrop-filter: blur(8px);
}

.home-secret-dialog h2 {
  max-width: 280px;
  font-size: clamp(1.65rem, 6vw, 2.1rem);
  line-height: 1.05;
}

.home-secret-label {
  color: #ffb7a5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-secret-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  place-items: center;
  border: 1px solid rgba(255, 183, 165, 0.34);
  border-radius: 17px;
  color: #ffb7a5;
  background: rgba(255, 183, 165, 0.1);
  box-shadow: 0 12px 34px rgba(255, 122, 95, 0.13);
  font-size: 1.45rem;
}

.home-secret-hint {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.home-secret-embed {
  width: 154px;
  height: 224px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.home-secret-embed iframe {
  display: block;
  border: 0;
  color-scheme: light;
}

.home-secret-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 1.45rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .feed-header {
    position: relative;
    top: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-header nav {
    width: 100%;
    justify-content: flex-start;
  }

  .feed-shell {
    padding-top: 60px;
  }

  .feed-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dog-card {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 28px 22px;
    text-align: center;
  }

  .dog-card::before {
    top: 14px;
    right: 14px;
  }

  .breed-of-day-image {
    width: min(220px, 72vw);
  }

  .breed-of-day-copy > p {
    margin-inline: auto;
  }

  .breed-meta {
    justify-content: center;
  }

  .explore-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .feed-header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-header nav a {
    text-align: center;
  }

  .feed-hero h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .feed-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .comic-card {
    grid-template-columns: 1fr;
  }

  .comic-card > img {
    width: min(230px, 72%);
    margin: 10px auto 0;
  }

  .photo-card {
    min-height: 0;
  }

  .card-topline {
    align-items: stretch;
    flex-direction: column;
  }

  #shufflePhoto {
    align-self: flex-start;
  }

  .explore-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
