@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --color-background: #f7f5ef;
  --color-surface: #ffffff;
  --color-title: #2f4a3f;
  --color-text: #34423a;
  --color-muted: #6b746c;
  --color-border: #dcd7c9;
  --color-accent: #436857;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  max-width: 100%;
  display: block;
}

main {
  padding: 7rem 1.5rem 5rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(220, 215, 201, 0.6);
}

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

.site-title {
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-title);
  letter-spacing: 0.01em;
}

nav.primary-nav {
  display: flex;
  gap: 1.5rem;
}

nav.primary-nav a {
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-size: 1rem;
  color: var(--color-title);
  transition: color 0.2s ease;
}

nav.primary-nav a.active {
  color: var(--color-accent);
}

.hero {
  text-align: center;
  padding: 0 1rem 3rem;
}

.hero h1 {
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4rem);
  color: var(--color-title);
  margin-bottom: 1.5rem;
}

.hero .intro {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.hero .profile {
  width: min(18rem, 60vw);
  height: min(18rem, 60vw);
  margin: 2rem auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #d8d2c5;
  box-shadow: 0 8px 18px rgba(47, 74, 63, 0.12);
}

.about-hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin: 3rem 0;
}

.about-hero__image {
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(36, 64, 55, 0.1);
}

.about-hero__image img {
  width: 100%;
  display: block;
}

.about-hero__content {
  display: grid;
  gap: 1.5rem;
  font-size: 1.05rem;
}

.about-hero__content p {
  margin: 0;
}

.about-quote {
  margin: 3rem auto 4rem;
  text-align: center;
  color: var(--color-muted);
  font-style: italic;
  max-width: 40rem;
}

.about-quote blockquote {
  margin: 0;
  font-size: 1.2rem;
}

.about-quote figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-weight: 400;
  font-size: 2rem;
  color: var(--color-title);
  text-align: center;
  margin-bottom: 2rem;
}

.posts-grid {
  display: grid;
  gap: 2rem;
}

.post-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(44, 64, 56, 0.08);
  box-shadow: 0 24px 60px rgba(36, 64, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(36, 64, 55, 0.12);
}

.post-card h3 {
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-size: 1.6rem;
  color: var(--color-title);
  margin-bottom: 0.75rem;
}

.post-card .meta {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.post-card p {
  font-size: 1.05rem;
  margin: 0;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-weight: 600;
  color: var(--color-accent);
}

.contact-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.contact-section p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.contact-details {
  display: grid;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
}

footer {
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid rgba(44, 64, 56, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.page-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.page-heading h1 {
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.2rem);
  color: var(--color-title);
  margin-bottom: 1rem;
}

.page-heading p {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.about-layout {
  display: grid;
  gap: 3rem;
}

.about-layout h2 {
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-weight: 400;
  color: var(--color-title);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.9rem;
}

.about-layout p {
  font-size: 1.05rem;
}

.highlight-box {
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(44, 64, 56, 0.12);
  box-shadow: 0 30px 60px rgba(36, 64, 55, 0.08);
}

.tool-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.tool-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(44, 64, 56, 0.1);
  box-shadow: 0 18px 40px rgba(36, 64, 55, 0.08);
}

.tool-card h3 {
  margin-bottom: 0.75rem;
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-weight: 400;
  color: var(--color-title);
}

.contact-card {
  max-width: 32rem;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(44, 64, 56, 0.08);
  box-shadow: 0 24px 48px rgba(36, 64, 55, 0.08);
}

.contact-card h2 {
  margin-top: 0;
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-weight: 400;
  color: var(--color-title);
  margin-bottom: 1rem;
}

.contact-card p {
  margin-bottom: 0.75rem;
}

.blog-post-body {
  max-width: 50rem;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 3rem 3.5rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(44, 64, 56, 0.08);
  box-shadow: 0 32px 70px rgba(36, 64, 55, 0.08);
}

.blog-post-body h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.blog-post-body .meta {
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

.blog-post-body p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.empty-state {
  text-align: center;
  color: var(--color-muted);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  nav.primary-nav {
    gap: 2rem;
  }

  .about-hero {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

@media (max-width: 720px) {
  header.site-header .nav-inner {
    flex-direction: column;
    gap: 1rem;
  }

  nav.primary-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding-top: 6rem;
  }

  .blog-post-body {
    padding: 2.5rem 2rem;
  }
}

.admin-layout {
  display: grid;
  gap: 2.5rem;
  max-width: 52rem;
  margin: 0 auto;
}

.admin-card {
  background: var(--color-surface);
  border-radius: 1.5rem;
  border: 1px solid rgba(44, 64, 56, 0.1);
  box-shadow: 0 24px 60px rgba(36, 64, 55, 0.08);
  padding: 2.5rem;
}

.admin-card h2 {
  margin-top: 0;
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-weight: 400;
  color: var(--color-title);
  margin-bottom: 1.5rem;
}

.admin-card form {
  display: grid;
  gap: 1.5rem;
}

.admin-card label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-title);
}

.admin-card input,
.admin-card textarea {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--color-border);
  font-size: 1rem;
  font-family: 'Open Sans', system-ui, sans-serif;
  background: rgba(255, 255, 255, 0.9);
}

.admin-card textarea {
  min-height: 10rem;
  resize: vertical;
}

.admin-card form button {
  justify-self: start;
  background: var(--color-title);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.admin-card form button:hover {
  background: var(--color-accent);
}

.admin-button-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-card form button.secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  padding: 0.8rem 1.6rem;
}

.admin-card form button.secondary:hover {
  background: rgba(67, 104, 87, 0.08);
}

.admin-status {
  margin-top: 0.5rem;
  color: var(--color-muted);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.95rem;
}

.admin-table th {
  font-family: 'Merriweather', 'Times New Roman', serif;
  color: var(--color-title);
  font-weight: 400;
}

.admin-table td:first-child {
  font-weight: 600;
}

.admin-table .admin-actions {
  display: flex;
  gap: 0.75rem;
}

.admin-table button {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
}

.admin-table button.delete {
  color: #a73c3c;
}

.admin-table .admin-actions a {
  color: var(--color-accent);
  font-weight: 600;
}

.admin-table .admin-actions a:hover {
  text-decoration: underline;
}

.admin-alert {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(67, 104, 87, 0.1);
  color: var(--color-title);
  margin-top: 1rem;
}
