/*
Theme Name: A.U.S.R. Orca
Author: Robbert Kooiman
Template: blankslate
Description: A.U.S.R. Orca 2025 is a locked-down visual child theme of BlankSlate, created exclusively for a single use case. It inherits all functional elements from the BlankSlate theme but applies a unique and fixed appearance. Only content is expected to change over time; customization or redistribution of this theme is strictly not permitted.
Version: 2025.1
Requires at least: 5.2
Tested up to: 6.5
Requires PHP: 7.4
License: All Rights Reserved
Text Domain: ausr-orca
*/

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

:root {
  --padding-small: 20px;
  --orca-red: #e60000;
  --header-height: 110px;
  --background: rgb(240, 240, 240);
  --text-color: #333;
  --orca-lustrum-xi: #662454;
  --orca-lustrum-xi-light: #99b8e4;
}

@media (max-width: 800px) {
  :root {
    --header-height: 80px;
  }
}

a {
  color: var(--orca-red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font-family: "Inter", "Helvetica", sans-serif;
}
body {
  font-family: "Inter", "Helvetica", sans-serif;
  margin: 0;
  background-color: var(--background);
  color: var(--text-color);
}

nav #search {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  src: url("fonts/inter-italic-variable.ttf");
  font-weight: 100 900;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  src: url("fonts/inter-variable.ttf");
  font-weight: 100 900;
}

header#header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  backdrop-filter: blur(10px);
  background: var(--background);
}

@media (min-width: 800px) {
  header#header {
    background: rgba(240, 240, 240, 0.6);
  }

  .has-dark-image header#header {
    background: rgba(0, 0, 0, 0.2);
    color: white;
  }

  .has-dark-image header#header .button {
    color: white;
  }

  .wp-post-image.header-over-image:first-child {
    margin-top: calc(var(--header-height) * -1);
  }
}

.admin-bar header#header {
  top: 32px;
}

header#header .wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  padding: var(--padding-small);
  margin: 0 auto;
  height: 100%;
  width: 100%;
}

nav a {
  color: inherit;
  text-decoration: none;
}

@media (width <= 1200px) {
  nav li {
    display: none;
  }
}

body.no-scroll {
  overflow: hidden;
}

nav#menu li.red-button {
  height: auto;
}
nav#menu li.red-button a {
  background: var(--orca-red);
  color: white;
  height: auto;
  padding: 10px 24px;
  border-radius: 10px;
}

.button {
  display: inline-block;
  background: white;
  color: var(--text-color);
  cursor: pointer;
  font-size: 21px;
  border: none;
  appearance: none;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  padding: 10px 24px;
}

.button.red-button {
  background: var(--orca-red);
  color: white;
}

nav#menu {
  display: flex;
  justify-content: end;
  flex-grow: 1;
  height: 100%;
}

nav#menu ul a:hover {
  text-decoration: underline;
  text-decoration-color: var(--orca-red);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

nav#menu ul.menu {
  display: flex;
  justify-content: end;
  align-items: center;
  margin: 0;
  height: 100%;
  gap: 20px;
  font-weight: 500;
  font-size: 21px;
  list-style: none;
}

nav#menu ul li a {
  display: flex;
  align-items: center;
  height: 100%;
}

nav#menu ul li {
  height: 100%;
  display: flex;
  position: relative;
}

.sub-menu {
  color: var(--text-color);
  display: none;
  position: absolute;
  list-style: none;
  padding: 0;
  background-color: #fff;
  border-radius: 10px;
  left: -20px;
  top: calc(var(--header-height) - 40px);
  overflow: hidden;
  right: auto;
  min-width: 100%;
  z-index: 200;
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
  /* Prevent overflow on the right */
}

@media (max-width: 600px) {
  .sub-menu {
    left: 0;
    right: 0;
    min-width: unset;
    max-width: 100vw;
  }
}

main > hr:first-child {
  display: none;
}

.posts-navigation {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--padding-small) 20px;
}

