:root {
  --cream: #faf6ef;
  --cream-alt: #f2ead9;
  --ink: #2b2118;
  --ink-soft: #5a4d3f;
  --terracotta: #c1592b;
  --terracotta-dark: #9c4520;
  --sage: #7c9473;
  --sage-dark: #5e7256;
  --border: #e3d8c3;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

a {
  color: var(--terracotta);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1em;
}

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

/* Header / Nav */
header.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--terracotta);
}

nav.main-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}

nav.main-nav a {
  color: var(--ink-soft);
}

nav.main-nav a.active,
nav.main-nav a:hover {
  color: var(--terracotta);
}

/* Layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

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

.hero blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 1rem;
  border: none;
}

.hero cite {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero h1 {
  font-size: 2rem;
  margin-top: 2rem;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.button-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  border: 2px solid var(--terracotta);
}

.btn:hover {
  text-decoration: none;
}

.btn.primary {
  background: var(--terracotta);
  color: #fff;
}

.btn.primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
}

.btn.secondary {
  background: transparent;
  color: var(--terracotta);
}

.btn.secondary:hover {
  background: var(--terracotta);
  color: #fff;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.card h3 {
  color: var(--terracotta-dark);
}

.card .location {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.card a.card-link {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: bold;
}

section {
  margin-bottom: 3rem;
}

section > h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--sage);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
}

/* Resume */
.resume-header {
  margin-bottom: 2rem;
}

.resume-header h1 {
  margin-bottom: 0.1rem;
}

.resume-header .title {
  color: var(--ink-soft);
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 0.5rem;
}

.resume-header .contact-line {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.resume-entry {
  margin-bottom: 1.5rem;
}

.resume-entry .role {
  font-weight: bold;
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
}

.resume-entry .dates {
  float: right;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
}

.resume-entry .org {
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.resume-entry ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list span {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
}

.print-link {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
}

.note-box {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.note-box h2 {
  border: none;
  margin-bottom: 0.75rem;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

footer.site-footer a {
  color: var(--ink-soft);
  text-decoration: underline;
}

@media print {
  header.site-header,
  footer.site-footer,
  .print-link {
    display: none;
  }
  body {
    background: #fff;
  }
}

@media (max-width: 600px) {
  .resume-entry .dates {
    float: none;
    display: block;
  }
}
