/*
Theme Name: PH1L.IO
Theme URI: https://ph1l.io
Author: Phil IO
Author URI: https://ph1l.io
Description: Ein WordPress-Theme
Version: 1.0
Text Domain: ph1l-io
*/


/* ========================================
   =========== Custom Fonts ===============
   ======================================== */


/* Oranges & Lemons */

@font-face {
    font-family: 'Oranges And Lemons Caps';
    src: url('assets/fonts/OrangesAndLemonsCaps-Regular.woff2') format('woff2'),
        url('assets/fonts/OrangesAndLemonsCaps-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oranges And Lemons Script';
    src: url('assets/fonts/OrangesAndLemonsScript.woff2') format('woff2'),
        url('assets/fonts/OrangesAndLemonsScript.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oranges And Lemons Script Up';
    src: url('assets/fonts/OrangesAndLemonsScriptUp.woff2') format('woff2'),
        url('assets/fonts/OrangesAndLemonsScriptUp.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Naturalist */

@font-face {
    font-family: 'Naturalist';
    src: url('Naturalist-Regular.woff2') format('woff2'),
        url('Naturalist-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Brix Sans */

@font-face {
    font-family: 'Brix Sans';
    src: url('assets/fonts/BrixSans-Light.woff2') format('woff2'),
        url('assets/fonts/BrixSans-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brix Sans';
    src: url('assets/fonts/BrixSans-Regular.woff2') format('woff2'),
        url('assets/fonts/BrixSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Brix Sans';
    src: url('assets/fonts/BrixSans-Medium.woff2') format('woff2'),
        url('assets/fonts/BrixSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brix Sans';
    src: url('assets/fonts/BrixSans-Bold.woff2') format('woff2'),
        url('assets/fonts/BrixSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brix Sans';
    src: url('assets/fonts/BrixSans-Black.woff2') format('woff2'),
        url('assets/fonts/BrixSans-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}



/* ========================================
   ================ MAIN ==================
   ======================================== */

html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #fff;
    font-family: 'Brix Sans', sans-serif;
}

::selection {
  background: #1A1A1A;
  color: white;
}

.light {
  font-weight: 300;
}

.bold {
  font-weight: 500;
}

.fine-underline {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em; 
  text-decoration: none; 
}

.custom-landing {
    text-align: center;
    padding: 60px 20px;
    font-family: 'Arial', sans-serif;
  }
  
.site-logo {
  display: flex;
  justify-content: center;
  margin: 50px 0;
}

.site-logo svg {
  max-width: 200px;
  height: auto;
  display: block;
}
  
  .content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .grid-item img {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
  }
  
  .grid-item h3 {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.4;
    color: #555;
  }

  .preview-wrapper {
    width: 100%;
    max-width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
  }

  .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hover-play {
    pointer-events: none;
  }

  .preview-wrapper:hover .hover-play {
    pointer-events: auto;
  }

  .lottie-hover {
    width: 100%;
    height: 100%;
  }

  
  .index.post-title {
    font-family: 'Oranges And Lemons Caps';
    font-size: 2.6rem;
    line-height: 0.8;
    max-width: 65%;
  }



  /* ========================================
   ================ POST ==================
   ======================================== */

   .single h1 {
        font-family: 'Oranges And Lemons Caps';
        font-size: 5.4rem;
        line-height: 0.775;
         margin-bottom: 3.5rem!important;
         margin: 0 auto;;
    }

   .post-content p {
        margin-bottom: 1.5rem;
        font-family: 'Brix Sans', sans-serif;
        font-weight: normal;
        font-size: 1.375rem;
        line-height: 2.215rem;
    }

    .col-lg-8 {
        max-width: 750px; 
    }

    .post-content {
      margin-bottom: 8.5rem;
    }

    img {
      margin-top: 3.5rem;
      margin-bottom: 3.5rem;
    }

    .wider {
      width: calc(100% + 320px);
      margin-left: -160px;
      margin-right: -160px;
      max-width: none;
    }

    @media (max-width: 1200px) {
      .wider {
        width: calc(100% + 160px);
        margin-left: -80px;
        margin-right: -80px;
      }
    }

    @media (max-width: 768px) {
      .wider {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
      }
    }

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

    .widest {
      position: relative;
      width: 100vw;
      max-width: none;
      left: 50%;
      right: 50%;
      margin-left: -50vw;
      margin-right: -50vw;
    }

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


/* ========================================
   ============== COMMENTS ================
   ======================================== */


#comments input,
#comments textarea,
#comments button,
#comments a {
  font-family: inherit;
  font-size: 1.75rem;
}

#comments input:focus,
#comments textarea:focus {
  border: 2px solid black;
  outline: none;
}

#comments input,
#comments textarea {
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}


h2.comments-title {
  margin-bottom: 3.5rem;
}

.comment-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.comment-list li {
    border: none;
    padding: 0;
    font-size: 1.375rem;
    line-height: 2.25rem;
    margin-bottom: 4rem!important;
}

.comment-list li p {
     font-weight: 300;
}

.comment-list li p strong {
     font-weight: bold;
}

.comment-author-link {
    text-decoration: none;
    font-weight: bold;
    color: inherit;
    transition: all 0.2s ease;
}

a.comment-author-link {
    font-size: 1.4rem!important;
}


.comment-author-link:hover {
    opacity: 0.5;
}

.comment-author-link:hover {
    text-decoration: none;
}

h3.comment-reply-title {
  font-size: 2rem;
}

.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  background: #f6f6f6;
  border: none;
  border-radius: 6px;
  box-sizing: border-box;
}
.comment-textarea {
    height: 160px;
    resize: vertical;
}

.comment-notes {
    font-size: 1rem;
    color: #666;
    margin-bottom: 3rem;
}

.comment-submit {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.2s ease!important; 
  cursor: pointer;
}

.comment-submit:hover {
  opacity: 0.6;
}

.comment-submit:disabled {
  background-color: #ccc;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}


input[type="checkbox"]#wp-comment-cookies-consent {
  appearance: none;
  width: 22px;
  height: 22px;
  background-color: black;
  border: 1px solid black;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]#wp-comment-cookies-consent:checked::before {
  content: "✔";
  color: white;
  position: absolute;
  top: 0;
  left: 2px;
  font-size: 18px;
  line-height: 20px;
}



.logged-in-as a {
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1rem!important;
}

.logged-in-as a:hover {
  opacity: 0.5;
}


#wp-comment-cookies-consent {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background-color: black;
  border: 2px solid black;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  margin-right: 0.6rem;
  padding: 10px;
}

#wp-comment-cookies-consent:checked::before {
  content: "✔";
  color: white;
  font-size: 14px;
  position: absolute;
  pointer-events: none;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
}



/* ========================================
   ============ Footer-Links ==============
   ======================================== */


.blog-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #000;
}

.blog-footer a {
  color: #000;
  text-decoration: none;
  margin: 0 0.5rem;
}

.blog-footer a::before {
  content: "·";
  margin-right: 1.25rem;
  color: #000;
}

.blog-footer a:first-child::before {
  content: "";
  margin: 0;
}