:root {
  --paper: #f4f0e8;
  --ink: #1c1d1a;
  --muted: #696860;
  --rule: #c9c4b8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body {
  margin: 0;
}

main {
  width: min(100% - 2.5rem, 1060px);
  margin: 0 auto;
}

footer {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--muted);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.94fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.75rem, 8vw, 6rem);
}

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

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 5.6vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.project-note {
  max-width: 49ch;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.65;
}

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.hero-figure img {
  aspect-ratio: 1;
  object-fit: cover;
}

.terminal {
  padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.fastfetch {
  display: block;
  width: 100%;
  max-width: 928px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--rule);
}

.fastfetch-wrap {
  width: 100%;
}

.fastfetch-wrap picture {
  display: block;
}

.site-footer {
  padding: 1.35rem 0 1.65rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.45;
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-xperia {
  margin-bottom: 0.42rem;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}

.footer-signoff {
  color: var(--muted);
}

.footer-logo {
  display: block;
  width: 136px;
  margin: 0.7rem auto 0;
  opacity: 0.68;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: #8a3324;
}

@media (max-width: 720px) {
  main {
    width: min(100% - 2rem, 1060px);
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3.25rem;
  }

  figure {
    max-width: 520px;
  }

}

@media (max-width: 440px) {
  h1 {
    font-size: clamp(2.7rem, 14vw, 3.4rem);
  }
}
