/*
Theme Name: Tashvi Board
Theme URI: https://tashvi.com
Author: Tashvi
Description: A warm corkboard-style personal blog theme with pinned posts, handwritten accents and a light earthy palette.
Version: 1.0
License: GNU General Public License v2 or later
Tags: blog, personal, custom-colors, custom-menu, featured-images
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Caveat:wght@400;600&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Tokens ──────────────────────────────────── */
:root {
  --cork:       #e8dcc8;
  --cork2:      #ddd0b4;
  --frame:      #b8a080;
  --warm-white: #faf5ec;
  --cream:      #fdf8f0;
  --text:       #2a1f0e;
  --muted:      #8a7860;
  --soft:       #6b5c48;
  --rose:       #c8748a;
  --dusty-blue: #6b8fb5;
  --sage:       #7a9e82;
  --blush:      #e8c4c0;
  --lavender:   #b8a8d0;
  --tape:       #f5e8c0;
  --tape-b:     #d4c090;
  --pin-1:      #c06070;
  --pin-2:      #6080b8;
  --pin-3:      #8a7ab8;
  --pin-4:      #609870;
  --pin-5:      #b87840;
}

/* ── Body & Cork Texture ─────────────────────── */
body {
  background-color: var(--cork);
  background-image:
    radial-gradient(ellipse at 15% 25%, rgba(190,160,100,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(170,140,80,0.25) 0%, transparent 55%),
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(160,120,60,0.03) 2px, rgba(160,120,60,0.03) 4px),
    repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(180,140,70,0.025) 3px, rgba(180,140,70,0.025) 6px);
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  min-height: 100vh;
}

.site-wrapper {
  border: 16px solid var(--frame);
  outline: 3px solid #a09070;
  outline-offset: -16px;
  min-height: 100vh;
}

/* ── Navigation ──────────────────────────────── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(200,175,130,0.2);
  border-bottom: 1px solid rgba(160,120,60,0.2);
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.site-logo span { color: var(--rose); font-style: italic; }

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-menu a {
  font-size: 0.78rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--rose); }

/* ── Hero ────────────────────────────────────── */
.hero {
  padding: 3rem 3rem 2rem;
  text-align: center;
}
.welcome-card {
  display: inline-block;
  background: var(--warm-white);
  padding: 2.5rem 3.5rem;
  position: relative;
  margin-bottom: 2rem;
  border: 1px solid rgba(160,130,80,0.15);
  transform: rotate(-0.8deg);
}
.welcome-card::before,
.welcome-card::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 80px; height: 14px;
  background: var(--tape);
  border: 1px solid var(--tape-b);
}
.welcome-card::before { left: calc(50% - 100px); transform: rotate(-1.5deg); }
.welcome-card::after  { left: calc(50% + 20px);  transform: rotate(1deg); }

.welcome-small {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.welcome-big {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -1.5px;
}
.welcome-big .w1 { color: var(--rose); }
.welcome-big .w2 { color: var(--text); }
.welcome-big .w3 { color: var(--dusty-blue); }
.welcome-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Pills */
.pill-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}
.pill {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid;
}
.pill-rose     { color: #a05060; border-color: #c8948a; background: #f8ede8; }
.pill-blue     { color: #3a5a80; border-color: #9ab0c8; background: #eaf0f8; }
.pill-sage     { color: #3a6040; border-color: #9ab8a0; background: #eaf4ec; }
.pill-lavender { color: #5a4878; border-color: #b8a8d0; background: #f2eef8; }

/* Hanging string labels */
.string-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 0 3rem 0.5rem;
  position: relative;
}
.string-row::before {
  content: '';
  position: absolute;
  top: 10px; left: 8%; right: 8%;
  height: 1px;
  background: rgba(140,100,40,0.3);
}
.hang-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hang-item::before {
  content: '';
  width: 1px; height: 16px;
  background: rgba(140,100,40,0.35);
  display: block;
}
.hang-item::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pin-col, var(--pin-1));
  position: absolute;
  top: -4px;
  border: 2px solid rgba(255,255,255,0.6);
}
.hang-card {
  background: var(--warm-white);
  width: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160,130,80,0.15);
  transform: rotate(var(--r, 0deg));
  font-family: 'Caveat', cursive;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
  padding: 6px;
}

