/* Fullscreen static background behind scrolling content */

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050509;
  color: #f5f5f5;
}

.osad-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("../img/osad-bg-portrait.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Landscape / wide screens */
@media (min-aspect-ratio: 4/3) {
  .osad-bg {
    background-image: url("../img/osad-bg-landscape.webp");
  }
}

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

img {
  max-width: 100%;
  height: auto;
}

.osad-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & hero */

.osad-header {
  padding: 24px 16px 16px;
  text-align: center;
}

.osad-logo-wrap {
  margin-bottom: 8px;
}

.osad-logo {
  width: 170px;
  max-width: 42vw;
  display: block;
  margin: 0 auto;
  image-rendering: auto;
  filter:
    drop-shadow(0 0 0 #ffffff)
    drop-shadow(0 0 4px #ffffff)
    drop-shadow(0 0 12px #ffffff);
  animation: osad-float 3.6s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes osad-float {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

.osad-logo-link:hover .osad-logo,
.osad-logo-link:focus-visible .osad-logo {
  filter:
    drop-shadow(0 0 0 #ffffff)
    drop-shadow(0 0 6px #ffffff)
    drop-shadow(0 0 18px #ffffff);
}

.osad-title-block {
  margin-top: 8px;
}

.osad-site-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 1.3rem;
  margin: 8px 0 2px;
}

.osad-site-tagline {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

/* Nav pills, mid-tone */

.osad-main-nav {
  margin-top: 18px;
}

.osad-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.osad-menu li {
  font-size: 0.8rem;
}

.osad-menu a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(120, 90, 130, 0.55); /* muted purple */
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
  color: #fdfdfd;
}

.osad-menu a:hover,
.osad-menu a:focus-visible {
  background: rgba(150, 115, 165, 0.8);
}

/* Search */

.osad-search-wrap {
  margin: 18px auto 8px;
  max-width: 720px;
  padding: 0 16px;
}

.osad-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(25,25,25,0.7);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 40px rgba(0,0,0,0.9);
}

.osad-search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #f5f5f5;
  font-size: 0.95rem;
}

.osad-search-input:focus {
  outline: none;
}

.osad-search-button {
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, #f1a85a, #e87c5f); /* mid-tone snack orange */
  color: #111;
}

/* Grid of stamp cards */

.osad-main {
  flex: 1;
  padding: 12px 10px 32px;
}

.osad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card stamps integrated with illustration */

.osad-card {
  position: relative;
}

.osad-card-inner {
  display: block;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(40,40,40,0.78); /* mid-tone */
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.8rem;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.16s ease-out,
    filter 0.16s ease-out;
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.8),
    0 0 0 1px rgba(0,0,0,0.6);
}

/* hover/tap gradient light pop */
.osad-card-inner:hover,
.osad-card-inner:focus-visible {
  transform: translateY(-4px);
  background: radial-gradient(circle at top, rgba(255,255,255,0.22), rgba(40,40,40,0.9));
  box-shadow:
    0 20px 40px rgba(0,0,0,0.95),
    0 0 18px rgba(250, 245, 210, 0.5);
  filter: saturate(1.1);
}

/* Card meta mid-tones */
.osad-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
  margin-bottom: 4px;
}

.osad-card-category {
  color: #8fd4db; /* muted teal */
}

.osad-card-date {
  color: #b4d96a; /* muted green */
}

.osad-card-title {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fafafa;
}

/* Single post layout */

.osad-single {
  max-width: 760px;
  margin: 18px auto 40px;
  padding: 18px 20px 24px;
  border-radius: 22px;
  background: rgba(20,20,20,0.88);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.95),
    0 0 0 1px rgba(0,0,0,0.7);
  backdrop-filter: blur(14px);
}

.osad-single-header {
  margin-bottom: 14px;
}

.osad-single-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.osad-single-category {
  color: #8fd4db;
}

.osad-single-date {
  color: #b4d96a;
}

.osad-single-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 6px 0 0;
}

.osad-single-content {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 10px;
}

.osad-single-content p {
  margin: 0 0 1em;
}

.osad-single-content a {
  text-decoration: underline;
}

.osad-single-footer {
  margin-top: 18px;
  font-size: 0.8rem;
}

/* Footer */

.osad-footer {
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.7;
  padding: 10px 0 16px;
}

/* iOS tweaks */
@supports (-webkit-touch-callout: none) {
  .osad-card-inner {
    cursor: default;
  }
}
