@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --accent: #ff3b7f;
  --accent-2: #23b5ff;
  --bg: #fdf8ff;
  --surface: #ffffff;
  --text: #241628;
  --muted: rgba(36, 22, 40, 0.65);
  --max-width: 74rem;
  --shadow: 0 30px 60px rgba(36, 22, 40, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(255, 59, 127, 0.2), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(35, 181, 255, 0.18), transparent 50%),
    var(--bg);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -30% -20% auto auto;
  width: 70vmax;
  height: 70vmax;
  background: conic-gradient(from 120deg, rgba(255, 59, 127, 0.25), rgba(35, 181, 255, 0.2), rgba(255, 208, 109, 0.22), rgba(255, 59, 127, 0.3));
  filter: blur(80px);
  opacity: 0.7;
  z-index: -2;
  animation: ink-drift 22s ease-in-out infinite;
}

body::after {
  inset: auto auto -35% -25%;
  width: 60vmax;
  height: 60vmax;
  animation-delay: -6s;
}

@keyframes ink-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-6%, 8%, 0) scale(1.05);
  }
}

a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(120deg, rgba(255, 59, 127, 0.2), rgba(35, 181, 255, 0.25));
  background-size: 100% 40%;
  background-repeat: no-repeat;
  background-position: 0 85%;
  transition: background-size 0.25s ease, color 0.25s ease;
}

a:hover,
a:focus {
  background-size: 100% 100%;
  color: #150a18;
}

img {
  max-width: 100%;
  display: block;
}

main {
  display: block;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 2.5rem 0 1rem;
}

.header-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 28rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(36, 22, 40, 0.15);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.hero {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin: 0 0 0.75rem;
}

.hero-copy {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.ink-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(36, 22, 40, 0.08);
}

.gallery-grid {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.gallery-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 32px rgba(36, 22, 40, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(36, 22, 40, 0.08);
}

.gallery-card--linked {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 48px rgba(36, 22, 40, 0.18);
}

.gallery-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, rgba(255, 59, 127, 0.25), rgba(35, 181, 255, 0.15), rgba(255, 214, 130, 0.2));
  display: block;
  width: 100%;
  object-fit: cover;
}

.gallery-body {
  padding: 1.2rem 1.4rem 1.6rem;
}

.gallery-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.gallery-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gallery-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid rgba(36, 22, 40, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.post-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.post-header {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.post-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  margin: 0;
}

.post-meta {
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.post-hero {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-hero-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.post-hero-slide {
  flex: 0 0 min(90%, 520px);
  position: relative;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.post-hero-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 18px 35px rgba(20, 20, 30, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--surface);
}

.post-hero-grid::-webkit-scrollbar {
  height: 8px;
}

.post-hero-grid::-webkit-scrollbar-thumb {
  background: rgba(20, 20, 30, 0.2);
  border-radius: 999px;
}

.post-hero-grid::-webkit-scrollbar-track {
  background: transparent;
}

.post-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.6rem);
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.post-content h2,
.post-content h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  margin-top: 2rem;
}

.post-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(255, 59, 127, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}

.footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 16px 30px rgba(255, 59, 127, 0.25);
}

@media (max-width: 780px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
