/* Weaving section of peaceworks.uk. Colours, fonts, header and footer follow peaceworks/offering/about.html. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'EB Garamond', Georgia, serif;
  color: #3a2a1c;
  background:
    linear-gradient(220deg,
      rgba(232, 89, 12, 0.13) 0%,
      rgba(232, 89, 12, 0.08) 22%,
      rgba(192, 96, 48, 0.07) 45%,
      rgba(192, 96, 48, 0.08) 70%,
      rgba(192, 96, 48, 0.10) 85%,
      rgba(192, 96, 48, 0.09) 100%),
    #e8dfc8;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: #C06030; }

/* ── Site header (as peaceworks.uk) ── */
.site-header {
  background: #152238;
  padding: 1.1rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}
.site-header a { text-decoration: none; }
.wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: #e8dfc8;
  letter-spacing: -0.005em;
  line-height: 1;
}
.header-actions { display: flex; align-items: center; gap: 1.6rem; }
.header-link {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #e8dfc8;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.header-link:hover { border-bottom-color: #E8590C; color: #E8590C; }
.header-cta {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #ffffff;
  background: #E8590C;
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.header-cta:hover { background: #ff6e1f; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232, 89, 12, 0.4); }

/* ── Page ── */
main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 4.5rem 1.3rem 5rem; }
.back {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 1.2rem;
}
.back a { color: #C06030; text-decoration: none; }
.back a:hover { color: #E8590C; }
.back.end { margin: 3.5rem 0 0; }
.piece-head { margin: 0 0 2.2rem; padding-bottom: 1.3rem; border-bottom: 2px solid #C06030; }
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  font-weight: 500;
  color: #152238;
  letter-spacing: -0.012em;
  margin: 0 0 .5rem;
}
.subtitle { font-size: 1.25rem; font-style: italic; color: #6b5640; margin: 0 0 .7rem; display: block; }
.byline {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7a68;
  margin: 0;
  display: block;
}
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #152238;
  margin: 2.6rem 0 .7rem;
}
p { margin: 0 0 1.1em; font-size: 1.08rem; line-height: 1.65; }
figure { margin: 2rem 0 2.2rem; text-align: center; }
figure img { max-width: 100%; height: auto; max-height: 80vh; border-radius: 4px; box-shadow: 0 3px 18px rgba(21, 34, 56, 0.18); }
figcaption { font-style: italic; font-size: .95rem; color: #6b5640; margin-top: .7rem; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: .4rem 0 0; }
td { padding: .55em .7em; border-bottom: 1px solid rgba(58, 42, 28, 0.15); vertical-align: top; }
td:first-child {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #C06030;
  width: 28%;
  padding-top: .85em;
}
thead { display: none; }

/* ── Index ── */
.pieces { list-style: none; display: grid; gap: 2.6rem; }
.pieces a { display: block; text-decoration: none; color: #3a2a1c; }
.pieces img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 3px 18px rgba(21, 34, 56, 0.18); margin-bottom: 1rem; }
.pieces .t { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; font-weight: 500; color: #152238; line-height: 1.2; margin-bottom: .2rem; }
.pieces a:hover .t { color: #E8590C; }

/* ── Footer (as peaceworks.uk) ── */
footer { background: #0e1826; color: #8a7a68; padding: 2rem 2.2rem; font-size: 0.82rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .site-header { padding: 0.8rem 1.2rem; }
  .header-actions { gap: 1rem; }
  .header-link { font-size: 0.68rem; letter-spacing: 0.12em; }
  .header-cta { font-size: 0.68rem; padding: 0.45rem 0.95rem; letter-spacing: 0.12em; }
  .wordmark { font-size: 1.3rem; }
  main { padding: 3rem 16px 3.5rem; }
  td:first-child { width: 36%; }
}
@media (max-width: 420px) {
  .header-link[href="/about.html"] { display: none; }
}
