/* ========================================
   jarrhey.com — Take 7.4
   Notetaking visual language. Paper cards.
   Card pull-up. Typewriter hero.
   Brand colors throughout.
   ======================================== */

:root {
  --bg: #EDEAE5;
  --bg-dark: #1A1A1A;
  --accent: #3295eb;
  --symph: #0077FF;
  --fn: #d4a843;
  --ww: #2c5545;
  --text: #1A1A1A;
  --text-light: #EDE8E0;
  --text-muted: #78726A;
  --border: #CBC8C3;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Mulish', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-family: var(--serif); font-style: italic; }

/* ==================== GRAIN / PAPER TEXTURE ==================== */

.grain {
  position: fixed;
  inset: -80px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  background-size: 300px;
  animation: grainDrift 20s linear infinite;
}

@keyframes grainDrift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-15px, 10px); }
  50% { transform: translate(10px, -20px); }
  75% { transform: translate(-20px, -10px); }
  100% { transform: translate(0, 0); }
}

/* Paper unevenness */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(155, 150, 145, 0.07), transparent 50%),
    radial-gradient(ellipse at 80% 85%, rgba(155, 150, 145, 0.05), transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(155, 150, 145, 0.03), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ==================== ILLUSTRATIONS (decorative) ==================== */

.illust {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  mix-blend-mode: multiply;
  will-change: transform;
}

.illust-hero {
  width: clamp(280px, 40vw, 550px);
  top: 60vh;
  right: -5vw;
}

.illust-mid {
  width: clamp(220px, 35vw, 480px);
  top: 260vh;
  left: -8vw;
}

.illust-fn {
  width: clamp(300px, 45vw, 600px);
  top: 420vh;
  right: -3vw;
  opacity: 0.08;
}

/* ==================== SCENE BREAKS ==================== */

.scene-break {
  height: 12vh;
}
.scene-break--sm {
  height: 6vh;
}

/* ==================== HERO ==================== */

.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 clamp(24px, 5vw, 80px);
  position: relative;
  text-align: center;
}

.hero-inner {
  position: relative; z-index: 2;
}

.hero-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: clamp(24px, 4vw, 48px);
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  color: var(--text);
  min-height: 1.4em;
}

.hero-tagline-alt {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(0.92rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  margin-top: 8px;
}

/* Hero text */
.hero-typed {
  display: inline;
}

/* Hero quick links — ink-filled brand chips */
.hero-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 48px);
}
.hero-links a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
}
.hero-links a:hover {
  transform: translateY(-3px);
}
/* Symph — brand blue */
.hero-links a:nth-child(1) {
  background: rgba(0, 119, 255, 0.15);
  color: #005cbf;
}
.hero-links a:nth-child(1):hover {
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.2);
}
/* fieldnotes — gold */
.hero-links a:nth-child(2) {
  background: rgba(212, 168, 67, 0.15);
  color: #9a7520;
}
.hero-links a:nth-child(2):hover {
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.2);
}
/* @work.wander — green */
.hero-links a:nth-child(3) {
  background: rgba(44, 85, 69, 0.12);
  color: #2c5545;
}
.hero-links a:nth-child(3):hover {
  box-shadow: 0 8px 24px rgba(44, 85, 69, 0.18);
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: clamp(32px, 5vh, 60px);
  left: 50%; transform: translateX(-50%);
}
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ==================== ABOUT ==================== */

.about {
  padding: 0 clamp(16px, 3vw, 48px);
  position: relative; z-index: 1;
}

.about-wrap {
  max-width: 1200px; margin: 0 auto;
}

.about-card {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: clamp(24px, 4vw, 48px);
  padding: clamp(56px, 8vw, 120px) clamp(32px, 6vw, 96px);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

.about-layout {
  display: flex; flex-direction: column-reverse;
  gap: clamp(40px, 6vw, 80px);
}

.about-label {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 1.1rem; color: var(--accent);
  margin-bottom: 24px;
}

.about-headline {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.3; letter-spacing: -0.02em;
}

.about-body {
  margin-top: clamp(24px, 3vw, 40px);
}
.about-body p {
  font-size: 0.95rem; font-weight: 300;
  line-height: 1.85;
  color: rgba(237, 232, 224, 0.85);
  margin-bottom: 16px;
}
.about-body p:last-child { margin-bottom: 0; }

.about-photo {
  flex-shrink: 0;
}
.about-photo-frame {
  width: clamp(180px, 30vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.about-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ==================== FEATURED POSTS ==================== */

.posts {
  padding: 0 clamp(16px, 3vw, 48px);
  position: relative; z-index: 1;
}

.posts-wrap {
  max-width: 1200px; margin: 0 auto;
}

.posts-label {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 1.1rem; color: var(--fn);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.post-card {
  position: relative;
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.15);
  display: flex; flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s, background 0.3s;
  overflow: hidden;
}
.post-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 50px rgba(212, 168, 67, 0.12);
  background: rgba(212, 168, 67, 0.12);
}

/* Rotation offsets for organic feel */
.post-card:nth-child(1) { transform: rotate(-0.8deg); }
.post-card:nth-child(2) { transform: rotate(0.5deg); margin-top: 20px; }
.post-card:nth-child(3) { transform: rotate(-0.3deg); }

.post-illust {
  width: 100%;
  height: clamp(100px, 12vw, 160px);
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: clamp(16px, 2vw, 24px);
  opacity: 0.85;
  mix-blend-mode: multiply;
  background: rgba(212, 168, 67, 0.08);
}

.post-num {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: var(--fn);
  opacity: 0.08;
  position: absolute;
  top: 12px; right: 20px;
  pointer-events: none;
}

.post-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}

.post-excerpt {
  font-size: 0.92rem; font-weight: 300;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.7);
  flex: 1;
  margin-bottom: 20px;
}

