
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { 
  height: 100%; 
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  background-image: url("../img/main-bg.jpeg");
  background-repeat: no-repeat;  
  background-size: cover;     
  background-position: center;  
  color: #141414;         
  line-height: 1.65;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
body {
  font-family: "Lora", serif;
}


:root{

  --swift-green: #5eb298;   
  --swift-orange: #e46c32;  

  --surface: #ffffff; 
  --border: #dcdfe3; 
  --muted: #565b64;


  --step--1: clamp(.92rem, .8vw, .98rem);
  --step-0 : clamp(1rem, 1vw, 1.1rem);
  --step-1 : clamp(1.25rem, 2vw, 1.6rem);
  --step-2 : clamp(1.56rem, 3vw, 2rem);
  --step-3 : clamp(1.95rem, 4vw, 2.6rem);


  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s6: 3rem;


  --measure: 70ch;
}


.container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-width: 0;
  box-sizing: border-box; 
  max-width: 1000px;
  margin: 0 auto;
 
}
.container {
  display: grid;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.site-header, .site-footer {
  padding: var(--s3);
  border-block: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
}
.site-main {
  padding: var(--s4) var(--s3);
  max-width: var(--measure);
  margin-inline: auto;
  min-width: 0;
}
.site-header {
  border-bottom: 6px solid #000;
}

.site-footer {
  border-bottom: 6px solid #000;
}
    
.card {
  border-bottom: 6px solid #000;
}
    
.site-main .card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  border: 4px solid #000;   
}


.site-header h1 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 2px;
  font-family: "Impact", "Arial Black", sans-serif;

  background-image: url("../img/header-bg.jpeg");
  background-size: cover;
  background-position: center;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}


h1 { font-size: var(--step-3); line-height: 1.2; margin-bottom: var(--s2); color: var(--swift-green); }
.h2, h2 { font-size: var(--step-2); line-height: 1.25; margin: var(--s3) 0 var(--s2); }
.byline { color: var(--muted); font-size: var(--step--1); }
.pubdate { color: var(--muted); font-style: italic; margin-top: var(--s2); }
p { margin-bottom: var(--s2); }
em { font-style: italic; }


a {
  color: var(--swift-green);
  text-decoration: underline;
  text-underline-offset: .18em;
  transition: color .2s ease, text-underline-offset .2s ease, background .2s ease;
}
a:hover, a:focus-visible {
  color: var(--swift-orange);
  text-underline-offset: .35em;
  outline: none;
}


.button {
  display: inline-block;
  padding: .4rem .8rem;
  border: 2px solid var(--swift-green);
  border-radius: .6rem;
  text-decoration: none;
  color: var(--swift-green);
  font-weight: 600;
  transition: all .2s ease;
}
.button:hover {
  background: var(--swift-green);
  color: white;
  border-color: var(--swift-green);
}
.button:focus-visible {
  outline: 2px solid var(--swift-orange);
  outline-offset: 2px;
}


.lead-figure { margin: var(--s3) 0; position: relative; }
.lead-figure img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--swift-green);
  border-radius: .75rem;
}
.caption {
  margin-top: .5rem;
  color: var(--muted);
  font-size: var(--step--1);
}
img { 
  max-width: 100%; height: auto; display: block; 
}

.essay + .essay {
  margin-top: var(--s6);
  border-top: 2px solid var(--swift-orange);
  padding-top: var(--s4);
}


:focus-visible { outline: 2px solid var(--swift-orange); outline-offset: 2px; }
img { display: block; }


.site-header,
.site-footer,
.site-main .card {
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header:hover,
.site-footer:hover,
.site-main .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.site-main .card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}


@media (min-width: 1000px) {
  .container { 
    grid-template-columns: 1fr 1fr; 
  }
  .site-header, 
  .site-footer { 
    grid-column: 1 / -1; 
  }
  .site-main, 
  .essay { 
    display: contents; 
  }
}


.site-header, .site-main .card, .site-footer {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s ease forwards;
}
.site-header       { animation-delay: .2s; }
.site-main .intro  { animation-delay: .4s; }
.site-main .body   { animation-delay: .6s; }
.site-footer       { animation-delay: .8s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.site-main h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
}
