:root {
    --vt-c-base: #191724;
    --vt-c-surface: #1f1d2e;
    --vt-c-overlay: #26233a;
    --vt-c-muted: #6e6a86;
    --vt-c-subtle: #908caa;
    --vt-c-text: #e0def4;
    --vt-c-love: #eb6f92;
    --vt-c-gold: #f6c177;
    --vt-c-rose: #ebbcba;
    --vt-c-pine: #31748f;
    --vt-c-foam: #9ccfd8;
    --vt-c-iris: #c4a7e7;
    --vt-c-highlight-low: #21202e;
    --vt-c-highlight-med: #403d52;
    --vt-c-highlight-high: #524f67;
}

:root {
  --color-background: var(--vt-c-base);
  --color-surface: var(--vt-c-surface);
  --color-overlay: var(--vt-c-overlay);
  --color-muted: var(--vt-c-muted);
  --color-subtle: var(--vt-c-subtle);
  --color-text: var(--vt-c-text);
  --color-love: var(--vt-c-love);
  --color-gold: var(--vt-c-gold);
  --color-rose: var(--vt-c-rose);
  --color-pine: var(--vt-c-pine);
  --color-foam: var(--vt-c-foam);
  --color-iris: var(--vt-c-iris);
  --color-highlight: var(--vt-c-highlight-med);

  --section-gap: 160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  background: var(--color-background);
  transition:
    color 0.5s,
    background-color 0.5s;
  line-height: 1.6;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif;
  font-size: 15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  font-weight: normal;
  display: flex;
  flex-direction: column;
}

main {
    height: 600px;
    overflow-y: scroll;
    overflow-x: hidden;
    background: var(--color-overlay);
    border-radius: 8px;
    text-align: left;
    padding: 1rem 2rem;
}

b {
    font-weight: 500;
    color: var(--color-gold);
}

section.visible {
    display: block;
    transition: 0.4s;
}

section.invisible {
    display: none;
    transition: 0.4s;
}

.contacts_links {
    display: flex;
    gap: 10px;
}

a {
  text-decoration: none;
  color: var(--color-foam);
  transition: 0.4s;
}

@media (hover: hover) {
  a:hover {
    color: var(--color-pine);
  }

  button:hover {
    color: var(--color-love);
  }
  button:hover ~ i {
    color: var(--color-gold);
    background-color: var(--color-highlight);
    border-color: var(--color-pine);
  }
}

button.active{
    color: var(--color-love);
}

header {
  line-height: 1.5;
  order: 2;
}

h1 {
  font-weight: 500;
  font-size: 2.6rem;
  position: relative;
  top: -10px;
}

h3 {
  font-size: 1.2rem;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-rose);
}

.item {
  margin-top: 2rem;
  display: flex;
}

.nav {
    padding-left: 0;
    display: flex;
    margin-top: 2rem;
    justify-content: space-around;
}

.nav_item {
  display: flex;
  position: relative;
}

.nav_item_btn {
    background: none;
    border: none;
    color: var(--color-rose);
    cursor: pointer;
    transition: 0.4s;
    font-size: 1rem;
    font-weight: 500; 
}

.nav_item  i {
  place-items: center;
  place-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text);
  transition: 0.4s;
  display: none;
}

.details {
  flex: 1;
}

.signature {
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    color: var(--color-foam);
    font-style: italic;
    font-size: 1rem;
}

@media (min-width: 1024px) {
  body {
    display: flex;
    place-items: center;
  }

  #app {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 0 2rem;
  }

  header {
    display: flex;
    place-items: center;
    padding-right: calc(var(--section-gap) / 2);
    order: revert;
  }

  header .wrapper {
    display: flex;
    place-items: flex-start;
    flex-wrap: wrap;
  }

  .item {
    margin-top: 0;
    padding: 0.4rem 0 1rem 0;
  }

  .nav {
    padding-left: revert;
    display: revert;
    margin-top: 0;
  }

  .nav_item {
    margin-top: 0;
    padding: 1.5rem 0 1.5rem calc(var(--section-gap) / 2);
  }

  .nav_item i {
    display: flex;
    top: calc(50% - 25px);
    right: -64px;
    position: absolute;
    border: 1px solid var(--color-gold);
    background: var(--color-background);
    border-radius: 8px;
    width: 50px;
    height: 50px;
  }
  .nav_item i.active{
    color: var(--color-gold);
    background-color: var(--color-highlight);
    border-color: var(--color-pine);
  }

  .nav_item:after {
    content: ' ';
    border-left: 1px solid var(--color-gold);
    position: absolute;
    right: -40px;
    bottom: calc(50% + 25px);
    height: calc(50% - 25px);
  }

  .nav_item:before {
    content: ' ';
    border-left: 1px solid var(--color-gold);
    position: absolute;
    right: -40px;
    top: calc(50% + 25px);
    height: calc(50% - 25px);
  }

  .nav_item:first-of-type:after {
    display: none;
  }

  .nav_item:last-of-type:before {
    display: none;
  }
}
