:root {
  --bg: #f3f0e6;
  --text: #000000;
  --accent: #799d77;
  --accent-light: #96b091;
  --accent-lighter: #b6c6ae;
  --accent-border: #d6dccc;
  --accent-dark: #5c7d5a;
  --flag: #af5cc4;
  --flag-light: #cc8fe8;
  --border-radius: 10px;
  --serif-heading: "Fraunces", Georgia, serif;
  --serif-body: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 1.15rem;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--serif-heading);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-top: 1.5em; }
h3 { font-size: 1.4rem; }

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

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.site-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 2px solid var(--accent-border);
}

.site-header .wrap {
  max-width: 960px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-title {
  font-family: var(--serif-heading);
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--text);
}

.nav-toggle {
  display: none;
}

nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}

@media (max-width: 780px) {
  .header-row { width: auto; flex: 1; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--serif-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5em 0.9em;
    color: #000;
    cursor: pointer;
  }
  .nav-toggle:hover { background: var(--accent-dark); color: #fff; }
  nav.site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
  }
  nav.site-nav.open { display: flex; }
  nav.site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--accent-border);
  }
}

nav.site-nav a {
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

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

main {
  padding: 3rem 0 4rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  padding: 0.65em 1.4em;
  border-radius: var(--border-radius);
  font-family: var(--serif-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover { background: var(--accent-dark); color: #fff; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  padding: 0.6em 1.35em;
  border-radius: var(--border-radius);
  border: 2px solid var(--accent);
  font-weight: 600;
}

.card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.tag {
  display: inline-block;
  background: var(--accent-lighter);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.15em 0.75em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

blockquote {
  margin: 0;
  font-style: italic;
  border-left: 3px solid var(--flag-light);
  padding-left: 1rem;
}

footer.site-footer {
  border-top: 2px solid var(--accent-border);
  padding: 2rem 0;
  font-size: 0.9rem;
  text-align: center;
  color: rgba(0,0,0,0.6);
}

footer.site-footer a { color: rgba(0,0,0,0.6); }

.avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-heading);
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.notice {
  background: rgba(175,92,196,0.1);
  border-left: 3px solid var(--flag);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

form.contact-form { display: flex; flex-direction: column; gap: 0.9rem; max-width: 480px; }
form.contact-form label { font-weight: 600; font-size: 0.95rem; }
form.contact-form input,
form.contact-form textarea {
  font-family: var(--serif-body);
  font-size: 1rem;
  padding: 0.6em 0.75em;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: var(--border-radius);
  background: #fff;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }

@media (max-width: 640px) {
  h1 { font-size: 2.1rem; }
  nav.site-nav { font-size: 0.85rem; }
}
