/* Match system appearance, including browser controls and initial paint. */
:root{color-scheme:light dark;--a:#ad6e42;--b:#84939b;--c:#edb78e;--page-bg:#fff;--page-fg:#000}
@media(prefers-color-scheme:dark){:root{--page-bg:#000;--page-fg:#fff}}
@font-face {
  font-family: YoungSerif;
  src: url('/assets/YoungSerif-Regular.woff2') format('woff2');
  font-display: swap;
}
* { box-sizing: border-box; }
html { background: var(--page-bg); }
body {
  margin: 0;
  color: var(--page-fg);
  font-family: YoungSerif, Georgia, serif;
  isolation: isolate;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1.25rem, 5vw, 5rem);
  gap: clamp(2.5rem, 6vh, 5rem);
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-weight: 400;
}
picture {
  display: grid;
  place-items: center;
  width: min(100%, 34rem);
  height: clamp(16rem, 38vh, 23rem);
  flex-shrink: 0;
  overflow: hidden;
}
.portrait {
  grid-area: 1 / 1;
  width: auto;
  max-width: none;
  height: clamp(32rem, 76vh, 46rem);
  justify-self: center;
  align-self: center;
}
picture { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: min(100%, 58rem);
  gap: 1.5rem clamp(1rem, 4vw, 4rem);
}

nav a {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: .5rem;
}
@media (max-width: 56rem) {
  nav { max-width: 25rem; gap: 1.5rem; }
}
@media (max-width: 37.5rem) {
  nav { max-width: 17rem; gap: 1.5rem 1rem; }
  nav a { width: 3.25rem; height: 3.25rem; }
}
.social-icon {
  width: 100%;
  height: 100%;
  transform: scale(1.25);
  pointer-events: none;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
[data-holiday="christmas"] { --a: #b71842; --b: #116349; --c: #ddbc85; }
[data-holiday="thanksgiving"] { --a: #b4541f; --b: #8b3542; --c: #d8ab63; }
[data-holiday="halloween"] { --a: #c95615; --b: #55276d; --c: #a87aca; }
[data-holiday="independence"] { --a: #be3343; --b: #294a94; --c: #c3d6ef; }
[data-holiday="shamrock"] { --a: #177358; --b: #63943e; --c: #dab56a; }
[data-holiday="valentine"] { --a: #b92f58; --b: #9c477d; --c: #f7a49f; }
[data-holiday="new-year"] { --a: #9b783d; --b: #344e76; --c: #bfc8da; }

:root {
  --wash: #fff;
  --tint: 36%;
  --page-fg: #201b22;
  --page-bg: color-mix(in srgb, var(--c) 24%, var(--wash));
}
@media (prefers-color-scheme: dark) {
  :root {
    --wash: #100f18;
    --tint: 53%;
    --page-fg: #fff9ef;
  }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 26%, color-mix(in srgb, var(--a) var(--tint), var(--wash)) 5%, transparent 65%),
    radial-gradient(ellipse at 84% 65%, color-mix(in srgb, var(--b) var(--tint), var(--wash)) 12%, transparent 66%),
    var(--page-bg);
  animation: portrait-drift 6s linear infinite;
}

[data-holiday] body::before {
  animation: holiday-drift 16s ease-in-out infinite alternate;
}
@keyframes portrait-drift {
  0%, 100% { transform: scale(1.16) translate(0, 0); }
  12.5% { transform: scale(1.16) translate(3%, -2%); }
  37.5% { transform: scale(1.16) translate(3%, 2%); }
  25% { transform: scale(1.16) translate(5%, 0); }
  50% { transform: scale(1.16) translate(0, 0); }
  62.5% { transform: scale(1.16) translate(-3%, -2%); }
  75% { transform: scale(1.16) translate(-5%, 0); }
  87.5% { transform: scale(1.16) translate(-3%, 2%); }
}
@keyframes holiday-drift {
  from { transform: translate(-4%, 2%) scale(1.13); }
  to { transform: translate(5%, -3%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  :root body::before { animation: none; }
}
