/* delcour.law. Written from scratch. Inter and Roboto Mono are self-hosted under the SIL Open Font License (see fonts/). */
@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url("fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Mono"; font-weight: 500; font-display: swap; src: url("fonts/roboto-mono-latin-500-normal.woff2") format("woff2"); }

/* Text scale: like Carrd, the whole page grows on large screens. */
html { font-size: 17pt; }
@media (max-width: 1680px) { html { font-size: 12pt; } }
@media (max-width: 980px) { html { font-size: 11pt; } }
@media (max-width: 736px) { html { font-size: 12pt; } }

:root {
  --page: #fafbff;
  --card: #f5f8ff;
  --blue: #04349d;
  --head: #474747;
  --text: #7d7d7d;
  --rule: #e0e3ea;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 300 1rem/2 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .025rem;
  padding: 2.5rem 1rem;
  background: var(--page);
  position: relative;
}
/* Hexagons that slowly fade in and out behind the page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("images/hex-bg.svg") center / cover no-repeat;
}
img { display: block; max-width: 100%; }

.card {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  background-color: var(--card);
  /* small blue dots on a diagonal grid */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='154' height='154'%3E%3Cg fill='%2304349d'%3E%3Crect x='38' y='38' width='1.6' height='1.6'/%3E%3Crect x='115' y='115' width='1.6' height='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 154px 154px;
  background-position: center;
  border: 4px solid var(--blue);
  border-radius: .375rem;
}
.block { padding: 5rem 4rem; }
.block + .block { border-top: 1px solid var(--rule); }
header.block { padding-top: 3.5rem; }

.photo { width: 12rem; height: 12rem; object-fit: cover; border-radius: 50%; border: 3px solid var(--blue); margin-bottom: 2.375rem; }
h1, h2 { font-family: "Roboto Mono", ui-monospace, Menlo, monospace; font-weight: 500; color: var(--head); }
h1 { margin: 0 0 2rem; font-size: 3rem; line-height: 1.125; letter-spacing: 0; }
h2 { margin: 0 0 1.75rem; font-size: 2rem; line-height: 1.5; }
h2.next { margin-top: 2.5rem; }
p { margin: 0 0 1.5rem; }
p:last-child { margin-bottom: 0; }
header p { font-size: .875rem; }
a { color: var(--head); }
strong { color: var(--head); font-weight: 600; }

.sig-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2.375rem; }
.signature { height: 2.4rem; width: auto; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue);
}
.icon-link .ico { width: 1.15rem; height: 1.15rem; }
.icon-link:hover { background: var(--blue); color: #fff; }

.center { text-align: center; }
.button {
  display: inline-block; padding: .55rem 1.6rem; border: 2px solid var(--blue); border-radius: 2rem;
  font: 500 .8rem/1.6 "Roboto Mono", ui-monospace, monospace; color: var(--blue); text-decoration: none;
}
.button:hover { background: var(--blue); color: #fff; }

.list { list-style: none; margin: 0; padding: 0; line-height: 1.75; }
.list li { display: flex; gap: .9rem; align-items: flex-start; margin: 0 0 1rem; }
.check { width: 1.4rem; height: 1.4rem; flex: none; color: var(--blue); margin-top: .1rem; }
.small { font-size: .75rem; }

@media (max-width: 600px) {
  body { padding: 0; }
  .card { border-radius: 0; }
  .block { padding: 2.75rem 1.5rem; }
  .sig-row { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .sig-row .icon-link { align-self: flex-end; }
  .signature { height: 2.75rem; align-self: flex-start; }
}
@media (max-width: 360px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
