/* ============================================
   stuffz.net — Seth Goldberg
   Dark Editorial Aesthetic
   ============================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
  --bg:           #0f0e0c;
  --bg-alt:       #141310;
  --bg-card:      #1a1815;
  --bg-card-hover:#201e1a;
  --border:       #2a2720;
  --border-light: #3a3530;

  --text:         #e8e2d9;
  --text-muted:   #8a8070;
  --text-faint:   #4a4540;

  --accent:       #c9963a;
  --accent-light: #e8b85a;
  --accent-dim:   #7a5a1f;

  --serif:        'Playfair Display', Georgia, serif;
  --mono:         'IBM Plex Mono', 'Courier New', monospace;
  --sans:         'IBM Plex Sans', system-ui, sans-serif;

  --radius:       4px;
  --transition:   0.25s ease;
  --max-width:    1100px;
  --max-narrow:   720px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  /* Subtle grain texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

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

::selection { background: var(--accent-dim); color: var(--text); }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,150,58,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn--full { display: block; text-align: center; width: 100%; }

/* --- HEADER / NAV --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: rgba(15,14,12,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--text); }
.nav-logo-dot { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-subtle { color: var(--text-faint) !important; }
.nav-subtle:hover { color: var(--text-muted) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-muted);
  transition: all var(--transition);
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(201,150,58,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(201,150,58,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.hero-bg-text {
  position: absolute;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(8rem, 22vw, 22rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,150,58,0.07);
  letter-spacing: -0.05em;
  user-select: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: left;
  animation: fadeUp 1s ease both;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}
.hero-name {
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  writing-mode: vertical-lr;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* --- SECTIONS --- */
.section { padding: 7rem 2rem; }
.section--alt { background: var(--bg-alt); }
.section--more {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-inner--narrow {
  max-width: var(--max-narrow);
}
.section-header {
  margin-bottom: 4rem;
}
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.section-title {
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.8;
}

/* --- PHOTOGRAPHY --- */
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.photo-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  overflow: hidden;
  transition: all var(--transition);
  color: var(--text);
  min-height: 200px;
}
.photo-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.photo-card:hover { color: var(--text); }
.photo-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.photo-card-icon {
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.photo-card-text h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.photo-card-text p {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.photo-card-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: auto;
  transition: transform var(--transition);
}
.photo-card:hover .photo-card-arrow { transform: translateX(6px); }
.photo-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  transition: opacity var(--transition);
  background-size: cover;
  background-position: center;
}
.photo-card:hover .photo-card-bg { opacity: 0.12; }
.photo-card-bg--smugmug {
  background: linear-gradient(135deg, var(--accent), #8b5e10);
}
.photo-card-bg--gallery {
  background: linear-gradient(135deg, #3a7a6a, #1a4a3a);
}

/* --- RESUME --- */
.resume-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}
.resume-block {
  margin-bottom: 3rem;
}
.resume-block:last-child { margin-bottom: 0; }
.resume-block-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.resume-item { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.resume-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.resume-item-role {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.resume-item-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.resume-item-company {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.75rem;
}
.resume-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.skill-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.skill-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-faint);
}
.skill-list a { color: var(--text-muted); }
.skill-list a:hover { color: var(--accent); }
.resume-download {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --- THINGS --- */
.things-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.thing-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  color: var(--text);
}
.thing-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  color: var(--text);
}
.thing-card-icon {
  font-size: 1.25rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.thing-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.thing-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CONTACT FORM --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,150,58,0.12);
}
.form-honeypot { display: none; }

/* --- MORE SECTION --- */
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.more-card {
  display: block;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.more-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  opacity: 0;
  transition: opacity var(--transition);
}
.more-card:hover::before { opacity: 1; }
.more-card:hover {
  border-color: var(--border-light);
  color: var(--text);
}
.more-card-year {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.more-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}
.more-card:hover h3 { color: var(--text); }
.more-card p {
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}
.more-card:hover p { color: var(--text-muted); }

/* --- FOOTER --- */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--accent); }
.footer-left p, .footer-right p {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  line-height: 1.8;
}
.footer-left a, .footer-right a { color: var(--text-faint); }
.footer-left a:hover, .footer-right a:hover { color: var(--accent); }
.footer-right { text-align: right; }
.footer-vim {
  color: var(--accent) !important;
  font-size: 0.85rem !important;
  margin-top: 0.5rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* Staggered section reveal */
.section-header,
.photo-grid,
.things-grid,
.resume-layout,
.contact-form,
.more-grid {
  animation: fadeUp 0.8s ease both;
  animation-play-state: paused;
}
.section-header { animation-delay: 0.1s; }
.photo-grid, .things-grid, .resume-layout,
.contact-form, .more-grid { animation-delay: 0.25s; }
.in-view { animation-play-state: running !important; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: 1fr; }
  .things-grid { grid-template-columns: repeat(2, 1fr); }
  .resume-layout { grid-template-columns: 1fr; gap: 2rem; }
  .resume-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .resume-download { grid-column: 1 / -1; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 4rem 1.25rem; }
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero-scroll-hint { display: none; }
  .things-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 2rem; align-items: flex-start; }
  .footer-right { text-align: left; }
  .resume-sidebar { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; gap: 1.5rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
