/* Fonts are served from this site, so no visitor data goes to a font provider. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter.woff2) format("woff2"); }

:root {
  --white: #f4f3ec;        /* paper, where no light reached */
  --pale: #bcd3e6;         /* half-exposed */
  --blue: #143a6c;         /* Prussian blue */
  --ink: #12305a;          /* blue used as text on paper */
  --card: #f2eee1;         /* a slip of uncoated paper */
  --line: rgba(244, 243, 236, .3);
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--blue); }
body {
  margin: 0;
  color: var(--white);
  font: 400 17px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--blue) url(paper.jpg) center top / 1500px auto;   /* the coated sheet */
}
/* paper tooth, over everything so type, cards and plants sit in the same sheet */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: url(grain.jpg) 0 0 / 256px 256px;
  mix-blend-mode: multiply;
  opacity: .2;
}
.print {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* uneven exposure: lighter at the top, denser towards the edges and the bottom */
  background:
    radial-gradient(130% 90% at 50% 35%, transparent 55%, rgba(5, 18, 40, .38) 100%),
    linear-gradient(180deg, rgba(60, 110, 170, .14), transparent 40%, rgba(5, 18, 40, .2)),
    /* faint cyanotype flowers scattered over the whole sheet */
    url(field.webp?v=7) center top / 1500px auto;
}
main {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 44px 22px 64px;
  text-align: center;
}
a { color: inherit; }
a:focus-visible { outline: 1.5px solid var(--white); outline-offset: 3px; }

/* portrait, toned like the rest of the print */
.portrait {
  display: block;
  width: 124px;
  height: 124px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(244, 243, 236, .75), 0 10px 26px rgba(3, 12, 30, .45);
}
.name {
  margin: 0 0 30px;
  font: 400 24px/1.2 var(--serif);
  letter-spacing: .01em;
  color: var(--pale);
}
h1 {
  margin: 0 0 16px;
  font: 400 40px/1.08 var(--serif);
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 em { color: var(--pale); }
.bio {
  margin: 0 auto 40px;
  max-width: 30em;
  text-wrap: pretty;
}

/* cards: slips of bare paper laid on the print */
.cards {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  display: grid;
  gap: 20px;
  text-align: left;
}
.card {
  position: relative;
  z-index: 6;                      /* above the page grain, so the parchment stays clean */
  padding: 26px 26px 24px;
  border-radius: 10px;
  color: var(--ink);
  background: #e3d1a8 url(parchment.jpg?v=8) 0 0 / 760px auto;
  /* aged edges: the skin darkens towards the border */
  box-shadow:
    inset 0 0 0 1px rgba(110, 78, 34, .28),
    inset 0 0 34px rgba(124, 86, 36, .3),
    inset 0 0 90px rgba(150, 110, 50, .14),
    0 1px 2px rgba(3, 12, 30, .35),
    0 14px 30px rgba(3, 12, 30, .42);
}
.card:nth-child(2) { background-position: -310px -420px; }
.card:nth-child(3) { background-position: -560px -180px; }
.card h2 {
  margin: 0 0 6px;
  font: 400 26px/1.15 var(--serif);
}
.card p {
  margin: 0 0 18px;
  font-size: 16px;
  text-wrap: pretty;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .12s ease, background-color .12s ease;
}
.button:hover { transform: translateY(-2px); background: #0b2244; }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.contact { margin: 0 0 18px; font-size: 15px; }
.contact a { text-underline-offset: 3px; }
.socials {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color .15s ease;
}
.socials a:hover { background: rgba(244, 243, 236, .12); }
.socials svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.socials .solid { fill: currentColor; stroke: none; }
.legal-links {
  margin: 0;
  font-size: 12px;
  color: var(--pale);
}
.legal-links a { text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

/* small text pages: legal, privacy, terms, cookies */
.doc { text-align: left; padding-top: 36px; }
.doc .back { display: inline-block; margin-bottom: 30px; font-size: 15px; color: var(--pale); text-decoration: none; }
.doc .back:hover { text-decoration: underline; }
.doc h1 { font-size: 40px; margin-bottom: 6px; }
.doc .updated { margin: 0 0 30px; font-size: 14px; color: var(--pale); }
.doc h2 { margin: 30px 0 6px; font: 400 25px/1.2 var(--serif); }
.doc p, .doc ul { margin: 0 0 12px; font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc a { text-underline-offset: 3px; }
.todo { background: #f2eee1; color: var(--ink); padding: 0 5px; border-radius: 3px; }

@media (max-width: 480px) {
  .print { background-size: auto, auto, 900px auto; }
  main { padding-top: 36px; }
  h1 { font-size: 30px; }
  .doc h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .socials a { transition: none; }
}
