/* Kemi Owo — kemiori.com */

/* INSTRUMENT SERIF, self-hosted so the page owns its own type
   and does not wait on Google Fonts to render. */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400-ext-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest: #1a3a2a;
  --wash: #eaf1e6;          /* pale green the photograph sits on */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}

html, body { height: 100%; }

body {
  background: var(--wash);
  color: var(--forest);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* BACKGROUND
   bg.jpg is desaturated and multiplied over the pale green wash, so the
   photograph reads as green texture rather than as a brown photograph.
   Swap bg.jpg for any image; nothing else needs to change. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--wash);
  overflow: hidden;
}
.bg::before,
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
}
.bg::before {
  background: url('bg.jpg') center / cover no-repeat;
  filter: grayscale(100%) sepia(55%) hue-rotate(74deg) saturate(120%) contrast(1.04);
  mix-blend-mode: multiply;
  opacity: 0.5;
}
.bg::after {
  /* clears the centre so the sentence never fights the texture */
  background: radial-gradient(ellipse 78% 62% at 50% 47%,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.62) 42%,
    rgba(255, 255, 255, 0) 78%);
}

main {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

figure {
  text-align: center;
  max-width: min(92vw, 940px);
}

blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 24px);
  letter-spacing: 0.02em;
  color: rgba(26, 58, 42, 0.62);
  margin-top: 1.4rem;
}

@media (max-width: 720px) {
  .bg::before { opacity: 0.26; }
  blockquote { font-size: clamp(34px, 10vw, 54px); }
  figcaption { margin-top: 1.1rem; }
}
