/* ==========================================================
   ANDRA MORARU — SOFTWARE DEVELOPER PORTFOLIO
   Editorial typography, pastel colours, personal annotations
   ========================================================== */

/* 01. DESIGN  */

:root {
  --ink: #2c1f35;
  --muted: #574a60;
  --paper: #fffafd;

  --lavender: #ddd2f6;
  --lavender-light: #f8edff;
  --peach: #ffd9c8;
  --mint: #cceee3;
  --blush: #f4cede;
  --blue: #cde4f7;
  --cream: #fff4dc;

  --purple: #6f3d8d;
  --purple-dark: #5e2f7a;

  --line: rgba(44, 31, 53, 0.18);
  --line-strong: rgba(44, 31, 53, 0.32);
  --card: rgba(255, 255, 255, 0.72);
  --shadow: rgba(111, 61, 141, 0.18);

  --font-display: Arial, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-code: "IBM Plex Mono", monospace;

  --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);

  --content-width: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --pad-x: max(
    var(--gutter),
    calc((100% - var(--content-width)) / 2)
  );

  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 98px;

  --radius: 14px;
  --radius-sm: 8px;

  --ease: 200ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* 02. RESET AND GLOBAL STYLES */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);

  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  letter-spacing: -0.008em;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  text-wrap: pretty;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--purple);
  color: #fff;
}

/* 03. TYPOGRAPHY */

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin-bottom: 28px;
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.55rem);
  line-height: 1.2;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 18px;

  color: var(--purple-dark);
  font-family: var(--font-code);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: none;
  background: currentColor;
  border-radius: 2px;
}

.contact .section-label::before {
  display: none;
}

.nowrap {
  white-space: normal;
}

/* 04. ACCESSIBILITY */

:focus-visible {
  outline: 3px solid var(--purple-dark);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;

  padding: 12px 18px;

  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;

  transform: translateY(-160%);
  transition: transform var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* 05. HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  min-height: var(--header-h);
  padding: 8px var(--pad-x);

  background: var(--lavender-light);
  border-bottom: 1px solid var(--line);
}

.logo-link {
  display: block;
  flex: none;
  width: 168px;
  border-radius: var(--radius-sm);
}

.logo-link img {
  width: 100%;
  height: auto;
}

/* 06. DESKTOP NAVIGATION */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;

  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;

  transition:
    background-color var(--ease),
    color var(--ease);
}

.desktop-nav a:hover {
  background: var(--lavender);
  color: var(--purple-dark);
}

/* 07. MOBILE NAVIGATION */

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  width: 46px;
  height: 46px;

  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 12px;

  cursor: pointer;
  list-style: none;

  transition:
    background-color var(--ease),
    border-color var(--ease);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary:hover,
.mobile-menu[open] summary {
  background: #fff;
  border-color: var(--ink);
}

.mobile-menu summary span {
  display: block;
  width: 20px;
  height: 2px;

  background: var(--ink);
  border-radius: 2px;

  transition:
    transform var(--ease),
    opacity var(--ease);
}

.mobile-menu[open] summary span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu[open] summary span:nth-child(2) {
  opacity: 0;
}

.mobile-menu[open] summary span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: var(--gutter);
  z-index: 10;

  display: grid;
  min-width: 220px;
  padding: 8px;

  background: #fff;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--shadow);

  font-size: 1.05rem;
  font-weight: 700;
}

.mobile-menu nav a {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
}

.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible {
  background: var(--lavender-light);
  color: var(--purple-dark);
}

/* 08. SHARED SECTIONS */

.hero,
.about,
.skills,
.projects,
.notes,
.currently,
.contact {
  padding: var(--section-y) var(--pad-x);
}

.hero-copy > p:not(.section-label),
.about-copy > p:not(.section-label),
.contact > p:not(.section-label),
.section-intro > p:not(.section-label) {
  max-width: 62ch;

  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.7;
}

