/* 
Theme Name: Alcyone
Author: FE Consulting + ùnräad
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: alcyone
*/

/*----------
TDM
- Font-face
- Base
-- Variables
-- Typography
- Layout
- Navigation
----------*/

/*----------
- Font-face
----------*/
/* latin-ext */
@font-face {
  font-family: "DM Sans", sans-serif;
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url(./assets/fonts/dmsans--var-ita--latin-ext.woff2)
    format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC,
    U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url(./assets/fonts/dmsans--var-ita--latin.woff2)
    format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(./assets/fonts/dmsans--var--latin-ext.woff2)
    format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC,
    U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(./assets/fonts/dmsans--var--latin.woff2)
    format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

/*----------
- Base
----------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
svg,
img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
figure {
  display: block;
  margin: 0;
}
dl,
dd,
dt,
ul {
  margin: 0;
  padding: 0;
}
address {
  font-style: normal;
}
button {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}
/* Helpers */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--c--highest);
  clip-path: none;
  color: var(--c--low);
  display: block;
  font-size: 1em;
  font-weight: 500;
  height: auto;
  left: 0.5em;
  line-height: normal;
  padding: 1em 1.5em;
  text-decoration: none;
  top: 0.5em;
  width: auto;
  z-index: 100000;
}
svg.icon {
  fill: currentColor;
}
svg.icon.reverse {
  transform: scaleX(-1);
}

/*========
-- Variables
========*/
:root {
  font-size: 93.75%;
  --c--lowest: #282828;
  --c--low: #6d6d6d;
  --c--high: #d9d9d9;
  --c--highest: #fdfdfd;

  --ff: "DM Sans", sans-serif;

  --fz--pj-title: 2rem;
  --fz--pj-text: 1rem;
  --fz--grid-title: 1.33rem;

  --l--max-width: 85.33rem;
  --l--max-width: 128rem;
  --l--global-gap: 1.33rem;
  --l--global-padding: 1rem;
}
@media (min-width: 32rem) {
  :root {
    --l--global-padding: 2rem;
  }
}
@media (min-width: 64rem) {
  :root {
    --fz--pj-title: 2.33rem;

    --l--global-padding: 3.33rem;
  }
}
@media (min-width: 96rem) {
  :root {
    --fz--pj-title: 3rem;
    --l--global-padding: 6.67rem;
    --fz--pj-text: 1.6rem;
    --l--global-gap: 4.67rem;
  }
}

/*========
-- Typography
========*/
body {
  background-color: var(--c--highest);
  color: var(--c--lowest);
  font-family: var(--ff);
  line-height: 1.27;
}
p {
  margin: 0 0 1em;
}
h1 {
  font-size: var(--fz--pj-title);
  font-weight: 300;
  line-height: 1.45;
  margin: 0.8em 0;
}
h2,
h3 {
  text-transform: uppercase;
}
h2 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}
h3 {
  font-size: 1em;
  font-weight: 400;
  margin: 0;
  padding-bottom: 0.25em;
}

/*----------
- Layout
----------*/
.site {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.site-header,
.site-footer {
  width: 100%;
  flex-grow: 0;
  flex-shrink: 0;
}
main {
  width: 100%;
  flex-grow: 1;
}
.site-header,
.site-footer,
main {
  max-width: var(--l--max-width);
  padding-left: var(--l--global-padding);
  padding-right: var(--l--global-padding);
  margin-left: auto;
  margin-right: auto;
}
.site-footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: 4rem;
}

/*----------
- Navigation
----------*/
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--l--global-gap);
  padding-top: 2rem;
  padding-bottom: 1rem;
  margin-bottom: 10rem;
  background-color: #fdfdfdde;
  backdrop-filter: blur(0.5em);
  position: sticky;
  top: 0;
  z-index: 1;
}
.custom-logo {
  width: 10rem;
}
.menu-toggle {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background-color: transparent;
  color: var(--c--lowest);
}
.menu-toggle line {
  stroke: currentColor;
  stroke-width: 3px;
  stroke-linecap: round;
  transition: transform 0.2s;
}
.menu-toggle line:nth-child(1) {
  transform-origin: 2px 6px;
}
.menu-toggle line:nth-child(2) {
  transform-origin: 2px 12px;
}
.menu-toggle line:nth-child(3) {
  transform-origin: 2px 18px;
}
.menu-toggle[aria-expanded="true"] line:nth-child(1) {
  transform: translateX(2.5px) rotate(45deg) scaleX(0.96);
}
.menu-toggle[aria-expanded="true"] line:nth-child(2) {
  transform: scale(0);
}
.menu-toggle[aria-expanded="true"] line:nth-child(3) {
  transform: translateX(2.5px) rotate(-45deg) scaleX(0.96);
}
.menu-toggle + div {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0;
  width: 100%;
  height: calc(100vh - 4.5rem);
  background-color: var(--c--highest);
  align-items: center;
  justify-content: center;
}

