/* ---------------------------------------------
   Shark River Studios — default.css
   Cleaned: no unnecessary duplication/overrides
---------------------------------------------- */

/* Design tokens */
:root {
  --text: #1c1c1e;
  --muted: #6b6b70;

  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --line: rgba(0, 0, 0, 0.08);

  --content-width: 34em;   /* reading column */
  --nav-width: 260px;
  --nav-radius: 14px;

  --nav-font-size: 15px;
  --nav-line-height: 1.2;

  --icon-size: 18px;
}

/* Base page styling */
body {
  margin: 0;
  padding: 0;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;       /* slightly larger than typical */
  line-height: 1.6;

  color: var(--text);
  background: var(--surface);
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--muted);
}

a:hover {
  text-decoration-color: var(--text);
}
a:visited {
  color: var(--text);
}

/* Main content column (wrap your page content in <main class="page"> ... ) */
.page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3em 1.5em 1.5em; /* top, left/right, bottom */
}

/* Heading */
h1 {
  text-align: center;
  font-weight: 600;
  font-size: 2em;
  margin: 0.3em 0 0.5em 0;
}

/* Page hero logo only */
.page-logo {
  display: block;
  margin: 0 auto 2.6em auto;
  max-width: 34em;
  width: 100%;
  height: auto;
}

/* Paragraph rhythm */
p {
  margin: 0 0 1.4em 0;
}

/* Improve readability on very large displays */
@media (min-width: 1200px) {
  body {
    font-size: 19px;
  }
}

/* -----------------------------
   Navigation: desktop + iPad
------------------------------ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;

  height: 100dvh;
  width: var(--nav-width);
  padding: 18px 14px;
  box-sizing: border-box;

  background: var(--surface);
  border-right: 1px solid var(--line);

  font-size: var(--nav-font-size);
  line-height: var(--nav-line-height);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 10px;
  border-radius: 10px;

  text-decoration: none;
  color: var(--text);

  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-item:hover {
  background: var(--surface-2);
}

.nav-item.is-active,
.nav-item[aria-current="page"] {
  background: var(--surface-2);
}

/* SVG icon inside nav items */
.nav-item .icon {
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 var(--icon-size);
  color: var(--muted);
}

.nav-item.is-active .icon,
.nav-item[aria-current="page"] .icon {
  color: var(--text);
}

/* PNG icon (Home logo_minimal.png) */
.nav-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 var(--icon-size);
  object-fit: contain;
}

.nav-icon-home {
  width: 55px;
  height: 55px;
  flex: 0 0 22px;
}

.nav-section-label {
  margin: 14px 10px 6px 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-sep {
  height: 1px;
  background: var(--line);
  margin: 12px 10px;
}

/* Make room for sidebar on desktop/iPad */
@media (min-width: 768px) {
  .page {
    margin-left: var(--nav-width);
  }
  .topbar {
         display: none !important;
  }
}

/* -----------------------------
   Navigation: iPhone menu
------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;

  background: var(--surface);
  border-bottom: 1px solid var(--line);

  padding: 10px 12px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 15px;
  font-weight: 600;

  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;

  padding: 8px 10px;
  color: var(--text);
}

.nav-toggle .icon {
  width: var(--icon-size);
  height: var(--icon-size);
  color: var(--muted);
}

@media (max-width: 767px) {
  /* Sidebar becomes a popup panel */
  .sidebar {
    position: fixed;
    top: 56px; /* below topbar */
    left: 12px;
    right: 12px;

    width: auto;
    height: auto;

    border: 1px solid var(--line);
    border-radius: var(--nav-radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);

    padding: 10px;

    transform-origin: top left;
    transform: scale(0.98);
    opacity: 0;

    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease;

    z-index: 30;
  }

  .sidebar.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgba(0, 0, 0, 0.18);
  }

  /* Content should not be offset for sidebar on phone */
  .page {
    margin-left: 0;
    padding-top: 1.5em;
  }
  
}

/* Focus visibility */
.nav-item:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.35);
  outline-offset: 2px;
  border-radius: 12px;
}

.topbar {
       position: relative;      /* key */
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: grid;
  grid-auto-flow: column;
  align-items: center;
  column-gap: 8px;

  white-space: nowrap;
  text-decoration: none;
  color: var(--text);

  font-size: 15px;
  font-weight: 600;
  line-height: 1;          /* keep the row tight */
}

.brand-link img {
  display: block;
  width: 32px;             /* pick your size */
  height: 32px;
  object-fit: contain;
}
/* Optional subtle hover/press feel */
.brand-link:active {
  opacity: 0.6;
}