/* --- Font Face --- */

@font-face {
  font-family: 'OPS Used Future';
  src:  url('../fonts/OPSUsedFuture-Regular.woff') format('woff'),
        url('../fonts/OPSUsedFuture-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'KF Zuka';
  src:  url('../fonts/KFZuka-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* --- Baseline --- */

:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;
  
  /* transitions */
  --transition-time: 0.2s;
  
  /* spacing */
  --main-padding: 4rem;
  
  --text-width: 75ch;
  --content-width: 53rem;

  --main-white: #fefefe;
  --main-black: #191919;
  
  --light-bg: var(--main-white);
  --light-dimmed-bg: #f4f4f4;
  --light-color: var(--main-black);
  
  --dark-bg: var(--main-black);
  --dark-dimmed-bg: #2d2d2d;
  --dark-color: var(--main-white);
  --dark-highlight: #4d4d4d;
  
  --notification-bar-height: 0px;

  
}
  
  *,
  *:after,
  *:before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    font-family: 'KF Zuka', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 18px;
    background-color: light-dark(var(--light-bg), var(--dark-bg));
    color: light-dark(var(--light-color), var(--dark-color));  
  }

  body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }
  
  li {
    list-style: none;
  }
  
  a {
    color: currentColor;
    text-decoration: none;
  }
  
  strong, b {
    font-weight: 500;
  }
  
  img,
  video {
    width: 100%;
    height: auto;
  }

  article:not(.introduction) p + p {
    margin-top: 1rem;
  }
  article :is(h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6) + p {
    margin-top: .5rem;
  }
  article p + :is(h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6) {
    margin-top: 2rem;
  }

  article :is(h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6) + :is(h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6) {
    margin-top: 1rem;
  }

  h1, .h1 {
    word-break: break-word;
    hyphens: auto;
  }

/* --- Page Layout --- */

.page-layout > *, .full-width > * {
  grid-column: content;
}
.page-layout, .full-width {--minimum-content-padding: var(--main-padding);

/** TRACK WIDTHS **/
--full-max-width: 1fr;
--popout-max-width: 1920px;
--content-max-width: var(--content-width);
--inset-content-max-width: 39.5rem;

/** TRACK SIZES **/
--full: minmax( var(--minimum-content-padding), 1fr );
--popout: minmax( 0, calc( ( var(--popout-max-width) - var(--content-max-width)) * 0.5 ) );
--content: minmax( 0, calc( ( var(--content-max-width) - var(--inset-content-max-width)) * 0.5 ) );
--inset-content: min( var(--inset-content-max-width), 100% - var(--minimum-content-padding) * 2 );
display: grid;
gap: var(--main-padding) 0;
grid-template-columns: 
  [full-start]
  var(--full)
    [popout-start]
    var(--popout)
      [content-start]
      var(--content)
        [inset-content-start]
        var(--inset-content)
        [inset-content-end]
      var(--content)
      [content-end]
    var(--popout)
    [popout-end]
  var(--full)
  [full-end];}

/** CLASSES **/
.full { grid-column: full; }
.full-start { grid-column-start: full-start; }
.full-end { grid-column-end: full-end; }

.popout { grid-column: popout; }
.popout-start { grid-column-start: popout-start; }
.popout-end { grid-column-end: popout-end; }

.content { grid-column: content; }
.content-start { grid-column-start: content-start; }
.content-end { grid-column-end: content-end; }

.inset-content { grid-column: inset-content; }
.inset-content-start { grid-column-start: inset-content-start; }
.inset-content-end { grid-column-end: inset-content-end; }

.full-width {grid-column: full;overflow: clip;}
.full-content, .full-content-nopad { grid-column: full; }
.full-content { padding-inline: var(--minimum-content-padding); }


/* --- Main --- */

h1, h2, h3,
.h1, .h2, .h3,
.article-card div.project {
  font-family: 'OPS Used Future', sans-serif;
  font-weight: 400;
  color: var(--active-color, inherit);
  text-align: center;
  text-transform: uppercase;
  line-height: .91;
}

h1, .h1 {
  font-size: 5rem;
}

h2, .h2 {
  font-size: 4rem;
}

h3, .h3 {
  font-size: 2.66667rem;
}
.article-card div.project {
  text-align: left;
  font-size: 1.33333rem;
}

.article-card :is(h1, h2, h3, .h1, .h2, .h3) {
  font-family: inherit;
  font-weight: inherit;
  text-align: inherit;
  text-transform: inherit;
  font-size: inherit;
  color: inherit;
}

button, .button {
  font-family: 'OPS Used Future', sans-serif;
  font-weight: 400;
  font-size: 1.33333rem;
  line-height: 1;
  padding: 0.61111rem 0.66667rem;
  border-radius: 0.5rem;
  background-color: light-dark(var(--light-dimmed-bg), var(--dark-dimmed-bg));
  color: light-dark(var(--light-color), var(--dark-color));
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-time);
}
button:hover, .button:hover {
  background-color: light-dark(var(--light-color), var(--dark-color));
  color: light-dark(var(--light-dimmed-bg), var(--dark-dimmed-bg));
}

