:root {
  --ink: #26343c;
  --muted: #66737a;
  --navy: #2f4858;
  --navy-dark: #243944;
  --accent: #f7b267;
  --accent-dark: #e5943d;
  --paper: #f4f1ea;
  --white: #fffdf9;
  --line: #dedbd3;
  --shadow: 0 10px 30px rgba(38, 52, 60, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
}

.container {
  width: min(90%, 960px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--navy);
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  margin-bottom: 34px;
  padding: 70px 0 0;
  background: var(--navy);
  color: white;
}

.hero {
  padding-bottom: 48px;
}

.site-label,
.section-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.intro-text {
  max-width: 650px;
  margin-bottom: 27px;
  color: #e8edef;
  font-size: 1.1rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: var(--navy-dark);
}

.button-primary:hover {
  background: #ffc17e;
  border-color: #ffc17e;
}

.button-secondary {
  color: white;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-nav {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding-block: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-nav a {
  color: #e8edef;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--accent);
}

main > section,
.two-column {
  scroll-margin-top: 20px;
}

.card {
  margin-bottom: 22px;
  padding: clamp(24px, 5vw, 42px);
  background: var(--white);
  border: 1px solid rgba(47, 72, 88, 0.07);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.card > p:last-child {
  max-width: 72ch;
  margin-bottom: 0;
}

.skill-grid,
.tag-list,
.simple-list {
  margin: 0;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  padding: 0;
  list-style: none;
}

.skill-grid li::before {
  content: "—";
  margin-right: 10px;
  color: var(--accent-dark);
  font-weight: 800;
}

.project {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.project:last-child {
  padding-bottom: 0;
}

.project-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.project h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.25rem;
}

.project p {
  max-width: 70ch;
  margin-bottom: 15px;
}

.project-result {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 750;
  white-space: nowrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 4px 10px;
  background: #edf1f2;
  color: #465d69;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 15px;
}

.project-links a {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 750;
  text-underline-offset: 3px;
}

.project-links a:hover {
  color: var(--accent-dark);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.simple-list {
  padding-left: 20px;
}

.simple-list li {
  margin-bottom: 10px;
}

.simple-list span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  margin-top: 26px;
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-content p {
  margin: 0;
}

.footer-content a {
  margin-left: 18px;
  color: var(--navy);
  font-weight: 650;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .site-header {
    padding-top: 48px;
  }

  .skill-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .project-heading,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-result {
    margin-top: -4px;
  }

  .footer-content a {
    margin: 0 18px 0 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
