/* Shared site styles. Original WordPress typography: Raleway body,
   Open Sans titles, Signika section headings, Open Sans Condensed subheadings. */

@font-face { font-family: "Raleway"; src: url("/assets/fonts/raleway-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/fonts/raleway-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/fonts/raleway-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/fonts/raleway-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/fonts/raleway-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/open-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Signika"; src: url("/assets/fonts/signika-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Signika"; src: url("/assets/fonts/signika-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans Condensed"; src: url("/assets/fonts/open-sans-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f7f5f0;
  --ink: #2b2b2b;
  --muted: #55524c;
  --faint: #6f6a62;
  --line: #e2ddd2;
  --char: #363636;
  --cyan: #00a8de;
  --cyan-text: #0a6f94;
  --card: #ffffff;
  --error: #a3261b;
  --serif: "Signika", sans-serif;
  --display: "Open Sans", sans-serif;
  --condensed: "Open Sans Condensed", sans-serif;
  --sans: "Raleway", sans-serif;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
/* width: 100% because .page.container centres with margin: 0 auto, which would otherwise shrink main to its content */
main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--cyan-text); }
:focus-visible { outline: 2px solid var(--cyan-text); outline-offset: 2px; }
.masthead :focus-visible, .site-footer :focus-visible, .skip-link:focus-visible { outline-color: #fff; }

.container { max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--char); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 16px; top: 16px; }

/* Masthead */
.masthead { background: var(--char); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand img { display: block; height: 46px; width: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav-links a { color: #fff; opacity: .85; text-decoration: none; }
.nav-links a:hover { opacity: 1; }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 56px); line-height: 1.04; margin: 14px 0 18px; max-width: 760px; }
h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; margin: 8px 0 28px; max-width: 760px; }
h3 { font-family: var(--condensed); font-size: 21px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
p { margin: 0 0 12px; color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--cyan-text); margin: 0; }

/* Buttons and links */
.button { display: inline-block; background: var(--char); color: #fff; border: 0; border-radius: 2px; padding: 12px 20px; font: 600 14px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.button::after { content: " \25CF"; content: " \25CF" / ""; color: var(--cyan); font-size: 9px; vertical-align: 2px; }
.button:hover { background: #262626; }
.button:disabled { opacity: .6; cursor: wait; }
.text-link { font-weight: 600; font-size: 14px; text-decoration: none; }

/* Hero */
.hero { padding-top: 72px; }
.lede { font-size: 18px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.trust { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 30px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.trust-label { color: var(--faint); }
.trust ul { display: flex; flex-wrap: wrap; gap: 8px 30px; list-style: none; margin: 0; padding: 0; }
.trust li { font-weight: 600; color: var(--ink); }

/* Sections */
.section { padding-top: 72px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.service { border-top: 2px solid var(--char); padding-top: 14px; }
.service h3::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-right: 9px; vertical-align: 2px; }
.work-card { background: var(--card); border: 1px solid var(--line); padding: 22px 22px 14px; }
.work-card .tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--cyan-text); margin-bottom: 6px; }
.work-card h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; }
.team { gap: 36px 44px; }
.avatar { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--char); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; margin-bottom: 12px; }
.avatar::after { content: ""; position: absolute; right: 3px; bottom: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); border: 2px solid var(--paper); }
.role { font-size: 13px; font-weight: 600; color: var(--cyan-text); margin: -4px 0 10px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; padding-bottom: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.optional { font-weight: 400; color: var(--faint); }
.field input, .field textarea { width: 100%; font: 16px/1.4 var(--sans); color: var(--ink); background: var(--card); border: 1px solid #8f887a; border-radius: 2px; padding: 10px 12px; }
.field textarea { resize: vertical; min-height: 140px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 13px; margin: 6px 0 0; }
.field-error:empty { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; min-height: 1.6em; font-weight: 600; color: var(--ink); }

/* Simple pages */
.page { max-width: calc(760px + 2 * var(--gutter)); padding-top: 64px; padding-bottom: 80px; }
.page h2 { font-size: 24px; margin: 36px 0 12px; }
.page ul { color: var(--muted); padding-left: 20px; }
code { font-size: 0.92em; background: #ece8df; padding: 1px 5px; border-radius: 3px; }

/* Footer */
.site-footer { flex-shrink: 0; background: var(--char); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.footer-inner img { display: block; height: 34px; width: auto; }
.footer-inner p { margin: 0; color: #bdbdbd; font-size: 13px; }
.footer-inner a { color: #e5e5e5; }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .grid-2, .grid-3, .contact, .field-row { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 48px; }
  .section { padding-top: 56px; }
}

@media (max-width: 600px) {
  .nav-links li:not(.nav-contact):not(.nav-blog) { display: none; }
  .nav-links { gap: 18px; align-items: center; }
  .nav-contact a { background: #fff; color: var(--char); opacity: 1; padding: 8px 14px; border-radius: 2px; font-weight: 600; }
  .brand img { height: 38px; }
}

/* The original blog, with a quiet year index and a comfortable reading column. */
.blog-index { max-width: calc(900px + 2 * var(--gutter)); padding-top: 72px; padding-bottom: 88px; }
.blog-intro h1 { margin-top: 16px; }
.blog-intro .lede { max-width: 690px; }
.archive-years { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: 36px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.archive-years a { font-weight: 600; text-decoration: none; }
.archive-years .rss-link { margin-left: auto; font-size: 13px; }
.blog-year { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 36px; padding-top: 56px; scroll-margin-top: 24px; }
.blog-year > h2 { margin: 6px 0 0; font-size: 36px; }
.blog-year > h2 span { display: block; font: 400 13px/2 var(--sans); letter-spacing: 0; color: var(--faint); }
.post-preview { padding: 0 0 28px; margin: 0 0 30px; border-bottom: 1px solid var(--line); }
.post-preview h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.2; margin: 8px 0 12px; }
.post-preview h3 a { color: var(--ink); text-decoration: none; }
.post-preview h3 a:hover { color: var(--cyan-text); }
.post-preview > p { margin-bottom: 10px; }
.post-byline { font-size: 13px; color: var(--faint); }
.post-byline > span { margin: 0 5px; }
.post-read-more { font-size: 13px; font-weight: 600; text-decoration: none; }
.blog-post { max-width: calc(760px + 2 * var(--gutter)); padding-top: 40px; padding-bottom: 72px; }
.breadcrumb { font-size: 13px; color: var(--faint); margin-bottom: 40px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb > span { margin-left: 8px; }
.article-header h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; overflow-wrap: anywhere; }
.article-header .post-byline { margin: 22px 0; }
.archive-note { font-size: 13px; padding: 14px 18px; border-left: 2px solid var(--cyan-text); background: #eeebe3; margin: 28px 0 36px; }
.article-body { font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.article-body p { margin-bottom: 1.4em; }
.article-body h1, .article-body h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; margin: 44px 0 18px; }
.article-body h3 { font-size: 26px; margin: 32px 0 14px; }
.article-body h4, .article-body h5, .article-body h6 { font-size: 19px; margin: 24px 0 12px; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 24px auto; }
.article-body pre { padding: 20px; margin: 24px 0; overflow-x: auto; background: #ece8df; border: 1px solid var(--line); font-size: 14px; line-height: 1.65; overflow-wrap: normal; tab-size: 2; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.article-body pre code { padding: 0; border-radius: 0; background: none; }
.article-body blockquote, .article-body aside { border-left: 2px solid var(--cyan-text); margin: 24px 0; padding: 4px 0 4px 22px; }
.article-body blockquote > :last-child, .article-body aside > :last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { color: var(--muted); padding-left: 26px; margin-bottom: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; margin: 24px 0; }
.article-body td, .article-body th { padding: 8px 14px; border: 1px solid var(--line); text-align: left; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.article-body details { border: 1px solid var(--line); padding: 18px; margin: 24px 0; }
.article-body summary { cursor: pointer; font-weight: 600; }
.missing-image { display: block; border: 1px dashed var(--line); padding: 18px; margin: 20px 0; color: var(--faint); font-size: 14px; }
.post-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; margin: 48px 0 32px; }
.post-pagination a { font-family: var(--serif); font-size: 21px; line-height: 1.4; text-decoration: none; }
.post-pagination a:last-child { text-align: right; }
.post-pagination span { display: block; font: 400 12px/1.5 var(--sans); color: var(--faint); margin-bottom: 7px; }
@media (max-width: 760px) {
  .blog-index { padding-top: 48px; }
  .blog-year { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 36px; }
  .blog-year > h2 { display: flex; align-items: baseline; gap: 16px; }
  .post-preview h3 { font-size: 25px; }
  .article-body { font-size: 16px; }
  .article-body pre { padding: 14px; font-size: 12px; }
}
