/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=BBH+Bogle&family=Boldonse&family=Palette+Mosaic&family=Recursive:wght@300..1000&family=Revalia&family=Special+Gothic+Expanded+One&family=Stack+Sans+Notch:wght@200..700&family=Vollkorn:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Nandinagari&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Frijole&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@100..900&family=Fira+Sans:wght@100..900&family=Rubik:wght@300..900&display=swap');
html {
  color: #353535;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
* Header
*/

* {
  box-sizing: border-box;
}

body {
  font-family: 'Rubik', sans-serif;
  color: #F0F4EF;
  margin: 0;
  padding: 80px 30px;
  background-color: #1B1D1D;
}

.site-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  margin: -80px -30px 30px;
}

.site-header nav {
  width: 100%;
  flex-wrap: wrap;
  gap: 8px clamp(12px, 2vw, 28px);
}

h1 {
  font-family: 'Catamaran', sans-serif;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: 'Fira Sans', sans-serif;
}

nav a {
  font-family: 'Frijole', sans-serif;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: #262828;
}

nav a {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  color: #E0E0E2;
  padding: 24px 8px;
  transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

nav a:hover {
  color: #449DD1;
}

nav:has(a:hover) a:not(:hover) {
  opacity: 0.3;
}

/* CARD */

.card {
  background: #262828;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px #449DD1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  padding: 28px 32px;

  margin-bottom: 30px;
}

.card > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.card-media {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

img {
  display: block;
  width: auto;
  max-width: min(450px, 100%);
  height: auto;
  margin: 24px auto;
  border: 2px solid #1b1d1d86;
}

.game-link {
  display: grid;
  place-items: center;
  width: min(330px, 100%);
  aspect-ratio: 3300 / 1200;
  margin: 0 auto 12px;
  background: url("/assets/UI/ORANGE_ButtonUnhovered_ver01.png") center / 100% 100% no-repeat;
  color: #1b1d1dac;
  font-family: 'Fira Sans', sans-serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.game-link:hover,
.game-link:focus-visible {
  background-image: url("/assets/UI/ORANGE_ButtonHovered_ver01.png");
}

.game-link:focus-visible {
  outline: 3px solid #F0F4EF;
  outline-offset: 4px;
}

.card-media video,
.card-media iframe {
  width: 52%;
  max-width: 520px;
  display: block;
}

.card-body {
  font-size: 18px;
  line-height: 1.7;
  color: #F0F4EF;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.about-layout p {
  margin: 0;
  line-height: 1.7;
}

.about-hiking {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  border-radius: 12px;
}

.contact-list {
  display: grid;
  gap: 24px;
  padding: 0;
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
}

.contact-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-portrait {
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 45%;
  margin: 0;
  border-radius: 12px;
}

.card.code {
  background: #0b0b0b;
  border: px solid #2a2a2a;
}

pre {
  background: #0b0b0b;
  border-radius: 6px;
  padding: 22px;
  overflow-x: auto;
}

code {
  font-family: Consolas, Monaco, monospace;
  font-size: 16px;
  line-height: 1.8;
  color: #f5f5f5;
  white-space: pre;
  display: block;
}

.card-body .external {
  display: inline-block;
  margin: 18px 0 22px;
  font-weight: 600;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media only screen and (max-width: 40em) {
  .contact-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-portrait {
    grid-row: 1;
    max-width: 280px;
    justify-self: center;
  }

  .about-hiking {
    grid-row: 1;
  }
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {

  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}