/* colours + bg lifted from parqchive */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b675f;
  --line: #ddd8cc;
  --accent: #22c295;
  --red: #ed1c24;
  --hover: rgba(0,0,0,.035);
  --radius: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1e1d1b;
    --text: #ece8e0;
    --muted: #a39e94;
    --line: #34322e;
    --hover: rgba(255,255,255,.04);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg) url(/assets/simple-dashed.png) repeat;
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

.top, main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.top { padding-top: 4rem; padding-bottom: 3rem; text-align: center; }
.top h1 { margin: 0; font-size: calc(1.5rem + 10px); font-weight: 600; letter-spacing: .02em; }
.top .for { margin: .4rem 0 0; color: var(--muted); letter-spacing: .08em; }

.project { max-width: 720px; margin: 0 auto 4rem; }

a.project, a.item { color: inherit; text-decoration: none; border-radius: var(--radius); transition: background .15s; }
a.project:hover, a.item:hover { background: var(--hover); }

.memorybox { display: flex; align-items: center; gap: 2.5rem; padding: 1.5rem; }
.memorybox .text { flex: 1; }
.memorybox h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
/* red from memorybox.parquette.ca */
.chest {
  flex: 0 0 260px;
  aspect-ratio: 333.08 / 263.21;
  background: var(--red);
  -webkit-mask: url(/assets/chest-open.svg) center / contain no-repeat;
  mask: url(/assets/chest-open.svg) center / contain no-repeat;
}

.others h2 { margin: 0 0 1.25rem; font-size: 1.5rem; }
.others .item { display: block; padding: .9rem .75rem; margin: 0 -.75rem; border-top: 1px solid var(--line); border-radius: 0; }
.others h4 { margin: 0 0 .2rem; font-size: 1rem; }
.others p { margin: 0; color: var(--muted); }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 0 0 5rem; }
.people h2 { grid-column: 1 / -1; margin: 0 0 -1rem; font-size: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.people h2::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.person h3 { margin: 1.25rem 0 .5rem; font-size: 1.6rem; text-align:center;text-transform: uppercase;}
.person p { margin: 0 0 .9rem; }
.portrait, .person img {
  width: 240px; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover;
  margin:auto;
}
.portrait { display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: 2rem; letter-spacing: .1em; }

@media (max-width: 760px) {
  .memorybox { flex-direction: column-reverse; align-items: stretch; }
  .chest { flex-basis: auto; width: 200px; margin: 0 auto; }
  .people { grid-template-columns: 1fr; }
}