nav.main-nav ul {
    display: flex;
    background-color: light-dark(var(--light-dimmed-bg), var(--dark-dimmed-bg));
    justify-content: center;
    margin: auto;
    border-radius: 0.55556rem;
}

nav.main-nav {
    display: flex;
    padding: 1.5rem;
}

nav.main-nav li a {
  display: flex;
  padding: 0.61111rem 0.66667rem;
  justify-content: center;
  align-items: center;
  gap: 0.55556rem;
  border-radius: 0.55556rem;
  font-family: "OPS Used Future";
  text-transform: uppercase;
  line-height: 1;
  font-size: 1.1rem;
  white-space: nowrap;
}
nav.main-nav.home li a {
  color: light-dark(var(--active-color, inherit), var(--main-white));
}
nav.main-nav li.active a, 
nav.main-nav li a:hover {
  background-color: light-dark(var(--active-color, unset), var(--dark-highlight));
  color: var(--main-white);
}

.tag {
  display: flex;
  padding: 0.3rem 0.45rem 0.275rem;
  border-radius: 0.55556rem;
  border: 1px solid light-dark(var(--light-color), var(--dark-color));
  line-height: 1;
  font-size: 0.8889rem;
}

div.details {
    display: flex;
    /* padding: 0.44444rem; */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

section.articles {
    display: flex;
    flex-direction: column;
    gap: 2.22222rem;
}

section.articles ul {
    display: grid;
    grid-template-columns: [start] repeat(auto-fill, minmax(300px, 1fr)) [end];
    gap: 2.22222rem 1.66667rem;
}

section.articles ul li a {
    display: flex;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    align-self: stretch;
    border-radius: 1rem;
    background: light-dark(var(--light-dimmed-bg), var(--dark-dimmed-bg));
    /* clip-path: border-box; */
    /* subtle interactive affordance */
    transition: background-color var(--transition-time),
                color var(--transition-time),
                transform var(--transition-time),
                box-shadow var(--transition-time);
    will-change: transform;
}

/* Hover / focus elevate effect (kept subtle) */
section.articles ul li a:hover,
section.articles ul li a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -6px rgb(0 0 0 / 17%);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  section.articles ul li a:hover,
  section.articles ul li a:focus-visible { transform: none; }
}

.article-card figure {
    margin-top: -1rem;
    margin-left: -1rem;
    width: calc(100% + 2rem);
}

.article-card img {
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

footer {
    display: flex;
    padding: 1.5rem 1.6rem;
    gap: 1rem;
    background-color: light-dark(var(--light-dimmed-bg), var(--dark-dimmed-bg));
    justify-content: space-between;
    align-items: center;
}

.footer-navigation ul,
.footer-links ul {
    display: flex;
    gap: 2rem 1rem;
    flex-wrap: wrap;
}
.footer-links li a {
    background-color: var(--main-white);
    line-height: 1;
    padding: 0.61111rem 0.66667rem;
    border-radius: 0.55556rem;
    color: var(--main-black);
}

.footer-copyright {
  opacity: .5;
  font-size: 0.66667rem;
}
    

main {
    padding: 2rem 0 4rem;
}

.language-switcher {
    display: flex;
    gap: .75rem;
}

.language-button {
    opacity: .5;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: opacity var(--transition-time);
    text-transform: uppercase;
}

.language-button.active {
    opacity: 1;
}

article.introduction {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

article :is(h1, h2, h3, .h1, .h2, .h3) {
    font-family: inherit;
    font-weight: inherit;
    text-align: inherit;
    text-transform: inherit;
    font-size: inherit;
    color: inherit;
}
article :is(h2, .h2) {
    font-size: 2rem
}
article :is(h3, .h3) {
    font-size: 1.5rem
}

header.article-header {
    gap: 2rem;
    display: flex;
    flex-direction: column;
}

article.wishlist {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

#kommentform {
  display: flex;
  flex-direction: column;
  
  
  
  label[for='author'] {
      order: -2;
  }
  
  label[for='email'] {
      order: -1;
  }
  
  #url {
    order:10;
  }

  .form-feedback {
    order: 1;
  }

  label[for='author_url'] {
      display: none;
  }

  textarea,
  input {
    width: 100%;
    padding: .5rem;
    border-radius: 0.5rem;
    background-color: light-dark(var(--light-dimmed-bg), var(--dark-dimmed-bg));
    border: none;
    resize: vertical;
  }

  .msg.user-feedback:empty,
  .form-feedback:empty,
  .replyHandleDisplay:empty {
    display: none;
  }

}

.button.secondary,
#kommentform input[type='submit'] {
  font-family: inherit;
  background-color: var(--dark-dimmed-bg);
  color: var(--main-white);
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
}




