/* randallmills.com — editorial, static, no dependencies. */

:root {
  --bg:        #fbfaf7;
  --surface:   #ffffff;
  --text:      #23201c;
  --muted:     #6b655c;
  --rule:      #e2ddd4;
  --accent:    #a8600f;
  --accent-bg: #f6eee2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #161513;
    --surface:   #1e1d1a;
    --text:      #e8e4dc;
    --muted:     #a09990;
    --rule:      #322f2a;
    --accent:    #e8a54c;
    --accent-bg: #262219;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 43rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- masthead ---------- */

header.site {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3.5rem;
}
header.site .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: baseline; justify-content: space-between;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}
header.site a.name {
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
nav a {
  font-family: var(--sans); font-size: .9rem;
  color: var(--muted); text-decoration: none;
  margin-left: 1.4rem;
}
nav a:first-child { margin-left: 0; }
nav a:hover, header.site a.name:hover { color: var(--accent); }

/* ---------- prose ---------- */

.lede p:first-child {
  font-size: 1.35rem; line-height: 1.45; margin-top: 0;
}
.lede strong { font-weight: 600; }

h2 {
  font-family: var(--sans);
  font-size: .82rem; font-weight: 650;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
  margin: 4rem 0 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
}

p { margin: 0 0 1.25rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---------- project list ---------- */

.project { margin: 0 0 2.25rem; }
.project h3 { font-family: var(--sans); font-size: 1.02rem; margin: 0 0 .35rem; font-weight: 640; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.project p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.project .host {
  font-family: var(--sans); font-size: .76rem; letter-spacing: .04em;
  color: var(--muted); opacity: .8;
}

/* ---------- galleries ---------- */

.galleries { columns: 2; column-gap: 2rem; padding: 0; margin: 0 0 1.5rem; list-style: none; }
.galleries li { break-inside: avoid; margin-bottom: .5rem; font-size: .95rem; }

/* ---------- support ---------- */

.support {
  background: var(--accent-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin: 1rem 0 0;
}
.support p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 5rem; padding: 2rem 0 4rem;
  font-family: var(--sans); font-size: .85rem; color: var(--muted);
}
footer.site p { margin: 0 0 .4rem; }

@media (max-width: 34rem) {
  body { font-size: 18px; }
  .lede p:first-child { font-size: 1.2rem; }
  .galleries { columns: 1; }
  header.site .wrap { display: block; }
  nav { display: block; margin-top: .6rem; }
  nav a { margin-left: 0; margin-right: 1.2rem; }
}
