/* ---------------------------------------------------------------------------
   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,
   her display font, is served from this folder too; it's hers to use on the site.
   Nothing loads from another server (item 27).
   --------------------------------------------------------------------------- */

@font-face {
  /* One Regular file; the wordmark and headline ask for 700, so the browser draws the
     design system's bold from it. */
  font-family: "CS Quera";
  src: url("/fonts/CSQuera-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@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;
  --display: "CS Quera", "Iowan Old Style", Georgia, serif;
  --sans: "Zalando Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

html, *, *::before, *::after {
  box-sizing: border-box;
  /* Ligatures off everywhere, every kind (hers). */
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0, "calt" 0;
}

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)); }
}

/* Links are pine and turn persimmon-deep on hover (the design system). */
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--persimmon-deep); }
: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). */
/* The wordmark and the headline: CS Quera, pine, bold (the design system's 700). */
.mark, .headline {
  font-family: var(--display); font-weight: 700; font-synthesis: weight;
  color: var(--pine); margin: 0;
}
/* The design system's lockup: "make" over "good.", tight (0.75), the period 15% bigger. */
/* The tight lines let the g hang below the box, so the box gets room under it. */
.mark { font-size: clamp(88px, 22vw, 200px); line-height: 0.75; padding-bottom: 0.22em; }
.mark .dot { font-size: 1.15em; }
.mark a { display: inline-block; color: var(--pine); text-decoration: none; }

/* 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); line-height: 1; text-wrap: balance; }
.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; }

/* The footer sits on pine, as the design system's footer does. */
footer { background: var(--pine); }
footer .wrap { padding-block: 24px 32px; color: #bac0bb; font-size: 14px; line-height: 20px; }