.section-intro {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-intro > p:last-child {
  margin-bottom: 0;
}

/* 09. BUTTONS */

/* ========================================
   BUTTONS — PASTEL 3D
   ======================================== */

.button {
  --btn-top: #e7dcff;
  --btn-bottom: #b7a2f2;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 52px;
  padding: 14px 26px;

  color: #2c1f35;
  background: linear-gradient(
    180deg,
    var(--btn-top),
    var(--btn-bottom)
  );

  border: 1px solid #9274b8;
  border-radius: 90px;
  corner-shape: squircle;

  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;

  box-shadow:
    inset 0 1px 0 #ffffffcc,
    inset 0 -3px 0 #3b205033,
    0 2px 3px #2c1f351a,
    0 8px 20px -6px #6f3d8d66;

  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;

  cursor: pointer;
}

/* Hover — gently lifts */

.button:hover {
  transform: translateY(-2px);

  box-shadow:
    inset 0 1px 0 #ffffffee,
    inset 0 -3px 0 #3b205044,
    0 4px 6px #2c1f3522,
    0 12px 26px -6px #6f3d8d88;

  filter: saturate(1.06);
}

/* Active — pressed into the surface */

.button:active {
  transform: translateY(2px);

  box-shadow:
    inset 0 3px 6px #2c1f3533,
    inset 0 -1px 0 #ffffff88,
    0 1px 2px #2c1f351a;
}

/* Peach variation */

.button-outline {
  --btn-top: #ffe9df;
  --btn-bottom: #f5bba5;

  color: #2c1f35;
  border-color: #b78271;
}

.button-outline:hover {
  color: #2c1f35;
  border-color: #b78271;
}

/* Optional mint variation */

.button-mint {
  --btn-top: #e5fff4;
  --btn-bottom: #a6ddca;

  border-color: #77ae9b;
}

/* Accessible keyboard focus */

.button:focus-visible {
  outline: 3px solid #2c1f35;
  outline-offset: 4px;
}


.button span,
.text-link span {
  display: inline-block;
  transition: transform var(--ease);
}

.button:hover span,
.text-link:hover span {
  transform: translate(2px, -2px);
}

.button[href^="#"]:hover span {
  transform: translateY(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;

  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;

  font-family: var(--font-body);
  font-weight: 700;

  transition: color var(--ease);
}

.text-link:hover {
  color: var(--purple-dark);
}

.text-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

/* 10. HERO */

.hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);

  min-height: min(
    760px,
    calc(100svh - var(--header-h))
  );

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 255, 255, 0.45),
      transparent 45%
    ),
    var(--lavender);
}

.hero-copy {
  order: -1;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy .button {
  margin-top: 14px;
}

/* 11. HERO BROWSER ILLUSTRATION */

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 14px 36px 0;
}

.browser-window {
  width: 100%;
  max-width: 460px;
  overflow: hidden;

  background: #fffaff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);

  box-shadow: 14px 14px 0 var(--shadow);
  transform: rotate(2deg);

  transition: transform var(--ease);
}

