:root {
  /* Pizza. */
  --pizza: #ff4600;
  --pizza-dark: #da4101;
  --pizza-light: #ff5303;

  /* Burger. */
  --burger: #ff8914;
  --burger-dark: #f66e0e;
  --burger-light: #ffae15;

  /* Dragon. */
  --dragon: #392f2f;

  /* Spectrum. */
  --pxn-black: #070707;
  --pxn-dark: #353535;
  --pxn-medium: #616161;
  --pxn-light: #a3a3a3;
  --pxn-white: #e6e6e6;

  /* Fonts. */
  --font-normal: "Alegreya Sans", Verdana, sans-serif;
  --font-title: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  --font-code: Menlo, Courier, monospace;
}

html {
  color: var(--pxn-black);
  background-color: var(--pxn-dark);
  font-family: var(--font-normal);
  font-size: 62.5%;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

html, body,
h1, h2, h3, h4, h5, h6,
ul, ol, dl, p, hgroup, dd, figure, pre, table, fieldset, hr {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
  font-weight: normal;
  font-style: normal;
}

ul { list-style: none; }
a { text-decoration: none; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }

pre, code, kbd, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

sub, sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

::selection {
  color: white;
  background: var(--burger);
}

.home, .logo, .navbar, .page-footer,
.block__title, .member__title, .studio__description, .tutorial-footer, .intent-button,
.entry__title, .entry__subtitle, .entry__metadata, .entry__footer,
.product-hero__title, .product-hero__subtitle, .product-hero__types, .product-hero__links,
.product-item__title, .product-item__link,
.mixed-data :is(h1, h2, h3, th) {
  font-family: var(--font-title);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

.archives__link, .product-item__link,
:is(.mixed-data, .legal, .member, .navbar__item, .not-found__content, .product-hero__links, .promotion, .tutorial-header) a {
  color: var(--pizza);
  text-decoration: none;
}

.archives__link:hover, .product-item__link:hover,
:is(.mixed-data, .legal, .member, .navbar__item, .not-found__content, .product-hero__links, .promotion, .tutorial-header) a:hover {
  color: var(--pizza-light);
  text-decoration: underline;
}

.archives__link:active, .product-item__link:active,
:is(.mixed-data, .legal, .member, .navbar__item, .not-found__content, .product-hero__links, .promotion, .tutorial-header) a:active {
  color: var(--pizza-dark);
}

.mixed-data {
  font-size: 1.8rem;

  & :is(h1, h2, h3, h4, h5, h6, hgroup, ul, ol, dd, p, figure, pre, table, fieldset, hr) {
    margin-bottom: 1.6rem;
  }

  & h1 {
    padding-top: 32px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--pxn-white);
    font-size: 3rem;
  }

  & h2 {
    padding-top: 24px;
    font-size: 2.6rem;
    font-weight: bold;
  }

  & h3 {
    padding-top: 16px;
    color: var(--pxn-medium);
  }

  & :is(ul, ol) { padding-left: 3.2rem; }
  & ul { list-style: circle; }
  & strong { font-weight: bold; }
  & em { font-style: italic; }

  & img,
  & iframe {
    display: block;
    max-width: 100%;
    margin: 0 auto;
  }

  & iframe { margin-bottom: 1.6rem; }

  & figure figcaption {
    padding-top: 1.6rem;
    font-style: italic;
    text-align: center;
  }

  & table {
    width: 100%;
    border-collapse: collapse;
  }

  & tr:nth-child(even) { background-color: #f0f0f0; }

  & :is(th, td) {
    height: 40px;
    text-align: center;
  }

  & th {
    color: white;
    background-color: var(--pizza);
    border: 1px solid #f54300;
    font-weight: bold;
  }

  & td {
    border: 1px solid var(--pxn-white);
    font-size: 1.8rem;
  }

  & .highlight {
    margin-left: -1.6rem;
    margin-right: -1.6rem;
    padding: 16px;
    background: #201a1a;
    border-radius: 2px;
    font-size: 1.4rem;
    line-height: 1.3;
    white-space: pre-wrap;
  }

  & .highlight code {
    padding: 0;
    background: none;
    border: none;
    font-size: 1.4rem;
  }

  & code {
    padding: 3px;
    color: var(--pizza-dark);
    background: rgba(240, 240, 240, 0.4);
    border: 1px solid rgba(163, 163, 163, 0.4);
    border-radius: 2px;
    font-family: var(--font-code);
    font-size: 1.3rem;
  }

  & blockquote {
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    color: var(--pxn-medium);
    border-left: 8px solid var(--pxn-white);
    font-style: italic;
  }

  & hr {
    width: 50%;
    margin: 0 auto 3.2rem;
    border: none;
    border-top: 1px solid var(--pxn-white);
  }

  & [data-block] {
    display: block;
    margin-bottom: 1.6rem;
    padding: 12px 16px;
    background: var(--pxn-white);
    border-radius: 2px;
    font-size: 1.6rem;

    & > p:last-child { margin-bottom: 0; }

    & code {
      padding: 2px 3px;
      font-size: 1.2rem;
    }
  }

  & [data-block*="info"]    { background-color: #d8d8d8; }
  & [data-block*="tip"]     { background-color: #8bd259; }
  & [data-block*="note"]    { background-color: #73c1ec; }
  & [data-block*="warning"] { background-color: #f5d87d; }
  & [data-block*="danger"]  { background-color: #f67b64; }
}

.page { background: white; }

.banner {
  display: table;
  width: 100%;
  height: 240px;
  background: url("/static/images/header/header_compact.jpg") no-repeat center bottom / cover;
}

.banner__cell {
  display: table-cell;
  vertical-align: middle;
}

.navbar {
  box-sizing: border-box;
  min-height: 40px;
  padding: 6px 1rem 5px;
  background: var(--dragon);
  font-size: 2rem;
  line-height: 1.45;
  text-align: center;
}

.navbar__item {
  display: inline-block;
  padding: 0 7px;
}

.navbar__item a { color: white; }
.navbar__item a.is-active { color: var(--burger); }

.navbar--home {
  width: 100%;
  height: 32px;
  padding: 2px 0;
  background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 512px) {
  .navbar {
    padding: 8px 0;
    font-size: 1.6rem;
  }

  .navbar--home { padding: 5px 0; }
  .navbar__item { padding: 0 4px; }
}

.logo { text-align: center; }

.logo__link {
  display: inline-block;
  color: white;
}

.logo__image img {
  width: 110px;
  height: auto;
  transition: all 300ms ease-out;
}

.logo__image--big img { width: 200px; }

.logo__name {
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  font-size: 4.8rem;
  transition: all 250ms ease-out;
}

.logo__link:hover .logo__image img { transform: rotateZ(360deg); }

.logo__link:hover .logo__name {
  color: var(--dragon);
  text-shadow: none;
  transform: translateY(2px) scale(1.2);
}

.logo--home .logo__name { margin-bottom: 16px; }

@media (max-height: 900px) {
  .logo--home .logo__name { font-size: 3.2rem; }
  .logo--home .logo__image img { width: 140px; }
}

.page-content {
  max-width: 600px;
  min-height: 400px;
  margin: 0 auto;
  padding: 80px 0;
}

@media (max-width: 640px) {
  .page-content { padding: 32px 1.6rem 40px; }
}

.page-footer {
  display: table;
  box-sizing: border-box;
  width: 100%;
  height: 64px;
  padding: 0 16px;
  color: white;
  background: var(--pxn-dark);
}

.page-footer__item {
  display: table-cell;
  width: 50%;
  vertical-align: middle;
}

.copyright p:first-child { font-size: 1.3rem; }
.copyright p:last-child { font-size: 1.6rem; }

.social {
  text-align: right;

  & img {
    vertical-align: middle;
    transition: all 150ms ease-out;
  }

  & a:hover img { transform: scale(1.1); }

  & .facebook,
  & .twitter {
    width: auto;
    height: 20px;
  }

  & .facebook { margin-right: 16px; }
  & .twitter { margin-right: 32px; }

  & .pxn {
    width: auto;
    height: 32px;
  }
}

.home {
  height: 100%;
  background: var(--dragon) url("/static/images/header/home.jpg") no-repeat center center fixed;
  background-size: cover;
}

.home__header { padding-top: 32px; }
.home__content { padding: 40px 32px 0; }
.home__list { text-align: center; }

.home__project {
  display: inline-block;
  margin: 8px;
}

.home__footer {
  padding-top: 64px;
  padding-bottom: 24px;
}

.home__tagline {
  margin-bottom: 16px;
  color: white;
  font-size: 2.4rem;
  text-align: center;
}

@media (min-height: 750px) and (min-width: 885px) {
  .home__footer {
    position: fixed;
    bottom: 0;
    width: 100%;
  }
}

@media (max-height: 800px) {
  .home__content { padding-top: 16px; }
  .home__footer { padding-top: 48px; }
}

.home-card {
  position: relative;
  width: 160px;
  height: 320px;
}

.home-card__link { display: block; }

.home-card__shadow {
  position: absolute;
  bottom: 2%;
  left: 10%;
  right: 10%;
  height: 85%;
  color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.5), 0 5px 40px;
}

.home-card__image {
  position: absolute;
  width: 100%;
  height: 100%;
  background: no-repeat center / cover;
  border-radius: 2px;
}

.home-card__shadow,
.home-card__image {
  transition: all 600ms cubic-bezier(0.19, 1, 0.22, 1);
}

.home-card:hover .home-card__shadow { box-shadow: 0 5px 60px rgba(7, 7, 7, 0.5), 0 5px 60px; }
.home-card:hover .home-card__image { transform: translateY(-10px) scale(1.05); }

.home-card__text {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 8px;
  box-sizing: border-box;
  padding-left: 8px;
  color: white;
  background: linear-gradient(to right, rgba(7, 7, 7, 0.5), rgba(7, 7, 7, 0));
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.45;
  text-align: left;
}

.home-card__text-above {
  display: block;
  margin-bottom: -10px;
  font-weight: normal;
}

.home-card--cosmo-cargo .home-card__image            { background-image: url("/static/images/products/cosmo-cargo/card.jpg"); }
.home-card--cthuloot .home-card__image               { background-image: url("/static/images/products/cthuloot/card.jpg"); }
.home-card--flipon .home-card__image                 { background-image: url("/static/images/products/flipon/card.jpg"); }
.home-card--steredenn .home-card__image              { background-image: url("/static/images/products/steredenn/card.jpg"); }
.home-card--steredenn-binary-stars .home-card__image { background-image: url("/static/images/products/steredenn-binary-stars/card.jpg"); }

@media (max-height: 850px) {
  .home-card { width: 138px; height: 256px; }
  .home-card__text { font-size: 1.8rem; }
}

@media (min-height: 1040px) {
  .home-card { width: 172px; height: 400px; }
  .home-card__text { font-size: 2.2rem; }
}

@media (min-height: 1200px) {
  .home-card { width: 188px; height: 440px; }
}

@media (max-width: 500px) {
  .home-card { width: 200px; height: 200px; }
}

.basic-grid .row { display: flow-root; }

.basic-grid .col {
  float: left;
  box-sizing: border-box;
  width: 100%;
}

.trilogy {
  display: table;
  width: 100%;
}

.trilogy__pane {
  display: table-cell;
  width: 33.33%;
  text-align: center;
  vertical-align: middle;
}

.trilogy__pane--left { text-align: left; }
.trilogy__pane--right { text-align: right; }

.archives { margin-bottom: 1.6rem; }
.archives__item { margin-bottom: 4px; }

.archives__link {
  display: inline-block;
  font-size: 2.2rem;
}

.archives__date {
  display: inline-block;
  width: 104px;
  font-family: var(--font-code);
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: -1px;
  word-spacing: -1px;
}

@media (max-width: 640px) {
  .archives__item { margin-bottom: 1.6rem; }

  .archives__date {
    display: block;
    width: auto;
  }
}

.block { margin-bottom: 40px; }
.block:last-of-type { margin-bottom: 0; }

.block__title {
  margin-bottom: 24px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--pxn-white);
  font-size: 4rem;
  font-weight: 300;
}

.block__title--plain {
  margin-bottom: 8px;
  border-bottom: none;
}

.entry {
  position: relative;
  margin-bottom: 128px;
}

.entry__header { margin-bottom: 40px; }

.entry__title {
  font-size: 3.2rem;

  & a {
    display: block;
    color: var(--pizza);
    transition: all 250ms ease-out;
  }

  & a:hover {
    padding-left: 5px;
    color: white;
    background: var(--pizza);
  }
}

.entry__subtitle {
  padding-left: 1px;
  color: var(--pxn-medium);
  font-size: 1.8rem;
}

.entry__metadata {
  position: absolute;
  top: 94px;
  left: -128px;
  width: 128px;
  text-align: center;
}

.entry__author {
  & img {
    width: 64px;
    height: auto;
    margin-bottom: 8px;
    border-radius: 2px;
  }

  & figcaption { font-size: 1.6rem; }
  & a { color: var(--burger); }
  & a:hover { color: var(--burger-light); }
  & a:active { color: var(--burger-dark); }
}

.entry__date {
  color: var(--pxn-light);
  font-size: 1.4rem;
}

.entry__content { margin-bottom: 48px; }

.entry__footer {
  padding-top: 8px;
  color: var(--pxn-light);
  border-top: 1px solid var(--pxn-white);
  font-size: 1.2rem;

  & img {
    width: 16px;
    height: auto;
  }
}

@media (max-width: 840px) {
  .entry__header { margin-bottom: 1.6rem; }

  .entry__metadata {
    display: flow-root;
    position: static;
    width: auto;
    margin-bottom: 24px;
    padding: 8px 0;
    border-top: 1px solid var(--pxn-white);
    border-bottom: 1px solid var(--pxn-white);
    text-align: left;
  }

  .entry__author img {
    float: left;
    width: 40px;
    margin: 0 1.6rem 0 0;
  }

  .entry__author figcaption { font-size: 2.1rem; }
  .entry__date { font-size: 1.6rem; }
}

@media (min-width: 1040px) {
  .entry__metadata {
    left: -200px;
    width: 200px;
  }

  .entry__author img { width: 88px; }
  .entry__author figcaption { font-size: 2.2rem; }
  .entry__date { font-size: 1.8rem; }
}

.footnotes {
  margin-top: 8rem;
  padding-top: 2.4rem;
  border-top: 1px solid #f5f5f5;
  font-size: 0.8em;
}

.intent-button {
  display: block;
  max-width: 80%;
  margin: 0 auto;
  padding: 24px;
  color: var(--pxn-dark) !important;
  background-color: var(--pxn-light);
  border-radius: 4px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
  font-size: 2.4rem;
  text-align: center;
  text-decoration: none !important;
  transition: all 300ms cubic-bezier(0.24, 0.8, 0.24, 1);

  & :is(strong, em) {
    display: block;
    color: white !important;
    font-size: 3.6rem;
    font-weight: bold;
  }

  &:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px) scale(1.05) translateZ(0);
  }
}

.intent-button--small {
  max-width: 50%;
  padding: 12px 16px;
  font-size: 2rem;

  & :is(strong, em) { font-size: 2.6rem; }
}

.intent-button--spacer     { margin-bottom: 2.4rem; }
.intent-button--bulletml   { background: #00a7e6; }
.intent-button--greenlight { background: #c5d400; }
.intent-button--services   { background: var(--pizza-light); }

.legal {
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--pxn-white);
  font-family: var(--font-code);
  font-size: 1.2rem;

  & .primary {
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: bold;
  }
}

.legal__data,
.legal__contact {
  margin-bottom: 1.6rem;
}

.member {
  line-height: normal;
  text-align: center;
}

.member__avatar {
  width: 216px;
  height: auto;
  margin-bottom: 24px;
  border-radius: 1000px;
}

.member__title {
  margin-bottom: 8px;
  font-size: 3.2rem;
}

.member__social { font-size: 1.8rem; }
.member__item { margin-bottom: 2px; }

.member__item a {
  padding-left: 28px;
  background: no-repeat left center / 20px;
}

.member__item--site a    { background-image: url("/static/images/icons/member-site.png"); }
.member__item--twitter a { background-image: url("/static/images/icons/member-twitter.png"); }

.member__item--linkedin a {
  padding-left: 24px;
  background-image: url("/static/images/icons/member-linkedin.png");
  background-position: left top;
}

.studio { margin-bottom: 80px; }

.studio__description {
  margin-bottom: 32px;
  font-size: 2.4rem;
  text-align: center;
}

.studio__members .col { width: 50%; }

@media (max-width: 512px) {
  .studio__members .col {
    width: 100%;
    margin-bottom: 32px;
  }
}

.not-found {
  color: white;
  font-size: 4rem;
  text-align: center;
}

.not-found__title { padding-top: 40px; }

.not-found__content {
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  font-size: 3rem;
}

.pager {
  display: table;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  color: rgba(7, 7, 7, 0.5);
  background: var(--burger);
  border-radius: 2px;
  text-align: center;
}

.pager__previous,
.pager__next,
.pager__all {
  display: table-cell;
  width: 33.33%;
  font-size: 1.6rem;
  vertical-align: middle;
}

.pager__all {
  border-right: 1px solid var(--burger-dark);
  border-left: 1px solid var(--burger-dark);
}

.pager__all--empty { border: none; }

.pager__link {
  display: block;
  color: white;
  line-height: 40px;
  transition: background 200ms ease-out;

  & span {
    border-bottom: 1px solid var(--burger);
    transition: border 200ms ease-out;
  }

  &:hover { background: rgba(246, 110, 14, 0.5); }
  &:hover span { border-bottom-color: white; }
}

.product-hero { margin-bottom: 80px; }

.product-hero__image-wrapper,
.product-hero__header {
  margin-bottom: 24px;
}

.product-hero__image,
.product-item__image {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.product-hero__image {
  max-width: 99%;
  max-height: 350px;
  margin: 0 auto;
}

.product-hero__title,
.product-hero__subtitle {
  text-align: center;
}

.product-hero__title {
  font-size: 4.8rem;

  & a {
    display: block;
    color: var(--pizza);
    background: white;
    border-radius: 2px;
    transition: all 200ms ease-in;
  }

  & a:hover {
    color: white;
    background: var(--pizza);
  }
}

.product-hero__subtitle {
  color: var(--pxn-light);
  font-size: 3.2rem;
}

.product-hero__types { text-align: right; }

.product-hero__type {
  padding: 0.35rem 0.5rem 0.25rem;
  color: white;
  background: var(--pxn-light);
  border-radius: 2px;
  font-size: 1.35rem;
  font-weight: bold;

  & + .product-hero__type { margin-left: 4px; }
}

.product-hero__content {
  box-sizing: border-box;
  margin-bottom: 24px;
  margin-left: -32px;
  padding-left: 24px;
  border-left: 8px solid var(--pxn-white);
}

.product-hero__links {
  margin-bottom: 1rem;
  font-size: 2.4rem;
  text-align: right;

  & a {
    padding-right: 28px;
    background: url("/static/images/icons/product-website.png") no-repeat right center / 20px;
  }

  & a[href*="youtu"]    { background-image: url("/static/images/icons/product-trailer.png"); }
  & a[href*="press"]    { background-image: url("/static/images/icons/product-press.png"); }
  & a[href*="download"] { background-image: url("/static/images/icons/product-download.png"); }
}

.product-item {
  display: flow-root;
  margin-bottom: 40px;
}

.product-item__image-wrapper {
  float: left;
  margin-right: 24px;
}

.product-item__image {
  width: 128px;
  height: auto;
}

.product-item__title {
  margin-bottom: 12px;
  font-size: 2.4rem;

  & a {
    color: inherit;
    transition: all 250ms ease-out;
  }

  & a:hover { color: var(--pizza); }
}

.product-item__type {
  position: relative;
  top: -3px;
  margin-left: 1px;
  padding: 0.25rem 0.5rem 0.1rem;
  color: white;
  background: var(--burger-light);
  border-radius: 2px;
  font-size: 1.5rem;
  font-weight: bold;

  &:first-of-type { margin-left: 5px; }
}

.product-item__content { font-size: 1.6rem; }

.product-item__link {
  display: block;
  padding-right: 20px;
  background: url("/static/images/icons/product-more.png") no-repeat right 2px / 20px;
  font-size: 2.4rem;
  text-align: right;
}

@media (max-width: 450px) {
  .product-item {
    margin-bottom: 64px;
    text-align: center;
  }

  .product-item__image-wrapper {
    float: none;
    margin-right: 0;
    margin-bottom: 24px;
  }

  .product-item__image { display: inline-block; }

  .product-item__link {
    max-width: 150px;
    margin: 0 auto;
    padding: 6px;
    color: white;
    background: var(--pizza);
    border-radius: 2px;
    font-size: 2rem;
    text-align: center;
    transition: background 200ms ease-out;
  }

  .product-item__link:hover {
    color: white;
    background: var(--pizza-dark);
    text-decoration: none;
  }
}

.tutorial .page-content { max-width: 640px; }

.tutorial .entry__header {
  margin-bottom: 1.6rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 70, 0, 0.2);
}

.tutorial .entry__title { font-size: 4rem; }
.tutorial .entry__content { font-size: 2.1rem; }
.tutorial .pager { margin-bottom: 64px; }

.tutorial-header {
  padding: 8px 16px;
  background: #fbfbfb;
  border-bottom: 1px solid #e5e5e5;
  font-size: 1.8rem;
}

@media (max-width: 640px) {
  .tutorial-header { font-size: 1.6rem; }
}

.tutorial-header__back,
.tutorial-header__social {
  width: 25%;
}

.tutorial-header__reference {
  box-sizing: border-box;
  width: 50%;
  padding: 0 8px;
}

.tutorial-footer {
  padding-bottom: 16px;
  color: var(--pxn-medium);
  font-size: 1.8rem;
  text-align: center;
}

.promotion-header {
  padding: 16px;
  color: white;
  background: var(--dragon);
  font-size: 1.8rem;
  text-align: center;

  & a {
    color: white;
    border-bottom: 1px dotted var(--pxn-light);
  }

  & a:hover { border-bottom: 1px solid; }
}

.promotion--image {
  & img {
    display: block;
    max-width: 100%;
    margin-bottom: 8px;
    opacity: 0.8;
    transition: opacity 300ms ease-out;
  }

  & img:hover { opacity: 1; }

  & figcaption {
    font-size: 1.4rem;
    text-align: center;
  }
}

.highlight      { color: #c5c8c6; background: #1d1f21; }
.highlight .hll { background-color: #373b41; }

.highlight :is(.c, .cm, .cp, .c1, .cs)                     { color: #a1c05f; }
.highlight :is(.k, .kc, .kd, .kp, .kr)                     { color: #b294bb; }
.highlight :is(.kt, .nc, .nn)                              { color: #f0c674; }
.highlight :is(.na, .nf, .nx)                              { color: #81a2be; }
.highlight :is(.o, .ow, .kn, .nd, .nt, .gu)                { color: #8abeb7; }
.highlight :is(.n, .nb, .ni, .nl, .py, .bp, .sc, .p, .w, .gh) { color: #c5c8c6; }
.highlight :is(.err, .gd, .no, .ne, .nv, .vc, .vg, .vi)    { color: #cc6666; }
.highlight :is(.l, .m, .mf, .mh, .mi, .mo, .il, .se, .si)  { color: #de935f; }
.highlight :is(.s, .ld, .sb, .s2, .sh, .sx, .sr, .s1, .ss, .gi) { color: #b5bd68; }
.highlight :is(.sd, .gp)                                   { color: #969896; }
.highlight :is(.gs, .gh, .gp, .gu)                         { font-weight: bold; }
.highlight .ge                                             { font-style: italic; }

/* -------------------------------------------------------
   Services page: offers + projects by year.
   ------------------------------------------------------- */

.offers__intro {
  margin-bottom: 24px;
  font-size: 1.8rem;
}

.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Each card has its own accent: pizza for the first, burger for the second. */
.offer {
  --accent: var(--pizza);
  --accent-text: var(--pizza);
  --accent-tint: #fff4ee;

  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--pxn-white);
  border-top: 6px solid var(--accent);
  border-radius: 2px;
}

.offer + .offer {
  --accent: var(--burger);
  --accent-text: var(--burger-dark);
  --accent-tint: #fff7ee;
}

.offer__header { margin-bottom: 14px; }

.offer__name,
.projects-year__title,
.project__title {
  font-family: var(--font-title);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

.offer__name { font-size: 3.2rem; }

.offer__role {
  color: var(--pxn-dark);
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.2;
}

.offer__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;

  & li {
    padding: 0.2rem 0.6rem;
    color: var(--pxn-dark);
    background: var(--pxn-white);
    border-radius: 2px;
    font-size: 1.5rem;
    font-weight: bold;
  }
}

.offer__portfolio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 14px;
  color: var(--pxn-black);
  border: 1px solid var(--pxn-white);
  border-radius: 3px;
  font-size: 1.7rem;
  font-weight: bold;
  transition: color 150ms ease-out, background 150ms ease-out, border-color 150ms ease-out;

  & svg {
    flex: none;
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  & .offer__portfolio-icon { color: var(--accent-text); }

  & .offer__portfolio-arrow {
    margin-left: auto;
    color: var(--pxn-light);
    transition: color 150ms ease-out, transform 150ms ease-out;
  }

  &:hover,
  &:focus-visible {
    color: var(--accent-text);
    background: var(--accent-tint);
    border-color: var(--accent-text);
  }

  &:hover .offer__portfolio-arrow,
  &:focus-visible .offer__portfolio-arrow {
    color: var(--accent-text);
    transform: translate(2px, -2px);
  }
}

.projects-year + .projects-year { margin-top: 12px; }

.projects-year__title {
  margin-bottom: 12px;
  color: var(--pxn-light);
  font-size: 2.8rem;
}

.project {
  display: flex;
  gap: 16px;
  margin: 0 -12px;
  padding: 14px 12px;
  color: inherit;
  border-top: 1px solid var(--pxn-white);
  border-radius: 3px;
  transition: background 150ms ease-out, box-shadow 150ms ease-out;
}

.project:last-child { border-bottom: 1px solid var(--pxn-white); }

.project--link:hover {
  background: #fff4ee;
  border-color: transparent;
  box-shadow: inset 3px 0 0 var(--pizza);
}

.project--link:hover + .project { border-top-color: transparent; }

.project__image {
  display: block;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  transition: transform 150ms ease-out;
}

.project--link:hover .project__image { transform: scale(1.04); }

.project__body {
  flex: 1;
  min-width: 0;
}

.project__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.project__title {
  font-size: 2.4rem;
  transition: color 150ms ease-out;
}

.project--link:hover .project__title { color: var(--pizza); }

.project__link {
  flex: none;
  color: var(--pizza);
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
}

.project__arrow {
  display: inline-block;
  transition: transform 150ms ease-out;
}

.project--link:hover .project__arrow { transform: translateX(3px); }

.project__subtitle {
  color: var(--pxn-medium);
  font-size: 1.4rem;
}

.project__text {
  margin: 4px 0 8px;
  font-size: 1.6rem;
}

.project__types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.project__type {
  padding: 0.1rem 0.5rem;
  color: white;
  background: var(--burger-light);
  border-radius: 2px;
  font-size: 1.3rem;
  font-weight: bold;
}

@media (max-width: 560px) {
  .offers { grid-template-columns: 1fr; }
  .project { margin: 0; padding: 14px 0; }
  .project--link:hover { padding-left: 8px; }
  .project__image { width: 72px; height: 72px; }
  .project__head { flex-direction: column; gap: 0; }
}

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  color: white;
  background: var(--dragon);
  border-radius: 3px;
}

.contact-cta__title {
  font-family: var(--font-title);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

.contact-cta__title { font-size: 3.2rem; }

.contact-cta__subtitle {
  color: var(--pxn-light);
  font-size: 1.6rem;
}

.contact-cta__button {
  flex: none;
  padding: 10px 20px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  font-size: 1.7rem;
  font-weight: bold;
  text-align: center;
  transition: color 150ms ease-out, background 150ms ease-out, border-color 150ms ease-out;

  & span {
    display: block;
    color: var(--burger-light);
    font-size: 1.4rem;
    font-weight: normal;
    transition: color 150ms ease-out;
  }

  &:hover {
    color: var(--dragon);
    background: white;
    border-color: white;
  }

  &:hover span { color: var(--pizza); }
}

@media (max-width: 560px) {
  .contact-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
