/* mriles.com — rebuilt from the Wix original, 2026-08 */
/* SOURCE FILE. Copied into site/ by build-site.ps1.
   Do not edit site/styles.css — the build wipes that directory. */

:root {
  --gray:   #a8a8a8;
  --olive:  #8a8a1e;
  --green:  #0d3b16;
  --rust:   #a34406;
  --dark:   #2e2e2e;
  --cream:  #f5f2e2;
  --blue:   #2b6cb0;
  --link:   #3d7ce0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: #fff;
  color: #111;
}

/* ---------- header ---------- */

.topbar { display: flex; background: var(--gray); }
.topbar .edge { width: 12%; min-width: 44px; }
.topbar .edge.left  { background: var(--green); }
.topbar .edge.right { background: var(--rust); }
.topbar .brand {
  flex: 1;
  text-align: center;
  padding: 14px 8px 10px;
}
.topbar .brand a { text-decoration: none; color: #111; }
.wordmark { font-size: clamp(20px, 4vw, 30px); letter-spacing: -0.5px; }
.wordmark .dotcom { font-size: 0.5em; vertical-align: baseline; }
.clover { color: #2f8f2f; }

nav.main {
  background: var(--gray);
  display: flex;
  justify-content: center;
  gap: clamp(24px, 12vw, 130px);
  padding: 4px 10px 16px;
}
nav.main a {
  color: var(--olive);
  text-decoration: none;
  font-size: clamp(15px, 2.4vw, 21px);
}
nav.main a:hover { text-decoration: underline; }

/* ---------- hero ---------- */

.hero {
  height: min(62vh, 460px);
  background: #7f9aa8 center/cover no-repeat;
  position: relative;
  image-rendering: pixelated;
}
.hero .chev {
  position: absolute; left: 50%; top: 34%;
  transform: translateX(-50%);
  font-size: 30px; color: #111; text-decoration: none;
  line-height: 1;
}

/* ---------- sections ---------- */

section { padding: 42px 18px 54px; }
section h2 {
  margin: 0 0 26px;
  text-align: center;
  font-weight: 400;
  font-size: clamp(30px, 6vw, 52px);
  color: #fff;
}
section.on-light h2 { color: #111; }
.tagline {
  text-align: center;
  margin: -14px 0 0;
  font-size: 13px;
  background: #111;
  color: #fff;
  display: table;
  margin-left: auto;
  margin-right: auto;
  padding: 2px 6px;
}
.subnote {
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: var(--olive);
  margin: -18px 0 22px;
}

#projects { background: url('assets/art/homepage-thumb-d.png') repeat; }
#about    { background: var(--gray); }
#contact  { background: url('assets/art/homepage-thumb-d.png') repeat; }

/* project links — the blue bars from the original */

.bars {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}
.bars a {
  display: block;
  height: 26px;
  background: var(--link);
  text-indent: -9999px;
  overflow: hidden;
  border-radius: 1px;
}
.bars a:hover { background: #6fa2ff; }

/* decorative bands, each one of Riley's own images */

.band { height: 118px; background-repeat: repeat; background-size: auto 100%; }
.band.spheres { background-image: url('assets/art/homepage-thumb-b.png'); }
.band.pixels  { background-image: url('assets/art/homepage-thumb-c.png'); }
.band.dark    { background: var(--dark); height: 200px; }
.band.cream   { background: var(--cream); height: 200px; }

/* ---------- artwork pages ---------- */

.plate {
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px 60px;
  background: #fff;
}
.plate img, .plate video {
  max-width: min(92vw, 900px);
  max-height: 74vh;
  height: auto;
  image-rendering: pixelated;
  display: block;
}
.plate video { image-rendering: auto; }
.plate .stack { display: grid; gap: 26px; justify-items: center; }
.plate .say { font-size: clamp(22px, 5vw, 40px); color: #111; }

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

footer { display: flex; }
footer .edge { width: 14%; min-width: 48px; background: var(--olive); }
footer .mid {
  flex: 1;
  background: var(--blue);
  text-align: center;
  padding: 46px 10px;
}
footer .mid a {
  color: #dfe8f5;
  font-size: 11px;
  text-decoration: none;
}
footer .mid a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .bars { grid-template-columns: 1fr; max-width: 300px; }
  .band { height: 84px; }
  .band.dark, .band.cream { height: 130px; }
}
