/* ─────────────────────────────────────────────────────────────
   Karthik Setty — Personal landing
   Direction: Marigold Warmth (editorial + warm, single-accent)
   ───────────────────────────────────────────────────────────── */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* color */
  --bg:          #FAEEDA;
  --paper:       #FFF8EA;
  --accent:      #E58A1A;
  --accent-deep: #B86A12;
  --ink:         #1F1408;
  --muted:       #7A6B57;
  --line:        rgba(31, 20, 8, 0.14);
  --leaf:        #3B6E3B;
  --berry:       #C8362F;
  --cocoa:       #3A1E0E;

  /* type */
  --font-display: "DM Serif Display", "Times New Roman", serif;
  --font-body:    "Newsreader", Georgia, serif;
  --font-sans:    "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "JetBrains Mono", monospace;

  /* space */
  --gutter: clamp(20px, 4vw, 36px);
  --section-pad: clamp(48px, 6vw, 72px);
  --radius: 20px;
  --radius-sm: 12px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}
body::before {
  /* subtle warm grain so the cream doesn't feel flat */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 20% 15%, rgba(0,0,0,0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(229,138,26,0.10) 0%, transparent 45%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }

main, header, footer { position: relative; z-index: 1; }

/* ── Shared primitives ──────────────────────────────────────── */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 0.95;
  margin-top: 16px;
  color: var(--ink);
}
.section-title em { color: var(--ink); }

.squiggle {
  display: block;
  margin-top: 18px;
}

/* ── Header / nav ───────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 13px;
}
.nav__links a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.18s ease;
}
.nav__links a:hover { background: rgba(31,20,8,0.06); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31,20,8,0.16); }
.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink .dot {
  width: 14px; height: 14px; border-radius: 999px; background: var(--accent);
}
.btn--accent {
  background: var(--accent);
  color: var(--paper);
}
.btn--linked {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  padding: 12px 4px;
}
.btn--linked:hover { transform: none; box-shadow: none; color: var(--accent-deep); border-color: var(--accent-deep); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 40px var(--gutter) 24px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  margin-bottom: 28px;
}
.tag__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--leaf); display: inline-block; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero__title .swoosh {
  position: relative;
  display: inline-block;
  font-style: italic;
}
.hero__title .swoosh svg {
  position: absolute;
  left: -8px; right: -8px; bottom: 12px;
  width: calc(100% + 16px);
  height: 40px;
  z-index: 0;
}
.hero__title .swoosh span { position: relative; z-index: 1; }

.hero__lede {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 32px;
}
.hero__lede p {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  max-width: 520px;
}
.hero__lede .squiggle { margin-top: 18px; flex-shrink: 0; }

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

/* Polaroid stack */
.polaroids {
  position: relative;
  width: 300px;
  margin-inline: auto;
}
.polaroid {
  position: relative;
  background: var(--paper);
  padding: 14px 14px 44px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 40px rgba(31,20,8,0.22);
}
.polaroid--back {
  position: absolute;
  top: 30px; left: -20px;
  width: 280px;
  transform: rotate(-8deg);
  box-shadow: 0 18px 28px rgba(31,20,8,0.18);
  padding-bottom: 38px;
}
.polaroid--front {
  transform: rotate(3deg);
}

/* Div-based placeholder (back polaroid) */
.polaroid__img--placeholder {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Img-based (front polaroid with real photo) */
img.polaroid__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: center top;
}

.polaroid__caption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}
.polaroid__caption--ink { color: var(--ink); font-size: 14px; }
.washi {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 90px; height: 26px;
  background: repeating-linear-gradient(45deg, var(--accent) 0 6px, var(--accent-deep) 6px 12px);
  opacity: 0.85;
}
.sticker {
  position: absolute;
  top: -18px; right: -22px;
  transform: rotate(14deg);
  width: 90px; height: 90px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
}

/* ── About ──────────────────────────────────────────────────── */
.about {
  padding: var(--section-pad) var(--gutter) 32px;
}
.about__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
}
.about__copy p { font-family: var(--font-body); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.45; }
.about__copy .highlight {
  background: var(--accent);
  color: var(--paper);
  padding: 2px 10px;
  border-radius: 6px;
}
.about__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 22px;
  max-width: 720px;
}
.about__sub em { color: var(--ink); font-style: italic; }

/* Focus notes */
.focus {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.note {
  position: relative;
  padding: 32px 26px;
  min-height: 200px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(31,20,8,0.14);
  transition: transform 0.2s ease;
}
.note:hover { transform: translateY(-4px) rotate(0deg) !important; }
.note--accent { background: var(--accent); color: var(--paper); transform: rotate(-1.5deg); }
.note--paper  { background: var(--paper); color: var(--ink);   transform: rotate(1.5deg); }
.note--leaf   { background: var(--leaf);  color: var(--paper); transform: rotate(-1deg);  }
.note__tape {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px; height: 18px;
  opacity: 0.85;
}
.note--accent .note__tape { background: var(--berry); }
.note--paper  .note__tape { background: var(--accent); }
.note--leaf   .note__tape { background: var(--accent); }
.note__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}
.note__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.05;
  margin-top: 14px;
}
.note__body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 12px;
  opacity: 0.88;
}

/* ── Currently / bento ──────────────────────────────────────── */
.currently { padding: var(--section-pad) var(--gutter) 32px; }
.currently__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.currently__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.tile {
  border-radius: var(--radius);
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(31,20,8,0.14); }
.tile--paper { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.tile--ink   { background: var(--ink);   color: var(--paper); }
.tile--leaf  { background: var(--leaf);  color: var(--paper); }
.tile--accent { background: var(--accent); color: var(--paper); }
.tile--cocoa { background: var(--cocoa); color: var(--paper); }

.tile__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tile__label--paper { color: var(--muted); }
.tile__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  font-style: italic;
  margin-top: 6px;
}

