/* mikenott.com — single stylesheet, no build step.
   Tokens live in :root. */

:root {
  --bg: #fafaf8;
  --bg-alt: #f1f1ed;
  --card: #ffffff;
  --ink: #101418;
  --ink-2: #3d4650;
  --ink-3: #6b7480;
  --line: #e2e4e0;

  --dark: #0d1218;
  --dark-2: #151c25;
  --dark-3: #1d2631;
  --dark-line: #26303c;
  --dark-ink: #f2f4f5;
  --dark-muted: #9aa5b1;

  --teal: #19c0a8;
  --teal-deep: #0e8f7d;
  --teal-ink: #062a25;
  --teal-soft: #e3f7f3;

  --ok: #16a34a;
  --err: #dc2626;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 70rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 12px;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button svg {
  width: 0.9em;
  height: 0.9em;
}

.button.primary {
  background: var(--teal);
  color: var(--teal-ink);
}

.button.primary:hover {
  background: #2ad1b9;
  color: var(--teal-ink);
}

.button.ghost {
  background: transparent;
  color: var(--dark-ink);
  border-color: var(--dark-line);
}

.button.ghost:hover {
  border-color: var(--dark-muted);
  color: #fff;
}

.button.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.outline:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* ---------- Header + hero (dark) ---------- */

.top {
  background: var(--dark);
  color: var(--dark-ink);
  background-image:
    radial-gradient(60rem 30rem at 85% -10%, rgba(25, 192, 168, 0.18), transparent 60%),
    linear-gradient(var(--dark), var(--dark));
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--dark-muted);
}

.site-nav a:hover {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
}

.hero {
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 8vw, 5.5rem);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero .eyebrow {
  color: var(--teal);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  color: #fff;
  max-width: 24ch;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero .sub {
  font-size: 1.1rem;
  color: var(--dark-muted);
  max-width: 50ch;
  margin-bottom: 2rem;
}

.hero .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.photo {
  position: relative;
  width: min(100%, 20rem);
  margin-left: auto;
}

.photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}

.photo::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  opacity: 0.8;
}

@media (max-width: 800px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .photo {
    width: 12rem;
    margin-left: 0;
    order: -1;
  }
}

/* ---------- Logo strip ---------- */

.logos {
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
}

.logos .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logos .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
  flex: none;
  max-width: 12ch;
  line-height: 1.3;
}

.logos ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.logos img {
  height: 3.75rem;
  width: auto;
  max-width: 7rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  mix-blend-mode: multiply;
  transition: opacity 120ms ease, filter 120ms ease;
}

.logos img:hover {
  filter: none;
  opacity: 1;
}

@media (max-width: 800px) {
  .logos ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .logos img {
    height: 3rem;
  }
}

/* ---------- Sections ---------- */

section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.split > .lead {
  position: sticky;
  top: 2rem;
}

.split h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.split .lead p {
  color: var(--ink-2);
  max-width: 34ch;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split > .lead {
    position: static;
  }
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.socials a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--teal-ink);
  text-decoration: none;
}

.socials svg {
  width: 1rem;
  height: 1rem;
}

.prose {
  color: var(--ink-2);
  font-size: 1.05rem;
  max-width: 62ch;
}

.prose p + p {
  margin-top: 1em;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 0.15em;
}

.competencies {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.competencies li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.competencies li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
}

@media (max-width: 560px) {
  .competencies {
    grid-template-columns: 1fr;
  }
}

/* ---------- Projects ---------- */

.projects {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.card h3 {
  font-size: 1.1rem;
}

.card h3 a {
  color: var(--ink);
}

.card p {
  color: var(--ink-2);
  font-size: 0.95rem;
  flex: 1;
}

.card .more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card .more svg {
  width: 0.8em;
  height: 0.8em;
}

@media (max-width: 800px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact (dark) ---------- */

.contact {
  background: var(--dark);
  color: var(--dark-ink);
}

.contact h2 {
  color: #fff;
}

.contact .lead p {
  color: var(--dark-muted);
}

.contact .socials a {
  background: var(--dark-2);
  border-color: var(--dark-line);
  color: var(--dark-ink);
}

.contact .socials a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--teal-ink);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field.wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-muted);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--dark-ink);
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #64707c;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(25, 192, 168, 0.25);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

/* honeypot: hidden from people, present for bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-status {
  font-size: 0.9rem;
  color: var(--dark-muted);
  min-height: 1.4em;
  margin: 0;
}

.form-status.ok {
  color: var(--teal);
}

.form-status.err {
  color: #f87171;
}

.cf-turnstile {
  grid-column: 1 / -1;
}

.cf-turnstile:empty {
  display: none;
}

@media (max-width: 520px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--dark-muted);
  border-top: 1px solid var(--dark-line);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.site-footer .container {
  text-align: center;
}

.links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links a {
  color: var(--dark-muted);
}

.links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- 404 ---------- */

.notfound {
  padding: clamp(4rem, 15vw, 9rem) 0;
}

.notfound h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
