/* ==========================================================================
   Howard Goldkrand — Personal Website
   style.css
   
   Table of Contents:
   1. Reset & Global Styles
   2. Typography
   3. Layout
   4. Navigation
   5. Homepage Content
   6. Body Text Links
   7. Work Page — Case Studies
   8. Work Page — Art Practice Entries
   9. Work Page — Patterns Section
   10. Writing Page
   11. Responsive / Mobile Styles
   ========================================================================== */


/* ==========================================================================
   1. Reset & Global Styles
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #a0afc5;
  color: #0d0d0d;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================================
   2. Typography
   ========================================================================== */

/* Headings — Nippo */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nippo', Georgia, serif;
  color: #0d0d0d;
  line-height: 1.25;
}

h1 {
  font-weight: 400;
  font-size: 3.25rem;
  letter-spacing: 0.02em;
}

/* Subtitle directly beneath h1 */
.subtitle {
  font-family: 'Nippo', Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #1a1a2e;
  margin-top: 0.25rem;
}

h2 {
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: 0.03em;
}

/* Body copy — Satoshi */
body, p, nav, a, ul, li, span {
  font-family: 'Satoshi', sans-serif;
}

p {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1.35rem;
  color: #0d0d0d;
}

/* Caption text */
.caption {
  font-size: 0.875rem;
  color: #4a5568;
  font-weight: 400;
}


/* ==========================================================================
   3. Layout
   ========================================================================== */

.site-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* Generous spacing between major sections */
.section {
  margin-top: 4rem;
}

/* Header area containing nav and hero */
.site-header {
  position: sticky;
  top: 0;
  background-color: #a0afc5;
  padding: 1rem 0;
  margin-bottom: 1rem;
  z-index: 100;
}

/* Hide nameplate on the homepage */
.home-page .site-nameplate {
  display: none;
}

/* Nameplate above nav on interior pages */
.site-nameplate {
  font-family: 'Nippo', Georgia, serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

/* Hero section with name and subtitle */
.hero {
  margin-top: 3.5rem;
}


/* ==========================================================================
   4. Navigation
   ========================================================================== */

/* Hamburger — hidden by default, shown on mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #0d0d0d;
}

.site-nav a[aria-current="page"] {
  color: #0d0d0d;
  border-bottom: 1.5px solid #0d0d0d;
  padding-bottom: 2px;
}


/* ==========================================================================
   5. Homepage Content — Body Copy
   ========================================================================== */

.body-copy {
  margin-top: 3rem;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */

.trust-bar {
  margin: 3rem 0 3.25rem;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: nowrap;
  max-width: 680px;
  margin: 0 auto;
}

.trust-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
}

.trust-logo img {
  display: block;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 200ms ease;
}

.trust-logo img:hover {
  opacity: 0.85;
}

/* Per-logo heights tuned so each reads at roughly equal optical weight */
.trust-logo--cadillac img { height: 48px; }
.trust-logo--dexter   img { height: 48px; }
.trust-logo--ebay     img { height: 65px; }
.trust-logo--moma     img { height: 36px; opacity: 0.5; }
.trust-logo--red      img { height: 29px; }
.trust-logo--verizon  img { height: 22px; }

@media (max-width: 720px) {
  .trust-bar__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 1.75rem;
  }
  .trust-logo--cadillac img { height: 38px; }
  .trust-logo--dexter   img { height: 22px; }
  .trust-logo--ebay     img { height: 24px; }
  .trust-logo--moma     img { height: 24px; }
  .trust-logo--red      img { height: 20px; }
  .trust-logo--verizon  img { height: 13px; }
}

/* Standalone emphasis line */
.emphasis-line {
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 1.35rem;
}

/* ==========================================================================
   6. Body Text Links
   ========================================================================== */

