/* Second Mountain Press, holding page. Plain CSS, no build step. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-serif-4.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-serif-4-italic.woff2") format("woff2");
}

:root {
  --paper: #F4EFE6;
  --ink: #1A1612;
  --bronze: #8E6A3E;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --measure: 34rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) 1rem 3rem;
}

.wordmark {
  margin: 0 0 clamp(2rem, 6vh, 3.5rem);
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.375rem, 4vw + 1.5rem, 4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.wordmark span { display: block; }

.rule {
  width: 3rem;
  height: 1px;
  margin: 0 0 1.75rem;
  background: var(--bronze);
}

.descriptor {
  margin: 0 0 2.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.375rem, 1.5vw + 1rem, 1.75rem);
  line-height: 1.3;
  text-wrap: balance;
}

.about {
  margin: 0 0 2.5rem;
  font-size: 1.125rem;
}

.contact { margin: 0; }
.contact a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.contact a:hover,
.contact a:focus-visible {
  text-decoration-thickness: 2px;
}
.contact a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

footer {
  flex-shrink: 0;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
footer p { margin: 0; }

/* Status label for copy awaiting a ruling. Remove when copy is final. */
.pending {
  display: block;
  margin: 0 0 0.5rem;
  font-family: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (min-width: 60em) {
  :root { --measure: 38rem; }
  body { font-size: 1.1875rem; }
  .about { font-size: 1.1875rem; }
}

/* Tall viewports: sit the column in the upper middle rather than at the top. */
@media (min-width: 60em) and (min-height: 50em) {
  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 6rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: auto; }
}
