/* jaredotter.com — clean refresh of the original personal page */

:root {
  --text: #1a1a1a;
  --muted: #4a4a4a;
  --icon: #5f6368;
  --icon-hover: #3c4043;
  --paper: #fff;
  --focus: #1d4f6e;
  --max: 58rem;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 10;
  padding: 0.5rem 0.85rem;
  background: var(--paper);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-150%);
}

.skip:focus,
.skip:focus-visible {
  transform: none;
}

/* —— Header banner —— */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(15.5rem, 38vw, 22rem);
  padding: 2.75rem 1.25rem;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 28, 0.22),
    rgba(10, 20, 28, 0.32)
  );
  pointer-events: none;
}

.nameplate {
  margin: 0;
  padding: 0.55em 0.95em;
  max-width: 20ch;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 5vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
  border: 2px solid #fff;
  background: rgba(8, 16, 22, 0.2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

/* —— Intro —— */

.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.75rem) 1.35rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 20.5rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4.5vw, 3.25rem);
  align-items: center;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.copy {
  min-width: 0;
}

.hello {
  margin: 0 0 0.45rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  line-height: 1.2;
}

.lede {
  margin: 0 0 1.35rem;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 28ch;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--icon);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}

.links a:hover,
.links a:focus-visible {
  background: var(--icon-hover);
}

.links svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

@media (max-width: 720px) {
  .intro {
    grid-template-columns: 1fr;
    padding-bottom: 3.5rem;
  }

  .portrait {
    max-width: 22rem;
  }

  .lede {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .links a {
    transition: none;
  }
}
