@font-face {
  font-family: "Pixelify Sans";
  src: url("assets/pixelify-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #291825;
  --plum: #58223e;
  --plum-dark: #3d1c31;
  --plum-light: #753053;
  --berry: #7a284e;
  --wallpaper: #de9cba;
  --cream: #fff7e8;
  --paper: #fffaf0;
  --border: #552b44;
  --rule: #d7bfae;
  --yellow: #ffdc71;
  --max-width: 1200px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: var(--wallpaper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 300px;
  min-height: 100vh;
  margin: 0;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 54% 25%, #f6c0d3 0%, transparent 61%),
    radial-gradient(circle, #78194930 0.6px, transparent 1px) 0 0 / 5px 5px,
    var(--wallpaper);
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 0.85rem; }
ul { padding-inline-start: 1.2rem; }
a { color: var(--berry); text-underline-offset: 0.2em; }
a:hover { color: var(--plum-dark); }
a:focus-visible { outline: 3px solid #a32466; outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }
h1:focus { outline: none; }

.skip-link {
  position: fixed;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--paper);
  border: 2px solid var(--border);
  transform: translateY(-200%);
}
.skip-link:not(:focus) { clip-path: inset(50%); }
.skip-link:focus { transform: none; }

.menu-bar {
  background: linear-gradient(#763452, #502239);
  border-bottom: 3px solid var(--plum-dark);
  box-shadow: inset 0 2px #b97797, 0 2px 0 #f9d6e2;
}

.menu-inner {
  max-width: var(--max-width);
  min-height: 62px;
  margin: auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.nameplate {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--cream);
  font: 700 clamp(1.2rem, 2.1vw, 1.7rem) / 1.1 "Pixelify Sans", monospace;
  text-decoration: none;
  white-space: nowrap;
}
.nameplate:hover { color: white; }
.menu-motif, .taskbar-motif {
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  background: conic-gradient(currentColor 25%, transparent 0 50%, currentColor 0 75%, transparent 0) 0 0 / 10px 10px;
  color: #f4acce;
  transform: rotate(3deg);
}

.main-nav { display: flex; align-items: stretch; gap: 3px; }
.main-nav a {
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 12px;
  border: 1px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current] {
  background: #f8d4df;
  color: var(--plum-dark);
  border-color: var(--plum-dark);
  box-shadow: inset 1px 1px #fff2f5;
}
.main-nav a:focus-visible, .nameplate:focus-visible { outline-color: var(--yellow); }

.desktop {
  width: min(var(--max-width), 100%);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 24px;
  margin: 0 auto;
  padding: 30px 26px 28px 17px;
  flex: 1;
  align-content: start;
}

main { min-width: 0; }
.route + .route { margin-top: 14px; }
.home { display: grid; gap: 17px; }

.shortcuts {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 18px;
  padding-top: 15px;
}
.mobile-shortcuts { display: none; }
.shortcut {
  width: 100%;
  min-height: 84px;
  display: grid;
  gap: 7px;
  justify-items: center;
  align-content: center;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 1px;
}
.shortcut-label {
  padding: 1px 6px;
  background: var(--cream);
  box-shadow: 1px 2px 0 #67314b76;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
}
.shortcut:hover .shortcut-label, .shortcut[aria-current] .shortcut-label {
  background: var(--plum);
  color: var(--paper);
}

.icon {
  --icon-size: 32px;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  width: var(--icon-size);
  height: var(--icon-size);
  color: var(--border);
}
.shortcut .icon { --icon-size: 52px; }
.icon-folder {
  width: 49px;
  height: 34px;
  margin-top: 10px;
  border: 2px solid var(--border);
  box-shadow: 2px 3px #68394d72, inset 2px 2px #fff5be;
  border-radius: 3px;
  background: #e7ae44;
  isolation: isolate;
}
.icon-folder::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -9px;
  width: 24px;
  height: 9px;
  border: 2px solid var(--border);
  border-bottom: 0;
  border-radius: 3px 5px 0 0;
  background: #f2c962;
  z-index: -1;
}
.icon-folder::after {
  content: "";
  position: absolute;
  height: 90%;
  inset: 16% -3px auto 2px;
  border: 2px solid var(--border);
  border-radius: 2px;
  background: linear-gradient(#fff19e, #f7c759);
  box-shadow: inset 2px 2px #fff8cf;
  transform: skewX(-10deg);
}
.icon-paper {
  width: calc(var(--icon-size) * 0.66);
  height: calc(var(--icon-size) * 0.82);
  border: 2px solid var(--border);
  border-radius: 1px;
  box-shadow: 2px 2px #66304b49;
  background: repeating-linear-gradient(#77405e 0 1.5px, transparent 1.5px 5px) 50% 66% / 61% 42% no-repeat, var(--paper);
}
.icon-paper::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 25%;
  height: 25%;
  border: solid var(--border);
  border-width: 0 0 1px 1px;
  background: #e9b2c8;
}
.icon-book {
  width: 38px;
  height: 26px;
  background: none;
  isolation: isolate;
}
.icon-book::before, .icon-book::after {
  content: "";
  position: absolute;
  inset: 1px 48% 1px 0;
  border: 2px solid var(--border);
  border-radius: 4px 5px 2px 2px;
  transform: skewY(8deg);
  box-shadow: 0 2px #af6e91;
  background: repeating-linear-gradient(#a85279 0 1px, transparent 1px 4px) center / 70% 56% no-repeat, #fff4f7;
}
.icon-book::after { inset: 1px 0 1px 48%; transform: skewY(-8deg); }
.icon-stack {
  width: 32px;
  height: 10px;
  border: 2px solid var(--border);
  background: #f7c5d7;
  box-shadow: inset 0 1px #fff8fc, 2px 7px 0 -1px #ffe9f0, 2px 7px var(--border), -1px -7px 0 -1px #fdf5e3, -1px -7px var(--border);
  border-radius: 2px;
  transform: skewX(-6deg);
}
.icon-mail {
  width: 21px;
  height: 14px;
  border: 2px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.icon-mail::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  left: 2px;
  top: -9px;
  border-bottom: 2px solid var(--border);
  border-right: 2px solid var(--border);
  transform: rotate(45deg);
}
.icon-person {
  width: 18px;
  height: 11px;
  margin-top: 8px;
  border: 2px solid var(--border);
  border-radius: 9px 9px 3px 3px;
}
.icon-person::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 3px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--paper);
}

.window {
  min-width: 0;
  padding: 3px;
  border: 2px solid var(--plum-dark);
  border-radius: 5px;
  background: var(--cream);
  box-shadow: inset 1px 1px #fffef6, inset -1px -1px #a97791, 3px 4px 0 #68314e8f;
}

.title-bar {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 9px;
  background: linear-gradient(95deg, var(--plum-dark), var(--plum-light));
  color: var(--cream);
  border-radius: 2px;
  box-shadow: inset 0 1px #b47392;
  font-size: 0.875rem;
  font-weight: 700;
}
.title-bar h2 { font: inherit; margin: 0; }
.window-glyphs { display: flex; align-items: center; gap: 3px; }
.window-glyphs i {
  display: grid;
  place-items: center;
  width: 15px;
  height: 14px;
  border: 1px solid #2e1624;
  box-shadow: inset 1px 1px #fffef2, inset -1px -1px #a37c84;
  background: #f5e3d7;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
  font-style: normal;
}
.window-glyphs i:first-child::before { content: ""; width: 6px; height: 1px; margin-top: 5px; background: currentColor; }
.window-glyphs i:nth-child(2)::before { content: ""; width: 6px; height: 6px; border: 1px solid; border-top-width: 2px; }
.window-home {
  display: inline-block;
  padding: 1px 8px;
  color: var(--ink);
  background: var(--cream);
  text-decoration: none;
  border: 1px solid var(--plum-dark);
  box-shadow: inset 1px 1px white, inset -1px -1px #b992a2;
}
.window-home:hover { background: white; }

.profile-body {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr) 88px;
  gap: 25px;
  align-items: center;
  padding: 25px 26px;
}
.profile-picture {
  margin: 0;
  padding: 5px;
  border: 2px solid var(--border);
  background: #efb9ce;
  box-shadow: inset 1px 1px #ffebef, 3px 3px 0 #b8799a;
}
.profile-picture img { aspect-ratio: 1 / 1.05; object-fit: cover; object-position: center top; height: auto; width: 100%; }
.profile-copy h1 {
  margin: 0 0 10px;
  font: 700 clamp(2.25rem, 4.35vw, 4rem) / 0.95 "Pixelify Sans", monospace;
  letter-spacing: -0.04em;
}
.profile-roles {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 8px;
  background: var(--yellow);
  color: #322114;
  font-size: 0.9rem;
  font-weight: 700;
}
.profile-roles span { margin-inline: 2px; }
.profile-intro { max-width: 39ch; margin: 0; }
.desktop-signature { width: 85px; align-self: end; justify-self: end; }
.mobile-signature { display: none; }

.home-windows {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 17px;
}

.writing-links {
  margin: 0;
  padding: 0 14px;
  list-style: none;
}
.writing-links li + li { border-top: 1px solid var(--rule); }
.writing-links a {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  padding: 11px 5px;
  min-height: 67px;
  color: var(--berry);
  text-decoration: none;
}
.writing-links a:hover { background: #f7e5e7; }
.writing-links .icon { justify-self: center; }
.writing-links strong { display: block; font-size: 1.04rem; text-decoration: underline; text-underline-offset: 3px; }
.writing-links small { display: block; font-size: 0.875rem; color: var(--ink); }

.resource-cover {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 18px;
}
.editorial-badge { width: min(100%, 210px); }

.retro-button {
  min-height: 33px;
  padding: 5px 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: linear-gradient(#fff8e9, #efcbd7);
  color: var(--plum-dark);
  border: 1.5px solid var(--border);
  border-radius: 3px;
  box-shadow: inset 1px 1px #fffdf6, inset -1px -1px #b686a0, 1.5px 2px #57294173;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}
.retro-button:hover { background: #fff8ef; }
.retro-button:active { transform: translate(1px, 1px); box-shadow: inset 1px 1px #b686a0; }
.retro-button .icon { --icon-size: 19px; }

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 0;
  padding: 14px 11px;
}
.summary-grid > div { padding: 0 12px; }
.summary-grid > div + div { border-left: 1px solid var(--rule); }
.summary-grid h3 { font-size: 0.95rem; margin: 0 0 3px; color: var(--plum); }
.summary-grid p, .summary-grid ul, .summary-grid a { margin: 0; font-size: 0.875rem; }
.summary-grid p { margin-bottom: 4px; }

.detail-body { padding: clamp(1rem, 4vw, 2.5rem); min-height: 325px; }
.detail-body h1 {
  margin: 0 0 1rem;
  font: 700 clamp(2rem, 5vw, 3.6rem) / 1 "Pixelify Sans", monospace;
}
.detail-body h2 { color: var(--plum); font-size: 1.2rem; margin: 1.28rem 0 0.4rem; }
.detail-body p, .detail-body ul { max-width: 66ch; }
.detail-body li { margin-bottom: 0.45rem; }
.brand-badge { width: min(260px, 100%); margin-bottom: 15px; }

.taskbar {
  background: linear-gradient(#ecc0d1, #e1a7bf);
  border-top: 2px solid var(--border);
  box-shadow: inset 0 2px #fbdbe8;
}
.taskbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max-width);
  margin: auto;
  padding: 11px 30px 14px;
}
.taskbar-navigation { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 13px; }
.taskbar-motif { color: #80415f; width: 26px; height: 18px; }

@media (max-width: 920px) {
  .profile-body { grid-template-columns: 126px minmax(0, 1fr) 65px; gap: 17px; padding: 20px; }
  .desktop-signature { width: 65px; }
  .desktop { grid-template-columns: 108px minmax(0, 1fr); gap: 17px; }
  .menu-inner { padding-inline: 17px; gap: 12px; }
  .main-nav a { padding-inline: 7px; }
}

@media (max-width: 700px) {
  .menu-inner { flex-direction: column; align-items: stretch; padding: 11px 10px 5px; gap: 7px; }
  .nameplate { justify-content: center; }
  .menu-motif { width: 18px; height: 18px; }
  .main-nav { justify-content: center; flex-wrap: wrap; gap: 1px 4px; }
  .main-nav a { min-height: 36px; display: grid; place-content: center; padding: 5px; font-size: 0.75rem; }
  .desktop { display: block; width: min(100%, 540px); padding: 17px 11px 24px; }
  .desktop > .shortcuts { display: none; }
  .home { gap: 14px; }
  .mobile-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 5px; gap: 6px; }
  .shortcut { min-height: 76px; grid-template-rows: 44px auto; align-content: start; align-items: end; }
  .shortcut-label { font-size: 0.75rem; }
  .home-windows { grid-template-columns: 1fr; gap: 14px; }
  .profile-body { grid-template-columns: minmax(83px, 31%) minmax(0, 1fr); padding: 13px; gap: 12px; align-items: start; }
  .profile-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    align-items: center;
  }
  .profile-copy h1 { margin: 1px 0 8px; font-size: clamp(1.87rem, 8vw, 3.1rem); }
  .profile-roles { font-size: 0.75rem; padding-inline: 5px; margin-bottom: 7px; }
  .profile-intro { font-size: 0.9375rem; }
  .mobile-signature { display: block; width: clamp(34px, 11vw, 52px); }
  .summary-grid { grid-template-columns: 1fr; gap: 10px; padding: 11px; }
  .summary-grid > div { padding: 0 5px; }
  .summary-grid > div + div { border-left: 0; border-top: 1px solid var(--rule); padding-top: 8px; }
  .taskbar-inner { padding-inline: 10px; gap: 8px; }
  .taskbar-motif { width: 15px; height: 15px; }
  .desktop-signature { display: none; }
}

@media (max-width: 365px) {
  .main-nav a { font-size: 0.75rem; padding-inline: 4px; }
  .profile-body { padding: 10px; gap: 10px; }
  .profile-intro { font-size: 0.875rem; }
  .taskbar-navigation { gap: 6px; }
  .taskbar-navigation a { padding-inline: 6px; }
  .taskbar-motif { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: url("assets/cursor-arrow.png") 2 2, auto; }
  a, button { cursor: url("assets/cursor-hand.png") 8 2, pointer; }
}
