:root{
  --bg: #FFFFE4;
  --text: #1f2937;
  --muted: #4b5563;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.55;
}

/* Keep links consistently blue (even after visiting) */
a:link,
a:visited{
  color: #1d4ed8;
}

a:hover{
  color: #1e40af;
  text-decoration: underline;
}

a:active{
  color: #1d4ed8;
}

/* Keep the navbar links using your normal text color */
.nav a:link,
.nav a:visited{
  color: inherit;
}

h1{
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

p{
  margin: 12px 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 42ch;
}

/* Page layout */
.hero, .page{
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.hero{
  text-align: center;
  min-height: calc(100vh - 60px); /* keeps hero centered under the nav */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Top navigation */
.site-header{
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(31, 41, 55, 0.12);
}

.nav{
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand{
  font-weight: 700;
}

.nav__links{
  display: flex;
  gap: 10px;
}

.nav__link{
  padding: 8px 10px;
  border-radius: 10px;
}

.nav__link:hover{
  text-decoration: none;
  background: rgba(31, 41, 55, 0.06);
}

.nav__link[aria-current="page"]{
  background: rgba(31, 41, 55, 0.10);
}

/* Simple button */
.button{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.10);
  text-decoration: none;
}

.button:hover{
  background: rgba(31, 41, 55, 0.16);
  text-decoration: none;
}

/* Contact list */
.contact-list{
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.contact-list li{
  margin: 10px 0;
}

/* Cards (Projects page) */
.cards{
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card{
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: rgba(31, 41, 55, 0.06);
  text-decoration: none;
}

.card:hover{
  background: rgba(31, 41, 55, 0.10);
  text-decoration: none;
}

.card h2{
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.card p{
  margin: 0;
  color: var(--muted);
}

.embed{
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.12);
}

.embed iframe{
  width: 100%;
  height: min(80vh, 900px);
  border: 0;
}

.site-footer small{
  display: block;
  text-align: center;
}

.blog-list{
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.blog-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius, 18px);
  padding: 18px;
  box-shadow: var(--shadow, none);
  background: rgba(255,255,255,.25);
}

.blog-card__meta{
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .95rem;
  opacity: .8;
}

.blog-card__title{
  margin: 8px 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.blog-card__excerpt{
  margin: 0 0 10px;
  max-width: 70ch;
  opacity: .9;
}

.blog-card__link{
  display: inline-block;
  font-weight: 600;
}

.post{
  max-width: 78ch;
}

.post__kicker{
  margin: 0 0 10px;
}

.post__meta{
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: .8;
  margin-top: 8px;
}

.post__content h2{
  margin-top: 22px;
}

