/* =========================
   krismonson.net — Base Styles
   Palette:
   bg: #FAFAF8
   text: #1B1B1B
   muted: #555555
   border: #E5E5E0
   accent: #2F6F73
   accent-soft: #A8C6C8
   ========================= */

:root{
  --bg: #FAFAF8;
  --text: #1B1B1B;
  --muted: #555555;
  --border: #E5E5E0;
  --accent: #2F6F73;
  --accent-soft: #A8C6C8;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);

  --max: 1100px;
  --narrow: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

h1,h2,h3{
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
}

h1{ font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2{ font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3{ font-size: 1.2rem; }

p{ margin: 0 0 1rem 0; }

a{
  color: inherit;
  text-decoration: none;
}

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

.container{
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow{
  width: min(var(--narrow), calc(100% - 2rem));
  margin: 0 auto;
}

.section{
  padding: 4rem 0;
}

.section.hero{
  padding: 4.5rem 0 3rem;
}

.lead{
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 70ch;
}

.muted{ color: var(--muted); }
.small{ font-size: 0.92rem; }

.section-head{
  margin-bottom: 1.25rem;
}

.section-head-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -999px;
  top: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 1000;
}
.skip-link:focus{ left: 0.75rem; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 500;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand-name{
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links{
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.nav-links a{
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover{
  color: var(--text);
  text-decoration-color: var(--accent-soft);
}

/* Mobile nav toggle */
.nav-toggle{
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.nav-toggle-bars{
  display: block;
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--text), var(--text)) 0 0/100% 2px,
    linear-gradient(var(--text), var(--text)) 0 50%/100% 2px,
    linear-gradient(var(--text), var(--text)) 0 100%/100% 2px;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Buttons */
.cta-row{
  display: flex;
  gap: 0.9rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.05rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button.primary{
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.button.ghost{
  background: transparent;
  color: var(--text);
}

.button:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47,111,115,0.15);
  text-decoration: none;
}

.text-link{
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover{
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
}

/* Cards grid */
.grid.cards{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card{
  grid-column: span 6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: rgba(255,255,255,0.35);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(47,111,115,0.35);
  box-shadow: var(--shadow);
}

.card-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.pill{
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.55);
}

/* Video highlight */
.video-highlight{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.video-frame{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.35);
}

.video-placeholder{
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  gap: 0.75rem;
  text-align: center;
}

.play-badge{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47,111,115,0.35);
  color: var(--accent);
  font-weight: 700;
}

/* Writing list */
.list{
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.list-item{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  background: rgba(255,255,255,0.35);
}

/* About lite */
.about-lite{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.about-photo{
  width: 180px;
  height: 180px;
  border-radius: 16px;            /* slightly smoother than 14px */
  overflow: hidden;
  border: 1px solid rgba(27,27,27,0.12);  /* softer, less “boxy” */
  background: rgba(255,255,255,0.35);

  justify-self: start;
  align-self: start;
}

.about-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* <-- add this */
  display: block;
}

/* About page polish */
.prose p { max-width: 70ch; }
.prose strong { font-weight: 700; }

.about-hero{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.about-photo{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.35);
}

.about-photo-lg{
  width: 220px;
  height: 220px;
}

.about-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.callout{
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.35);
}

.bullets{
  padding-left: 1.2rem;
  margin: 0.75rem 0 0;
}

.bullets li{
  margin: 0.5rem 0;
}

/* About page responsive */
@media (max-width: 820px){
  .about-hero{
    grid-template-columns: 1fr;
  }
  .about-photo-lg{
    width: 180px;
    height: 180px;
  }
}




/* Elsewhere */
.link-list{
  margin: 0.8rem 0 1rem;
  padding-left: 1.2rem;
}

.link-list li{
  margin: 0.35rem 0;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-title{
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
}

.footer-links{
  display: flex;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 820px){
  .card{ grid-column: span 12; }
  .video-highlight{ grid-template-columns: 1fr; }
  .about-lite{ grid-template-columns: 1fr; }
}

@media (max-width: 680px){
  .nav-toggle{ display: inline-flex; }
  .nav-links{
    display: none;
    position: absolute;
    right: 1rem;
    top: 62px;
    width: min(260px, calc(100% - 2rem));
    flex-direction: column;
    gap: 0;
    background: rgba(250,250,248,0.98);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .nav-links.open{ display: flex; }
  .nav-links li{ border-top: 1px solid var(--border); }
  .nav-links li:first-child{ border-top: 0; }
  .nav-links a{
    padding: 0.85rem 0.95rem;
    display: block;
  }
  .section{ padding: 3.25rem 0; }
}
