/* Grace Blenkinsop — static site
   Serif substitute: Newsreader (Google Fonts, open source).
   The original used ABC Arizona Text (a licensed font). If Grace holds a
   licence, drop the woff2 files into /assets and swap the @font-face below. */

:root {
  --ink: #000;
  --paper: #fff;
  --active: #ff0000;
  --sidebar: 210px;
  --gap: 52px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  display: flex;
  align-items: flex-start;
  gap: clamp(48px, 7vw, 150px);
  padding: 30px clamp(20px, 2.5vw, 44px) 64px;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  flex: 0 0 38%;
  max-width: 600px;
}

.brand {
  display: block;
  text-decoration: none;
  color: inherit;
}
.stars {
  font-size: 13px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.name {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  margin-top: 3px;
}

nav {
  margin-top: 22px;
}
nav a {
  display: block;
  color: inherit;
  text-decoration: none;
}
nav a:hover { text-decoration: underline; }
nav a.active { color: var(--active); }

.artwork {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-top: 26px;
}

/* ---------- Main column ---------- */
.main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bio p {
  margin: 0 0 1.4em;
}
.bio p + p {
  text-indent: 1.7em;   /* first paragraph flush, following paragraphs indented */
  margin-top: -0.4em;
}

.main a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Heading at the top of a page's content (e.g. the About page) */
.bio-head {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 1.4em;
}

/* Blockquote on the TBIAAH page */
blockquote {
  margin: 1.4em 0;
}

/* ---------- Words list (Work page) ---------- */
.words {
  margin-top: 42px;
}
.words h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 1.4em;
}
.words p {
  margin: 0 0 1.5em;
}

.contrib a {
  display: block;
  width: max-content;
  margin-bottom: 0.6em;
}

/* ---------- Footer / credit ---------- */
.main .filler { flex: 1 1 auto; }

footer {
  margin-top: 64px;
  text-align: right;
}
footer .rule {
  border: none;
  border-top: 1px solid #000;
  margin: 0 0 16px;
}
footer .copy {
  margin: 0;
}

.credit {
  text-align: right;
  margin: 56px 0 0;
  font-size: 15px;
}
.credit em { font-style: italic; }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .wrap {
    flex-direction: column;
    gap: 28px;
    padding: 22px 22px 40px;
  }
  .sidebar {
    width: 100%;
    flex: none;
    max-width: none;
  }
  .artwork {
    max-width: 320px;
  }
  footer, .credit { text-align: left; }
}
