:root {
  --fluor-green: #adff16;
  --klein-blue: #0f38f1;
  --line-grey: #dad9d6;
  --bg: #ffffff;
  --text: var(--klein-blue);
  --topbar-height: 96px;
  --topbar-padding-bottom: 8px;
  --gap-header-content: 96px;
  --gap-section: 63px;
  --page-gutter: 48px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  margin-bottom: 0;
  background: var(--fluor-green);
}

.topbar-inner {
  width: 100%;
  margin: 0;
  height: var(--topbar-height);
  padding: 0 var(--page-gutter) var(--topbar-padding-bottom);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.topbar-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 180ms ease;
}

.topbar-link.h1:hover,
.topbar-link.h1:focus-visible {
  color: #000000;
}

.topbar .h1 {
  margin: 0;
  line-height: 1;
  min-width: 0;
}

.topbar-link.h1 {
  flex: 1 1 auto;
}

.topbar .ghost-btn--large {
  flex-shrink: 0;
}

.page {
  width: 100%;
  margin: 0;
  padding: var(--gap-header-content) var(--page-gutter) 80px;
}

.h1 {
  font-size: 40px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  margin: 0;
}


.body-lg {
  font-size: 32px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  margin: 0;
}

.body-sm {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

.accordion {
  border-top: none;
}

.acc-item {
  border-bottom: none;
}

.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-grey);
  padding: 0;
}

.acc-header:has([data-acc-trigger][aria-expanded="true"]) {
  border-bottom-color: var(--klein-blue);
}

.acc-item + .acc-item .acc-header {
  padding-top: var(--gap-section);
}

.acc-title-btn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  text-align: left;
}

.acc-title-btn:focus-visible {
  outline: 2px solid var(--klein-blue);
  outline-offset: 6px;
}

.acc-meta {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  opacity: 0.9;
}


.acc-panel {
  padding: 0 0 20px;
}

.acc-panel-inner {
  padding: 0 0 8px;
  display: grid;
  gap: 16px;
}

.acc-panel-inner > .body-sm,
.acc-panel-inner .api-intro,
.acc-panel-inner .api-kicker,
.acc-panel-inner .api-features,
.acc-panel-inner .api-notes,
.acc-panel-inner .apps-projects,
.acc-panel-inner .books-intro,
.acc-panel-inner .magazines-intro,
.acc-panel-inner .branding-intro,
.acc-panel-inner .apps-intro,
.acc-panel-inner .prototyping-intro,
.acc-panel-inner .design-thinking-intro,
.acc-panel-inner .design-thinking-portfolio-title,
.acc-panel-inner .design-thinking-callout {
  max-width: 920px;
  width: 100%;
}

.design-thinking-portfolio-title {
  margin: 32px 0 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.design-thinking-callout {
  margin: 0;
  padding: 20px 24px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  background: rgba(15, 56, 241, 0.08);
  border-radius: 4px;
}

.design-thinking-callout-year {
  font-style: normal;
  font-weight: 700;
}

.acc-panel-inner--api,
.acc-panel-inner--books,
.acc-panel-inner--magazines,
.acc-panel-inner--branding,
.acc-panel-inner--apps,
.acc-panel-inner--prototyping,
.acc-panel-inner--design-thinking {
  padding-top: 40px;
}

.acc-panel-inner--prototyping .apps-projects {
  margin-top: 16px;
}

.acc-panel-inner--design-thinking .apps-projects {
  gap: 48px;
  max-width: 1120px;
}

.design-thinking-pair {
  display: grid;
  gap: 24px;
}

.design-thinking-pair-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 8px;
}

.design-thinking-pair-row .apps-project {
  display: contents;
}

.design-thinking-pair-row .apps-project:nth-child(1) .apps-project-thumb {
  grid-column: 1;
  grid-row: 1;
}

.design-thinking-pair-row .apps-project:nth-child(1) .ghost-btn {
  grid-column: 1;
  grid-row: 2;
}

.design-thinking-pair-row .apps-project:nth-child(2) .apps-project-thumb {
  grid-column: 2;
  grid-row: 1;
}

.design-thinking-pair-row .apps-project:nth-child(2) .ghost-btn {
  grid-column: 2;
  grid-row: 2;
}

.design-thinking-pair-row .apps-project-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 721;
  overflow: hidden;
  background: var(--white);
}

.design-thinking-pair-row .apps-project-thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: top center;
}

.api-intro {
  margin-bottom: -4px;
}

.api-kicker {
  margin-bottom: -2px;
}

.api-features {
  display: grid;
  gap: 2px;
}

.apps-projects {
  display: grid;
  gap: 24px;
}

.apps-project {
  display: grid;
  gap: 8px;
}

.apps-project-thumb {
  display: block;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
  cursor: pointer;
}

.apps-project-thumb--overlay {
  position: relative;
}

.apps-project-thumb--overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.apps-project-thumb img {
  display: block;
  width: 544px;
  max-width: 100%;
  height: auto;
}

.acc-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.api-gallery {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 12px;
  align-items: start;
}

.api-gallery-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.api-thumb {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(15, 56, 241, 0.15);
}

