/* LAYOUT */

:root {
  font-family: 'Hubot Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: calc(18px + 0.390625vw);
  font-weight: normal;
  line-height: 1.4;
}


@font-face {
  font-family: 'Hubot Sans';
  src:
    url('/fonts/Hubot-Sans.woff2') format('woff2 supports variations'),
    url('/fonts/Hubot-Sans.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-stretch: 75% 125%;
}

* {
  box-sizing:border-box;
}

body {
  --color-text: #333;
  --color-bg: #f7f3e2;
  --color-nav: var(--color-text);
  --color-link: var(--color-text);
  --color-acc: #f1285e;
  background: var(--color-bg);
  color: var(--color-text);
  margin: 7%;
  max-width: 100vw;
  /* background-image: url(/img/noise.svg);
  background-blend-mode: color-burn;
  background-attachment: fixed;
  background-size: auto auto; */
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: var(--color-acc);
  text-decoration-thickness: 3px;
  &:hover{
    color: var(--color-acc);
    text-decoration: none;
  }
}

.logo {
    height: calc(1em + 10px);
    vertical-align: bottom;
    margin: 0px .5rem 0 0;
    /* border-radius: 10%; */
}

.content {
  margin: 5vw 0;
  grid-auto-rows: auto;
  display: grid;
/*  grid-template-columns: minmax(50%, 1fr);
  & > * {
    grid-column: 1/2;
  }
  & figure {
    height: 1rem;
    width: 100%;
    max-width: 100%;
    grid-column: 2/3;
    overflow: visible;
    margin: 0;
    padding-left: clamp(4px,6vw,4rem);
  }
*/
  & figure img {
  }
  & img {
    max-width: 100%;
    vertical-align: middle;
  }
}

p, blockquote, ul {
  max-width: 65ch;
  margin: 0 0 1rem 0;
}

h1, h2, h3, h4, h5, h6 {
  max-width: 30ch;
  line-height: 1;
  margin: 3rem 0 2rem 0;
}

/* NAVIGATION */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  & span {
    flex-grow:1;
    font-style: italic;
  }
}

.site-nav a {
  font-size: 1rem;
  display: block;
  font-stretch: 110%;
  font-weight: 400;
  text-decoration: none;
  color: var(--color-acc);
  &.active {
    text-decoration: none;    
  }
  &:first-child{
    font-weight: 600;
    color: var(--color-text);
  }
}

.main-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: 100vw;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 780px) {
  .site-nav,
  .main-menu {
    flex-direction: column;
    align-items: normal;
    gap: 0;
  }
  .site-nav span {
    font-size: 1rem;
  }
  .site-nav a {
    transition: none; filter: none;
    font-size: 1.5rem;
  }
  .content figure {
    height: initial;
    width: initial;
    grid-column: 1 / 2;
    padding: 0;
  }
}

table {
  border-collapse: collapse;
  & td, th {
    vertical-align: top;
    text-align: left;
    padding: .5rem;
  }
  & tr:nth-child(2n) {
    background-color: var(--color-grey);
  }
}

/* STYLES */

.big-header {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 0.9;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
/*  border-radius: 2rem;
  padding: 2rem 2rem;
  border: 3px solid var(--color-acc);
  box-shadow: 10px 10px 10px #aa888822;
  background-color: var(--color-acc);
  */
  & .col {
    min-width: 10vw;
    flex: 1;
    align-self: center;
  } 
}

@media (max-width: 780px) {
  .row {
    flex-direction: column;
  }
/*  .row :nth-child(1) {order:2;} */
  h1 {
    font-size: 4rem;
  }
}

form#contact {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: flex-end;
  & div#email {
    width: 10%;
    flex-grow: 1;
  }
  & div#message {
    flex-grow: 1;
  }
  & div#submit {
  }
  & button {
    width: 100%;
    background: var(--color-acc);
    color: var(--color-bg);
    font-weight: bold;
    font-size: 1rem;
  }
  & input[type=email] {
    width: 100%;
    padding: .5rem;
  }
  & textarea, input, button {
    width: 100%;
    padding: .5rem;
    height: 2rem;
    display: flex;
  }
  * {
    border: 0;
  }
}
