@import url(root.css);
@import url(components/badges.css);
@import url(components/buttons.css);
@import url(components/cards.css);
@import url(components/modal.css);
@import url(components/grids.css);
@import url(components/lists.css);
@import url(nav.css);
@import url(container.css);
@import url(projects.css);
@import url(queries.css);

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

html {
  font-size: 16px;
}

body {
  font-size: 16px;
  line-height: var(--lh-normal);
  font-family: "Cormorant Garamond", serif;
  color: var(--color-text-primary);
  cursor: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Variables now defined in root.css */

a {
  text-decoration: none;
  color: #a1582b;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

/* Hover effect gedeactiveerd */
a:hover {
  color: inherit;
  border-bottom-color: transparent;
}

/* Remove all focus outlines by default (no borders on click) */
*:focus {
  outline: none;
}

/* Only show focus indicators for keyboard navigation (tab users) */
*:focus-visible {
  outline: 2px solid #a1582b;
  outline-offset: 2px;
}

/* Specific focus-visible styles for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #a1582b;
  outline-offset: 2px;
}

/* Visually hidden text for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h2 {
  position: relative;
  padding-bottom: var(--micro-spacing);
  margin: 0 0 var(--element-spacing);
  font-size: var(--fz-xl);
  font-weight: 500;
  text-transform: lowercase;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 1px;
  background: rgba(0, 0, 0, 0.35);
}

h3 {
  font-size: var(--fz-lg);
  font-weight: 500;
  margin: 0 0 var(--element-spacing);
  padding-bottom: var(--space-sm);
  text-transform: capitalize;
  color: #000000;
  line-height: 1.3;
}

.about-title,
.more-headline {
  font-size: var(--fz-xxl) !important;
}

.about-lead,
.opener,
.more-opener {
  font-size: var(--fz-md) !important;
}

.bullet-clean li,
.more-col li,
.me-bits li {
  font-size: var(--fz-base) !important;
}

.about-facts li,
.chips span {
  font-size: var(--fz-xs) !important;
}

.contact-extended .bullet-clean.mini li {
  font-size: var(--fz-sm) !important;
}

/* Custom cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: #a1582b;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

/* Cursor hover state gedeactiveerd */
.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1);
  background: #a1582b;
}

/* Reset cursor for specific elements */
input,
textarea,
[contenteditable] {
  cursor: text !important;
}

a,
button,
.project,
.carousel-btn {
  cursor: pointer !important;
  pointer-events: auto;
}

/* Accessibility: Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .custom-cursor {
    display: none;
  }

  a,
  button {
    cursor: pointer !important;
  }

  * {
    cursor: auto !important;
  }

  /* Disable all transitions and animations */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .custom-cursor {
    background: #000;
    border: 2px solid #fff;
  }

  .chip {
    border-width: 2px;
    font-weight: 600;
  }
}

/* Background - Simple Cream Color */
.bg-sand {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg-main);
  z-index: 0.5;
  pointer-events: none;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header__logo img {
  display: block;
  width: 100%;
  max-width: 110px;
  height: auto;
}

.logo {
  font-size: 1rem;
  font-weight: 200;
  margin-bottom: 16px;
  cursor: pointer;
}

main {
  margin-left: 15rem;
  padding: 4rem 40px 320px;
  justify-content: flex-start;
  width: calc(100% - 15rem);
  max-width: calc(100vw - 15rem);
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
  z-index: 10;
}

/* Add anchor offset so first headings not hidden under fixed header on mobile */
main h1,
main h2,
main h3,
.more-headline {
  scroll-margin-top: 90px;
}

