/* The Tribe: one shared stylesheet. Restyle by editing the tokens below.
   Layout and look adapted from Strata by HTML5 UP (html5up.net, CC BY 3.0). */
:root {
  --bg: #fff; --fg: #4a4a4a; --text: #6b6b6b; --muted: #767676;
  --card: #fff; --hover: #fafafa; --well: #f3f3f3; --line: #efefef; --dialog: #fff;
  --accent: #49bf9d; --accent-text: #24806a; --btn: #2a8c6f; --btn-hover: #24785f; --err: #c4001a;
  --panel: #1f1815; --panel-text: rgb(255 255 255 / .6); --side: 35%;
  --radius: .35rem; --gap: 1.25rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1b1d; --fg: #ededed; --text: #b5b5b5; --muted: #9a9a9a;
    --card: #1b1b1d; --hover: #232326; --well: #2a2a2d; --line: #2e2e31; --dialog: #232326;
    --accent-text: #5fd3b0; --err: #ff6b6b;
  }
}

*, ::before, ::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 1.125rem/1.65 "Source Sans 3", "Source Sans Pro", Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%; }
a { color: var(--accent-text); text-decoration: underline dotted 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: transparent; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Side panel: a fixed photo column on the left; a banner on top on small screens.
   Swap the photo by replacing images/bg.jpg. */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); display: flex; flex-direction: column; justify-content: space-between;
  padding: 6rem 3.5rem 3rem; overflow-y: auto; text-align: right; color: var(--panel-text);
  --shade: linear-gradient(rgb(31 24 21 / .8), rgb(31 24 21 / .35) 55%, rgb(31 24 21 / .75));
  background: var(--shade), url("images/bg.jpg") center 45% / cover no-repeat, var(--panel); }
.side a { color: inherit; text-decoration: none; }
.logo { display: inline-block; }
.logo img { display: block; width: 11rem; height: auto; }
.intro { margin-top: 1.25rem; font-size: 1.375rem; line-height: 1.5; }

/* Navigation: the current page is marked with aria-current="page" */
nav { display: flex; flex-direction: column; align-items: flex-end; gap: .375rem; margin-top: 2.5rem; }
nav a { padding: .125rem .875rem .125rem 0; border-right: 3px solid transparent;
  font-size: .9375rem; letter-spacing: .12em; text-transform: uppercase; }
.side nav a:hover, nav a[aria-current] { color: #fff; }
nav a[aria-current] { border-right-color: var(--accent); }

.credit { margin-top: 2rem; color: rgb(255 255 255 / .4); font-size: .8125rem; }
.side .credit a { border-bottom: 1px dotted; }

/* Content column */
main { margin-left: var(--side); max-width: 54rem; padding: 6rem 4rem 4rem; }

/* Page heading */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--gap);
  margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 2px solid var(--line); }
h1 { color: var(--fg); font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.3; font-weight: 400; }
h2 { color: var(--fg); font-size: 1.25rem; line-height: 1.35; font-weight: 600; }
.lede { margin-top: .5rem; font-size: 1.1875rem; max-width: 34rem; }
.hero h1 { max-width: 24ch; }
.hero .lede { margin-top: 1.25rem; }
.hero .actions { margin-top: 2.5rem; }

/* Buttons and link buttons */
.btn, .links a { display: inline-block; min-width: 10em; padding: .75em 1.5em; border: 3px solid var(--btn); border-radius: var(--radius);
  background: var(--btn); color: #fff; font: inherit; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:active { opacity: .85; }
.btn.secondary, .links a { border-color: var(--line); background: transparent; color: var(--fg); }
.btn.secondary:hover, .links a:hover { border-color: var(--accent); color: var(--accent-text); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Member cards: <ul class="grid"><li><button class="card"> */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--gap); }
.card { display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; gap: .125rem .875rem; width: 100%; height: 100%;
  padding: 1.25rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); color: inherit; font: inherit;
  text-align: left; cursor: pointer; transition: border-color .2s; }
.card:hover { border-color: var(--accent); }
.card:active { background: var(--hover); }
.card .avatar { grid-row: span 2; }
.card .desc { grid-column: 1 / -1; margin-top: .75rem; }
.name { color: var(--fg); font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.meta { color: var(--muted); font-size: .9375rem; line-height: 1.3; }
.desc { font-size: .9375rem; line-height: 1.5; }
.avatar { --s: 3rem; display: grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--well); color: var(--muted); font-size: calc(var(--s) * .36); font-weight: 600; letter-spacing: .02em; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Events: <ul class="events"><li class="event">, separated by rules */
.event { padding: 2rem 0; border-top: 2px solid var(--line); }
.event:first-child { padding-top: 0; border-top: 0; }
.event .date { display: block; margin-bottom: .375rem; color: var(--accent-text); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.event .desc { margin-top: .5rem; font-size: 1rem; white-space: pre-line; overflow-wrap: anywhere; }
.event .by { margin-top: .75rem; color: var(--muted); font-size: .875rem; }

/* Loading / error / empty: <p class="state"> (add .error for failures) */
.state { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.state.error { color: var(--err); }

/* Dialogs: <dialog class="modal"> with a form[method=dialog] close button */
.modal { width: min(34rem, calc(100% - 2rem)); padding: 0; overflow: hidden; border: 0; border-radius: .5rem;
  background: var(--dialog); color: var(--text); box-shadow: 0 1.5rem 4rem rgb(0 0 0 / .3); }
.modal::backdrop { background: rgb(31 24 21 / .6); }
.modal .body { max-height: calc(100dvh - 2rem); padding: 1.75rem 1.5rem 1.5rem; overflow: auto; }
.modal .avatar { --s: 4.5rem; margin-bottom: 1rem; }
.modal h2 { padding-right: 2rem; font-size: 1.625rem; line-height: 1.2; font-weight: 400; }
.modal .meta { margin-top: .25rem; font-size: 1rem; }
.modal .bio { margin-top: 1.25rem; white-space: pre-line; }
.modal .links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.modal .links a { min-width: 0; font-size: .9375rem; }
.modal .fine { margin-top: 1rem; font-size: .9375rem; text-align: center; }
.close { position: absolute; top: .75rem; right: .75rem; z-index: 1; width: 2rem; height: 2rem; padding: 0 0 .125rem; border: 0; border-radius: 50%;
  background: var(--well); color: var(--muted); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.close:hover { color: var(--fg); }
.form-frame { display: block; margin-top: 1rem; width: 100%; height: min(32rem, 70dvh); border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }

/* Large screens: a narrower panel */
@media (max-width: 1280px) {
  :root { --side: 30%; }
  .side { padding: 5rem 3rem 3rem; }
  main { padding: 5rem 3rem 3rem; }
}

/* Small screens: the panel becomes a banner above the content */
@media (max-width: 980px) {
  .side { position: relative; width: auto; padding: 4rem 1.5rem 2.5rem; text-align: center;
    --shade: linear-gradient(rgb(31 24 21 / .7), rgb(31 24 21 / .7)); }
  .logo img { width: 8rem; }
  .intro { margin-top: 1rem; font-size: 1.25rem; }
  nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; margin-top: 1.75rem; }
  nav a { padding: 0 0 .25rem; border-right: 0; border-bottom: 3px solid transparent; }
  nav a[aria-current] { border-bottom-color: var(--accent); }
  .credit { margin-top: 2.5rem; }
  main { margin-left: 0; padding: 3rem 1.25rem 4rem; }
}
