@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;550;600;650;700&display=swap');

:root {
  color-scheme: light;
  --ink: #172b43;
  --muted: #596574;
  --accent: #265baa;
  --line: #dfe4ea;
  --surface: #f3f5f8;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: #fff; color: var(--ink); line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; border-radius: 2px; }
::selection { background: #dce9fa; color: var(--ink); }
.wrap { width: min(100% - 7rem, 1120px); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; transform: translateY(-200%); background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.05rem; font-weight: 650; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 3px; background: var(--ink); color: #fff; font-size: 1.5rem; font-weight: 700; line-height: 1; }
nav { display: flex; gap: 2rem; }
nav a, .site-footer a { font-size: .875rem; text-decoration: none; text-underline-offset: .4em; transition: color 160ms var(--ease); }
nav a:hover, .site-footer a:hover { color: var(--accent); text-decoration: underline; }

.intro { padding-block: 3.5rem 3.75rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.6rem, 4.2vw, 3.75rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.intro p { margin-top: 1.25rem; color: var(--muted); font-size: 1.125rem; max-width: 48ch; }

.projects { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.project-link { display: block; text-decoration: none; }
.project-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.project-title h2 { transition: color 160ms var(--ease); }
.project-kind { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.project-link > p { margin-block: .75rem 1.4rem; color: var(--muted); font-size: 1rem; max-width: 52ch; }
.preview { padding: 1rem 1rem 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); overflow: hidden; transition: border-color 180ms var(--ease), background-color 180ms var(--ease); }
.preview img { display: block; width: 100%; height: auto; border-radius: 2px 2px 0 0; }
.project-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; font-size: .875rem; }
.project-footer > span:last-child { color: var(--muted); }
.project-action { position: relative; font-weight: 550; padding-bottom: .2rem; }
.project-action::after { position: absolute; content: ''; height: 1px; bottom: 0; left: 0; right: 0; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform 180ms var(--ease); }
.project-link:is(:hover, :focus-visible) .project-title h2 { color: var(--accent); }
.project-link:is(:hover, :focus-visible) .preview { border-color: #aebdd1; background: #eaf0f8; }
.project-link:is(:hover, :focus-visible) .project-action::after { transform: scaleX(1); }
.project-link:active .project-action { color: var(--accent); }

.contact { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 4.5rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.contact h2 { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.contact a { font-size: 1.25rem; text-decoration-line: underline; text-decoration-color: #abb7c6; text-decoration-thickness: 1px; text-underline-offset: .35em; overflow-wrap: anywhere; transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease); }
.contact a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8125rem; padding-block: .5rem 2rem; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 4rem); }
  .project-title { flex-direction: column; gap: .35rem; }
  .projects { gap: 2rem; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { gap: 1rem; padding-block: 1.5rem; }
  nav { gap: 1.25rem; }
  .brand { font-size: .95rem; gap: .5rem; }
  .intro { padding-block: 2.5rem 3rem; }
  .intro p { font-size: 1rem; }
  .projects { grid-template-columns: 1fr; gap: 3rem; }
  .project-title { flex-direction: row; flex-wrap: wrap; gap: .5rem 1rem; }
  .contact { margin-top: 3rem; flex-direction: column; align-items: flex-start; gap: .65rem; }
  .contact a { font-size: 1.125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
