:root {
  color-scheme: light;
  color: #191919;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
::selection { background: #191919; color: #fff; }

.site-header {
  width: min(100%, 40rem);
  margin-inline: auto;
  padding: 1rem 2rem 0;
}

main {
  width: min(100%, 40rem);
  flex: 1;
  margin-inline: auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.drawing {
  position: relative;
  width: min(100%, 25rem);
  aspect-ratio: 1.16;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.identity { width: min(100%, 25rem); margin-inline: auto; }
canvas { display: block; width: 100%; height: 100%; }
h1 { margin: 0; font-size: 1.25rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.025em; }
.role { margin: 0.4rem 0 0; font-size: 0.875rem; line-height: 1.6; color: #666; }
nav { display: flex; justify-content: flex-end; flex-wrap: wrap; column-gap: 1.25rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: #494949; font-size: 0.875rem; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: #b0b0b0; }
nav a:hover { color: #000; text-decoration-color: currentColor; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.articles { margin-top: 2.25rem; }
.articles h2 { margin: 0 0 0.875rem; font-size: 0.875rem; line-height: 1.5; font-weight: 500; }

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  overflow: hidden;
  min-height: 6.5rem;
  color: #f5f3ed;
  background: #080a0c;
  border: 1px solid #222529;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 250ms ease;
}

.article-card:focus-visible { outline-color: #191919; }
.article-art {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
}
.article-art canvas { position: absolute; inset: 0; }
.article-copy { grid-column: 1; grid-row: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.5rem; padding: 0.875rem 0.75rem 0.875rem 1.5rem; }
.article-copy h3 { margin: 0; font-size: 1.125rem; line-height: 1.4; font-weight: 500; letter-spacing: -0.02em; }
.article-cta { display: inline-flex; align-items: center; gap: 0.5rem; color: #ccced2; font-size: 0.875rem; line-height: 1.5; }
.article-arrow { display: inline-block; transition: transform 350ms ease; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .article-card:hover { border-color: #686c73; }
  .article-card:hover .article-arrow { transform: translateX(4px); }
}

@media (prefers-reduced-motion: no-preference) {
  .article-card:focus-visible .article-arrow { transform: translateX(4px); }
}

@media (max-width: 420px) {
  main, .site-header { padding-inline: 1.5rem; }
  .drawing { margin-bottom: 2rem; }
  .article-card { grid-template-columns: minmax(0, 1fr) 6rem; }
  .article-copy { padding: 0.75rem 0.5rem 0.75rem 1rem; }
  .article-copy h3 { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .article-card, .article-arrow { transition: none; }
}
