/*
Theme Name: JJ Theme, flavor 2026
Theme URI: http://underscores.me/
Author: Ben Richbois <contact@richebois.fr>
Author URI: http://richebois.fr/
Description: The revamped theme for Jeune de Saint Jean, edition 2026
Version: 1.0.1
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: jj-theme-2026
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

JJ Theme 2026 is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries

--------------------------------------------------------------*/

/*
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The default CSS style have been added as partials to TailwindCSS, in `resources/css/partials`
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
/*

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
::root {
  color-scheme: light;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  font-family: var(--font-text);
  font-weight: 400;
  font-style: normal;

  font-size: 1.1667em;
  @apply h-dvh;
  color: var(--text-color);
  background-color: var(--bg-color);
}
a {
  font-weight: 500;
  color: var(--color-link);
  transition: color 0.25s var(--default-transition);
  text-decoration: inherit;
  &:focus-visible {
    outline-offset: 0.25em;
    outline-width: 0.25em;
    outline-color: currentColor;
  }
}

/* Sections
	 ========================================================================== */

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/* Navigation
--------------------------------------------- */

.main-navigation {
  display: block;
  width: 100%;
}

.main-navigation ul {
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.main-navigation ul ul {
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  float: left;
  position: absolute;
  top: 100%;
  left: -999em;
  z-index: 99999;
}

.main-navigation ul ul ul {
  left: -999em;
  top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
  display: block;
  left: auto;
}

.main-navigation ul ul a {
  width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
  left: auto;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  text-decoration: none;
}

/* Small menu. */
.main-navigation.toggled {
  button {
    background-color: color-mix(
      in oklab,
      var(--color-light-brown) 40%,
      transparent
    );
  }
  ul {
    display: flex;
    flex-direction: column;
    align-items: start;
  }
}

/* md: */
@media screen and (min-width: 48em) {
  /*.menu-toggle {
    display: none;
  }*/

  .main-navigation ul {
    display: flex;
  }
}
