/* Corina Kinnear. Written fresh for WordSpring; the intent (the swallow, a
   condensed-capitals menu down the left, a white card over a greyscale
   photograph, teal headings) comes from the old site, none of its CSS does. */

:root {
  --teal: #1f9fb8;
  --teal-bright: #32bfda;
  --ink: #2f2f2f;
  --muted: #666;
  --rule: #e4e4e4;
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --serif: 'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.7 var(--serif);
  background: #e6e6e6;
}
/* The photograph is a backdrop, so it stays quiet: greyscale, washed out.
   It is portrait with a third of plain wall at the top, so it is fitted to
   the window's height and anchored bottom-right — the whole pose shows
   beside the card instead of a crop across the middle of it. The grey
   around it matches the photograph's wall. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  /* The photo is 1125×1997, so at full height it is 56.33vh wide; the
     gradient fades its left edge into the wall colour. */
  background:
    linear-gradient(to right, #e6e6e6 calc(100% - 56.33vh), rgba(230, 230, 230, 0) calc(100% - 56.33vh + 160px)),
    #e6e6e6 url('/assets/images/img_0511.jpg') right bottom / auto 100% no-repeat;
  filter: grayscale(1) brightness(1.08) contrast(0.9);
  opacity: 0.9;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--ink); }

.frame {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* ---------------------------------------------------------------- side */

.side { position: sticky; top: 32px; text-align: right; }
.mark img { width: 100px; height: auto; display: inline-block; mix-blend-mode: multiply; }
.side nav { margin-top: 16px; padding: 16px 0; border-top: 1px solid rgba(0,0,0,.25); border-bottom: 1px solid rgba(0,0,0,.25); }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a {
  display: block;
  padding: 2px 0;
  font: 1.45rem/1.15 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #222;
  text-decoration: none;
}
.side a:hover, .side a[aria-current="page"] { color: var(--teal-bright); }

/* ---------------------------------------------------------------- card */

.main {
  min-width: 0;
  background: rgba(255, 255, 255, 0.96);
  padding: 32px 40px 40px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
}
.page-title {
  margin: 0 0 0.6em;
  font: 2.4rem/1.1 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--teal-bright);
}
.main h2, .main h3, .main h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--teal);
  line-height: 1.2;
  margin: 1.4em 0 0.4em;
}
.main h2 { font-size: 1.8rem; }
.main h3 { font-size: 1.5rem; }
.main h4 { font-size: 1.3rem; }
.main hr { border: 0; border-top: 1px solid var(--rule); margin: 1.8em 0; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose blockquote { margin: 1.2em 0; padding: 0.3em 1.2em; border-left: 3px solid var(--teal-bright); color: var(--muted); }
.lead { font-size: 0.95rem; font-weight: 600; font-style: italic; text-align: center; color: var(--muted); }

/* Home: what used to be the slider, as four tiles. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tiles figure { margin: 0; }
.tiles img { display: block; width: 100%; aspect-ratio: 713 / 380; object-fit: cover; }
.tiles figcaption { margin-top: 8px; }
.tiles h2 { margin: 0; font-size: 1.5rem; }
.tiles p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------------------------------------------------------------- media */

figure.ws-img { margin: 1.2rem 0; }
a.ws-zoom { display: block; cursor: zoom-in; } /* opens the image viewer */
figure.ws-img figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
figure.ws-img-left { float: left; max-width: 40%; margin: 0.3rem 1.5rem 1rem 0; }
figure.ws-img-right { float: right; max-width: 40%; margin: 0.3rem 0 1rem 1.5rem; }
figure.ws-img-full img { width: 100%; }
.prose::after { content: ''; display: block; clear: both; }
.ws-video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; }
.ws-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
details.ws-expand { margin: 0.8em 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
details.ws-expand > summary { cursor: pointer; padding: 8px 0; font: 1.2rem/1.3 var(--display); letter-spacing: 0.03em; color: var(--teal); }
details.ws-expand > .ws-expand-body { padding-bottom: 6px; }

/* ---------------------------------------------------------------- foot */

.foot { text-align: center; padding: 8px 16px 24px; font-size: 0.8rem; color: #333; }
.foot a { color: inherit; }

@media (max-width: 760px) {
  body::before { background: #e6e6e6 url('/assets/images/img_0511.jpg') 70% bottom / cover no-repeat; }
  .frame { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .side { position: static; text-align: center; }
  .mark img { width: 72px; }
  .side ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
  .main { padding: 24px 18px 28px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  figure.ws-img-left, figure.ws-img-right { float: none; max-width: 100%; margin: 1rem 0; }
}