ul.list-comments {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

li.u-comment {
    background-color: light-dark(var(--light-dimmed-bg), var(--dark-dimmed-bg));
    border-radius: .5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* color: var(--light-color); */
}

header.h-card {
    display: flex;
    justify-content: space-between;
}

span.p-author {
    background-color: var(--main-white);
    color: var(--main-black);
    padding: .1rem .25rem 0;
    border-radius: .25rem;
    font-size: .8888rem;
}

a.u-url {
    opacity: .5;
}

article p a {
  color: var(--active-color);
  text-decoration: underline;
}

ul.downloads-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

main > article {
    padding-bottom: 2rem;
}

audio {
    width: 100%;
}

section.button-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

swiper-container::part(container) {
  --swiper-theme-color: light-dark(var(--light-color), var(--dark-color));
}
swiper-container::part(button-next),
swiper-container::part(button-prev) {
    width: 1.75rem;
    height: 1.75rem;
    background-color: light-dark(var(--light-dimmed-bg), var(--dark-dimmed-bg));
    border-radius: 1rem;
    padding: 0.5rem .3rem .5rem 0.4rem;
    box-sizing: border-box;
}
swiper-container::part(button-prev) {
    padding: 0.5rem .4rem .5rem 0.3rem;
}

@media (min-width:769px) {
    swiper-slide img {
        height: 50svh;
        object-fit: contain;
    }
    .block-type-image img {
        max-height: 75svh;
        object-fit: contain;
    }
}

.block-type-heading :is(h1, h2, h3, .h1, .h2, .h3) {
    text-align: center;
    font-family: 'OPS Used Future', sans-serif;
    color: var(--active-color, inherit);
}

/* --- Easy Design toggle styles --- */
.easy-design-control {
  display: inline-flex;
  align-items: center;
  gap: 0.66667rem;
  font-family: inherit;
  font-size: 0.88889rem;
  line-height: 1;
}

.easy-design-toggle {
  position: relative;
  display: inline-flex;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  align-items: center;
}

.easy-design-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 2rem;
  height: 1.1rem;
  border-radius: 999px;
  padding: 0.22222rem;
  background-color: light-dark(var(--light-dimmed-bg), var(--dark-dimmed-bg));
  transition: background-color var(--transition-time), box-shadow var(--transition-time);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
}

.easy-design-toggle-thumb {
  width: .75rem;
  height: .75rem;
  border-radius: 999px;
  background-color: var(--main-white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform var(--transition-time), background-color var(--transition-time), box-shadow var(--transition-time);
}

.easy-design-toggle[aria-pressed="true"] .easy-design-toggle-track {
  background-color: light-dark(var(--light-color), var(--dark-color));
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.18);
}

.easy-design-toggle[aria-pressed="true"] .easy-design-toggle-thumb {
  transform: translateX(0.85rem);
  background-color: var(--main-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

.easy-design-toggle:focus-visible {
  outline: 3px solid light-dark(var(--light-dimmed-bg), var(--dark-dimmed-bg));
  outline-offset: 3px;
}

.easy-design-toggle-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header .easy-design-control {
  position: absolute;
  right: 0;
  padding: 2rem;
}

@media (max-width: 768px) {
  .header .header-inner .easy-design-control {
    justify-self: center;
  }
}

.footer {
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: flex-start;
  margin-top: auto;
}

.footer .footer-copyright {
  margin-left: auto;
}

/* When easy-design mode is active, make OPS Used Future fall back to the inherited font
   and force the active color to be the normal light/dark content color. */
html.easy-design{
  /* default fallback on root */
  --active-color: light-dark(var(--light-color), var(--dark-color)) !important;
}

/* Also explicitly override the custom property on any element (including those with inline styles)
   so inline declarations like style="--active-color:..." are neutralized. */
html.easy-design *,
html.easy-design [style] {
  --active-color: light-dark(var(--light-color), var(--dark-color)) !important;
}

/* And directly override common places that compute colors from the variable to be safe */
html.easy-design h1,
html.easy-design h2,
html.easy-design h3,
html.easy-design .h1,
html.easy-design .h2,
html.easy-design .h3,
html.easy-design .article-card div.project {
  color: light-dark(var(--light-color), var(--dark-color)) !important;
}

/* Nav active / hover backgrounds that depend on --active-color: force neutral styles in easy mode */
html.easy-design nav.main-nav li.active a,
html.easy-design nav.main-nav li a:hover {
  color: light-dark(var(--light-dimmed-bg), var(--dark-dimmed-bg)) !important;
  background-color: light-dark(var(--light-color), var(--dark-color)) !important;
}

/* Override OPS Used Future usages to inherit the page font */
html.easy-design h1,
html.easy-design h2,
html.easy-design h3,
html.easy-design .h1,
html.easy-design .h2,
html.easy-design .h3,
html.easy-design .article-card div.project,
html.easy-design button,
html.easy-design .button,
html.easy-design nav.main-nav li a,
html.easy-design .block-type-heading :is(h1, h2, h3, .h1, .h2, .h3) {
  font-family: inherit !important;
}

@media (min-width: 769px) and (max-width: 1080px) {
      header.header.page-layout {
        display: flex;
        flex-direction: column-reverse;
        padding: 1rem;
        gap: 0;
    }
    .header .easy-design-control {
        position: inherit;
        padding: 0;
        justify-content: center;
    }
}
