/*
  Weeks IT Solutions. Neutral, light, typographic.
  Meaning comes from text, weight, and shape. Colour is never the only signal.
  Tokens are semantic: change a token here and the whole site follows. See docs/WEBSITE.md.
*/

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.06%;
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
}

:root {
  --bg: #f4f3f0;
  --surface: #ffffff;
  --rule: #5c5954;
  --text: #1b1a17;
  --text-muted: #3e3b36;
  --accent: #1b1a17;
  --accent-on: #f4f3f0;
  --focus: #1b1a17;

  --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.4rem, 1.4rem + 3.2vw, 4.25rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  --gutter: 1.25rem;
  --container: 65rem;
  --measure: 66ch;
  --header-h: 4.5rem;
  --radius: 2px;
  --target: 2.75rem;
  --ease: 150ms ease-out;
}
@media (min-width: 40rem) {
  :root {
    --gutter: 2rem;
  }
}
@media (min-width: 90rem) {
  :root {
    --container: 72rem;
    --step-0: 1.125rem;
  }
}
@media (min-width: 120rem) {
  :root {
    --container: 84rem;
    --step--1: 1rem;
    --step-0: 1.3125rem;
    --step-1: 1.5rem;
    --step-2: 2.375rem;
    --step-3: 4.75rem;
    --measure: 62ch;
    --header-h: 5rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0) / 1.65 var(--font-sans);
  overflow-wrap: break-word;
  border-top: 6px solid var(--text);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p,
ul,
ol,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 3px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: var(--space-1);
  z-index: 20;
  padding: var(--space-1) var(--space-2);
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-300%);
}
.skip-link:focus {
  transform: none;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--space-3);
  row-gap: 0;
}
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  min-height: var(--target);
  padding-block: 0.65rem;
  color: var(--text);
  text-decoration: none;
}
.wordmark-name {
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
.wordmark:hover .wordmark-name {
  text-decoration-thickness: 3px;
}
.wordmark-tag,
.tagline,
.footer-tag {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0;
}
.site-header nav {
  flex: 1 1 100%;
}
.site-header ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 var(--space-2);
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding-inline: 0.125rem;
  color: var(--text);
  font-size: var(--step--1);
  text-decoration: none;
  border-bottom: 2px solid var(--rule);
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  border-bottom-width: 4px;
  border-bottom-color: var(--text);
}
@media (min-width: 40rem) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .bar {
    min-height: var(--header-h);
    flex-wrap: nowrap;
  }
  .wordmark {
    padding-block: 0;
  }
  .site-header nav {
    flex: 0 0 auto;
  }
  .site-header ul {
    gap: var(--space-4);
  }
  .site-header nav a {
    height: var(--header-h);
  }
}

.hero {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-5) 0;
}
@media (min-width: 40rem) {
  .hero {
    padding-block: var(--space-6) 0;
  }
}
.tagline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.hero h1 {
  max-width: 16ch;
  margin-top: var(--space-2);
  font-size: var(--step-3);
  letter-spacing: -0.03em;
}
.value {
  max-width: 46rem;
  margin-top: var(--space-3);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}
.lead,
.section-head p,
.contact-lead,
.byline {
  max-width: var(--measure);
  text-wrap: pretty;
}
.lead {
  margin-top: var(--space-2);
}
.byline {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-4);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target);
  max-width: 100%;
  padding: 0.55rem var(--space-3);
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.btn:hover {
  background: transparent;
  color: var(--accent);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}
.facts {
  display: grid;
  margin-top: var(--space-4);
  border-top: 1px solid var(--rule);
}
.facts > div,
.more li,
.meta > div {
  border-bottom: 1px solid var(--rule);
}
.facts > div {
  display: grid;
  gap: 0.125rem var(--space-3);
  padding-block: var(--space-2);
}
dt {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
}
.facts dd,
.meta dd {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  line-height: 1.55;
}
@media (min-width: 40rem) {
  .facts > div {
    grid-template-columns: 10rem 1fr;
    align-items: baseline;
  }
}

