/* HUGO CAN HELP — site styles
   Brand: blue #1eaae1, orange #fcb42b, Poppins */

:root {
  --blue: #1eaae1;
  --blue-dark: #178fbe;
  --orange: #fcb42b;
  --text: #4a4a4a;
  --text-light: #767676;
  --rule: #e6e6e6;
  --max: 1160px;
  --measure: 820px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.25;
  color: var(--blue);
  margin: 1.6em 0 0.5em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; color: var(--text); font-weight: 500; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

strong { font-weight: 500; color: #333; }

blockquote {
  margin: 2rem 0 0.5rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--orange);
  font-size: 1.05rem;
}
blockquote + p em { color: var(--text-light); }

figcaption, .caption, em.caption { color: var(--text-light); }

.framed { border: 2px solid #111; }

/* ---------- Header ---------- */

.site-header {
  text-align: center;
  padding: 2.2rem 1rem 0;
}
.site-logo img {
  width: min(440px, 86vw);
  height: auto;
}
.site-nav { margin-top: 1.1rem; border-bottom: 1px solid transparent; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.6rem;
}
.site-nav li { position: relative; }
.site-nav a,
.site-nav button {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.4rem 0;
  cursor: pointer;
}
.site-nav a:hover, .site-nav button:hover { color: var(--blue); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom: 1.5px solid var(--text);
}
.has-dropdown button::after { content: " ▾"; font-size: 0.7em; }
.site-nav ul.dropdown {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 0.4rem 0 !important;
  min-width: 10rem;
  flex-direction: column;
  gap: 0;
}
.site-nav .has-dropdown:hover ul.dropdown,
.site-nav .has-dropdown:focus-within ul.dropdown { display: flex; }
.dropdown li { width: 100%; }
.dropdown a {
  display: block;
  padding: 0.45rem 1.1rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ---------- Layout ---------- */

.site-main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.4rem 4rem;
}
.site-main.wide { max-width: var(--max); }

.site-footer {
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 1.6rem 1rem 2.2rem;
}
.site-footer a { color: var(--text-light); }

/* ---------- Home ---------- */

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.home-grid .intro-caption {
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.home-contact { margin-top: 1rem; }
@media (max-width: 760px) {
  .home-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Blog listings ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.6rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-list li:first-child { padding-top: 0.4rem; }
.post-list .thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.post-list h2 { margin: 0 0 0.2rem; font-size: 1.25rem; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list .date {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}
.post-list p { margin: 0.4rem 0 0; font-size: 0.95rem; }
@media (max-width: 600px) {
  .post-list li { grid-template-columns: 1fr; gap: 0.8rem; }
}

/* ---------- Posts ---------- */

.post-date {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 0;
}
.post-title { margin-top: 0.2rem; }
.post img { margin: 0.5rem 0 0.2rem; }
.post img + em, .post p em:only-child { color: var(--text-light); font-size: 0.9rem; }
.post-back { margin-top: 3rem; }

/* ---------- My Finds ---------- */

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  text-align: center;
  margin: 2rem 0;
}
.screens strong { display: block; margin-top: 0.5rem; }
@media (max-width: 700px) {
  .screens { grid-template-columns: 1fr; }
}
.store-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.store-badges img { height: 54px; width: auto; }

/* ---------- Utility ---------- */

.centered { text-align: center; }
.lede { font-style: italic; font-size: 1.05rem; }
