.sr-only,
.toolbar input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%); }

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0.55rem;
  background: #f2f2f2;
  box-shadow: 0 1px 4px #0002; }
  .toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem; }
  .toolbar label:has(input:checked) {
    background: #cfe5f5; }
  .toolbar label:focus-within {
    outline: 2px solid #1875b8; }

.device {
  display: inline-block;
  border: 2px solid #535d65;
  border-radius: 2px; }

.desktop {
  width: 23px;
  height: 15px; }

.tablet {
  width: 14px;
  height: 18px; }

.phone {
  width: 10px;
  height: 16px; }

.portfolio-page {
  container-type: inline-size;
  width: 100%;
  min-height: 100vh;
  margin-inline: auto;
  background: white; }

body:has(input[value="tablet"]:checked) .portfolio-page {
  max-width: 768px; }

body:has(input[value="phone"]:checked) .portfolio-page {
  max-width: 390px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 7%; }

.logo {
  color: #17191b;
  font-size: 1.65rem;
  font-weight: 800;
  text-decoration: none; }
  .logo span {
    color: #ee543b; }

.menu-button {
  display: grid;
  align-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 8px;
  background: transparent;
  cursor: pointer; }
  .menu-button span {
    height: 3px;
    background: #ee543b; }

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  max-width: 85vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  padding: 1rem;
  color: white;
  background: #121416; }
  .drawer::backdrop {
    background: #000a; }
  .drawer form {
    text-align: right; }
  .drawer nav {
    display: grid;
    gap: 1rem;
    padding-top: 1.5rem;
    text-align: center; }
  .drawer a {
    text-decoration: none; }
    .drawer a:hover {
      text-decoration: underline; }

.close-button {
  border: 0;
  color: white;
  background: transparent;
  font-size: 2rem;
  cursor: pointer; }

@media (prefers-reduced-motion: no-preference) {
  .drawer[open] {
    animation: open-drawer 180ms ease-out; }
  @keyframes open-drawer {
    from {
      transform: translateX(-100%); }
    to {
      transform: translateX(0); } } }

/* this side is for the outer page to hold the toolbar and gives the remaining height
   to the portfolio. Scrolling happens inside the preview. */
body.preview-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #e6e8eb; }

.preview-toolbar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 6px 48px;
  border-bottom: 1px solid #d4d8dc;
  background: #f8f9fa; }

.view-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; }

.view-button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  min-width: 74px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  font: inherit;
  cursor: pointer; }
  .view-button img {
    width: 32px;
    height: 32px;
    object-fit: contain; }
  .view-button span {
    font-size: 0.72rem;
    line-height: 1.2; }
  .view-button:hover {
    background: #e9eef2; }
  .view-button[aria-pressed="true"] {
    border-color: #a6cbe3;
    background: #dceefa;
    color: #163e59; }

.hide-toolbar {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #48515a;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer; }
  .hide-toolbar:hover {
    background: #e5e9ed; }

/* Floating control takes up no space in the page layout. */
.restore-toolbar {
  position: fixed;
  z-index: 3;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border: 1px solid #b9c3ca;
  border-radius: 20px;
  background: white;
  color: #24323d;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002; }

.preview-toolbar[hidden],
.restore-toolbar[hidden] {
  display: none; }

.preview-stage {
  display: flex;
  flex: 1 1 0;
  justify-content: center;
  min-height: 0;
  width: 100%; }

.preview-window {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  background: white; }

.preview-shell[data-view="tablet"] .preview-window {
  max-width: 768px; }

.preview-shell[data-view="phone"] .preview-window {
  max-width: 390px; }

/* This dialog belongs to the outer page and confirms the view choice. */
.view-notice {
  width: 19rem;
  max-width: calc(100% - 2rem);
  margin: auto;
  padding: 1.35rem;
  border: 1px solid #d6dce1;
  border-radius: 14px;
  background: white;
  color: #19252e;
  text-align: center;
  box-shadow: 0 12px 40px #0003; }
  .view-notice::backdrop {
    background: rgba(20, 30, 40, 0.22); }
  .view-notice p {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
    font-weight: 700; }
  .view-notice button {
    border: 0;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    background: #24323d;
    color: white;
    cursor: pointer; }

@media (max-width: 380px) {
  .preview-toolbar {
    padding-inline: 38px; }
  .view-options {
    gap: 2px; }
  .view-button {
    min-width: 58px;
    padding-inline: 4px; } }

/*This is to control the fade animation for the restore toolbar */
@keyframes show-views-fade {
  0%, 15% {
    opacity: 1; }
  45%, 60% {
    opacity: 0; }
  90%, 100% {
    opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .restore-toolbar:not([hidden]) {
    animation: show-views-fade 6s ease-in-out infinite; }
  .restore-toolbar:hover,
  .restore-toolbar:focus-visible {
    animation: none;
    opacity: 1; } }

.site-footer {
  display: grid;
  gap: 2rem;
  padding: 3.5rem 7% 6rem;
  background: #292e33;
  color: white; }
  .site-footer .footer-intro {
    max-width: 31rem; }
  .site-footer h2 {
    margin-bottom: 1rem; }
  .site-footer small {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid #687178; }

.contact-form {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-width: 0; }
  .contact-form label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 700; }
  .contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid #aeb5b9;
    border-radius: 4px;
    background: white;
    color: #17191b;
    font: inherit;
    font-weight: 400; }
  .contact-form textarea {
    resize: vertical; }
  .contact-form button {
    padding: 0.65rem 1rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-weight: 700;
    cursor: pointer; }
  .contact-form output {
    white-space: pre-line;
    overflow-wrap: anywhere;
    font-size: 0.85rem; }

.contact-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 5; }
  .contact-widget summary {
    width: fit-content;
    margin-left: auto;
    padding: 0.65rem 1.1rem;
    border: 1px solid white;
    border-radius: 2rem;
    background: #292e33;
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 12px #0003; }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.6rem);
  width: 19rem;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  padding: 1.1rem;
  border: 1px solid #d4d7da;
  border-top: 3px solid #ee543b;
  border-radius: 10px;
  background: white;
  color: #17191b;
  box-shadow: 0 6px 28px #0003; }
  .chat-panel h2 {
    margin: 0;
    font-size: 1.35rem; }

@media (min-width: 650px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr)); } }

* {
  box-sizing: border-box; }

body {
  margin: 0;
  color: #17191b;
  background: #d5d9dc;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6; }

h1, h2, h3, p {
  margin: 0 0 1rem; }

h1, h2 {
  line-height: 1.05;
  letter-spacing: -0.045em; }

img {
  display: block;
  max-width: 100%; }

a {
  color: inherit; }

button, input, textarea, select {
  font: inherit; }

:focus-visible {
  outline: 3px solid #1875b8;
  outline-offset: 3px; }

/* Portfolio Page Styles */
.portfolio-page {
  color: #17191b;
  background: white; }

.content-section {
  padding: 3.5rem 7%; }

.portfolio-page h1 {
  margin-bottom: 1rem;
  font-size: 3.2rem;
  line-height: 1; }

.content-section h2,
.site-footer h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  line-height: 1.08; }

.hero {
  display: grid;
  align-items: center;
  background: #dfe3e6 url("../images/vbbb.jpg") center/cover; }

.hero-copy {
  padding: 3rem 8%; }
  .hero-copy p {
    max-width: 32rem; }

.hero-photo {
  align-self: end;
  width: 100%;
  max-height: 35rem;
  object-fit: contain; }

.orange-circle {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: #ee543b; }

.eyebrow {
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase; }

.action-link {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  color: white;
  background: #17191b;
  text-decoration: none; }
  .action-link:hover {
    background: #363b40; }

.profile,
.skills > h2 {
  text-align: center; }

.profile-grid,
.skills-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem; }
  .profile-grid article,
  .skills-grid article {
    text-align: left; }

.profile-photo {
  width: 11rem;
  height: 11rem;
  margin: auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top; }

.toolkit {
  margin: 0; }
  .toolkit dt {
    font-weight: 700; }
  .toolkit dd {
    margin: 0 0 0.7rem; }

.section-intro {
  max-width: 45rem;
  margin-bottom: 1.5rem; }

.about-photo {
  width: 100%;
  max-height: 34rem;
  object-fit: cover; }

.about-note {
  position: relative;
  width: 88%;
  max-width: 24rem;
  margin: -1.5rem 0 0 auto;
  padding: 1.4rem;
  color: #17191b;
  background: #ee543b; }
  .about-note p {
    margin-bottom: 0; }

.skills {
  background: #e1e6ea; }

.skills-grid article {
  padding-top: 1rem;
  border-top: 3px solid #ee543b; }

@media (min-width: 650px) {
  .hero {
    grid-template-columns: 1.1fr 1fr; }
  .profile-grid,
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-grid {
    align-items: center; }
  .content-section {
    padding-block: 5rem; } }

@media (min-width: 950px) {
  .portfolio-page h1 {
    font-size: 5.5rem; }
  .content-section h2,
  .site-footer h2 {
    font-size: 3.6rem; } }

@media (max-width: 420px) {
  .achievement-controls button {
    min-width: 44px;
    min-height: 44px; }
  .build-achievements > h3 {
    font-size: 1.75rem; }
  .site-footer {
    padding-bottom: 7rem; } }