.post-link {
  font-family: var(--serif); font-weight: 700;
  font-size: 0.9rem;
  color: var(--fn);
  display: inline-flex; align-items: center; gap: 6px;
}
.post-link span {
  transition: transform 0.3s;
}
.post-card:hover .post-link span {
  transform: translateX(5px);
}

/* ==================== NOW ==================== */

.now {
  padding: 0 clamp(24px, 5vw, 72px);
}

.now-wrap {
  max-width: 960px; margin: 0 auto;
}

.now-label {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 1.1rem; color: var(--accent);
  margin-bottom: clamp(48px, 6vw, 80px);
}

.now-list {
  display: flex; flex-direction: column;
}

.now-row {
  display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(24px, 3.5vw, 40px) 0;
  border-top: 1px solid var(--border);
  transition: padding-left 0.5s cubic-bezier(0.16,1,0.3,1);
  text-decoration: none; color: inherit;
}
.now-row:last-child { border-bottom: 1px solid var(--border); }
.now-row:hover { padding-left: 20px; }

.now-icon {
  width: clamp(48px, 6vw, 72px);
  height: clamp(48px, 6vw, 72px);
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: darken;
}

.now-info { flex: 1; }

.now-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 6px;
}

.now-desc {
  font-size: 0.92rem; font-weight: 300;
  color: rgba(26, 26, 26, 0.55); line-height: 1.65;
}

.now-arrow {
  font-size: 1.3rem; color: var(--border);
  flex-shrink: 0;
  transition: color 0.3s, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.now-row:hover .now-arrow {
  color: var(--accent); transform: translate(4px, -4px);
}

/* ==================== FIELDNOTES ==================== */

.fn {
  padding: 0 clamp(16px, 3vw, 48px);
  position: relative; z-index: 1;
}

.fn-wrap {
  max-width: 960px; margin: 0 auto;
}

.fn-card {
  background: rgba(212, 168, 67, 0.06);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: clamp(24px, 4vw, 48px);
  padding: clamp(64px, 8vw, 120px) clamp(36px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fn-label {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 1.1rem; color: var(--fn);
  margin-bottom: 20px;
}

.fn-name {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(3rem, 10vw, 10rem);
  line-height: 0.9; letter-spacing: -0.04em;
  margin-bottom: clamp(24px, 3vw, 40px);
  color: var(--text);
}

.fn-body {
  font-size: 0.95rem; font-weight: 300;
  line-height: 1.8; color: rgba(26, 26, 26, 0.7);
  margin-bottom: clamp(32px, 4vw, 48px);
  max-width: 520px; margin-left: auto; margin-right: auto;
}

.fn-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 0.95rem; font-weight: 700;
  color: #fff; background: var(--fn);
  padding: 18px 40px;
  border-radius: 50px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
}
.fn-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(212, 168, 67, 0.3);
}
.fn-btn span { transition: transform 0.3s; }
.fn-btn:hover span { transform: translateX(5px); }

/* ==================== CONNECT ==================== */

.connect {
  padding: 0 clamp(16px, 3vw, 48px);
  padding-bottom: clamp(80px, 8vw, 140px);
  position: relative; z-index: 1;
}

.connect-wrap {
  max-width: 1200px; margin: 0 auto;
}

.connect-card {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: clamp(24px, 4vw, 48px);
  padding: clamp(64px, 8vw, 120px) clamp(36px, 6vw, 80px);
  text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

.connect-headline {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.connect-sub {
  font-size: 0.95rem; font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 500px; margin: 0 auto clamp(36px, 4vw, 56px);
  line-height: 1.75;
}

.connect-links {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 14px;
}
.connect-links a {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
}
.connect-links a:hover {
  transform: translateY(-3px);
}

/* Brand-filled connect buttons */
/* TikTok — dark/black */
.cl--tiktok {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.cl--tiktok:hover { box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15); }

/* Instagram — flat pink */
.cl--ig {
  background: rgba(225, 48, 108, 0.15);
  color: #e0608a;
}
.cl--ig:hover { box-shadow: 0 8px 24px rgba(225, 48, 108, 0.25); }

.cl--linkedin {
  background: rgba(10, 102, 194, 0.2);
  color: #6db3e8;
}
.cl--linkedin:hover { box-shadow: 0 8px 24px rgba(10, 102, 194, 0.25); }

.cl--threads {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255,255,255,0.6);
}
.cl--threads:hover { box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1); color: #fff; }

.cl--fn {
  background: rgba(255, 107, 0, 0.15);
  color: #ff8c42;
}
.cl--fn:hover { box-shadow: 0 8px 24px rgba(255, 107, 0, 0.25); }

/* ==================== SECTION CTAs ==================== */

.section-cta {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: clamp(28px, 3vw, 40px);
  display: inline-block;
  transition: opacity 0.3s;
}
.section-cta:hover { opacity: 0.7; }
.section-cta--accent { color: var(--accent); }
.section-cta--fn { color: var(--fn); }

/* ==================== FOOTER ==================== */

.footer {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding: 40px clamp(24px, 5vw, 72px);
  max-width: 1200px; margin: 0 auto;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer span:first-child { font-weight: 700; color: var(--text); }

/* ==================== REDUCED MOTION ==================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .illust { display: none; }
}

/* ==================== RESPONSIVE ==================== */

@media (min-width: 768px) {
  .about-layout {
    flex-direction: row; align-items: center;
  }
  .about-text { flex: 1; }
  .now-row { flex-wrap: nowrap; }
}

@media (max-width: 767px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .post-card:nth-child(1),
  .post-card:nth-child(2),
  .post-card:nth-child(3) {
    transform: none;
    margin-top: 0;
  }
  .illust { display: none; }
  .hero-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
