/* gsillis.dev — portfolio
   Dark, Apple-inspired layout. System font (SF Pro on Apple devices), no web fonts.
   The site's CSP allows only same-origin styles, so every style lives here (no inline styles). */

:root {
  color-scheme: dark;

  --bg: #0a0914;
  --bg-alt: #100e1f;
  --surface: #15132a;
  --surface-alt: #1a1730;
  --surface-strong: #1b1836;
  --line: #2b2747;
  --line-strong: #3a3366;
  --text: #ece8f3;
  --text-soft: #cfcbe0;
  --muted: #a19db8;
  --accent: #8fa8ff;
  --purple: #b79cff;
  --gold: #ffc93f;
  --void: #07061a;

  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Helvetica Neue", sans-serif;
  --nav-h: 52px;
  --pill: 980px;
  --gutter: 22px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
.hero-lead,
.section-lead {
  text-wrap: balance;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: var(--pill);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 10px;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
}

.container--wide {
  max-width: 1120px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 9, 20, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(236, 232, 243, 0.08);
}

.nav-inner {
  max-width: 1024px;
  min-height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
}

.nav-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-name:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text);
  padding: 15px 0;
}

.nav-links .nav-lang {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 500;
}

.nav-links .nav-lang:hover {
  text-decoration: none;
  border-color: var(--line-strong);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle .icon-close {
  display: none;
}

.nav.is-open .nav-toggle .icon-open {
  display: none;
}

.nav.is-open .nav-toggle .icon-close {
  display: block;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--pill);
  font-size: 17px;
  font-weight: 600;
  transition: filter 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--light {
  padding: 0 24px;
  background: var(--text);
  color: var(--bg);
}

.btn--outline {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
}

.btn--outline:hover {
  filter: none;
  border-color: var(--line-strong);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  font-size: 17px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 136px var(--gutter) 128px;
  text-align: center;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 680px;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.hero-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 32px;
}

/* ---------- Sections ---------- */

.section {
  padding: 112px var(--gutter);
}

.section--alt {
  background: var(--bg-alt);
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head--center {
  text-align: center;
}

.section-title {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 21px;
  line-height: 1.3;
  color: var(--muted);
}

.section-lead--wide {
  max-width: 720px;
  line-height: 1.4;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

/* ---------- App tile ---------- */

.app-tile {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--void) url("stars.png") 0 0 / 402px 874px repeat;
  image-rendering: pixelated;
  color: var(--text);
}

.app-tile-body {
  flex: 1 1 420px;
  min-width: 0;
  padding: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 0 0 1px rgba(236, 232, 243, 0.14);
  image-rendering: auto;
}

.app-tile .eyebrow {
  margin-top: 8px;
  color: var(--gold);
}

.app-name {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-tagline {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.app-description {
  max-width: 460px;
  line-height: 1.5;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 6px 14px;
  border: 1px solid rgba(236, 232, 243, 0.2);
  border-radius: var(--pill);
  font-size: 13px;
  color: var(--text-soft);
}

.app-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.app-tile-art {
  flex: 1 1 360px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-ship {
  width: 192px;
  height: 288px;
  image-rendering: pixelated;
}

/* ---------- Experience ---------- */

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.exp-card {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 56px;
}

.exp-story {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-title {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.exp-lead {
  font-size: 19px;
  line-height: 1.5;
}

.exp-text {
  line-height: 1.55;
  color: var(--text-soft);
}

.exp-duties {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-duties .eyebrow {
  color: var(--muted);
}

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

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-strong);
  line-height: 1.4;
}

.checklist svg {
  flex: none;
  color: var(--accent);
}

.edu {
  grid-column: 1 / -1;
  padding: 22px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.edu-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.edu-main svg {
  flex: none;
  color: var(--accent);
}

.edu-school {
  color: var(--muted);
}

.tag {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  font-size: 13px;
  color: var(--purple);
}

/* ---------- Skills ---------- */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill {
  padding: 32px;
  border-radius: 20px;
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill svg {
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.skill-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.skill h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.skill p {
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
  padding: 128px var(--gutter);
  text-align: center;
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-email {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-links {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 0 var(--gutter);
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a {
  color: var(--text-soft);
  padding: 6px 0;
}

/* ---------- iPhone and small screens ---------- */

@media (max-width: 734px) {
  :root {
    --nav-h: 48px;
  }

  .nav-inner {
    padding: 0 20px 0 16px;
  }

  .nav-name {
    font-size: 17px;
  }

  /* With JavaScript the links collapse behind the menu button;
     without it they simply wrap under the name. */
  .nav--js .nav-toggle {
    display: flex;
  }

  .nav--js .nav-links {
    display: none;
  }

  .nav--js.is-open .nav-links {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0 12px;
  }

  .nav--js.is-open .nav-links a {
    padding: 12px 0;
    font-size: 17px;
    border-top: 1px solid rgba(236, 232, 243, 0.08);
  }

  .nav--js.is-open .nav-links .nav-lang {
    align-self: flex-start;
    margin-top: 12px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    font-size: 13px;
  }

  .hero {
    padding: 88px 24px 80px;
  }

  .hero-inner {
    gap: 20px;
  }

  .hero-lead {
    font-size: 21px;
  }

  .hero-actions {
    margin-top: 8px;
    gap: 8px 28px;
  }

  .section {
    padding: 72px 16px;
  }

  .section-body {
    gap: 32px;
  }

  .section-head {
    gap: 8px;
    padding: 0 8px;
  }

  .section-title {
    font-size: 40px;
    line-height: 1.08;
  }

  .section-lead {
    font-size: 19px;
    line-height: 1.35;
  }

  .section-lead--wide {
    line-height: 1.4;
  }

  .app-tile {
    flex-direction: column;
    border-radius: 28px;
  }

  .app-tile-art {
    order: -1;
    flex: none;
    min-height: 0;
    height: 300px;
  }

  .app-ship {
    width: 128px;
    height: 192px;
  }

  .app-tile-body {
    flex: none;
    padding: 4px 24px 36px;
    gap: 14px;
  }

  .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .app-tile .eyebrow {
    margin-top: 6px;
    font-size: 12px;
  }

  .app-name {
    font-size: 34px;
    line-height: 1.1;
  }

  .app-tagline {
    font-size: 21px;
  }

  .chips li {
    padding: 6px 12px;
  }

  .app-actions {
    align-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
  }

  .app-actions .btn {
    min-height: 50px;
  }

  .app-actions .link-more {
    justify-content: center;
    min-height: 44px;
  }

  .exp-grid {
    gap: 12px;
  }

  .exp-card {
    padding: 28px 24px;
    border-radius: 24px;
    gap: 20px;
  }

  .exp-story {
    flex-basis: auto;
    gap: 12px;
  }

  .exp-title {
    margin-bottom: 4px;
    font-size: 26px;
    line-height: 1.18;
  }

  .exp-lead {
    font-size: 17px;
  }

  .exp-text {
    font-size: 16px;
  }

  .exp-duties {
    flex-basis: auto;
    gap: 12px;
  }

  .exp-duties .eyebrow {
    font-size: 12px;
  }

  .checklist li {
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    font-size: 16px;
  }

  .checklist svg {
    margin-top: 2px;
  }

  .edu {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .edu-main {
    gap: 14px;
    font-size: 16px;
  }

  .tag {
    padding: 5px 12px;
    font-size: 12px;
  }

  .skills {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .skill {
    padding: 20px;
    border-radius: 18px;
    flex-direction: row;
    align-items: flex-start;
  }

  .skill svg {
    width: 28px;
    height: 28px;
  }

  .skill-copy {
    gap: 4px;
  }

  .skill h3 {
    font-size: 19px;
  }

  .skill p {
    font-size: 16px;
    line-height: 1.45;
  }

  .contact {
    padding: 80px 24px;
  }

  .contact-inner {
    gap: 16px;
  }

  .contact-email {
    padding: 10px 0;
    font-size: 22px;
  }

  .contact-links {
    gap: 10px;
    margin-top: 8px;
  }

  .footer {
    padding: 0 24px;
  }

  .footer-inner {
    padding: 20px 0 32px;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
  }
}
