/* ============================================
   what was left unsaid
   a minimalist space for words and light
   ============================================ */

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

:root {
  /* palette — soft, warm, pinkish */
  --bg: #faf7f5;
  --bg-warm: #f5ede8;
  --text: #3a2e2e;
  --text-light: #8a7676;
  --text-faint: #b8a8a8;
  --accent: #d4868a;
  --accent-light: #e8b4b8;
  --accent-soft: #f0d0d4;
  --accent-wash: #fae8ea;
  --lavender: #c4a8d4;
  --lavender-light: #e4d4f0;
  --peach: #e8c0a0;
  --peach-light: #f4e0d0;
  --sage: #a8c4a8;
  --sage-light: #d4e8d4;

  /* typography */
  --font-body: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* layout */
  --max-width: 680px;
  --max-width-wide: 960px;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.8;
  min-height: 100vh;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.8rem;
  font-weight: 300;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 400;
}

p {
  margin-bottom: 1.4em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--text);
  border-bottom-color: var(--accent-light);
}

blockquote {
  border-left: 2px solid var(--accent-light);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--text-light);
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-light),
    transparent
  );
  margin: var(--space-lg) 0;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* --- Site Header --- */
.site-header {
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--text);
}

.site-title a {
  color: inherit;
  border: none;
}

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

/* --- Navigation --- */
.site-nav {
  padding: var(--space-sm) 0;
  text-align: center;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-light);
  border: none;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* --- Hero / Home --- */
.hero {
  padding: var(--space-xl) 0;
  text-align: center;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 200;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0;
}

/* decorative divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: var(--space-lg) 0;
  color: var(--accent-light);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-light)
  );
}

.divider::after {
  background: linear-gradient(
    to left,
    transparent,
    var(--accent-light)
  );
}

/* --- Color Accent Strips --- */
/* add to any section for a wash of color */
.wash--pink {
  background: linear-gradient(135deg, var(--accent-wash), var(--bg));
}

.wash--lavender {
  background: linear-gradient(135deg, var(--lavender-light), var(--bg));
}

.wash--peach {
  background: linear-gradient(135deg, var(--peach-light), var(--bg));
}

.wash--sage {
  background: linear-gradient(135deg, var(--sage-light), var(--bg));
}

/* --- Featured / Latest Writing --- */
.writings-list {
  list-style: none;
}

.writing-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--accent-wash);
}

.writing-item:last-child {
  border-bottom: none;
}

.writing-item__date {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  display: block;
}

.writing-item__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.4em;
}

.writing-item__title a {
  color: var(--text);
  border: none;
}

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

.writing-item__excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.writing-item__tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 0.15em 0.6em;
  border-radius: 2px;
  margin-right: 0.4em;
}

.writing-item__tag--lavender {
  color: var(--lavender);
  background: var(--lavender-light);
}

.writing-item__tag--peach {
  color: #b08060;
  background: var(--peach-light);
}

.writing-item__tag--sage {
  color: #607860;
  background: var(--sage-light);
}

/* --- Post / Article --- */
.post {
  padding: var(--space-lg) 0;
}

.post-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.post-header__date {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: block;
}

.post-header__title {
  font-size: 2.4rem;
  font-weight: 200;
  margin-bottom: var(--space-xs);
}

.post-header__subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  font-style: italic;
}

.post-body {
  font-size: 1.05rem;
}

.post-body p {
  margin-bottom: 1.5em;
}

.post-body img {
  max-width: 100%;
  height: auto;
  margin: var(--space-md) 0;
  border-radius: 2px;
}

/* poetry / verse formatting */
.verse {
  font-style: italic;
  line-height: 2;
  padding: var(--space-md) 0;
  text-align: left;
}

.verse p {
  margin-bottom: 0.6em;
}

.verse .stanza {
  margin-bottom: 2em;
}

.verse .indent {
  padding-left: 2em;
}

/* pullquote — a highlighted excerpt */
.pullquote {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  position: relative;
}

.pullquote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--accent-light);
}

/* --- Image / Visual --- */
.visual {
  margin: var(--space-lg) 0;
  text-align: center;
}

.visual img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.visual figcaption {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: var(--space-sm);
  font-style: italic;
}

/* --- Gallery Grid --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 1;
  background: var(--bg-warm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

.gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm);
  background: linear-gradient(transparent, rgba(58, 46, 46, 0.6));
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay p {
  font-size: 0.85rem;
  margin: 0;
  font-style: italic;
}

/* masonry-style variation */
.gallery--masonry {
  columns: 2;
  gap: var(--space-sm);
}

.gallery--masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  aspect-ratio: auto;
}

/* --- Colored Blobs (decorative) --- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

.blob--pink {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: 10%;
  right: -100px;
}

.blob--lavender {
  width: 300px;
  height: 300px;
  background: var(--lavender);
  bottom: 20%;
  left: -80px;
}

.blob--peach {
  width: 250px;
  height: 250px;
  background: var(--peach);
  top: 50%;
  right: 10%;
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.site-footer p {
  margin-bottom: 0.4em;
}

.site-footer a {
  color: var(--text-faint);
}

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

/* --- Back link --- */
.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.back-link:hover {
  color: var(--accent);
}

/* --- Post navigation --- */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--accent-wash);
  margin-top: var(--space-lg);
  font-size: 0.9rem;
}

.post-nav a {
  color: var(--text-light);
}

.post-nav__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 0.3em;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.text-faint { color: var(--text-faint); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* --- Responsive --- */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  h1 {
    font-size: 2rem;
  }

  .post-header__title {
    font-size: 1.8rem;
  }

  .site-nav ul {
    gap: var(--space-sm);
  }

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

  .gallery--masonry {
    columns: 1;
  }

  .pullquote {
    font-size: 1.3rem;
    padding: var(--space-sm) var(--space-md);
  }

  .blob {
    opacity: 0.08;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .post-header__title {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }
}

/* --- Fade-in animation --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeUp 0.8s ease forwards;
}

.fade-in--delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in--delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in--delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in--delay-4 { animation-delay: 0.4s; opacity: 0; }

/* --- Print --- */
@media print {
  .site-nav,
  .blob,
  .site-footer {
    display: none;
  }

  body {
    font-size: 12pt;
    color: black;
    background: white;
  }
}
