/* Island: the look of the former WordPress theme gimliii. Fonts are served from here (no Google). */
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #4f7e1e;        /* the dark green around everything */
  --green: #72c02c;     /* gimliii's green: titles, links, buttons */
  --green-dark: #5fb611;
  --text: #333;
  --muted: #777;
  --line: #e4e4e4;
  --white: #fff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 "Roboto", Arial, sans-serif; }
a { color: var(--green); text-decoration: none; }
a:hover, a:focus-visible { color: var(--green-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { width: min(100% - 2rem, 1170px); margin-inline: auto; }

/* Header: title, slogan, flag, menu */
.site-header { color: var(--white); }
.site-header > .wrap { padding: 1.5rem 0 1.25rem; }
.site-title { font: 500 2.1rem/1.2 "Raleway", sans-serif; color: var(--green); }
.site-title:hover { text-decoration: none; color: #8bd84a; }
.site-slogan { margin: 0.4rem 0 1.4rem; font: 500 1.1rem "Raleway", sans-serif; color: #e9f3df; }
.header-image { display: block; width: 100%; height: auto; aspect-ratio: 1500 / 624; object-fit: cover; }
.site-nav { border-top: 1px solid rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.7); }
.site-nav .wrap { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding: 0.7rem 0; }
.site-nav a { color: #dfeccf; font-size: 0.95rem; padding: 0.3rem 0.15rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--green); }

/* Main: white box with content and sidebar */
.main { display: grid; grid-template-columns: 1fr; gap: 2rem; background: var(--white); padding: 2rem 1rem; margin-bottom: 2rem; }
.content { min-width: 0; }
.entry-title { margin: 0 0 0.4rem; font: 500 2rem/1.2 "Raleway", sans-serif; color: var(--green); }
h1.entry-title { font-size: 2.3rem; }
.entry-title a { color: inherit; }
.entry-meta { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }

.teaser { display: grid; grid-template-columns: 1fr; gap: 1rem 1.75rem; padding: 0 0 2rem; margin: 0 0 2rem; border-bottom: 1px solid var(--line); }
.teaser:last-of-type { border-bottom: 0; }
.teaser-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.teaser-text p { margin: 0 0 1rem; }
.button { display: inline-block; padding: 0.35rem 1.1rem; background: var(--green); color: var(--white); font-size: 0.95rem; }
.button:hover, .button:focus-visible { background: var(--green-dark); color: var(--white); text-decoration: none; }
.pager { display: flex; justify-content: space-between; gap: 1rem; }

.entry-cover { display: block; width: 100%; margin: 0 0 1.25rem; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content p { margin: 0 0 1rem; }
/* WordPress's image alignment classes in the imported posts */
.entry-content .alignleft { float: left; margin: 0.3rem 1.25rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0.3rem 0 1rem 1.25rem; }
.entry-content .aligncenter { display: block; margin: 0.5rem auto 1rem; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text { font-size: 0.85rem; color: var(--muted); }
.entry-content img.alignleft, .entry-content img.alignright { max-width: 48%; }
/* Comments from WordPress, kept as text */
.old-comments { clear: both; margin-top: 2rem; padding-top: 1rem; border-top: 2px solid var(--green); }
.old-comments h2 { font: 500 1.4rem "Raleway", sans-serif; color: var(--green); margin: 0 0 1rem; }
.old-comment { margin: 0 0 1.25rem; }
.old-comment .who { font-weight: 500; }
.old-comment .when { color: var(--muted); font-size: 0.9rem; }

.sidebar h2 { margin: 0 0 0.8rem; padding-bottom: 0.4rem; font: 500 1.6rem/1.2 "Raleway", sans-serif; color: #555; border-bottom: 2px solid var(--green); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0.25rem 0; }

.site-footer { color: #dfeccf; font-size: 0.85rem; line-height: 1.5; padding: 0 0 2rem; }
.site-footer p { margin: 0 0 0.6rem; max-width: 80ch; }
.site-footer a { color: var(--white); }

@media (min-width: 700px) {
  .teaser { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .teaser-image img { aspect-ratio: 16 / 9; }
}
@media (min-width: 960px) {
  .main { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); padding: 2rem 1.5rem; }
}
@media (max-width: 600px) {
  .entry-content .alignleft, .entry-content .alignright, .entry-content img.alignleft, .entry-content img.alignright { float: none; max-width: 100%; margin: 0.5rem 0 1rem; }
}

/* Lightbox for the photos in posts (js/lightbox.js) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
body.lightbox-open { overflow: hidden; }
.entry-cover-link, .entry-content a[href$=".jpg"], .entry-content a[href$=".jpeg"], .entry-content a[href$=".png"], .entry-content a[href$=".JPG"] { cursor: zoom-in; }