.section {
  position: relative;
  padding-block: var(--space-6);
}
.hero + .section::before {
  display: none;
}
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--rule);
}
.section-head {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.section-head h2 {
  font-size: var(--step-2);
}
.index {
  margin-right: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0;
}

.services,
.work {
  display: grid;
  gap: var(--space-3);
}
.services > li {
  display: flex;
}
.services > li > .card {
  flex: 1;
}
.card {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.service-main {
  border-width: 2px;
  border-color: var(--text);
}
.service-soon {
  border-style: dashed;
  border-width: 2px;
  border-color: var(--text);
}
.flag {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.flag-mark {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  flex: none;
  border: 2px solid var(--text);
  background: var(--text);
}
.service-soon .flag-mark {
  border-radius: 50%;
  background: transparent;
}
.service h3 {
  max-width: 28ch;
  font-size: var(--step-1);
}
.service-soon h3 {
  font-size: var(--step-2);
}
.service dl,
.service .actions {
  margin-top: var(--space-3);
}
.service dl {
  display: grid;
  gap: var(--space-3);
}
.service dd {
  max-width: var(--measure);
  margin-top: 0.2rem;
}
@media (min-width: 64rem) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
  .services > li:first-child,
  .services > li:last-child {
    grid-column: 1 / -1;
  }
}

.project {
  display: grid;
  gap: var(--space-3);
}
.project h3 {
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: 0;
}
.project-main > p,
.project-main ul {
  max-width: var(--measure);
}
.project-main ul {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.project-main li {
  position: relative;
  padding-left: 1.35rem;
}
.project-main li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--text);
}
.shot {
  margin: var(--space-3) 0 0;
}
.shot img {
  width: 100%;
  max-width: 23rem;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  image-rendering: pixelated;
}
.shot figcaption {
  max-width: var(--measure);
  margin-top: var(--space-1);
  font-size: var(--step--1);
}
.meta {
  display: grid;
  align-self: start;
  align-content: start;
}
.meta > div {
  display: grid;
  gap: 0.15rem;
  padding-block: var(--space-2);
}
.meta > div:last-child {
  border-bottom: 0;
}
.meta dd a,
.more li > a,
.email a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}
.meta dd a {
  overflow-wrap: anywhere;
}
@media (min-width: 64rem) {
  .project {
    grid-template-columns: minmax(0, 7fr) minmax(16rem, 5fr);
    gap: var(--space-4);
    align-items: start;
  }
  .meta {
    padding-left: var(--space-3);
    border-left: 1px solid var(--rule);
  }
  .meta > div {
    border-bottom-color: var(--rule);
  }
}

.more {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.more h3 {
  font-size: var(--step-0);
  font-weight: 600;
}
.more ul {
  margin-top: var(--space-2);
}
.more li {
  display: grid;
  gap: 0.15rem var(--space-3);
  padding-block: var(--space-2);
}
.more li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.more li > a {
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
@media (min-width: 40rem) {
  .more li {
    grid-template-columns: 10rem 1fr;
    align-items: baseline;
  }
}

.about {
  display: grid;
  gap: var(--space-4);
  max-width: var(--measure);
}
.principles {
  display: grid;
  gap: var(--space-3);
}
.principles li {
  padding-left: var(--space-3);
  border-left: 4px solid var(--text);
}
.principles h3 {
  font-size: var(--step-0);
}
.principles p {
  margin-top: 0.25rem;
}

.email {
  margin-top: var(--space-3);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.email .btn {
  width: 100%;
  max-width: 28rem;
  font-size: 1rem;
}
.elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-3);
}
.elsewhere a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--target);
}
.elsewhere span {
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--space-4);
  font-size: var(--step--1);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}
.footer-tag {
  display: block;
  margin-top: 0.2rem;
}

@media (forced-colors: active) {
  .btn,
  .card,
  .flag-mark,
  .project-main li::before {
    border: 2px solid ButtonText;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    border-top: 0;
  }
  .site-header nav,
  .skip-link {
    display: none;
  }
  .card {
    break-inside: avoid;
  }
  a {
    text-decoration: underline;
  }
}
