/* ===========================
   Vinta.ws — Homepage
   Soft Structuralism / Editorial
   =========================== */

/* Variables */
:root {
  --bg: #FAFAF8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-heading: #0d0d0d;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;
  --accent: #2d5db8;
  --accent-hover: #e84d3d;
  --radius-sm: 1rem;
  --radius: 1.5rem;
  --container: 1100px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — diffused ambient, no harsh borders */
  --shadow-card: 0 0 0 1px rgba(0,0,0,0.03),
                 0 1px 2px rgba(0,0,0,0.03),
                 0 8px 32px -8px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 0 0 1px rgba(45,93,184,0.12),
                       0 2px 4px rgba(0,0,0,0.04),
                       0 16px 48px -12px rgba(45,93,184,0.12);
  --shadow-focus: 0 0 0 3px rgba(45,93,184,0.18);
  --inner-glow: inset 0 1px 1px rgba(255,255,255,0.7);
  --bg-footer: #f0f1f5;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   Hero
   =========================== */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, #233d7a 0%, var(--accent) 45%, #3a6fd4 100%);
  color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 38%, rgba(120, 170, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 3rem;
  opacity: 0.85;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-wrap: balance;
}

.hero-nav {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.55rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  transition: all 0.5s var(--ease);
}

.hero-nav a:hover {
  color: #1a3a6e;
  border-color: #ffffff;
  background: #ffffff;
  transform: translateY(-1px);
}

.hero-nav a:active {
  transform: scale(0.97);
}

.hero-social {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
}

.hero-social a {
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.5s var(--ease);
}

.hero-social a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-social a:active {
  transform: scale(0.95);
}

/* Hero entrance animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-logo {
  animation: heroFadeUp 0.9s var(--ease-spring) 0.1s both;
}

.hero-name {
  animation: heroFadeUp 0.9s var(--ease-spring) 0.2s both;
}

.hero-tagline {
  animation: heroFadeUp 0.9s var(--ease-spring) 0.38s both;
}

.hero-nav {
  animation: heroFadeUp 0.9s var(--ease-spring) 0.5s both;
}

.hero-social {
  animation: heroFadeUp 0.9s var(--ease-spring) 0.62s both;
}

/* ===========================
   Sections
   =========================== */

.section {
  padding-top: 7rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 2.5rem;
}

/* Scroll-triggered fade-in with blur (requires JS IntersectionObserver) */
.section.will-animate {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease),
              transform 0.8s var(--ease),
              filter 0.8s var(--ease);
}

.section.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ===========================
   Writing Cards — Double-Bezel
   =========================== */

.writing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.writing-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card), var(--inner-glow);
  transition: box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}

.writing-card:hover {
  box-shadow: var(--shadow-card-hover), var(--inner-glow);
  transform: translateY(-4px);
}

.writing-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.15s;
}

.writing-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.5s var(--ease);
}

.writing-card:hover h3 {
  color: var(--accent-hover);
}

.writing-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   Projects
   =========================== */

.projects-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card), var(--inner-glow);
  overflow: hidden;
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  transition: background 0.5s var(--ease);
  position: relative;
}

.project-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.05) 80%, transparent);
}

.project-item:last-child::after {
  display: none;
}

.project-item:hover {
  background: rgba(45, 93, 184, 0.03);
}

.project-item:hover .project-info {
  transform: translateX(0.5rem);
}

.project-item:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

.project-item:hover h3 {
  color: var(--accent-hover);
}

.project-item:active {
  transform: scale(0.995);
  transition-duration: 0.1s;
}

.project-info {
  flex: 1;
  min-width: 0;
  transition: transform 0.5s var(--ease);
}

.project-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
  transition: color 0.5s var(--ease);
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.5s var(--ease);
  flex-shrink: 0;
}

.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.5s var(--ease);
}

.section-cta:hover {
  color: var(--accent-hover);
}

.section-cta .cta-arrow {
  display: inline-block;
  transition: transform 0.5s var(--ease);
}

.section-cta:hover .cta-arrow {
  transform: translateX(3px);
}

/* ===========================
   Collections — Double-Bezel
   =========================== */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.collection-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card), var(--inner-glow);
  transition: box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}

.collection-card:hover {
  box-shadow: var(--shadow-card-hover), var(--inner-glow);
  transform: translateY(-4px);
}

.collection-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.15s;
}

.collection-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 1rem;
  transition: color 0.5s var(--ease);
}

.collection-card:hover h3 {
  color: var(--accent-hover);
}

.collection-card blockquote {
  border: none;
  margin: 0;
  padding: 0;
}

.collection-card blockquote p {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.collection-card blockquote cite {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

.collection-card blockquote cite::before {
  content: '\2014\00a0';
}

/* ===========================
   Footer
   =========================== */

.footer {
  margin-top: 7rem;
  padding: 2rem 0;
  text-align: center;
  background: var(--bg-footer);
}

.footer-email {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(45, 93, 184, 0.2);
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.footer-email:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.footer-credit {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-credit a {
  color: var(--text-muted);
  transition: color 0.5s var(--ease);
}

.footer-credit a:hover {
  color: var(--accent-hover);
}

/* ===========================
   Privacy Page
   =========================== */

.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 2.5rem 5rem;
}

.page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page .page-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}

.page p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.page ul {
  margin: 0 0 1.5rem 1.5rem;
  list-style: none;
}

.page ul li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-top: 0.3rem;
  padding-left: 0.75rem;
  position: relative;
}

.page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.page a {
  color: var(--accent);
  transition: color 0.5s var(--ease);
}

.page a:hover {
  color: var(--accent-hover);
}

.page-back {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 3rem;
  transition: all 0.5s var(--ease);
}

.page-back:hover {
  color: var(--accent-hover);
  transform: translateX(-3px);
}

/* ===========================
   Skip Link
   =========================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ===========================
   Focus States
   =========================== */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.hero-nav a:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.hero-social a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.writing-card:focus-visible,
.collection-card:focus-visible {
  box-shadow: var(--shadow-card-hover), var(--shadow-focus);
  outline: none;
}

.project-item:focus-visible {
  background: rgba(45, 93, 184, 0.03);
  outline: none;
  box-shadow: inset 3px 0 0 var(--accent);
}

.section-cta:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* ===========================
   Reduced Motion
   =========================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .section {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  .writing-grid {
    grid-template-columns: 1fr;
  }

  .collections-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 5rem;
  }

  .hero {
    min-height: 90dvh;
  }

  .hero-inner {
    max-width: 100%;
  }

  .project-item {
    padding: 1.25rem 1.5rem;
  }

  .project-item::after {
    left: 1.5rem;
    right: 1.5rem;
  }

  .footer {
    margin-top: 5rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 19px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding-top: 3.5rem;
  }

  .footer {
    margin-top: 3.5rem;
  }

  .hero {
    padding: 3rem 1.25rem;
  }

  .writing-card {
    padding: 1.75rem 1.5rem;
  }

  .collection-card {
    padding: 1.5rem 1.25rem;
  }

  .project-item {
    padding: 1.25rem 1.25rem;
  }

  .project-item::after {
    left: 1.25rem;
    right: 1.25rem;
  }

  .hero-nav {
    gap: 0.4rem;
  }

  .hero-nav a {
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
  }

  .projects-list {
    border-radius: var(--radius-sm);
  }
}
