/* AlvaroGil.com - one stylesheet for every page */
:root {
  --green: #5c743d;      /* the old site's dark green */
  --light: #eef6e2;      /* the old site's light green, toned down */
  --text: #222;
  --muted: #666;
  --link: #3b5e1c;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
}

header {
  background: var(--light);
  border-bottom: 4px solid var(--green);
}

header .wrap { padding-top: 18px; padding-bottom: 0; }

.site-name {
  font-size: 34px;
  color: var(--green);
  text-decoration: none;
  font-weight: bold;
}

nav { margin-top: 8px; }
nav a {
  display: inline-block;
  padding: 8px 14px 8px 0;
  color: var(--green);
  font-family: Verdana, Arial, sans-serif;
  font-size: 15px;
  text-decoration: none;
}
nav a:hover, nav a.here { text-decoration: underline; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px;
}

h1 { color: var(--green); font-size: 28px; margin-top: 0; }
h2 { color: var(--green); font-size: 22px; border-bottom: 1px solid #ddd; padding-bottom: 4px; margin-top: 36px; }

a { color: var(--link); }

h3 { font-size: 18px; margin: 20px 0 6px; }

img.photo { max-width: 100%; height: auto; border: 1px solid #ddd; }

/* photo grid: thumbnails that link to the full picture */
.wrap.wide { max-width: 1000px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border: 1px solid #ddd;
}
.gallery a:hover img { border-color: var(--green); }

code { font-family: Consolas, monospace; font-size: 15px; background: #f2f2f2; padding: 0 4px; }

ul.list { padding-left: 20px; }
ul.list li { margin-bottom: 10px; }
.note { color: var(--muted); font-size: 15px; }
.soon { color: var(--muted); font-style: italic; }

footer {
  border-top: 1px solid #ddd;
  color: var(--muted);
  font-size: 14px;
  font-family: Verdana, Arial, sans-serif;
}

/* long-form story pages (e.g. the 911 Story) */
.story .crumb { font-family: Verdana, Arial, sans-serif; font-size: 14px; margin: 0 0 6px; }
.story .crumb a { text-decoration: none; }
.story .byline { color: var(--muted); font-style: italic; margin-top: -8px; }
.story .intro { font-size: 21px; }
.story figure { margin: 24px 0; text-align: center; }
.story figure img { border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.story figure.lead img { width: 100%; }
.story figcaption { color: var(--muted); font-size: 15px; font-style: italic; margin-top: 6px; }
.story .cast { background: var(--light); border-left: 4px solid var(--green); padding: 10px 18px; margin: 20px 0; }
.story .cast h3 { margin: 4px 0 8px; color: var(--green); }
.story .cast dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; margin: 0 0 6px; }
.story .cast dt { font-weight: bold; }
.story .cast dd { margin: 0; }
.story .update { background: #f6f6f6; border-left: 4px solid #999; padding: 10px 14px; }
.story .rant { border: 2px dashed #c0392b; border-radius: 6px; padding: 4px 18px; margin: 24px 0; }
.story .rant-title { color: #c0392b; font-family: Verdana, Arial, sans-serif; font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; }
.story .recovered { border-top: 1px solid #ddd; padding-top: 12px; margin-top: 36px; }
