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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--space-6);
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--black);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--blue-light);
  text-underline-offset: 0.2em;
}

ul[role="list"] {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Layout */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-space);
  isolation: isolate;
}

.section + .section {
  border-top: 0;
}

/* Section label, same look as the home page eyebrow: the cysn.app double triangle, then the label */

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.section-label::before {
  content: "";
  flex: none;
  width: 2.0625rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 33 20'%3E%3Cpath d='M13 0l20 10-20 10z' fill='%230c1c53'/%3E%3Cpath d='M0 0l20 10-20 10z' fill='%23236bb3'/%3E%3C/svg%3E") no-repeat center / contain;
}

.section-title {
  max-width: 20ch;
  font-size: var(--text-3xl);
}

.section-intro {
  max-width: 38rem;
  margin-top: var(--space-4);
  color: var(--muted-on-dark);
  font-size: var(--text-lg);
}

/* Diamond bullets */

.diamond-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
}

.diamond-list li {
  position: relative;
  padding-left: var(--space-6);
}

.diamond-list li::before {
  content: "";
  position: absolute;
  left: var(--space-1);
  top: 0.6em;
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--blue);
  transform: rotate(45deg);
}

/* Middle-dot separated list (skills, tags) */

.dot-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) 0;
  list-style: none;
  padding: 0;
}

.dot-list li:not(:last-child)::after {
  content: "\00B7";
  margin-inline: var(--space-2);
  color: var(--blue-light);
  font-weight: 700;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
}

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-hover);
}

.btn--ghost {
  border-color: var(--blue);
  color: var(--text-on-dark);
}

.btn--ghost:hover {
  background: var(--blue-tint);
  border-color: var(--blue-light);
}

.btn--sm {
  min-height: 2.5rem;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

/* Tag pills */

.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--black-raised);
  border-radius: var(--radius-pill);
  color: var(--muted-on-dark);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
}

/* Corner shapes from the CV: large rotated squares half outside the edge */

.corner {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: var(--corner-size, 22rem);
  aspect-ratio: 1;
  transform: rotate(45deg);
}

.corner--slate {
  background: var(--slate);
  opacity: 0.4;
}

.corner--blue {
  background: var(--blue);
  opacity: 0.35;
}

.corner--raised {
  background: var(--navy-deep);
}

.corner--dot {
  --corner-size: 1.25rem;
  background: var(--blue);
}

/* Reveal on scroll, only once main.js is running and motion is allowed */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(var(--space-6));
    transition:
      opacity 600ms var(--ease-out),
      transform 600ms var(--ease-out);
  }

  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