/* ── Board Grid ──────────────────────────────── */
.board {
  padding: 1.5rem 3rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

/* ── Pin + Tape Wrappers ─────────────────────── */
.pin-wrap {
  position: relative;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.25s ease;
  cursor: pointer;
}
.pin-wrap:hover { transform: rotate(0deg) translateY(-5px); z-index: 20; }
.pin-wrap::before {
  content: '';
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--pin-col, var(--pin-1));
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 5;
}
.pin-wrap::after {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 8px;
  background: var(--pin-col, var(--pin-1));
  opacity: 0.4; z-index: 4;
}

.tape-wrap {
  position: relative;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.25s ease;
}
.tape-wrap:hover { transform: rotate(0deg) translateY(-4px); z-index: 20; }
.tape-wrap::before {
  content: '';
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%) rotate(var(--tr, -1deg));
  width: 56px; height: 13px;
  background: var(--tape);
  border: 1px solid var(--tape-b);
  z-index: 5;
}

/* ── Post Cards ──────────────────────────────── */
.card {
  background: var(--card-bg, var(--warm-white));
  padding: 1.4rem 1.3rem 1.1rem;
  border: 1px solid rgba(160,130,80,0.12);
}
.card-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--text);
  text-decoration: none;
  display: block;
}
.card-excerpt {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--soft);
  border-top: 1px solid rgba(160,130,80,0.15);
  padding-top: 0.55rem;
}
.card-footer .read {
  font-family: 'Caveat', cursive;
  font-size: 0.9rem;
}
.pin-wrap:hover .read { color: var(--rose); }
.handnote {
  font-family: 'Caveat', cursive;
  font-size: 0.9rem;
  color: var(--muted);
  transform: rotate(-1deg);
  display: inline-block;
  margin-bottom: 0.3rem;
}

/* ── Featured Post ───────────────────────────── */
.featured-wrap {
  grid-column: 1 / -1;
  position: relative;
  cursor: pointer;
  transform: rotate(-0.4deg);
  transition: transform 0.25s ease;
}
.featured-wrap:hover { transform: rotate(0deg) translateY(-4px); z-index: 20; }
.featured-wrap::before,
.featured-wrap::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
  z-index: 5;
}
.featured-wrap::before { background: var(--rose); left: 22%; }
.featured-wrap::after  { background: var(--dusty-blue); left: 78%; }

.featured {
  background: var(--warm-white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid rgba(160,130,80,0.12);
}
.fc-left {
  padding: 2.25rem;
  border-right: 1px solid rgba(160,130,80,0.12);
}
.fc-badge {
  display: inline-block;
  background: var(--blush);
  color: #7a3040;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.fc-label {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.fc-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.65rem;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  color: var(--text);
  text-decoration: none;
  display: block;
}
.fc-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.fc-read {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--rose);
  font-weight: 600;
  text-decoration: none;
}
.fc-right {
  padding: 2.25rem;
  background: #fdf6ee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fc-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
  border-left: 2px solid var(--rose);
  padding-left: 1.1rem;
  margin-bottom: 1.5rem;
}
.fc-meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ── Wide card (spans 2 cols) ────────────────── */
.wide-wrap {
  grid-column: span 2;
  position: relative;
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.25s ease;
}
.wide-wrap:hover { transform: rotate(0deg) translateY(-4px); z-index: 20; }
.wide-wrap::before {
  content: '';
  position: absolute;
  top: -11px; left: 18%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--pin-col, var(--pin-4));
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
  z-index: 5;
}

/* ── Note / Sticky Cards ─────────────────────── */
.note-card {
  background: var(--s-bg, #f8f4e8);
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(160,130,80,0.12);
  border-left: 3px solid var(--s-accent, var(--rose));
}
.note-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--s-accent, var(--rose));
  margin-bottom: 0.5rem;
}
.note-card p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}
.note-hand {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.5rem;
  display: block;
}

