@font-face {
  font-family: "Crimson Pro";
  src: url("assets/fonts/crimson-pro.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Pro";
  src: url("assets/fonts/crimson-pro-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #fffefb;
  --text: #1a1a1a;
  --muted: #555;
  --accent: #8a6d3b;
  --hairline: #e0d8c8;
  --footer: #6b6b6b;
  --cv-hover-bg: #f7f2e7;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  max-width: 52rem;
  background: var(--bg);
  color: var(--text);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  font-synthesis: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.cv-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.site-name {
  font-weight: 600;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
  font-size: 1rem;
}

.about {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.about img {
  width: 7rem;
  height: 7rem;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(var(--accent), var(--accent)) border-box;
}

.about img:hover {
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(
      from var(--pro-angle),
      #6b5226 0deg,
      #e8c87a 40deg,
      #fff6dd 70deg,
      #e8c87a 100deg,
      #6b5226 140deg,
      #6b5226 360deg
    ) border-box;
  animation: pro-led 1.2s linear infinite;
}

.about .intro {
  flex: 1;
  min-width: 16rem;
}

.about h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.tagline {
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.about p {
  margin: 0;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.3rem;
  margin: 2.25rem 0 0.9rem;
}

section p {
  margin: 0 0 0.8rem;
}

ul.entries {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.entries li {
  margin-bottom: 0.8rem;
}

.project-name {
  font-weight: 600;
  color: var(--accent);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.cv-button {
  display: inline-block;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0.25rem 0.9rem;
}

.cv-button:hover {
  background: var(--cv-hover-bg);
  text-decoration: none;
}

@property --pro-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.pro-button {
  display: inline-block;
  padding: 0.1rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #1c1917 0%, #2e2415 60%, #3b2f1d 100%) padding-box,
    linear-gradient(var(--accent), var(--accent)) border-box;
  color: #e8c87a;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.pro-button:hover,
.pro-button:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, #1c1917 0%, #2e2415 60%, #3b2f1d 100%) padding-box,
    conic-gradient(
      from var(--pro-angle),
      #6b5226 0deg,
      #e8c87a 40deg,
      #fff6dd 70deg,
      #e8c87a 100deg,
      #6b5226 140deg,
      #6b5226 360deg
    ) border-box;
  animation: pro-led 1.2s linear infinite;
}

@keyframes pro-led {
  to {
    --pro-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pro-button:hover,
  .pro-button:focus-visible,
  .about img:hover {
    animation: none;
  }
}

.pro-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.pro-star {
  display: inline-block;
  transition: transform 0.35s ease;
}

.pro-button:hover .pro-star,
.pro-button:focus-visible .pro-star {
  transform: rotate(180deg);
}

.site-name a {
  color: inherit;
}

.post-date {
  color: var(--muted);
  font-size: 1rem;
}

.post h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.post-meta {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 1rem;
}

.post .embed {
  max-width: 100%;
  margin: 0.5rem auto 1rem;
  font-size: 0.85rem;
}

.post .embed .frame {
  position: relative;
  padding: 0 0 67% 0;
  height: 0;
  overflow: hidden;
}

.post .embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

footer {
  margin-top: 3rem;
  border-top: 1px solid var(--hairline);
  padding-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--footer);
}

.visitor-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  align-items: center;
  margin-top: 0.5rem;
}

.visitor-flag {
  font-size: 1rem;
}