.menu-toggle[aria-expanded="true"] + div {
  display: flex;
}
.main-navigation ul {
  list-style: none;
  /* background-color: var(--c--highest); */
  /* font-size: 0.933rem; */
}
.main-navigation li {
  position: relative;
  padding: 0.125rem 0;
  min-width: 5.5em;
}
.main-navigation li + li {
  margin-top: 1rem;
}

.main-navigation .menu {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.main-navigation a {
  display: block;
  /* width: 5rem; */
  text-transform: uppercase;
  font-weight: 300;
  color: inherit;
  text-decoration: none;
  font-size: 3rem;
}
.main-navigation a::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='25' viewBox='0 0 26 25'%3E%3Cpath d='M2.98434 24.4L0.914336 22.375L20.2193 3.07H0.869336V0.189999H23.3243L25.1243 2.035V24.49H22.2893V5.095L2.98434 24.4Z' fill='%23282828'/%3E%3C/svg%3E");
  display: inline-block;
  margin-right: 0.25em;
  position: relative;
  top: -0.05em;
}
.main-navigation a[href="#"] {
  display: none;
}

@media (min-width: 48rem) {
  .site-header {
    --cols: 2;
    position: relative;
    display: grid;
    align-items: end;
    grid-template-columns: repeat(var(--cols), 1fr);
    gap: var(--l--global-gap);
  }
  .menu-toggle {
    display: none;
  }
  .custom-logo {
    width: 14rem;
  }
  .main-navigation {
    grid-column: -2/-1;
  }
  .main-navigation .menu {
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
  }
  .main-navigation li + li {
    margin-top: 0;
  }
  .main-navigation a {
    font-size: 1rem;
    font-weight: 400;
  }
  .main-navigation li:hover > a,
  .main-navigation li:focus-within > a {
    font-weight: 600;
    /* letter-spacing: -0.015em; */
  }
  .main-navigation .menu > :first-child {
    text-align: left;
  }
  .main-navigation .menu > :last-child {
    text-align: right;
  }
  .main-navigation a::before {
    content: unset;
  }
  .menu-toggle + div {
    background: none;
    display: block;
    position: static;
    width: unset;
    height: unset;
  }
  .main-navigation a[href="#"] {
    display: block;
  }

  .main-navigation li {
    min-width: 4.5em;
  }

  .main-navigation .sub-menu {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    position: absolute;
    top: 100%;
  }
  .main-navigation li:hover > .sub-menu,
  .main-navigation li:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
  }
}
@media (min-width: 52rem) {
  .site-header {
    --cols: 3;
  }
}
@media (min-width: 80rem) {
  .site-header {
    --cols: 5;
  }
  .main-navigation {
    grid-column: -3/-1;
  }
}
@media (min-width: 96rem) {
  .main-navigation {
    grid-column: -2/-1;
  }
}

/*----------
- Footer
----------*/
.site-footer {
  font-size: 0.8rem;
  line-height: 1.33;
  font-weight: 300;
}
.site-footer .footer-content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--l--global-gap);
  border-top: 1px solid var(--c--lowest);
  padding-top: 2rem;
  text-align: right;

  text-transform: uppercase;
}
.footer-logo img {
  height: 4em;
  width: auto;
}
.site-footer a {
  color: inherit;
}
.site-footer p {
  margin: 0;
}
.site-footer ul {
  list-style: none;
}
.site-footer .footer-links a {
  text-transform: uppercase;
  text-decoration: none;
}
.footer-content > * {
  grid-column: span 2;
}
.site-footer :where(address),
.footer-logo {
  grid-column: span 1;
}
.footer-logo {
  width: fit-content;
}

@media (min-width: 32rem) {
  .site-footer .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 48rem) {
  .site-footer .footer-content {
    grid-template-columns: repeat(10, 1fr);
  }
  .footer-content > * {
    grid-column: span 3;
  }
  .footer-logo {
    grid-column: 1;
  }
}
/* @media (min-width: 64rem) {
  .site-footer .footer-content {
    grid-template-columns: repeat(10, 1fr);
  }
} */
@media (min-width: 96rem) {
  .site-footer .footer-content {
    grid-template-columns: repeat(5, 1fr);
  }
  .footer-content > * {
    grid-column: span 1;
  }
  .footer-logo {
    grid-column: span 2;
  }
}
@media (min-width: 1920px) {
  :root {
    font-size: calc(93.75% * var(--scale-ratio));
  }
}
