/* tapflow.ca, "Ledger" look: white page, navy ink, Newsreader headlines, Public Sans text. */

/* Fonts are self-hosted, subset and instanced by tools/subset-fonts.cjs (SIL OFL 1.1, see fonts/LICENSE-*). */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-v1.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* Italic carries only the glyphs of "DineFlow" (the headline emphasis). */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic-dineflow-v1.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-v1.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Only the glyphs of the "dineflow" wordmark. */
@font-face {
  font-family: "Caprasimo";
  src: url("fonts/caprasimo-dineflow-v1.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* Metric-matched fallbacks so the swap to the web fonts does not shift the layout
   (overrides from the fonts' published metrics, computed the way next/font does). */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  size-adjust: 96.12%;
  ascent-override: 76.47%;
  descent-override: 27.57%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Newsreader Fallback Times";
  src: local("Times New Roman"), local("Liberation Serif");
  size-adjust: 105.48%;
  ascent-override: 69.68%;
  descent-override: 25.12%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Public Sans Fallback";
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 104.87%;
  ascent-override: 90.59%;
  descent-override: 21.46%;
  line-gap-override: 0%;
}

:root {
  --page: #FFFFFF;
  --panel: #F4F5F7;
  --ink: #14171C;
  --ink2: #4B5361;
  --hair: #DFE3E8;
  --brand: #1F3A8A;
  --brand-dark: #172C6B;
  --max: 780px;
  --gutter: 20px;
  --font-body: "Public Sans", "Public Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Newsreader", "Newsreader Fallback", "Newsreader Fallback Times", Georgia, "Times New Roman", serif;
}
@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 10px 14px; border-radius: 6px;
  background: var(--ink); color: var(--page); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--hair); }
.bar { display: flex; align-items: center; gap: 4px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand svg { flex: none; width: 34px; height: 34px; }
.wordmark { font: 600 1.6rem/1 var(--font-display); letter-spacing: -.01em; }
.inc {
  margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--hair);
  font: 700 .7rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2);
}
.site-nav ul { display: flex; gap: 2px; }
.site-nav a, .lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none;
}
.site-nav a:hover, .lang:hover { text-decoration: underline; }
@media (max-width: 719px) {
  .site-nav { display: none; }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 80px); }
.kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 4.2vw + 1.2rem, 4.1rem); font-weight: 400; line-height: 1.06; letter-spacing: -.022em;
}
.hero h1 em { font-style: italic; color: var(--brand); }
.lede { max-width: 58ch; margin-top: 22px; font-size: clamp(1.0625rem, .6vw + .95rem, 1.25rem); color: var(--ink2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; font-size: 1rem; font-weight: 600; text-decoration: none;
}
.btn.primary { border-radius: 3px; background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.secondary { padding: 0 4px; color: var(--brand); text-decoration: underline; text-underline-offset: .25em; }

/* Numbered sections */
.block { padding: 28px 0 clamp(48px, 7vw, 72px); border-top: 1px solid var(--ink); }
.eyebrow { display: flex; gap: 14px; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.eyebrow::before { content: attr(data-n); color: var(--brand); }
.block h2 { margin-top: 20px; font-size: clamp(1.85rem, 2.4vw + 1rem, 2.6rem); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }
.intro { max-width: 62ch; margin-top: 16px; }

/* DineFlow, in DineFlow's own colours */
.df-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 32px; padding: 22px 24px;
  background: #FBF7F0; border: 1px solid #E6DCCB; border-radius: 4px; color: #201E1D; text-decoration: none;
}
.df-lockup { display: inline-flex; align-items: baseline; font: 400 2rem/1 "Caprasimo", Georgia, serif; color: #A2542B; }
.df-dot { display: inline-block; width: .22em; height: .22em; margin-left: .05em; border-radius: 50%; background: #141210; }
.df-card .by { font-size: .9375rem; color: #5C554B; }
.df-card .go { font-weight: 600; color: #201E1D; text-decoration: underline; text-underline-offset: .2em; }
.df-card:hover .go { text-decoration-thickness: 2px; }

.features { display: grid; gap: 0 40px; margin-top: 12px; }
@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.feature { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.feature .icon { color: var(--brand); }
.feature h3 { margin: 12px 0 4px; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.feature p { color: var(--ink2); font-size: .98rem; }
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; }
.links a { display: inline-block; padding: 11px 0; font-weight: 600; }

/* Company facts */
.facts { margin-top: 28px; border-top: 1px solid var(--hair); }
.facts div { display: grid; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 720px) {
  .facts div { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
}
.facts dt { color: var(--ink2); font-size: .9375rem; font-weight: 600; }
.facts dd { font-family: var(--font-display); font-size: 1.15rem; }

/* Contact */
.contact-list { margin-top: 24px; border-top: 1px solid var(--hair); }
.contact-list li { display: grid; align-content: start; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.contact-list .who { color: var(--ink2); font-size: .9375rem; }
.contact-list .how { display: flex; flex-wrap: wrap; gap: 0 18px; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--panel); color: var(--ink2); font-size: .9375rem; }
.site-footer a { color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 28px 0; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .note { flex-basis: 100%; }

/* 404 */
.not-found { display: grid; gap: 48px; }
.nf h1, .nf h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.nf p { margin-top: 14px; color: var(--ink2); }
.nf p:last-child { margin-top: 24px; }
