/* cofyi.co: one page saying what Cofyi is and who makes it. Cofyi's colours: a Brown fold (the header
   and the hero) with the mark in white and Gold and a Gold button, latte below it, Ink text, links with
   a Gold underline. The logo's fonts (Outfit for headings and the wordmark, Inter for text), light or
   dark with the system. */
@font-face { font-family: Outfit; src: url(/fonts/outfit.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f3ede4;
  --surface: #ffffff;
  --text: #231f20;
  --muted: #5e5651;
  --line: #e2d8cb;
  --brown: #653412;
  --gold: #d8ca25;
  --gold-hover: #e5da5c;
  --amber: #886b1b;
  --link: #231f20;
  --focus: #886b1b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110;
    --surface: #1d1916;
    --text: #f4efe9;
    --muted: #b3a89e;
    --line: #342c26;
    --link: #d8ca25;
    --focus: #d8ca25;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--amber); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* The fold: Brown, white text, the mark in white with its Gold cube, Gold for the "co" and the dot. */
.fold { background: var(--brown); color: #ffffff; --focus: #d8ca25; }
.fold a:not(.button) { color: #ffffff; }
.fold a:not(.button):hover { text-decoration-color: #ffffff; }
.top, .bottom, main, .hero { max-width: 68rem; margin: 0 auto; padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: max(1.25rem, env(safe-area-inset-top)) 1rem; }

.lockup { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-size: 1.9rem; }
.mark { display: block; width: 2.6rem; height: 2.6rem; flex: none; }
.mark .cup { stroke: #ffffff; }
.mark .cube { fill: var(--gold); }
.wordmark { font-family: Outfit, sans-serif; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; }
.wordmark .light { font-weight: 300; color: var(--gold); }
.wordmark .bold { font-weight: 700; color: #ffffff; }
.wordmark .i { position: relative; display: inline-block; }
.wordmark .i i { position: absolute; left: 50%; top: .216em; width: .22em; height: .22em; border-radius: .06em; transform: translateX(-50%); background: var(--gold); }

/* Gold with Ink on it (9.6:1), here and in the dark. */
.button {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.15rem; border-radius: .6rem;
  background: var(--gold); color: #231f20; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.button:hover { background: var(--gold-hover); color: #231f20; }

h1, h2 { font-family: Outfit, sans-serif; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.hero { display: grid; grid-template-columns: minmax(0, 46rem) auto; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 3rem 4rem; }
.hero .mark.big { width: 13rem; height: 13rem; }
@media (max-width: 52rem) { .hero { grid-template-columns: 1fr; } .hero .mark.big { display: none; } }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; margin: 0 0 1.1rem; }
.lede { font-size: 1.2rem; color: #f1e3d6; margin: 0 0 1.75rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 0; }
.link { font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; padding-block: 3rem; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem 1.4rem 1.2rem; border-top: 3px solid var(--gold); }
.features h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.features p { margin: 0; color: var(--muted); font-size: 1rem; }

.maker { max-width: 46rem; padding-block: 1rem 3rem; }
.maker h2 { font-size: 1.6rem; margin: 0 0 .75rem; }
.maker p { color: var(--muted); }

.bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; align-items: center;
  border-top: 1px solid var(--line); padding-block: 1.25rem max(2rem, env(safe-area-inset-bottom)); color: var(--muted); font-size: .9rem;
}
.bottom p { margin: 0; }
.bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.bottom a { color: var(--muted); }
