:root {
  --paper: #fff;
  --ink: #202124;
  --muted: #535861;
  --line: #e5e6e9;
  --accent: #075ec9;
}
body {
  background: radial-gradient(ellipse at 18% 0%, #e2e9f3, #f0f0f3 68%);
  padding: clamp(16px, 4vw, 60px);
  min-height: 100svh;
}
.app-window {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  max-width: 1180px;
  height: min(790px, calc(100svh - clamp(32px, 8vw, 120px) - 44px));
  margin: auto;
  background: var(--paper);
  border: 1px solid #c9ccd3;
  border-radius: 15px;
  box-shadow: 0 24px 65px #232c4224, 0 3px 9px #232c4213;
  overflow: hidden;
}
.app-sidebar { background: #eef0f4; border-right: 1px solid #d9dce2; }
.window-lights { display: flex; gap: 8px; height: 58px; align-items: center; padding-inline: 18px; }
.window-lights i { width: 12px; height: 12px; border: 1px solid #0001; border-radius: 50%; background: #ff6059; }
.window-lights i:nth-child(2) { background: #ffbd2e; }
.window-lights i:nth-child(3) { background: #29c840; }
.app-sidebar nav { display: grid; gap: 4px; padding: 12px; }
.app-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink);
}
.app-sidebar nav a span { width: 20px; text-align: center; color: var(--accent); font-size: 17px; }
.app-sidebar nav a:hover { background: #e2e6ed; }
.app-sidebar nav a[aria-current] { background: #dbe7f8; color: #084eaa; font-weight: 650; }
.app-pane { overflow: auto; overscroll-behavior: contain; }
.app-toolbar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px 24px;
  gap: 12px;
  background: #fafbfcf5;
  backdrop-filter: blur(16px);
}
.app-toolbar a { font-size: 12px; text-decoration: none; color: var(--accent); }
.app-pane section[hidden] { display: none; }
.app-pane .hero, .app-pane .section { padding: clamp(25px, 5vw, 64px); margin: 0; background: white; border: 0; }
.app-pane .hero { grid-template-columns: minmax(0, 1fr) minmax(130px, 205px); gap: 30px; align-items: center; }
.app-pane .hero h1 { font-size: clamp(33px, 4vw, 52px); }
.app-pane .role { color: #474d57; }
.app-pane .portrait-card { background: #f0f2f6; border: 1px solid var(--line); border-radius: 12px; }
.app-pane .sculpture { height: 220px; }
.app-pane .primary-link { border-radius: 7px; }
.app-pane .project { border-radius: 10px; }
.app-pane .project-mark { min-height: 105px; height: 105px; }
.app-pane .project-mark img { max-height: 72px; }
@media (max-width: 760px) {
  body { padding: 12px; }
  .app-window { height: calc(100svh - 72px); border: 1px solid #c9ccd3; border-radius: 14px; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .app-sidebar { border: 0; border-bottom: 1px solid var(--line); }
  .window-lights { display: none; }
  .app-sidebar nav { display: flex; flex-wrap: wrap; gap: 3px; width: auto; padding: 8px; justify-content: center; }
  .app-sidebar nav a { gap: 4px; padding-inline: 7px; font-size: 11px; min-height: 30px; }
  .app-sidebar nav a span { width: 14px; font-size: 14px; }
  .app-toolbar { min-height: 42px; padding: 8px 18px; }
  .app-pane .hero { grid-template-columns: 1fr; }
  .app-pane .portrait-card { width: min(100%, 185px); }
  .app-pane .sculpture { height: 180px; }
}
@media print {
  body { padding: 0; background: white; }
  .app-window, .app-pane { display: block; height: auto; overflow: visible; border: 0; box-shadow: none; }
  .app-sidebar, .app-toolbar { display: none !important; }
}

.app-window[hidden], .window-restore[hidden] { display: none; }
.window-lights button {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  padding: 0;
  border: 1px solid #0002;
  border-radius: 50%;
  background: #ff6059;
  color: transparent;
  font: 700 10px/1 system-ui, sans-serif;
}
.window-lights button:nth-child(2) { background: #ffbd2e; }
.window-lights button:nth-child(3) { background: #29c840; }
.window-lights:hover button, .window-lights button:focus-visible { color: #292929; }
.window-restore {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}
.window-restore.is-minimized {
  inset: auto 0 24px;
}
.window-restore button {
  padding: 7px 14px;
  border: 1px solid #c9ccd3;
  border-radius: 8px;
  background: #fafbfc;
  color: var(--ink);
  font-size: 13px;
}
body.portfolio-expanded { padding: 0; }
.portfolio-expanded .app-window {
  width: 100%;
  max-width: none;
  height: 100svh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@media print { .window-restore { display: none; } }
@media (max-width: 760px) {
  .window-lights { display: flex; height: 30px; }
}

.headshot { aspect-ratio: 1; overflow: hidden; }
.headshot img { display: block; width: 100%; height: 100%; object-fit: cover; }


.app-sidebar nav .contact-icon {
  position: relative;
  display: inline-block;
  height: 19px;
  flex-shrink: 0;
}
.contact-icon::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: 50%;
  top: 1px;
  transform: translateX(-50%);
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.contact-icon::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 7px;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  border: 1.5px solid currentColor;
  border-radius: 8px 8px 3px 3px;
}
.site-footer {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0;
  border: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  color: #626b79;
  font-size: 11px;
  line-height: 20px;
}
.footer-note { display: inline-flex; align-items: center; gap: 5px; }
.footer-note > span { color: #7c6d8b; font-size: 15px; }
.app-window[hidden] + .site-footer,
.portfolio-expanded .site-footer { display: none; }
@media (max-width: 760px) {
  .site-footer { margin-top: 14px; font-size: 10px; gap: 10px; }
  .app-sidebar nav .contact-icon { height: 17px; }
  .contact-icon::after { width: 12px; height: 6px; }
}
@media print { .site-footer { display: none; } }