a {
  color: #0057b8;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}


/* ==========================================================================
   7. Work Page — Case Studies
   ========================================================================== */

.case-study {
  margin-top: 4rem;
}

.category-label {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.case-study h2 {
  margin-bottom: 0.35rem;
}

.credit {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0d0d0d;
  margin-bottom: 2rem;
}

.section-label {
  font-weight: 600;
  color: #0d0d0d;
  margin-bottom: 0.25rem;
}


/* ==========================================================================
   8. Work Page — Art Practice Entries
   ========================================================================== */

.practice-heading {
  font-weight: 300;
  line-height: 1.4;
}

.art-entry {
  margin-top: 4rem;
}

.art-entry h2 {
  margin-bottom: 0.35rem;
}

.descriptor {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0d0d0d;
  margin-bottom: 2rem;
}


/* ==========================================================================
   9. Work Page — Patterns Section
   ========================================================================== */

.patterns-section {
  margin-top: 4rem;
}

.patterns-section .category-label {
  margin-bottom: 1.5rem;
}

.patterns-section p:not(.category-label) {
  margin-bottom: 0.75rem;
}

.patterns-section p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   10. Writing Page
   ========================================================================== */

.writing-piece {
  margin-top: 4rem;
}

.writing-piece h2 {
  margin-bottom: 1.35rem;
}

.in-progress {
  font-style: italic;
  color: #4a5568;
  font-size: 0.9rem;
}

/* ==========================================================================
   Writing Page
   ========================================================================== */

.writing-piece {
  margin-top: 3.5rem;
  position: relative;
}

.writing-piece:first-of-type {
  border-top: none;
  padding-top: 0;
}

.writing-piece::before {
  content: '';
  display: block;
  width: 75%;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3.5rem;
}

.writing-piece:first-of-type::before {
  display: none;
}

.section-rule {
  width: 75%;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.5);
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}
/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-body {
  margin-top: 3rem;
}

.contact-body p {
  margin-bottom: 0.2rem !important;
}


/* ==========================================================================
   Homepage Banner
   ========================================================================== */

#banner {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  cursor: crosshair;
}

#banner canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 680px;
  padding: 0 2rem;
  z-index: 10;
  pointer-events: none;
}

.banner-nav a {
  pointer-events: auto;
}

#banner .hamburger {
  display: none;
  pointer-events: auto;
  position: relative;
  z-index: 20;
}

@media (max-width: 480px) {
  #banner {
    height: 60px;
    overflow: visible;
    cursor: default;
  }

  .banner-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    transform: none;
    max-width: 100%;
  }

  #banner .hamburger {
    display: flex;
    pointer-events: auto;
    position: relative;
    z-index: 20;
  }

  #banner .site-nav {
    display: none !important;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    background-color: #a0afc5;
    padding: 1rem 1.25rem;
    z-index: 100;
  }

  #banner .site-nav.nav-open {
    display: flex !important;
  }

  .home-page .hero {
    margin-top: 1.5rem;
  }
}

.home-page .site-wrapper {
  padding-top: 0;
}

.home-page .hero {
  margin-top: 2.5rem;
}

#banner .site-nav {
  display: inline-flex;
  width: auto;
}
/* ==========================================================================
   12. Responsive / Mobile Styles
   ========================================================================== */

/* Tablets and smaller desktops */
@media (max-width: 768px) {
  .site-wrapper {
    padding: 2.5rem 1.5rem 4rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .site-wrapper {
    padding: 2rem 1.25rem 3rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
  }

  /* Hide nav by default on mobile, show when toggled */
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    width: 100%;
    padding-top: 1rem;
  }

  .site-nav.nav-open {
    display: flex;
  }

  .hero {
    margin-top: 2.5rem;
  }

  .body-copy {
    margin-top: 2.25rem;
  }

  .section {
    margin-top: 3rem;
  }
}

/* Very small screens (320px target) */
@media (max-width: 360px) {
  .site-wrapper {
    padding: 1.5rem 1rem 2.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }
}