/* ── Divider ─────────────────────────────────── */
.board-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0.25rem 0;
}
.board-divider::before,
.board-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(160,130,80,0.25);
}
.board-divider span {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: rgba(140,110,60,0.5);
  white-space: nowrap;
  letter-spacing: 1px;
}

/* ── Single Post Page ────────────────────────── */
.story-page { padding: 2.5rem 3rem; }
.back-link {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--muted);
  background: var(--warm-white);
  border: 1px solid rgba(160,130,80,0.2);
  padding: 6px 18px;
  margin-bottom: 2.5rem;
  display: inline-block;
  transform: rotate(-0.5deg);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--rose); }

.story-inner {
  max-width: 700px;
  margin: 0 auto;
  background: var(--warm-white);
  padding: 3.5rem;
  border: 1px solid rgba(160,130,80,0.15);
  position: relative;
}
.story-inner::before,
.story-inner::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 56px; height: 13px;
  background: var(--tape);
  border: 1px solid var(--tape-b);
  z-index: 5;
}
.story-inner::before { left: 25%; }
.story-inner::after  { left: 65%; }

.story-tag-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--rose);
  margin-bottom: 0.75rem;
}
.story-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.story-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(160,130,80,0.15);
}
.story-content {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #3a2a14;
}
.story-content p { margin-bottom: 1.5rem; }
.story-content p:first-child::first-letter {
  font-size: 4rem;
  font-weight: 900;
  float: left;
  line-height: 0.75;
  margin: 0.1em 0.12em 0 0;
  color: var(--rose);
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(160,130,80,0.25);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(200,175,130,0.12);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}
.footer-logo span { color: var(--rose); font-style: italic; }
.footer-note {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ── Mobile Responsive ───────────────────────── */
@media (max-width: 768px) {

  /* Frame */
  .site-wrapper { border-width: 8px; outline-offset: -8px; }

  /* Nav */
  .site-nav { padding: 1rem 1.25rem; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .nav-menu { gap: 1.25rem; }
  .nav-menu a { font-size: 0.72rem; }

  /* Hero */
  .hero { padding: 2rem 1.25rem 1.5rem; }
  .welcome-card { padding: 1.75rem 1.5rem; width: 100%; transform: rotate(-0.5deg); }
  .welcome-card::before { left: 15%; }
  .welcome-card::after  { left: 60%; }
  .welcome-big { font-size: 2.4rem; }
  .welcome-tagline { font-size: 0.95rem; }

  /* String row */
  .string-row { gap: 1rem; margin: 0 1.25rem 0.5rem; overflow-x: auto; justify-content: flex-start; padding-bottom: 0.5rem; }
  .hang-card { width: 60px; height: 60px; font-size: 0.7rem; }

  /* Board */
  .board { padding: 1rem 1.25rem 2.5rem; grid-template-columns: 1fr; gap: 1.5rem; }

  /* All cards go full width on mobile */
  .featured-wrap { grid-column: 1; }
  .featured { grid-template-columns: 1fr; }
  .fc-right { border-top: 1px solid rgba(160,130,80,0.12); border-right: none; }
  .fc-left { padding: 1.5rem; }
  .fc-right { padding: 1.5rem; }
  .fc-title { font-size: 1.3rem; }

  .wide-wrap { grid-column: 1; }

  /* Pin cards */
  .pin-wrap, .tape-wrap { transform: rotate(0deg) !important; }
  .pin-wrap:hover { transform: translateY(-3px) !important; }

  /* Story page */
  .story-page { padding: 1.5rem 1.25rem; }
  .story-inner { padding: 2rem 1.5rem; }
  .story-h1 { font-size: 1.9rem; }
  .story-content { font-size: 0.95rem; }

  /* Footer */
  .site-footer { padding: 1.25rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .welcome-big { font-size: 2rem; }
  .site-nav { padding: 1rem; }
  .board { padding: 1rem 1rem 2rem; }
  .hero { padding: 1.5rem 1rem 1.25rem; }
  .fc-title { font-size: 1.2rem; }
  .story-h1 { font-size: 1.6rem; }
}
