@font-face {
  font-family: "TAK Normal";
  src: url("fonts/tak-normal.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TAK Italic";
  src: url("fonts/tak-italic.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

body {
  background-color: #ffeb00;
  color: #000;
  transition: background-color 0.2s ease;
}

body:has(.text a[href^="mailto"]:hover),
body:has(.text a[href^="mailto"]:focus-visible) {
  background-color: #e15a46;
}

body:has(.text a[href*="instagram"]:hover),
body:has(.text a[href*="instagram"]:focus-visible) {
  background-color: #008246;
}

.page {
  min-height: 100vh;
  padding: 1vw;
  display: flex;
  align-items: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
  align-items: start;
  width: 100%;
  margin-bottom: 3rem;
}

.illustration {
  grid-column: 4 / 10;
  grid-row: 1;
}

.logo {
  grid-column: 3 / 6;
  grid-row: 2;
  margin-top: 3rem;
}

.text {
  grid-column: 6 / 11;
  grid-row: 2;
  margin-top: 3rem;
  font-family: "TAK Normal", Georgia, serif;
  font-weight: normal;
  font-size: 1.3vw;
  line-height: 1.5;
}

.text p + p {
  text-indent: 3rem;
}

.text em {
  font-family: "TAK Italic", Georgia, serif;
  font-style: normal;
}

.text a {
  color: inherit;
  text-decoration: none;
}

.text a:hover {
  text-decoration: underline;
}

.logo-symbol {
  display: none;
}

.grid:has(.text a[href^="mailto"]:hover) .logo-full,
.grid:has(.text a[href^="mailto"]:focus-visible) .logo-full,
.grid:has(.text a[href*="instagram"]:hover) .logo-full,
.grid:has(.text a[href*="instagram"]:focus-visible) .logo-full {
  display: none;
}

.grid:has(.text a[href^="mailto"]:hover) .logo-symbol,
.grid:has(.text a[href^="mailto"]:focus-visible) .logo-symbol,
.grid:has(.text a[href*="instagram"]:hover) .logo-symbol,
.grid:has(.text a[href*="instagram"]:focus-visible) .logo-symbol {
  display: block;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .page {
    padding: 1.5rem 1.25rem;
    align-items: stretch;
  }

  .grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
  }

  .illustration,
  .logo,
  .text {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
    width: 100%;
  }

  .illustration {
    //max-width: 18rem;
    margin-inline: auto;
  }

  .logo {
    //max-width: 14rem;
  }

  .text {
    font-size: 1.125rem;
    margin-top: -.5rem; }

  .text p + p {
    text-indent: 2rem;
  }
}
