/* ---------------------------------------------------------------------------
   makegoodquilts.com holding page: one stylesheet for index.html and 404.html.

   The make good look, as on the site drafts one folder up: the CS Quera wordmark
   in pine on the soft white surface, the persimmon period, Zalando Sans for the
   rest. Zalando Sans is served from this folder (OFL, license beside it). CS Quera
   is NOT shipped as a font: the wordmark and headlines are SVG outlines in the
   pages, because Envato's license for CS Quera lets the site show text made with
   it but not offer the font file. Nothing loads from another server (item 27).
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Zalando Sans";
  src: url("/fonts/ZalandoSans-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --surface: #faf8f4;
  --line: #e6e0d6;
  --ink: #1f2a26;
  --ink-muted: #5b6561;
  --pine: #243c35;
  --persimmon: #e66c50;
  --persimmon-deep: #b8431f;
  --persimmon-darker: #963517;
  --sans: "Zalando Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

/* Words that are there for screen readers and search engines, beside the drawn shapes. */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The drawn type: pine, with the persimmon period. Each drawing is sized in "em" of
   the font size it stands in for, so it scales exactly as the text did. */
svg.type { display: block; fill: var(--pine); height: auto; max-width: 100%; }
svg.type .dot { fill: var(--persimmon); }

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  display: flex;
  flex-direction: column;
}

/* One left-set column; the side gutter widens with the screen, as on the site drafts. */
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
@media (min-width: 1100px) {
  .wrap { padding-left: max(64px, env(safe-area-inset-left, 0px)); padding-right: max(64px, env(safe-area-inset-right, 0px)); }
}

a { color: var(--persimmon-deep); text-underline-offset: 3px; }
a:hover { color: var(--persimmon-darker); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }

/* The page fills the screen and the footer sits at the bottom. */
main { flex: 1 0 auto; display: flex; align-items: center; }
main .wrap { padding-block: clamp(56px, 12vh, 140px); display: grid; gap: 28px; }

/* The wordmark, two lines set close together (her note: the lines sit tight). */
.mark { font-size: clamp(88px, 22vw, 200px); margin: 0; }
.mark svg.type { width: 2.316em; }
.mark a { display: inline-block; }

/* The colored period belongs to the wordmark and big headlines only; sentences keep a plain one. */
.dot { color: var(--persimmon); }

.words { display: grid; gap: 12px; }
.headline { font-size: clamp(30px, 5vw, 48px); margin: 0; }
.headline svg.type { width: 8.431em; }
h1.headline svg.type { width: 8.277em; }
.line {
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.3;
  color: var(--ink-muted);
  margin: 0;
  max-width: 32ch;
  text-wrap: balance;
}
.contact { margin: 8px 0 0; font-size: 17px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 24px 32px; color: var(--ink-muted); font-size: 14px; }
