/* Siskiyou Biometrics - siskiyoubiometrics.com
   Hand-written CSS, no framework, no scripts. Register: a well-set letterhead.
   Layout: a wide page, section labels in a left margin, body text in a fixed measure.
   Built from website/src/ by website/build.py. */

@font-face {
  font-family: "Source Serif 4";
  src: url(/assets/fonts/SourceSerif4-roman.woff2) format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(/assets/fonts/SourceSerif4-italic.woff2) format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url(/assets/fonts/SourceCodePro-roman.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f2ec;
  --ink: #20211c;
  --spruce: #2f4a38;
  --bark: #5a4a38;
  --muted: #5f6159;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
           "Noto Serif", "Liberation Serif", "Times New Roman", serif;
  --mono: "Source Code Pro", "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
          "DejaVu Sans Mono", "Courier New", monospace;
  --side: 13rem;
  --gap: 3rem;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
}

.page {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3rem 2rem 3rem;
}

/* Masthead: lockup left, nav right, one rule under both */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--spruce);
}
.masthead a img {
  display: block;
  width: 100%;
  max-width: 17rem;
  height: auto;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover,
.nav a:focus,
.nav a[aria-current="page"] {
  color: var(--spruce);
}

/* Sections: label column left, body right, thin rule above */
section {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  column-gap: var(--gap);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--spruce);
}
section .body {
  max-width: 40rem;
}
section .side h2 {
  margin-top: 0.2rem;
}

/* Labels: letterspaced mono */
h1, h2 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
h1.pagelabel {
  color: var(--spruce);
  margin: 2.5rem 0 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--spruce);
}
h1.pagelabel + section {
  margin-top: 0;
  border-top: 0;
  padding-top: 1.5rem;
}
/* Headings set in serif, used in the side column on inner pages */
h2.heading {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 0;
}

/* Home: the top line beside a photograph */
.identity {
  grid-template-columns: 3fr 2fr;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 0;
  border-top: 0;
}
.identity .body {
  max-width: none;
}
.identity h1.topline {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.identity figure {
  margin: 0;
}
.identity img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 50%;
}

p {
  margin: 0 0 1.1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--spruce);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover,
a:focus {
  color: var(--bark);
}

.signature {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark);
}

/* Home services: three columns, lead words as serif headings */
.services .body {
  max-width: none;
}
.svcgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.5rem;
}
.svcgrid p {
  margin: 0;
  font-size: 1.05rem;
  text-wrap: pretty;
}
.svcgrid p a {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(47, 74, 56, 0.45);
}
.svcgrid p a:hover,
.svcgrid p a:focus {
  text-decoration-color: var(--bark);
}
@media (max-width: 64rem) {
  .svcgrid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.4rem;
  }
}
@media (max-width: 64rem) {
  .nav {
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    column-gap: 1.1rem;
  }
}
@media (max-width: 60rem) {
  :root {
    --side: 12rem;
    --gap: 2.5rem;
  }
  h1, h2 {
    letter-spacing: 0.14em;
  }
  .identity {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2rem;
  }
  .identity h1.topline {
    font-size: 1.55rem;
  }
}
.independence {
  margin-top: 1.75rem;
  color: var(--muted);
}

.closing .body p {
  color: var(--ink);
}

.email a {
  font-size: 1.125rem;
}

.bio-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% 20%;
  margin: 0.2rem 0 0;
}

.pubs {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pubs li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  margin: 0.9rem 0;
  text-wrap: pretty;
}
@media (min-width: 48.01rem) {
  .pubs li {
    grid-template-columns: var(--gap) minmax(0, 1fr);
    margin-left: calc(-1 * var(--gap));
  }
}
.pubs .yr {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 0.3rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--spruce);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
footer p {
  margin: 0;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover,
footer a:focus {
  color: var(--spruce);
}

/* Narrow screens: one column, labels above their bodies */
@media (max-width: 48rem) {
  body {
    font-size: 1.08rem;
  }
  .page {
    padding: 2rem 1.25rem 2.5rem;
  }
  .masthead {
    display: block;
    padding-bottom: 1.1rem;
  }
  .masthead a img {
    max-width: 14rem;
  }
  .nav {
    justify-content: flex-start;
    max-width: 17rem;
    column-gap: 1rem;
    row-gap: 0;
    margin: 0.9rem 0 0;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
  }
  .nav a {
    padding: 0.55rem 0;
  }
  footer {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
  section,
  .identity {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.4rem;
    margin-top: 2.2rem;
    padding-top: 1.3rem;
  }
  .identity {
    padding-top: 0;
    row-gap: 1.4rem;
  }
  .identity figure {
    margin-bottom: 0.75rem;
  }
  .identity img {
    aspect-ratio: 4 / 3;
  }
  .identity h1.topline {
    font-size: 1.4rem;
  }
  h2.heading {
    margin-bottom: 0.6rem;
  }
  .svcgrid p {
    font-size: 1.08rem;
  }
  .bio-photo {
    max-width: 12rem;
    margin-bottom: 1rem;
  }
  footer {
    display: block;
  }
  footer p + p {
    margin-top: 0.4rem;
  }
}