/* Now playing */
.tile--np { grid-column: span 7; }
.np__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.np__live {
  width: 8px; height: 8px; border-radius: 999px; background: var(--berry);
  animation: pulse 1.4s ease-in-out infinite;
}
.np__body { display: flex; gap: 20px; align-items: center; }
.np__cover {
  width: 110px; height: 110px;
  background: linear-gradient(135deg, var(--accent), var(--berry));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--paper);
  font-style: italic;
  flex-shrink: 0;
  transform: rotate(-3deg);
  box-shadow: 0 8px 20px rgba(31,20,8,0.2);
}
.np__meta { flex: 1; min-width: 0; }
.np__track { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.np__artist { font-family: var(--font-body); font-style: italic; font-size: 14px; color: var(--muted); margin-top: 4px; }
.np__bar {
  height: 6px; background: rgba(31,20,8,0.08); border-radius: 999px; margin-top: 14px; position: relative;
}
.np__bar > span {
  display: block; height: 100%; width: 58%;
  background: var(--accent); border-radius: 999px;
}
.np__time { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Clock */
.tile--clock { grid-column: span 5; }
.clock__time {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 82px);
  line-height: 1;
  font-feature-settings: "tnum";
  margin-top: 14px;
}
.clock__time .sep { color: var(--accent); }
.clock__time .tz {
  font-size: 24px; color: var(--muted); margin-left: 10px;
}
.clock__foot {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; flex-wrap: wrap; gap: 8px;
}
.clock__date { font-family: var(--font-body); font-style: italic; font-size: 14px; opacity: 0.7; }
.clock__zones { font-family: var(--font-mono); font-size: 11px; opacity: 0.6; }

/* Cricket / board / chocolate */
.tile--cricket  { grid-column: span 4; min-height: 150px; }
.tile--boards   { grid-column: span 4; min-height: 150px; }
.tile--coffee { grid-column: span 4; min-height: 150px; padding-right: 70px; }
.tile__sub { font-family: var(--font-body); font-size: 13px; opacity: 0.85; margin-top: 8px; }
.tile__deco--bat {
  position: absolute; right: -6px; bottom: -10px; font-size: 78px; opacity: 0.9; transform: rotate(-12deg);
}
.chips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-sans);
}
.tile__deco--dice {
  position: absolute; right: 12px; top: 14px; transform: rotate(12deg);
}
.tile__deco--bar {
  position: absolute; right: -4px; bottom: -8px; opacity: 0.4;
}

/* Reading */
.tile--reading { grid-column: span 12; }
.reading__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.reading__link { font-family: var(--font-sans); font-size: 12px; color: var(--accent); }
.reading__link:hover { color: var(--accent-deep); }
.shelf {
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 12px 0 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 16px;
}
.spine {
  color: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: inset -2px 0 0 rgba(0,0,0,0.15), inset 2px 0 0 rgba(255,255,255,0.08);
  margin-right: 2px;
  transition: transform 0.2s ease;
}
.spine:hover { transform: translateY(-6px); }
.spine span {
  transform: rotate(-90deg);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 13px;
}
.shelf__more {
  margin-left: auto;
  padding: 0 0 6px 14px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
.current {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.current__status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.current__title { font-family: var(--font-display); font-size: 20px; line-height: 1.15; margin-top: 4px; }
.current__author { font-family: var(--font-body); font-style: italic; font-size: 13px; color: var(--muted); margin-top: 2px; }
.current__bar { height: 4px; background: rgba(31,20,8,0.10); margin-top: 10px; border-radius: 999px; }
.current__bar > span { display: block; height: 100%; border-radius: 999px; }

/* ── Get in touch ──────────────────────────────────────────── */
.contact { padding: var(--section-pad) var(--gutter) 32px; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-top: 16px;
  margin-bottom: 16px;
}
.contact__copy {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  margin-top: 22px;
  max-width: 380px;
}

.channels { list-style: none; padding: 0; margin: 0; }
.channels li:last-child { border-bottom: 1px solid var(--line); }
.channels a {
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  align-items: center;
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  gap: 16px;
  transition: padding 0.2s ease, background 0.2s ease;
}
.channels a:hover { padding-left: 14px; background: rgba(229,138,26,0.05); }
.channels__icon {
  width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
}
.channels__icon--email    { background: var(--accent); }
.channels__icon--linkedin { background: #0A66C2; }
.channels__icon--insta    { background: #E1306C; }
.channels__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.channels__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  margin-top: 2px;
  color: var(--ink);
}
.channels__arrow {
  font-size: 22px;
  color: var(--accent);
  text-align: right;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 32px var(--gutter) 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
}
.footer__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .polaroids { margin-top: 24px; }
  .about__grid { grid-template-columns: 1fr; gap: 24px; }
  .focus { grid-template-columns: 1fr; }
  .note { transform: none !important; }
  .tile--np, .tile--clock, .tile--cricket, .tile--boards, .tile--coffee {
    grid-column: span 12;
  }
  .current { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .nav__links a:not(.btn) { display: none; }
  .hero { padding-top: 16px; }
  .hero__lede { gap: 14px; }
  .hero__lede .squiggle { display: none; }
  .polaroid--back { display: none; }
  .sticker { top: -14px; right: -10px; width: 76px; height: 76px; }
  .channels a { grid-template-columns: 44px 1fr 24px; gap: 12px; padding: 18px 2px; }
}

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