/* Lemon Splice — single-page site styles
   Plain CSS, no framework. Dark mode follows the OS preference. */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --border: #000000;
  --accent: rgb(255, 234, 61);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #ffffff;
    --border: #ffffff;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.125rem;
  line-height: 1.625;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  display: block;
}

/* Skip link (keyboard users only) */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  z-index: 50;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: 2px;
}

/* Layout container */
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 6rem 1.5rem;
  }
}

/* Header / logo + wordmark */
.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 6px solid var(--border);
  padding-bottom: 2.5rem;
  margin-bottom: 4rem;
}

/* Push the logo to the far right, wordmark stays left */
.site-header .logo-wrap {
  margin-left: auto;
}

@media (min-width: 768px) {
  .site-header {
    gap: 2.5rem;
  }
}

.logo-wrap {
  flex-shrink: 0;
}

.logo {
  width: 6rem;
  height: 6rem;
}

@media (min-width: 768px) {
  .logo {
    width: 8rem;
    height: 8rem;
  }
}

.logo--light {
  display: block;
}

.logo--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .logo--light {
    display: none;
  }
  .logo--dark {
    display: block;
  }
}

.site-title {
  margin: 0;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 1;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .site-title {
    font-size: 6rem;
  }
}

/* Sections */
.section {
  margin: 0 0 5rem;
}

.section--accent {
  position: relative;
}

/* Slanted lemon rectangle behind the section heading */
.section--accent .section-title,
.section-contact .section-title {
  display: inline-block;
  position: relative;
  color: #000;
  padding: 0.35rem 1.1rem;
}

.section--accent .section-title::before,
.section-contact .section-title::before {
  content: "";
  position: absolute;
  inset: 0 -0.5rem;
  background: var(--accent);
  transform: skewX(-7deg);
  z-index: -1;
}

.section-title {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
}

/* Intro lede */
.lede {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: 48rem;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .lede {
    font-size: 2.25rem;
  }
}

/* Skills grid */
.skills-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-group h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.skill-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li + li {
  margin-top: 0.25rem;
}

.skill-sublist {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
}

.skill-sublist li + li {
  margin-top: 0.25rem;
}

/* Contact link */
.contact-link {
  display: block;
  width: fit-content;
  font-size: 1.5rem;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (min-width: 768px) {
  .contact-link {
    font-size: 1.875rem;
  }
}

.contact-link:hover {
  background: var(--accent);
  color: #000;
}

.contact-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 6px var(--accent);
}

/* Footer */
.site-footer {
  border-top: 6px solid var(--border);
  padding-top: 2.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
}
