/* Fiona Lazar: port of the CoBlocks WordPress theme plus the site's custom CSS. */
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-400.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-400-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Heebo"; src: url("/assets/fonts/heebo-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --text: #2a2a2a;
  --heading: #4b4b4b;
  --bg: #ffffff;
  --nav: #000000;
  --yellow: #ffea77;
  --blue: #7ba4ff;
  --container: 1060px;
  --serif: "Lora", Georgia, serif;
  --sans: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html.night {
  --text: #e9e9e9;
  --bg: #1b1b1b;
  --nav: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}

a { color: inherit; text-decoration: none; box-shadow: inset 0 -1px 0 currentColor; }
a:hover { box-shadow: inset 0 -2px 0 currentColor; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--bg); padding: .5em 1em; }

.container { width: 100%; max-width: calc(var(--container) + 40px); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}
.site-logo { box-shadow: none; }
.site-logo:hover { box-shadow: none; }
.site-logo img { width: 130px; }
html.night .site-logo img { filter: invert(1); mix-blend-mode: screen; }

.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  margin: .25em .6em;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--nav);
  opacity: .8;
  box-shadow: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { opacity: 1; box-shadow: none; }
.site-nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--nav); }

.night-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: .9em;
  padding: 0 0 0 .9em;
  border: 0;
  border-left: 1px solid rgba(128, 128, 128, .35);
  border-radius: 0;
  background: none;
  color: var(--nav);
  cursor: pointer;
  box-sizing: content-box;
}
.night-toggle svg { width: 24px; height: 24px; fill: currentColor; }
.night-toggle .moon, html.night .night-toggle .sun { display: none; }
html.night .night-toggle .moon { display: block; }

/* Home: media card (photo 58% + overlapping yellow card) */
.media-card {
  display: grid;
  grid-template-columns: 58% auto;
  align-items: center;
  padding-bottom: 60px;
}
.media-card img { width: 100%; }
.card {
  position: relative;
  z-index: 1;
  margin-left: -100px;
  padding: 38px;
  background: var(--yellow);
  color: #2a2a2a;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25), 0 15px 50px rgba(0, 0, 0, .06);
}
.card h1 {
  font-family: var(--serif);
  font-size: 55px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 .4em;
  padding-top: 10px;
}
.social { display: flex; gap: 14px; list-style: none; margin: 30px 0 0; padding: 0 7px; }
.social a { display: block; box-shadow: none; transition: opacity .2s; }
.social a:hover { opacity: .8; }
.social svg { display: block; width: 25px; height: 25px; }

/* About */
.hero-band {
  background: var(--blue);
  color: #fff;
  padding: 28px 0;
}
.hero-band p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  font-size: 42px;
  line-height: 60px;
}
.columns-band {
  background: var(--yellow);
  color: #2a2a2a;
  padding: 44px 0;
}
.columns-band .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}

.not-found { padding: 60px 0 120px; }
.not-found h1 { font-size: 55px; line-height: 1.25; color: var(--heading); margin: 0 0 .5em; }
html.night .not-found h1 { color: var(--text); }

@media (max-width: 1440px) {
  .hero-band p { font-size: 36px; line-height: 52px; }
}
@media (max-width: 992px) {
  .columns-band .container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .media-card { grid-template-columns: 1fr; }
  .card { margin: -60px 0 0; }
  .card h1 { font-size: 40px; }
  .hero-band p { font-size: 24px; line-height: 40px; }
  .site-logo img { width: 94px; }
  .site-nav a { margin: .25em .4em; font-size: 16px; }
}
