/* francescogallo.net
   Quiet and typographic, like the printed cards: small spaced capitals for the name,
   a headline, ink on ivory. Pages are navy by default; data-tone="black" switches the ink. */

@font-face { font-family: "Libre Baskerville"; src: url("/fonts/libre-baskerville-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("/fonts/crimson-pro-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("/fonts/crimson-pro-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #F4EFE4;
  --ink: #0B2545;
  --line: rgba(11, 37, 69, 0.3);
  color-scheme: light;
}
[data-tone="black"] { --ink: #111111; --line: rgba(17, 17, 17, 0.3); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.25rem/1.4 "Crimson Pro", "Iowan Old Style", Georgia, serif;
}
.page {
  max-width: 31rem; margin: 0 auto;
  min-height: 100vh; min-height: 100svh;
  padding: 2.75rem 1.5rem 1.75rem;
  display: flex; flex-direction: column; gap: 2rem;
}

.head { margin: 0; font: inherit; }
.name {
  display: block; margin: 0;
  font: 400 0.8125rem/1 "Libre Baskerville", Baskerville, Georgia, serif;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.role {
  display: block; margin: 1.1rem 0 0;
  font: 400 clamp(2rem, 9.4vw, 2.625rem)/1.08 "Libre Baskerville", Baskerville, Georgia, serif;
  text-wrap: balance;
}
.lede { margin: 1.1rem 0 0; text-wrap: pretty; }
.rule { margin: 0; border: 0; border-top: 1.5px solid var(--ink); }

.actions { display: flex; flex-direction: column; gap: 0.7rem; }
.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3.5rem; padding: 0.7rem 1rem;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: 400 1.25rem/1.2 "Crimson Pro", "Iowan Old Style", Georgia, serif;
  text-decoration: none; overflow-wrap: anywhere;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn:active { opacity: 0.75; }
.btn:focus-visible, .foot a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .btn:hover { background: var(--ink); color: var(--paper); } .btn--primary:hover { opacity: 0.88; } }
[hidden] { display: none !important; }

.foot { margin: auto 0 0; padding-top: 0.5rem; font-size: 1.0625rem; font-style: italic; }
.foot a { color: inherit; text-underline-offset: 0.18em; }

/* Back area: plain lists of everything on the site. */
.sec { margin: 0; }
.sec__title { margin: 0 0 0.6rem; font: 400 0.75rem/1 "Libre Baskerville", Baskerville, Georgia, serif; letter-spacing: 0.22em; text-transform: uppercase; }
.list { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.list a { color: inherit; text-underline-offset: 0.18em; }
.list small { font-size: 1rem; font-style: italic; white-space: nowrap; }
.qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; border-top: 1.5px solid var(--ink); padding-top: 1rem; }
.qrs figure { margin: 0; }
.qrs img { display: block; width: 100%; height: auto; background: #fff; padding: 8%; box-sizing: border-box; }
.qrs figcaption { margin-top: 0.5rem; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
