/* ===== CSS Variables ===== */
:root {
  --color-bg: #fcfcfd;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-accent: rgba(102, 86, 199, 1);
  --color-accent-hover: rgba(122, 106, 219, 1);
  --color-border: #e0e0e0;
  --color-highlight: #E8E8E8;

  --font-sans: 'Oxygen', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Oxygen', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Oxygen', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 800px;
  --spacing: 2rem;
}

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

/* ===== Base ===== */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: #f5f8ff;
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Highlight link style (matching original exactly) */
a.highlight,
a.highlight:active,
a.highlight:focus,
a.highlight:visited {
  text-decoration: none;
  background-image: linear-gradient(104deg, rgba(215, 215, 255, 0.8) 20%, rgba(215, 215, 250, 0.3) 20%, rgba(215, 215, 250, 0.5) 20%, rgba(215, 215, 250, 0.8) 20%, rgba(215, 215, 250) 20%);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 100% 35%;
  transition: background-size .3s;
  padding: 0.2em 0;
  color: var(--color-text);
}

a.highlight:hover {
  background-size: 100% 2px;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: 0% 100%;
  color: var(--color-accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  font-weight: 400;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  font-weight: 400;
}

.text-intro {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
}

p {
  margin-top: 1rem;
}

strong {
  font-weight: 500;
}

ul, ol {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-top: 0.5rem;
}

hr {
  border: none;
  border-top: 1px solid rgba(51, 51, 51, 0.25);
  margin: 2rem 0;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ===== Navigation ===== */
.nav {
  border-bottom: 1px solid rgba(51, 51, 51, 0.25);
  padding: 0.75rem var(--spacing);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Rubik Puddles', var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.3rem;
  -webkit-text-stroke: 0.5px var(--color-text);
}

.nav-logo:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

/* ===== Main Content ===== */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--spacing);
}

/* Home page - centered vertically */
.main-home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem var(--spacing);
}

/* ===== Home Page - Matching Original ===== */
.text-landing {
  font-family: 'Rubik Puddles', var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  margin: 0;
  color: var(--color-text);
  -webkit-text-stroke: 0.8px var(--color-text);
}

@media (min-width: 768px) {
  .text-landing {
    letter-spacing: 1.6rem;
  }
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.home-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(102, 86, 199, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-photo img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(102, 86, 199, 0.25);
}

.home-content .text-intro {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.home-content p {
  margin-top: 0.75rem;
}

.home-content h3.text-intro {
  margin-top: 1.5rem;
}

.home-content h3.text-intro:first-of-type {
  margin-top: 0;
}

/* Social icons */
.home-content i {
  margin-right: 0.5rem;
  color: var(--color-text);
}

.home-content i:hover {
  color: var(--color-accent);
}

/* ===== Page Styles ===== */
.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1.25rem;
}

.page-header p {
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.page-content {
  font-family: var(--font-sans);
  font-weight: 300;
}

.page-content p:first-child {
  margin-top: 0;
}

/* ===== About Page ===== */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.about-photo img {
  width: 100%;
  border-radius: 4px;
}

.about-facts {
  margin-top: 2rem;
}

.about-facts h3 {
  margin-top: 0;
  font-family: var(--font-serif);
}

/* ===== Now Page ===== */
.now-section {
  margin-bottom: 2rem;
}

.now-section h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.now-section p {
  margin-top: 0;
}

/* ===== Thoughts (Blog) ===== */
.thoughts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.thoughts-list li {
  margin: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.25);
}

.thoughts-list li:first-child {
  padding-top: 0;
}

.thoughts-list li:last-child {
  border-bottom: none;
}

.thoughts-list a {
  color: var(--color-text);
}

.thoughts-list a:hover {
  color: var(--color-accent);
}

.thought-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.thought-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.thought-excerpt {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Tag filter */
.tag-filter {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(51, 51, 51, 0.25);
}

.tag-filter span {
  font-size: 0.85rem;
  color: var(--color-text);
  margin-right: 0.5rem;
}

.tag-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-list a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.tag-list a:hover,
.tag-list a.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* ===== Single Post ===== */
.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-title {
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.post-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.post-tags {
  margin-top: 0.75rem;
  justify-content: center;
}

.post-content {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 300;
}

.post-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text-muted);
  font-style: italic;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(51, 51, 51, 0.25);
  padding: 0.1rem var(--spacing) 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social a {
  color: var(--color-text-muted);
}

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

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

  .nav-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-logo {
    font-size: 1.4rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .text-landing {
    font-size: 2rem;
    letter-spacing: 0.2rem;
  }

  .main-home {
    padding: 1.5rem var(--spacing);
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-photo {
    max-width: 250px;
    margin: 0 auto;
  }

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

  .about-photo {
    max-width: 200px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  h1 {
    font-size: 1.75rem;
  }
}
