/* -------- Base styles -------- */
:root {
  --bg: #0C3D0C;          /* dark forest green */
  --accent: #1d4a35;      /* forest green */
  --accent-soft: #e2ede6;
  ---text-main: #000000;    /* main body text is now black */
--text-gold: #9A6A2D;    /* new variable for your gold */
  --text-muted: #A8A297;
  --border-subtle: #f4dede;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* -------- Layout -------- */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* -------- Header / Nav -------- */

header {
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(6px);
  background: rgba(60, 30, 95, 0.7); /* midnight violet */
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #F0E6D6;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  margin-left: 1.5rem;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.15rem;
}

nav a:hover {
  color: var(--accent);
}

nav a.active {
  color: #784E10;
}

nav a.active::after,
nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

/* -------- Page shell -------- */

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.page-header-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0 0 0.4rem;
}

.page-subtitle {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* -------- Cards / Sections -------- */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(210, 198, 181, 0.7);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.03);
}

.card h2 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.card p {
  margin-top: 0.35rem;
  font-size: 0.97rem;
}

/* list styles */
.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.list-unstyled li + li {
  margin-top: 0.4rem;
}

/* tags / chips */
.chip-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

h1, h2, h3, .page-title {
  color: var(--text-gold);
}


/* Links */
a.text-link {
  color: var(--text-gold);
  border-bottom: 1px solid var(--text-gold);
}


a.text-link:hover {
  border-bottom-color: rgba(29, 74, 53, 0.6);
}

/* Grid for Writing / Projects listings */
.item-list {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.1rem;
}

.item {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(210, 198, 181, 0.85);
  background: rgba(255, 255, 255, 0.9);
}

.item-title {
  font-size: 1.02rem;
  margin: 0 0 0.15rem;
}

.item-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.item-description {
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

/* Contact form-ish layout */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.contact-block label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.contact-block p {
  margin: 0 0 0.8rem;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 198, 181, 0.9);
  font-size: 0.8rem;
}

/* Buttons / pseudo-buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
}

.button:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem 1.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* -------- Responsive -------- */

/* Flipbook embed styles */
.flipbook-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(210, 198, 181, 0.85);
  background: #000;
  max-width: 100%;
  aspect-ratio: 4 / 3; /* desktop/tablet */
}

.flipbook-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Make the flipbook taller on small screens */
@media (max-width: 600px) {
  .flipbook-frame {
    aspect-ratio: 3 / 4;  /* taller than wide on phones */
  }
}


@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1.25rem;
  }

  .card-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page {
    padding-top: 1.8rem;
  }
}
