/* Garamond family; EB Garamond loads from Google where system Garamond is missing. */

:root {
  --bg: #000000;
  --fg: #ffffff;
  /* Garamond only: system face when present, else EB Garamond from Google. */
  --font-stack: Garamond, "EB Garamond", serif;
  --corner-inset: 5vmin;
  --contact-size: clamp(0.8rem, 1.9vw, 1.05rem);
  /* One size for home title + statement (a bit smaller than before). */
  --page-type-size: clamp(1.45rem, 3.75vw, 2.35rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-stack);
  font-weight: 400;
  font-size: 100%;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Full-page navigation; phone/email sit above via z-index. */

.page-flip {
  position: fixed;
  inset: 0;
  z-index: 0;
  cursor: pointer;
}

.page-flip:focus {
  outline: none;
}

.page-flip:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: -4px;
}

/* ——— Home (PDF page 1) ——— */

.page--home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--corner-inset);
  position: relative;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-stack);
  font-size: var(--page-type-size);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.12;
  text-align: center;
  text-transform: lowercase;
  pointer-events: none;
}

.contact-corner {
  position: fixed;
  bottom: var(--corner-inset);
  right: var(--corner-inset);
  z-index: 2;
  margin: 0;
  font-family: var(--font-stack);
  font-size: var(--contact-size);
  font-style: normal;
  line-height: 1.5;
  text-align: right;
  text-transform: lowercase;
}

.contact-corner a {
  color: inherit;
  text-decoration: none;
}

.contact-corner a:hover,
.contact-corner a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-corner a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

/* ——— Statement page (PDF page 2) ——— */

.page--info {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--corner-inset);
}

.info-statement {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: left;
  font-family: var(--font-stack);
  /* Comfortable measure; lines reflow with viewport. */
  max-width: min(36ch, calc(100vw - 2 * var(--corner-inset)));
  pointer-events: none;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

.info-statement p {
  margin: 0;
  font-size: var(--page-type-size);
  line-height: 1.55;
  letter-spacing: 0.01em;
  font-family: inherit;
}

.info-statement .info-closing {
  margin-top: 2.25em;
}
