/* Plain starting point, sharing hansdb.net's colours and type, until the
   company site's design is decided. */

:root {
  --paper: #f7f7f0;
  --paper-2: #efefe6;
  --ink: #0a0a0a;
  --muted: #4b4b45;
  --rule: #d6d6cc;
  --sans: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; padding: 8px 12px; background: var(--ink); color: var(--paper); }

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.02em; }
h1 { max-width: 18ch; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.05; }
h2 { margin-bottom: 2rem; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }

.eyebrow {
  margin: 0 0 1rem;
  font: 500 .8125rem/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { max-width: 36rem; margin: 1.5rem 0 0; font-size: 1.1875rem; color: var(--muted); }
.prose { max-width: 60ch; margin: 0 0 1.5rem; color: var(--muted); }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.btn:hover { background: transparent; color: var(--ink); }

.bar { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand img { width: 52px; height: 52px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 1rem; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }

.hero { padding: clamp(64px, 12vh, 140px) 0; }

.sec { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--rule); }
.sec-alt { background: var(--paper-2); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards li { padding: 24px; background: var(--paper); border: 1px solid var(--ink); }
.cards p { margin: .5rem 0 0; color: var(--muted); }

.follow { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--rule); text-align: center; }
.follow a {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
.follow a:hover { color: var(--ink); }

.foot { padding: 28px 0; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.foot p { margin: 0; }
.foot address { font-style: normal; }

@media (max-width: 600px) {
  .bar-in { height: auto; padding-top: 12px; padding-bottom: 12px; align-items: flex-start; }
  .brand img { width: 44px; height: 44px; }
}

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