/*
Theme Name: Negai
Theme URI: https://wordpress.com/theme/negai/
Author: Automattic
Author URI: https://automattic.com/
Description: Negai is a bold blogging theme with large post titles and interesting colour schemes
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 5.7
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: negai
Tags: blog, one-column, block-patterns, block-styles, featured-images, full-site-editing, rtl-language-support, style-variations, threaded-comments, translation-ready
*/

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline >.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 0.5px !important;
	text-underline-offset: .1em;
}


/* Hover/focus: color + bold, no underline, no box */
a:hover,
a:focus-visible {
  !color: #b7bf99;              /* your hover color */
  text-decoration: none;       /* explicitly keep underline off */
  font-weight: 600;            /* bold on hover; adjust to 500/700 as needed */
}

/* Accessibility: keep visible focus without a box-shadow/outline if you prefer none.
   If you want some focus indicator for keyboard users, use an underline only on focus-visible. */
a:focus {
  outline: none;               /* remove default focus box */
}

/* Optional: provide a subtle focus style for keyboard users without underline/box.
   Comment these lines out if you want absolutely no change on focus. */

a:focus-visible {
  text-decoration: none;
  !color: #b7bf99;
  font-weight: 600;
}

/*
 * Form field styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
::placeholder {
	color: var(--wp--preset--color--contrast);
	opacity: 1; /* Firefox */
}

input:not([type="submit"]):not([type="checkbox"]),
textarea,
.wp-block-post-comments-form input:not([type=submit]),
.wp-block-post-comments-form textarea {
	background-color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

input:not([type="submit"]):not([type="checkbox"]):focus,
textarea:focus {
	outline-style: solid;
	outline-color: var(--wp--preset--color--contrast);
}

/*
 * Navigation Block
 * Reset the padding from List block
 * https://github.com/WordPress/gutenberg/issues/50486
 */
.wp-block-navigation ul {
	padding: unset;
}

/* Make the header/nav a stacking context above page content */
header,
.wp-block-template-part[name="header"],
.wp-block-navigation {
  position: relative;
  z-index: 3000;
  overflow: visible; /* prevent clipping of dropdowns */
}

/* Desktop dropdown: solid panel that overlays content */
.wp-block-navigation .wp-block-navigation__submenu-container {
  position: absolute;        /* overlay instead of pushing content */
  top: 100%;
  left: 0;
  z-index: 3000;             /* above hero */
  background: var(--wp--preset--color--background, #fff);
  border: 1px solid var(--wp--preset--color--contrast);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  min-width: 500px;
}

/* Improve submenu item readability */
/*.wp-block-navigation__submenu-container a {
  display: block;
  padding: 0.6rem 0.9rem;
}

/* Mobile overlay: sit above everything and be opaque */
.wp-block-navigation__responsive-container.is-menu-open {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.5);  /* backdrop */
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
  background: var(--wp--preset--color--background, #fff);
}

/* Prevent page scroll under mobile menu */
body.has-modal-open {
  overflow: hidden;
}

/*
 * Pull quote Block
 * Reset the browser default margins for blockquote element
 * https://github.com/WordPress/gutenberg/issues/44129
 */
.wp-block-pullquote blockquote,
.wp-block-pullquote p {
	margin: 0;
}
/* style.css */
@font-face {
  font-family: 'Gesta';
  src: url('/wp-content/themes/negai/assets/fonts/fonnts.com-Gesta_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gesta';
  src: url('/wp-content/themes/negai/assets/fonts/fonnts.com-Gesta_Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gesta';
  src: url('/wp-content/themes/negai/assets/fonts/fonnts.com-Gesta_Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gesta';
  src: url('/wp-content/themes/negai/assets/fonts/fonnts.com-Gesta_Light_Italic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gesta';
  src: url('/wp-content/themes/negai/assets/fonts/fonnts.com-Gesta_Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gesta';
  src: url('/wp-content/themes/negai/assets/fonts/fonnts.com-Gesta_Medium_Italic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gesta';
  src: url('/wp-content/themes/negai/assets/fonts/fonnts.com-Gesta_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gesta';
  src: url('/wp-content/themes/negai/assets/fonts/fonnts.com-Gesta_Bold_Italic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root { --wp--preset--font-family--gesta: 'Gesta', system-ui, sans-serif; }

body { font-family: var(--wp--preset--font-family--gesta); }
h1, h2, h3, h4, h5, h6 { font-family: var(--wp--preset--font-family--gesta); }


/* Fix invalid property in your link hover */
a:hover,
a:focus-visible {
  color: #b7bf99;            /* replace !color */
  text-decoration: none;
  font-weight: 600;
}

/* Optional: stronger focus for accessibility in mobile nav */
.has-modal-open .wp-block-navigation__container a:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

/* Optional: ensure submenu items inherit the set weight cleanly */
.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-weight: 500;
}

/* Optional: top-level items bold in all contexts */
.wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item .wp-block-navigation-item__content {
  font-weight: 700;
}

/* Optional: right-align on small screens globally */
@media (max-width: 782px) {
  .wp-block-navigation__container {
    align-items: flex-end;
    text-align: right;
  }
}


