/* 7strikes.dev
   System fonts only. No webfonts, no images, no scripts.
   Palette derived from Xcode's light-mode syntax colours. */

:root {
  --paper:      #fcfcfa;
  --ink:        #14181f;
  --ink-soft:   #565c66;
  --ink-faint:  #8a919c;
  --rule:       #dcdcd6;
  --wash:       #f3f3ee;
  --code:       #3f6e74;   /* Xcode type colour */
  --signal:     #ad3da4;   /* Xcode keyword colour, used sparingly */
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #16181c;
    --ink:       #e8e8e4;
    --ink-soft:  #9aa0aa;
    --ink-faint: #6e7681;
    --rule:      #2c3038;
    --wash:      #1d2026;
    --code:      #7ab7bf;
    --signal:    #e07ad4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- nav */

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

nav.site .wordmark a {
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav.site .links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

nav.site .links a {
  color: var(--ink-soft);
  text-decoration: none;
}
nav.site .links a:hover { color: var(--ink); }
nav.site a[aria-current] { color: var(--ink); }

/* --------------------------------------------------------------- page */

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 6rem;
}

article, .home { max-width: 40rem; }

@media (max-width: 40rem) {
  body { font-size: 16px; }
  .page { padding: 2.5rem 1.25rem 4rem; }
  nav.site { padding-top: 1.5rem; }
}

/* --------------------------------------------------------- typography */

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.875rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

h2 a, h3 a { color: inherit; text-decoration: none; }

p { margin: 0 0 1.15rem; }

.meta {
  color: var(--ink-faint);
  font-size: 0.875rem;
  margin: -1rem 0 2rem;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }
a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { margin: 0 0 1.15rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

blockquote {
  margin: 1.5rem 0;
  padding-left: 1.125rem;
  border-left: 2px solid var(--rule);
  color: var(--ink-soft);
}
blockquote p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

img { max-width: 100%; height: auto; }

/* --------------------------------------------------------------- code */

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--code);
  overflow-wrap: break-word;
}

pre {
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

pre code { color: var(--ink); font-size: inherit; }

/* ------------------------------------------------------------ listings */

ul.entries {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

ul.entries li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

ul.entries li:first-child { border-top: 1px solid var(--rule); }

ul.entries a {
  text-decoration: none;
  font-weight: 500;
}
ul.entries a:hover { text-decoration: underline; text-underline-offset: 3px; }

ul.entries .when {
  color: var(--ink-faint);
  font-size: 0.8125rem;
  margin-left: 0.75rem;
  white-space: nowrap;
}

ul.entries .desc {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 0.125rem;
}

/* ------------------------------------------------------------- footer */

footer.site {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 0.8125rem;
}
footer.site p { margin: 0 0 0.25rem; }
footer.site a { color: inherit; }

/* ------------------------------------------- consulting page fee block */

.fee {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--signal);
  margin: 1.5rem 0 0.125rem;
}

.fee-unit {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin: 0 0 1.15rem;
}