.browser-window:hover {
  transform: rotate(0deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;

  min-height: 43px;
  padding: 12px 16px;

  background: var(--lavender-light);
  border-bottom: 2px solid var(--ink);
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.browser-bar span:nth-child(1) {
  background: var(--peach);
}

.browser-bar span:nth-child(2) {
  background: var(--cream);
}

.browser-bar span:nth-child(3) {
  background: var(--mint);
}

.code-lines {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 44px);
}

.code-lines span {
  display: block;
  padding: 12px 14px;

  background: var(--lavender-light);
  border-left: 3px solid var(--purple);
  border-radius: 5px;

  font-family: var(--font-code);
  font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.95rem);
  line-height: 1.6;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.code-lines span:nth-child(2) {
  background: #fff2e9;
  border-color: #9a573e;
}

.code-lines span:nth-child(3) {
  background: #e9f8f2;
  border-color: #36775f;
}

/* A small personal annotation */

.hero-art::after {
  content: "/* curiosity → code */";

  position: absolute;
  right: 2%;
  bottom: 0;

  color: var(--purple-dark);
  font-family: var(--font-code);
  font-size: clamp(0.72rem, 0.7rem + 0.2vw, 0.86rem);
  font-weight: 500;
  letter-spacing: -0.02em;

  transform: rotate(-4deg);
  pointer-events: none;
}

/* 12. ABOUT */

.about {
  display: grid;
  grid-template-columns:
    minmax(0, 0.8fr)
    minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(40px, 7vw, 100px);

  background: var(--peach);
}

.portrait {
  min-width: 0;
  padding: 0 14px 14px 0;
}

.portrait img {
  position: sticky;
  top: calc(var(--header-h) + 30px);

  width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--radius);

  background: var(--lavender-light);
  box-shadow: 12px 12px 0 var(--shadow);

  transform: rotate(-2deg);
  transition: transform var(--ease);
}

.portrait img:hover {
  transform: rotate(0deg);
}

.about-copy {
  position: relative;
  min-width: 0;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Notebook-style annotation */

.about > .about-copy::before {
  content: "// a winding route into software";

  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;

  color: var(--purple-dark);
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
}

/* 13. SKILLS */

.skills {
  background: var(--lavender-light);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  min-width: 0;

  padding: clamp(24px, 3vw, 34px);

  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow);

  overflow-wrap: anywhere;

  transition:
    transform var(--ease),
    box-shadow var(--ease);
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 7px 9px 0 var(--shadow);
}

.skill-card h3 {
  margin-bottom: 16px;
}

.skill-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

/* 14. PROJECTS */

.projects {
  background: var(--mint);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.project-card {
  position: relative;

  display: flex;
  flex-direction: column;
  min-width: 0;

  padding: clamp(24px, 3vw, 34px);

  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);

  box-shadow: 6px 6px 0 var(--shadow);
  overflow-wrap: anywhere;

  transition:
    transform var(--ease),
    box-shadow var(--ease);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 8px 10px 0 var(--shadow);
}

.project-number {
  display: inline-block;
  align-self: flex-start;

  margin-bottom: 24px;

  color: var(--purple-dark);
  font-family: var(--font-code);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.project-card h3 {
  margin-bottom: 22px;
  text-wrap: balance;
}

/* Hand-drawn-inspired accent beneath titles */

.project-card h3::after {
  content: "";

  display: block;
  width: 38px;
  height: 3px;
  margin-top: 15px;

  background: var(--purple);
  border-radius: 99px;
  opacity: 0.75;
}

.project-card p {
  margin-bottom: 17px;
  color: var(--muted);
  line-height: 1.72;
}

.project-card p strong {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;

  text-decoration: underline;
  text-decoration-color: rgba(111, 61, 141, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.project-card p:last-of-type {
  flex: 1;
}

.project-card small {
  display: block;
  margin-top: 8px;
  margin-bottom: 22px;

  color: var(--purple-dark);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.8;

  overflow-wrap: anywhere;
}

.project-card .text-link {
  margin-top: auto;
}

/* 15. NOTES / WHAT I BRING */

.notes {
  display: grid;
  grid-template-columns:
    minmax(0, 0.7fr)
    minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);

  background: var(--blush);
}

.notes .section-intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  margin: 0;
}

.note-list {
  border-top: 1px solid var(--line-strong);
}

.note {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;

  padding: 28px 0;
  border-bottom: 1px solid var(--line-strong);
}

.note span {
  color: var(--purple-dark);
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.note p {
  margin-bottom: 0;

  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.5;
}

.note strong {
  display: block;
  margin-bottom: 10px;

  color: var(--purple-dark);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* 16. CURRENTLY */

.currently {
  display: grid;
  grid-template-columns:
    minmax(0, 0.75fr)
    minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);

  background: var(--cream);
}

.currently .section-intro {
  margin: 0;
}

.currently .section-intro h2 {
  margin-bottom: 0;
}

.currently .about-copy {
  padding-top: 6px;
}

/* 17. CONTACT */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;

  background: var(--blue);
  text-align: center;
}

.contact > img {
  width: min(300px, 72vw);
  aspect-ratio: 2 / 1;
  margin-bottom: 28px;
  object-fit: cover;
}

.contact h2 {
  max-width: 18ch;
}

.contact > p:not(.section-label) {
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

/* 18. FOOTER AND SOCIAL LINKS */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;

  padding: 32px var(--pad-x);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--lavender-light);
  border-top: 1px solid var(--line);
}

footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

footer > a {
  color: var(--ink);
  font-weight: 700;
}

.footer-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  min-height: 44px;
  padding: 8px 15px;

  background: linear-gradient(
    180deg,
    #ffffff,
    #e8dcff
  );

  border: 1px solid #b8a1d0;
  border-radius: 90px;
  corner-shape: squircle;

  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;

  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 #6f3d8d22,
    0 3px 8px #6f3d8d20;

  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.footer-socials a:hover {
  color: var(--ink);
  border-color: #9274b8;
  transform: translateY(-2px);

  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 #6f3d8d33,
    0 6px 14px #6f3d8d33;
}

.footer-socials a:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px #2c1f3522;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 23px;
  height: 23px;

  background: var(--purple-dark);
  color: white;

  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.back-to-top {
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-socials a:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

/* Optional non-footer social list */
.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0 0;
}

.social-links a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-links a:hover { color: var(--purple-dark); }

/* 20. TABLET */

@media (max-width: 1000px) {
  .skill-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 21. MOBILE / SMALL TABLET */

@media (max-width: 820px) {
  :root {
    --header-h: 80px;
  }

  .logo-link {
    width: 132px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero,
  .about,
  .notes,
  .currently {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 0;
  }

  .hero-art {
    padding: 0 14px 36px 0;
  }

  .browser-window {
    max-width: 420px;
  }

  .portrait {
    padding: 0 14px 14px 0;
  }

  .portrait img {
    position: static;
    max-width: 380px;
    margin: 0 auto;
  }

  .notes .section-intro {
    position: static;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* 22. PHONE */

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.45rem, 10vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.95rem, 8vw, 2.65rem);
  }

  .skill-grid,
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .browser-window,
  .portrait img {
    box-shadow: 8px 8px 0 var(--shadow);
  }

  .hero-art::after {
    right: 6%;
    font-size: 0.72rem;
  }

  .about > .about-copy::before {
    font-size: 0.7rem;
  }

  .note {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 24px 0;
  }

  .button {
    width: 100%;
  }

  .contact-actions {
    flex-direction: column;
    align-self: stretch;
  }
}

/* 23. VERY SMALL SCREENS */

@media (max-width: 380px) {
  .logo-link {
    width: 112px;
  }

  .hero,
  .about,
  .skills,
  .projects,
  .notes,
  .currently,
  .contact {
    padding-inline: 20px;
  }

  .browser-window {
    transform: none;
  }
}

/* 24. REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .button:hover,
  .project-card:hover,
  .project-card:focus-within,
  .skill-card:hover,
  .button:hover span,
  .text-link:hover span,
  .browser-window:hover,
  .portrait img:hover {
    transform: none;
  }

  .hero-art::after {
    transform: none;
  }

  .button:active,
  .footer-socials a:hover,
  .footer-socials a:active {
    transform: none;
  }
}

/* 25. HIGH CONTRAST / FORCED COLOURS */

@media (forced-colors: active) {
  .button,
  .project-card,
  .skill-card,
  .mobile-menu summary {
    border: 1px solid CanvasText;
  }

  :focus-visible {
    outline-color: Highlight;
  }
}
