/*
Theme Name: fisherak
Theme URI: https://fisherak.com
Author: Mike Fisher
Author URI: https://fisherak.com
Description: A clean, minimal personal site theme for fisherak.com. Streamlined static-page focused layout with responsive navigation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fisherak
Tags: personal, minimal, static-pages, responsive
*/

/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */
:root {
  --color-navy:       #1C2B3A;
  --color-teal:       #2E7D6B;
  --color-teal-light: #3A9E88;
  --color-bg:         #F5F3EE;
  --color-white:      #FFFFFF;
  --color-muted:      #9EAAB5;
  --color-border:     #DFE3E7;
  --color-text:       #2A3540;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --size-xs:   0.75rem;
  --size-sm:   0.875rem;
  --size-base: 1rem;
  --size-lg:   1.125rem;
  --size-xl:   1.375rem;
  --size-2xl:  1.75rem;
  --size-3xl:  2.25rem;
  --size-4xl:  3rem;

  --max-width: 1000px;
  --header-height: 64px;
  --radius: 4px;

  --transition: 200ms ease;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-teal-light);
}

a:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-navy);
  margin-bottom: 0.75em;
}

h1 { font-size: var(--size-4xl); }
h2 { font-size: var(--size-3xl); }
h3 { font-size: var(--size-2xl); }
h4 { font-size: var(--size-xl); }
h5 { font-size: var(--size-lg); }
h6 { font-size: var(--size-base); font-weight: 700; }

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

blockquote {
  border-left: 3px solid var(--color-teal);
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--color-navy);
  background: var(--color-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

strong { font-weight: 600; }
em { font-style: italic; }

code, pre {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

code {
  padding: 0.1em 0.4em;
}

pre {
  padding: 1em 1.25em;
  overflow-x: auto;
  margin-bottom: 1.25em;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* =========================================
   LAYOUT
   ========================================= */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: 1140px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  /* Signature teal top accent line */
  box-shadow: 0 -3px 0 0 var(--color-teal) inset;
  height: var(--header-height);
}

.site-header .container {
  max-width: 1140px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* =========================================
   SITE BRANDING
   ========================================= */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.custom-logo {
  height: 36px;
  width: auto;
  border-radius: 50%;
}

.site-title {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: -0.01em;
  line-height: 1;
}

.site-title:hover {
  color: var(--color-teal-light);
}

.site-description {
  display: none;
}

/* =========================================
   PRIMARY NAVIGATION
   ========================================= */
.nav-primary {
  display: flex;
  align-items: center;
}

.nav-primary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-primary li {
  position: relative;
  margin: 0;
}

.nav-primary a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-primary a:hover,
.nav-primary .current-menu-item > a,
.nav-primary .current-page-ancestor > a {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.nav-primary .current-menu-item > a {
  color: var(--color-teal-light);
}

/* Dropdown sub-menus */
.nav-primary .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
  flex-direction: column;
  gap: 0;
}

.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-primary .sub-menu a {
  color: var(--color-text);
  border-radius: 0;
  padding: 0.6rem 1rem;
  font-size: var(--size-sm);
}

.nav-primary .sub-menu a:hover {
  background: var(--color-bg);
  color: var(--color-teal);
}

.nav-primary .sub-menu li:first-child a {
  border-radius: var(--radius) var(--radius) 0 0;
}

.nav-primary .sub-menu li:last-child a {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Dropdown arrow indicator */
.nav-primary .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  opacity: 0.7;
}

/* =========================================
   HAMBURGER / MOBILE NAV TOGGLE
   ========================================= */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-white);
  border-radius: var(--radius);
  transition: background var(--transition);
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Animated X state */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   SITE BANNER
   ========================================= */
.site-banner {
  width: 100%;
  overflow: hidden;
  max-height: 420px;
  position: relative;
}

.site-banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}

.site-banner--none {
  display: none;
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.site-main {
  flex: 1;
  padding: 3.5rem 0 4rem;
}

/* Original version
.entry-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
*/

.entry-header {
	display:none
}

/* Original version
.entry-title {
  font-size: var(--size-4xl);
  color: var(--color-navy);
}
*/

.page .entry-title {
	display: none
}

.entry-content {
  max-width: 100%;
}

.entry-content > * + * {
  margin-top: 1.25em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
}

/* Alignments */
.alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
  margin: 1.5em auto;
}

.alignwide {
  margin-left: -2rem;
  margin-right: -2rem;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

/* =========================================
   PAGE / POSTS
   ========================================= */
.page-header {
  margin-bottom: 3rem;
}

/* Original version
.page-header .page-title {
  font-size: var(--size-3xl);
  color: var(--color-navy);
}
*/

.page-header .page-title {
  display: none
}


/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0;
  font-size: var(--size-sm);
  border-top: 3px solid var(--color-teal);
}

.site-footer .container {
  max-width: 1140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-credits a {
  color: rgba(255,255,255,0.7);
}

.footer-credits a:hover {
  color: var(--color-teal-light);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: var(--size-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--color-teal-light);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn,
button[type="submit"],
input[type="submit"] {
  display: inline-block;
  padding: 0.6em 1.4em;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--color-teal);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--color-teal-light);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
}

.btn--outline:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

/* =========================================
   FORMS
   ========================================= */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.65em 0.875em;
  font-family: var(--font-body);
  font-size: var(--size-base);
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(46,125,107,0.15);
}

/* =========================================
   SEARCH RESULTS
   ========================================= */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-form input[type="search"] {
  flex: 1;
}

/* =========================================
   404
   ========================================= */
.error-404 .page-content {
  text-align: center;
  padding: 4rem 0;
}

.error-404 .page-content .error-code {
  font-size: 6rem;
  font-family: var(--font-display);
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 0.25em;
}

/* =========================================
   SKIP LINK (ACCESSIBILITY)
   ========================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-teal);
  color: var(--color-white);
  padding: 0.5em 1em;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* =========================================
   SCREEN READER TEXT
   ========================================= */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* =========================================
   MOBILE — RESPONSIVE
   ========================================= */
@media (max-width: 768px) {

  :root {
    --header-height: 60px;
  }

  h1, .entry-title { font-size: var(--size-3xl); }
  h2              { font-size: var(--size-2xl); }
  h3              { font-size: var(--size-xl); }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav-primary {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-navy);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 99;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-primary.is-open {
    display: flex;
  }

  .nav-primary ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-primary li {
    width: 100%;
  }

  .nav-primary a {
    font-size: var(--size-lg);
    padding: 0.875rem 0.5rem;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: 0;
    width: 100%;
  }

  .nav-primary a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--color-white);
  }

  /* Mobile sub-menus */
  .nav-primary .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.04);
    padding-left: 1rem;
    display: none;
  }

  .nav-primary .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .nav-primary .sub-menu a {
    color: rgba(255,255,255,0.7);
    font-size: var(--size-base);
    padding: 0.65rem 0.5rem;
    border-radius: 0;
  }

  .nav-primary .sub-menu a:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.06);
  }

  .nav-primary .menu-item-has-children > a::after {
    float: right;
    margin-top: 0.5rem;
  }

  .site-banner img {
    height: 220px;
  }

  .site-main {
    padding: 2rem 0 3rem;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

/* =========================================
   PRINT
   ========================================= */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