.posts-navigation .nav-links {
  flex-direction: row;
  justify-content: space-between;
}

@media (min-width: 800px) {
  .posts-navigation {
    padding: var(--padding-small) 40px;
  }
}

li:hover .sub-menu {
  display: block;
}

.caption-hero {
  position: absolute;
  bottom: 10px;
  font-size: 14px;
  right: 10px;
  margin: 0;
  font-style: italic;
  text-shadow: 1px 1px BLACK;
}

.caption-hero a {
  color: white;
}

.sub-menu a {
  padding: 10px 20px;
  width: 100%;
  line-height: normal;
  display: block;
}

.sub-menu a:hover {
  background-color: var(--orca-red);
  color: white;
}

.alignright {
  float: right;
  margin-left: var(--padding-small);
  margin-bottom: var(--padding-small);
}
.alignleft {
  float: left;
  margin-right: var(--padding-small);
  margin-bottom: var(--padding-small);
}

#branding {
  flex-shrink: 0;
}
input {
  border-radius: 10px;
}
.wp-block-latest-posts__list.is-grid {
  gap: 20px;
}
.wp-block-latest-posts__list.is-grid li {
  margin: 0;
}
.wp-block-latest-posts__list.is-grid .wp-block-latest-posts__featured-image {
  height: 200px;
  margin-bottom: 20px;
}
.wp-block-latest-posts__list.is-grid .wp-block-latest-posts__featured-image a {
  display: block;
  height: 100%;
  width: 100%;
}
.wp-block-latest-posts__list.is-grid
  .wp-block-latest-posts__featured-image
  a
  img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.wp-block-latest-posts__list.is-grid .wp-block-latest-posts__post-title {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  color: var(--text-color);
}

.wp-block-image img {
  width: 100%;
}

.home main > img.wp-post-image {
  max-height: 100vh;
}

main > img.wp-post-image {
  display: block;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  margin-inline: auto;
  width: 100%;
  /* randje om foto? */
  /* width: calc(100% - 60px);
  max-width: 1600px;
  border-radius: 30px; */
}

.wp-block-button__link,
.wp-element-button {
  background: var(--orca-red);
  color: white;
  padding: 10px 24px;
  border-radius: 10px;
}

.white-button .wp-block-button__link,
.white-button .wp-element-button {
  background: white;
  color: var(--text-color);
}

.lustrum-xi-button .wp-block-button__link,
.lustrum-xi-button .wp-element-button {
  background: var(--orca-lustrum-xi);
  color: white;
}

.lustrum-xi-light-button .wp-block-button__link,
.lustrum-xi-light-button .wp-element-button {
  background: var(--orca-lustrum-xi-light);
  color: var(--text-color);
}

.entry-title {
  font-size: 30px;
}

.entry-title a {
  text-decoration: none;
  color: var(--text-color);
}

.entry-meta {
  font-size: 16px;
  margin-bottom: var(--padding-small);
}

.home article {
  border-radius: 0;
  max-width: 1920px;
  padding-inline: 0;
  gap: 50px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 800px) {
  .home article {
    gap: 100px;
  }
}

.narrow {
  max-width: 1000px;
  padding-inline: var(--padding-small);
  margin: 0 auto;
}

h1 {
  font-size: 30px;
}

article {
  display: block;
  overflow-x: hidden;
  max-width: 800px;
  border-radius: 30px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.5;
  padding: 0 20px;
}
article h1 {
  line-height: 1.3;
}

@media (min-width: 860px) {
  article {
    padding: 0 40px;
  }
  :where(img) + article {
    margin-top: -100px;
    padding: 0 40px;
    position: relative;
    background-color: var(--background);
  }
}

footer.footer:before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--orca-red);
  margin-bottom: 40px;
}

footer.footer {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--padding-small) 40px;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-direction: column;
  font-weight: bold;
}

