/* vilago.dev. The brand colours are the five on Joe's huddle-of-houses
   sheet. The 14 warm colours are #1868's, each with its lighter pattern
   shade. System fonts, no scripts. Dark mode follows the browser, on the
   sheet's deep teal. */
:root {
  --b-terracotta: #BC5A2D;
  --b-deep-teal: #1E3D42;
  --b-cream: #EFE3CD;
  --b-mustard: #EFAD33;
  --b-sage: #648662;
  --b-paper: #F8F5EE;
  --b-night: #1C3437;    /* the sheet's dark panel */
  --b-cream-word: #EEE6D3; /* the wordmark on that panel */

  --rose: #C46F87;       --rose-l: #DDA7B1;
  --brick: #A1383E;      --brick-l: #CB8884;
  --terracotta: #BC5A2D; --terracotta-l: #D99C80;
  --apricot: #C38654;    --apricot-l: #DBB495;
  --walnut: #735740;     --walnut-l: #A99685;
  --ochre: #987A00;      --ochre-l: #D3AB4E;
  --moss: #527435;       --moss-l: #95A981;
  --sage: #5AA183;       --sage-l: #8BC7A9;
  --teal: #006869;       --teal-l: #78A19F;
  --lake: #378197;       --lake-l: #8BB1BB;
  --sky: #7595BE;        --sky-l: #ABBDD3;
  --heather: #826EA5;    --heather-l: #B2A5C4;
  --plum: #7F4A78;       --plum-l: #B28FA9;
  --stone: #887F74;      --stone-l: #B6AFA5;

  color-scheme: light dark;
  --bg: var(--b-paper);
  --surface: #FFFFFF;
  --text: #2A2622;
  --muted: var(--walnut);
  --link: var(--brick);
  --head: var(--b-deep-teal);
  --rule: #DDD6C9;
  --button-bg: var(--b-deep-teal);
  --button-text: var(--b-paper);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--b-night);
    --surface: #24464A;
    --text: var(--b-cream-word);
    --muted: #C4BCAE;
    --link: var(--terracotta-l);
    --head: var(--b-mustard);
    --rule: #34565B;
    --button-bg: var(--b-mustard);
    --button-text: var(--b-deep-teal);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--head); outline-offset: 2px; }
main, .top, .foot { max-width: 44rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
/* The lockup is one picture, cut from Joe's sheet: houses and wordmark together, 40 px tall. */
.brand { display: inline-block; line-height: 0; }
.logo { display: block; height: 2.5rem; width: auto; }
.top nav { display: flex; gap: 1.25rem; }
.top nav a { color: var(--text); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { border-bottom-color: var(--link); }
main { padding-top: 2rem; padding-bottom: 3rem; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 .5rem; color: var(--head); }
p, ul { margin: 0 0 1rem; }
li { margin-bottom: .4rem; }
.hero { padding: 1.5rem 0 1rem; }
.lead { font-size: 1.15rem; }
.button { display: inline-block; padding: .6rem 1.2rem; border-radius: .5rem; background: var(--button-bg); color: var(--button-text); text-decoration: none; font-weight: 600; }
.button:hover { filter: brightness(1.08); }
.three { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
.three div { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--b-terracotta); border-radius: .5rem; padding: .25rem 1.1rem 0; }
.three div:nth-child(2) { border-top-color: var(--b-mustard); }
.three div:nth-child(3) { border-top-color: var(--b-sage); }
.three h2 { margin-top: .9rem; }
@media (min-width: 40rem) { .three { grid-template-columns: repeat(3, 1fr); } }
.latest { border-top: 1px solid var(--rule); margin-top: 2rem; }
time, .meta { color: var(--muted); font-size: .95rem; }
time { margin-left: .5rem; }
.posts { list-style: none; padding: 0; }
.posts li { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.posts p { margin: .25rem 0 0; color: var(--muted); }
.prose { max-width: 38rem; }
.prose .meta time { margin-left: 0; }
.foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: .95rem; padding-top: 1rem; padding-bottom: 2rem; }
