/*
Theme Name: Tender Letters
Theme URI: https://tenderletters.com
Author: Tender Letters
Author URI: https://tenderletters.com
Description: A personal digital journal theme for Tender Letters — soft blue and white, clean and elegant.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: tenderletters
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background-color: #FAFEFF;
  color: #2C4A52;
  line-height: 1.8;
}

:root {
  --seafoam: #C8E6E0;
  --aqua: #9DCFCA;
  --powder: #BDD9F0;
  --cornflower: #6AAFD4;
  --offwhite: #FAFEFF;
  --deep: #2C4A52;
  --mid: #4A7A8A;
  --soft: #E8F4F8;
  --accent: #3A8FA8;
}

/* === NAVIGATION === */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,254,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--seafoam);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--deep);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-logo span { color: var(--cornflower); font-style: italic; }
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-menu a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mid);
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--cornflower); }

/* === LAYOUT === */
.site-content { padding-top: 68px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 2rem; }

/* === HERO === */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #FAFEFF 0%, #EAF6F8 40%, #D8EFF6 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, #BDD9F0 0%, transparent 70%);
  opacity: 0.45;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, #C8E6E0 0%, transparent 70%);
  opacity: 0.4;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cornflower);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--deep);
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--cornflower); }
.hero-body {
  font-size: 1rem;
  color: var(--mid);
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.9;
}
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--cornflower); color: #fff; border: 1.5px solid var(--cornflower); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--cornflower); border: 1.5px solid var(--cornflower); margin-left: 1rem; }
.btn-outline:hover { background: var(--powder); }
.hero-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--seafoam);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 340px;
  backdrop-filter: blur(6px);
  position: relative;
}
.hero-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 7rem;
  color: var(--seafoam);
  position: absolute;
  top: -1rem; left: 1.5rem;
  line-height: 1;
}
.hero-card-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--deep);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  padding-top: 1rem;
}
.hero-card-author {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cornflower);
}

/* === SECTION HEADERS === */
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cornflower);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--deep);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-line {
  width: 48px; height: 2px;
  background: var(--aqua);
  margin-bottom: 1.5rem;
}

/* === BLOG SECTION === */
.blog-section { background: var(--soft); }
.blog-intro { max-width: 520px; margin-bottom: 3rem; }
.blog-intro p { font-size: 0.95rem; color: var(--mid); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.blog-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--seafoam);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(106,175,212,0.15); }
.blog-card-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card-body { padding: 1.5rem; }
.blog-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--powder);
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.blog-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--deep);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.blog-card-title a { text-decoration: none; color: inherit; }
.blog-card-title a:hover { color: var(--cornflower); }
.blog-card-excerpt { font-size: 0.88rem; color: var(--mid); line-height: 1.75; margin-bottom: 1.2rem; }
.blog-card-meta { font-size: 0.75rem; color: #9BB5BE; letter-spacing: 0.05em; }
.blog-card-link {
  font-size: 0.78rem;
  color: var(--cornflower);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  float: right;
  transition: gap 0.2s;
}
.blog-card-link:hover { gap: 10px; }

/* === SINGLE POST === */
.single-post-wrap { max-width: 720px; margin: 0 auto; padding: 4rem 2rem; }
.single-post-wrap h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--deep);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.single-post-wrap .post-meta { font-size: 0.82rem; color: #9BB5BE; margin-bottom: 2rem; }
.single-post-wrap .post-content { font-size: 1rem; color: var(--mid); line-height: 2; }
.single-post-wrap .post-content p { margin-bottom: 1.5rem; }
.single-post-wrap .post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--deep);
  margin: 2rem 0 1rem;
}

/* === ABOUT SECTION === */
.about-section { background: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}
.about-img-box {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--seafoam), var(--powder));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--mid);
  position: relative;
}
.about-img-box img { width: 100%; height: 100%; object-fit: cover; }
.about-accent-box {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 16px;
  background: var(--cornflower);
  opacity: 0.15;
}
.about-text p { font-size: 0.95rem; color: var(--mid); margin-bottom: 1.2rem; line-height: 1.9; }
.about-text p strong { color: var(--deep); font-weight: 500; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.about-tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--aqua);
  color: var(--mid);
}

/* === GALLERY SECTION === */
.gallery-section { background: var(--soft); }
.gallery-intro { max-width: 500px; margin-bottom: 3rem; }
.gallery-intro p { font-size: 0.95rem; color: var(--mid); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; }
.gallery-item:nth-child(1), .gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-box {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform 0.3s;
}
.gallery-item:nth-child(1) .gallery-box,
.gallery-item:nth-child(5) .gallery-box { aspect-ratio: 2/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img, .gallery-item:hover .gallery-box { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,74,82,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-text { font-size: 0.78rem; color: #fff; letter-spacing: 0.08em; text-transform: uppercase; }

/* === FOOTER === */
.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: #fff; margin-bottom: 0.5rem; font-style: italic; }
.footer-tagline { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua); margin-bottom: 1.5rem; }
.footer-nav { display: flex; justify-content: center; gap: 2rem; list-style: none; margin-bottom: 2rem; }
.footer-nav a { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.footer-nav a:hover { color: var(--aqua); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image-wrap { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  nav.site-nav { padding: 0 1.2rem; }
  .nav-menu { gap: 1.2rem; }
}
