/* CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
*:not(dialog) {
  margin: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}
#root,
#__next {
  isolation: isolate;
}

/* Global */
:root {
  --clr-accent-light: hsl(33, 50%, 66%);
  --clr-accent-dark: hsl(33, 10%, 15%);
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Styling */
body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1em;
}

h1 {
  display: hidden;
  line-height: 1em;
}

p {
  line-height: 1.5em;
}

.container {
  display: block;
  width: min(95%, 325px);
  margin-inline: auto;
}

.container.fullwidth {
  width: 100%;
}

@media (min-width: 768px) and (max-width: 1149px) {
  .container {
    width: 650px;
  }
}

@media (min-width: 1150px) {
  .container {
    width: min(95%, 1100px);
  }
}

/* Header/hero */

#landscape {
  height: 400px;
  background-color: lightgray;
  background-image: url("../images/landscape.webp");
  background-size: cover;
  background-position: left;
}

#card {
  position: relative;
  z-index: 2;
  left: 50%;
  top: -375px;
  display: flex;
  flex-direction: column;
  width: min(95%, 325px);
  height: auto;
  margin-bottom: -350px;
  background-color: transparent;
  border-radius: 1rem;
  box-shadow: 0 0 50px hsl(0, 0%, 0%, 0.33);
  overflow: hidden;
  transform: translateX(-50%);
}

#card > div {
  flex: 1 1 400px;
}

#card .contact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 4rem 4rem 4rem;
  color: white;
  background-color: hsl(33, 10%, 15%, 0.98);
}

#card .contact::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 16px;
  background-image: url("../images/es.svg");
  background-size: contain;
}

#card .contact::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 16px;
  background-image: url("../images/pl.svg");
  background-size: contain;
}

#card dt {
  margin: 0.5em;
  font-family: "Alexandria", sans-serif;
  font-size: 0.625rem;
  color: var(--clr-accent-light);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 10%;
  opacity: 33%;
}

#card dd {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  text-align: center;
}

#card .contact a {
  text-decoration: none;
  color: white;
}

#card .photo {
  background-image: url("../images/photo.webp");
  background-size: cover;
  background-position: center;
}

main {
  margin-bottom: 75px;
}

.tabbed .spacer {
  display: none;
}

.tabs {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--clr-accent-light);
}

.tab {
  font-size: 1.125rem;
  font-weight: light;
}

.tab.active {
  font-weight: bold;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content p {
  margin: 1rem 0;
}

footer {
  width: 100%;
}

footer .decoration {
  display: flex;
  align-items: center;
  gap: 2rem;
}

footer .line {
  flex: 0 1 auto;
  width: 100%;
  height: 1px;
  background-color: var(--clr-accent-light);
}

footer .branding {
  flex: 1 0 auto;
}

footer .branding img {
  width: 45px;
  height: 45px;
}

footer .copyright {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

footer small {
  font-family: "Alexandria", sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
}

@media (min-width: 768px) and (max-width: 1149px) {
  #card {
    flex-direction: row;
    top: -350px;
    width: 650px;
    min-height: 0;
    height: 400px;
    margin-bottom: -300px;
  }

  #card > div {
    flex: 1 1 50%;
    height: 100%;
    max-height: 100%;
  }
}

@media (min-width: 1150px) {
  #card {
    top: -350px;
    margin-bottom: -800px;
  }

  #content {
    position: relative;
  }

  .tabs {
    display: none;
  }

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

  .tab-content {
    display: flex;
    flex-direction: column;
    width: 30%;
  }

  .tab-content.active {
    display: flex;
  }

  .tabbed .spacer {
    display: flex;
    flex: 1 0 auto;
    width: 40%;
  }
}