.api-notes {
  display: grid;
  gap: 2px;
}

.api-notes-footnotes {
  display: grid;
  gap: 2px;
  padding-top: 24px;
}

.books-intro-link,
.magazines-intro-link,
.branding-intro-link {
  margin-left: 0.35em;
  vertical-align: baseline;
}

.books-intro,
.magazines-intro,
.branding-intro,
.apps-intro {
  margin: 0;
}

.books-preview-gallery {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(10, minmax(45px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.books-preview-link {
  display: block;
  height: 100%;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.books-preview-link img {
  width: 100%;
  height: auto;
  display: block;
}

.books-preview-link--stretch {
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.books-preview-link--tan-famosos {
  background: #b49f72;
}

.books-preview-link--cover-fill {
  display: block;
  overflow: hidden;
}

.books-preview-link--cover-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.books-preview-link--overlay-6::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.shot {
  margin: 0;
  width: 480px;
  max-width: 100%;
}

.shot-img {
  width: 480px;
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(15, 56, 241, 0.2);
}

.tiny-link {
  color: inherit;
  text-decoration: none;
  width: fit-content;
}

.tiny-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Ghost buttons (Figma) ───────────────────────────────────────────────────
 *
 * ghost-btn--large  →  "Ghost Large"   (e.g. use it, CV)
 *   Text: 32px / 300 / Helvetica Neue
 *   Icon: GO-arrow 24px
 *   Gap:  12px
 *
 * ghost-btn--small  →  "Ghost Small"   (e.g. GO)
 *   Text: 16px / 400 / line-height 24px
 *   Icon: GO-arrow 16px
 *   Gap:  4px
 *
 * States (both): default #0F38F1 · hover/pressed #000000 (text + icon)
 * ─────────────────────────────────────────────────────────────────────────── */

.ghost-label {
  display: inline-block;
}

.ghost-icon {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: var(--klein-blue);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  cursor: pointer;
  transition: color 180ms ease;
}

.ghost-btn .ghost-icon {
  transition: filter 180ms ease;
}

.ghost-btn:hover,
.ghost-btn:active,
.ghost-btn:focus-visible {
  color: #000000;
}

.ghost-btn:hover .ghost-icon,
.ghost-btn:active .ghost-icon,
.ghost-btn:focus-visible .ghost-icon {
  filter: brightness(0);
}

.ghost-btn:focus-visible {
  outline: 1px dashed currentColor;
  outline-offset: 3px;
}

/* Ghost Large — use it, CV */
.ghost-btn--large {
  gap: 12px;
  font-size: 32px;
  font-weight: 300;
  line-height: normal;
}

.ghost-btn--large .ghost-icon {
  width: 24px;
  height: 24px;
}

.ghost-icon--download {
  object-fit: contain;
}

/* Ghost Small — GO */
.ghost-btn--small {
  gap: 4px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.ghost-btn--small .ghost-icon {
  width: 16px;
  height: 16px;
}

/* Mobile / narrow — desktop spacing tokens stay on wider screens */
@media (max-width: 768px) {
  :root {
    --topbar-height: 80px;
    --gap-header-content: 64px;
    --gap-section: 50px;
  }

  .topbar .h1 {
    font-size: 28px;
  }

  .topbar .ghost-btn--large {
    font-size: 28px;
  }

  .topbar .ghost-btn--large .ghost-icon {
    width: 20px;
    height: 20px;
  }

  .acc-title-btn {
    font-size: 28px;
    line-height: 1.1;
  }

  .acc-header {
    align-items: flex-end;
    gap: 8px;
  }

  .acc-meta .ghost-btn--large {
    font-size: 24px;
    gap: 8px;
  }

  .acc-meta .ghost-btn--large .ghost-icon {
    width: 20px;
    height: 20px;
  }

  .acc-panel-inner--api,
  .acc-panel-inner--books,
  .acc-panel-inner--magazines,
  .acc-panel-inner--branding,
  .acc-panel-inner--apps,
  .acc-panel-inner--prototyping,
  .acc-panel-inner--design-thinking {
    padding-top: 32px;
  }

  .acc-panel-inner {
    gap: 12px;
  }

  .api-gallery {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 10px;
  }

  .books-preview-gallery {
    grid-template-columns: repeat(6, minmax(50px, 1fr));
    gap: 10px;
  }

  .design-thinking-pair-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .design-thinking-pair-row .apps-project {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 576px) {
  :root {
    --page-gutter: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --gap-header-content: 48px;
    --gap-section: 38px;
    --page-gutter: 12px;
  }

  .topbar .h1 {
    font-size: 24px;
  }

  .topbar .ghost-btn--large {
    font-size: 24px;
  }

  .acc-title-btn {
    font-size: 24px;
  }

  .acc-meta .ghost-btn--large {
    font-size: 20px;
    gap: 6px;
  }

  .acc-meta .ghost-btn--large .ghost-icon {
    width: 16px;
    height: 16px;
  }

  .api-gallery {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .books-preview-gallery {
    grid-template-columns: repeat(4, minmax(60px, 1fr));
  }
}