/* Menu Bottom - Stacked layout */
.menu-bottom {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

@media (max-width: 900px) {
  .menu-bottom {
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    align-items: center;
  }
}

/* Contact Button styles moved to components/buttons.css */
/* Modal styles moved to components/modal.css */

/* Component-specific responsive styles moved to their respective component files */

/* ---- Mobile overrides placed at end to win cascade (fix leftover left gap) ---- */
@media (max-width: 1024px) {
  main {
    margin: 0;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 120px 24px 130px 24px;
  }
}
@media (max-width: 768px) {
  main {
    margin: 0;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 130px 20px 120px 20px;
  }
}
@media (max-width: 480px) {
  main {
    margin: 0;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 135px 18px 110px 18px;
  }
}
@media (max-width: 360px) {
  main {
    margin: 0;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 140px 14px 105px 14px;
  }
}

/* Unified page hero - default layout */
.page-hero {
  margin: 0 0 var(--section-spacing);
  max-width: 80ch;
}

.page-hero .hero-content {
  margin-bottom: var(--space-lg);
}

.page-hero .chip-list {
  margin-top: var(--space-base);
}

/* Override page-hero width constraint on project detail pages to match project grid */
.project-detail-page .page-hero {
  max-width: none;
}

.page-hero h1 {
  font-size: var(--fz-hero);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin: 0 0 var(--element-spacing);
}
/* Allow capitalized first letter in page hero headings */
.page-hero h1 {
  text-transform: none;
}

/* Global unified paragraph styling */
p {
  font-size: var(--fz-md);
  line-height: 1.55;
  color: #000000;
  margin: 0 0 var(--space-base);
}

/* Remove old special wrappers influence */
.outside-wrapper,
.about-new {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Ensure consistent first section spacing */
main > .layout:first-child {
  padding-top: 0;
}

/* Unified layout wrapper */
.layout {
  width: 100%;
  margin: 0;
  padding: 0 var(--space-lg) var(--space-xxxl);
  box-sizing: border-box;
  max-width: 1200px;
}

@media (min-width: 1300px) {
  .layout {
    margin: 0;
  }
}

/* Chip/badge styles moved to components/badges.css */

/* Shared section + grid styles (consolidated from about/more) */
.about-section,
.section {
  margin: 0 0 var(--section-spacing);
}
/* Two-column grid moved to components/grids.css */

/* List styles moved to components/lists.css */

.contact-block {
  border-top: 1px solid #e2e2e2;
  padding-top: var(--space-lg);
  margin-top: var(--space-base);
}
/* Grid styles moved to components/grids.css */

.label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--fz-xs);
  letter-spacing: 0.08em;
  padding-top: 2px;
}

/* No hover effects - keep simple like "working on" projects */

/* Photo and grid styles moved to components/cards.css and components/grids.css */

/* Chips styles moved to components/grids.css */

.gallery-block {
  margin: 0 0 5rem;
}
.note,
.gallery-note {
  font-size: var(--fz-sm);
  color: #666;
  margin: 0 0 2rem;
  line-height: 1.5;
}
.gallery-block .gallery-note,
.gallery-block .note {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: -0.5rem 0 1.8rem;
  color: #444;
}
/* Mosaic, reading list, and materials grid moved to components/grids.css and components/lists.css */
.notes-grid {
  display: grid;
  gap: 0.8rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  max-width: 720px;
}
.notes-grid p {
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

/* Responsive grid styles moved to components/grids.css */
/* List styles moved to components/lists.css */

/* Closing link restyle (no pill, dash + accent underline) */
.closing a {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  color: #a1582b;
  font-size: var(--fz-base);
  position: relative;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.closing a:before {
  content: "–";
  position: relative;
  left: 0;
  margin-right: 0.55rem;
  color: #a1582b;
}
.closing a:hover {
  border-color: #a1582b;
  transform: none;
}

/* Lightbox styles moved to components/modal.css */

/* Lightbox close button moved to components/buttons.css */

/* Make project detail images clickable - no hover effects */
.project-detail-page .project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-detail-page .project-grid img,
.project-detail-page .project-grid video {
  cursor: pointer;
  border-radius: 8px;
  aspect-ratio: 2/1;
  object-fit: contain;
  background: #f8f8f8;
  width: 100%;
  height: auto;
}

/* Responsive styles for project detail grid */
@media (max-width: 768px) {
  .project-detail-page .project-grid {
    gap: 1rem;
  }

  .project-detail-page .project-grid img,
  .project-detail-page .project-grid video {
    aspect-ratio: 2/1;
  }
}

@media (max-width: 480px) {
  .project-detail-page .project-grid {
    gap: 0.8rem;
  }

  .project-detail-page .project-grid img,
  .project-detail-page .project-grid video {
    border-radius: 6px;
  }
}