.nav-next,
.nav-previous {
  max-width: 70%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-next:after {
  content: "→";
  font-size: 24px;
  color: var(--orca-red);
}
.nav-previous:before {
  content: "←";
  font-size: 24px;
  color: var(--orca-red);
}

.nav-next {
  text-align: right;
  align-self: flex-end;
}

footer#footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px var(--padding-small);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  align-items: center;
}

footer#footer h2 {
  margin-top: 0;
}

@media (min-width: 1000px) {
  footer#footer {
    flex-direction: row;
    text-align: left;
    align-items: start;
  }
  footer#footer > * {
    flex: 1;
  }
  footer#footer img {
    order: 1;
  }
  footer#footer div:last-of-type {
    order: 2;
    text-align: right;
  }
}

footer#footer img {
  width: 200px;
  flex-grow: 0;
  height: auto;
}

footer#footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
footer#footer ul li {
  margin-bottom: 10px;
}

footer#footer p {
  margin: 0;
}

#mobile-menu-toggle,
#close-menu {
  display: none;
  height: 47px;
  width: 47px;
  padding: 6px;
  background: none;
}
#mobile-menu-toggle svg,
#close-menu svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 1200px) {
  nav#menu li:not(.red-button) {
    display: none;
  }
  #mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  nav#menu li.red-button {
    display: none;
  }
}

nav#menu #close-menu {
  display: none;
  align-self: end;
}

nav#menu.open {
  display: flex;
  justify-content: start;
  flex-direction: column;
  position: fixed;
  inset: 0;
  padding: 20px var(--padding-small) 100px;
  background: var(--background);
  color: var(--text-color);
  z-index: 1000;
  overflow-y: auto;
  height: 100dvh;
}

nav#menu.open .button {
  color: var(--text-color);
}

nav#menu.open .sub-menu {
  display: block;
  position: static;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding-left: 24px;
  margin-bottom: 10px;
  max-width: 100%;
}

nav#menu.open ul.menu {
  flex-direction: column;
  align-items: start;
  gap: 20px;
  padding: 20px;
  width: 100%;
}

nav#menu.open #close-menu {
  display: block;
}

nav#menu.open ul li {
  display: block;
}
nav#menu.open ul li a {
  padding: 10px 24px;
  height: auto;
}

.hero-title {
  line-height: 60px;
  min-height: 60px;
}

.hero-home {
  height: 100vh;
  padding-top: calc(var(--header-height) + 20px);
  margin-top: calc(var(--header-height) * -1);
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.hero-home img {
  max-width: 100vw;
}
.hero-home .burst {
  max-width: 110vw;
  width: 100vw;
  opacity: 0;
  animation-name: burst;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  animation-delay: 0.5s;
}
.hero-home img {
  position: absolute;
  right: 0;
  bottom: 0;
}
@media (min-width: 1000px) {
  .hero-home img {
    max-width: 60vw;
  }
  .hero-home .burst {
    max-width: 75vw;
  }
  .hero-home {
    margin-bottom: 100px;
    padding-top: 25vh;
  }
}
@keyframes burst {
  from {
    transform: scale(0.5);
    opacity: 0;
    right: -20vw;
    bottom: -30vw;
  }
  to {
    transform: scale(1);
    opacity: 1;
    right: -15vw;
    bottom: -25vw;
  }
}
.hero-home h1 {
  font-weight: bold;
  font-size: 50px;
}
.hero-home .content {
  width: 100%;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--padding-small);
}

.metadata {
  display: flex;
  justify-content: space-between;
  font-style: italic;
  font-size: smaller;
}

.social-links li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

hr.wp-block-separator,
hr {
  height: 50px;
  margin-inline: 10%;
  border: none;
  background-image: url(images/oar.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-block: 50px;
}
hr.wp-block-separator:nth-of-type(2n),
hr:nth-of-type(2n) {
  transform: scaleX(-1);
}
.typing-cursor {
  animation-name: blink;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(1);
}
@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.widget-area ul {
  padding: 0;
  list-style: none;
  margin: 0;
}
#mk-slider {
  max-width: 100vw;
  width: 240px;
  margin: 0 auto;
}
