:root {
  --bg: #f5efe5;
  --bg-alt: #ebe3d3;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --accent: #b85c3a;
  --accent-soft: #d49a7e;
  --secondary: #4a5d3d;
  --border: #d4c9b3;
  --max-width: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 12px 0;
}
h2 { font-size: 2.3rem; line-height: 1.15; margin-bottom: 18px; }
h3 { font-size: 1.45rem; line-height: 1.2; margin-bottom: 8px; }

p { margin: 0 0 14px 0; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 229, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--accent); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0; padding: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px 0;
  background:
    linear-gradient(to bottom, rgba(245,239,229,0.85), rgba(245,239,229,1)),
    radial-gradient(circle at 80% 10%, var(--accent-soft) 0%, transparent 45%);
}
.hero-inner { text-align: left; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 4.5rem;
  line-height: 1.0;
  margin: 0 0 14px 0;
  font-weight: 500;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.hero-lede {
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(184, 92, 58, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pill:hover {
  background: rgba(184, 92, 58, 0.15);
  border-color: var(--accent);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: #a44e30; border-color: #a44e30; color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section p { max-width: 720px; }
.lede { font-size: 1.08rem; color: var(--text-muted); max-width: 640px; margin-bottom: 28px; }

/* ---------- Experience ---------- */
.role { margin-bottom: 36px; }
.role:last-child { margin-bottom: 0; }
.role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.role-head h3 { margin: 0; }
.role-dates {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.role-meta {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.96rem;
  margin: 4px 0 12px 0;
}
.role ul { margin: 0; padding-left: 22px; }
.role li { margin-bottom: 6px; }

/* ---------- Stack grid ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 12px;
}
.stack-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 22px 18px 22px;
}
.stack-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--accent);
}
.stack-card p { margin: 0; font-size: 0.96rem; color: var(--text); }

/* ---------- Operating-system grid ---------- */
.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.os-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.os-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--secondary);
}
.os-card p { margin: 0; }

/* ---------- Availability grid ---------- */
.avail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 12px;
}
.avail-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.avail-card h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--accent); }
.avail-card p { margin: 0; }

/* ---------- Help list ---------- */
.help-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  max-width: 720px;
}
.help-list li {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
}

/* ---------- Favourites ---------- */
.fav-block { margin-bottom: 30px; max-width: 720px; }
.fav-block:last-child { margin-bottom: 0; }
.fav-block h3 { color: var(--secondary); }
.fav-block ul { margin: 6px 0 0 0; padding-left: 22px; }
.fav-block li { margin-bottom: 6px; }

/* ---------- Community ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 12px 0 32px 0;
}
.community-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  border-radius: 12px;
  padding: 22px;
}
.community-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--secondary);
}
.community-card p { margin: 0; }
.community-cta {
  text-align: center;
  margin-top: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.community-cta .btn { margin-bottom: 10px; }
.community-cta .form-note { margin: 0; }

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 600px;
  display: grid;
  gap: 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 92, 58, 0.15);
}
.form-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 6px 0 0 0;
}
.form-note a { color: var(--accent); }

/* Honeypot field — hidden from real users, visible to bots */
.botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-success,
.contact-error {
  max-width: 600px;
  padding: 20px 22px;
  border-radius: 12px;
}
.contact-success {
  background: rgba(74, 93, 61, 0.1);
  border: 1px solid var(--secondary);
  border-left: 4px solid var(--secondary);
}
.contact-success h3 {
  color: var(--secondary);
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.contact-success p { margin: 0; }
.contact-error {
  background: rgba(184, 92, 58, 0.08);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  margin-top: 12px;
}
.contact-error p { margin: 0; font-size: 0.95rem; }
.contact-error a { color: var(--accent); }

/* Disabled submit state */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: #d8d2c4;
  padding: 40px 0 30px 0;
  margin-top: 40px;
}
.footer a { color: var(--accent-soft); }
.footer-inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  margin: 0;
  color: #f5efe5;
}
.footer-sub { margin: 4px 0 0 0; font-size: 0.92rem; color: #9b948a; }
.footer-links { display: flex; gap: 18px; }
.footer-copy { font-size: 0.85rem; color: #9b948a; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  h2 { font-size: 1.9rem; }
  .hero-title { font-size: 3.2rem; }
  .hero { padding: 60px 0 50px 0; }
  .section { padding: 50px 0; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 8px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
}
