/* bradleycantrell.com — core styles */

:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --text: #e8e4dc;
  --text-dim: #7a756c;
  --text-dimmer: #3d3a35;
  --accent: #c8b89a;
  --accent2: #8a9e8c;
  --border: #1e1c19;
  --font-sans: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Freight Text Pro', 'Georgia', serif;
  --max: 1400px;
  --pad: clamp(1.5rem, 5vw, 4rem);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 300; letter-spacing: -0.01em; }
h3 { font-size: 1rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
p { font-size: clamp(0.95rem, 1.5vw, 1.05rem); color: var(--text); max-width: 65ch; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  background: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, transparent 100%);
}

.nav-name {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav-name span { color: var(--text); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(138, 158, 140, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 184, 154, 0.04) 0%, transparent 50%);
}

/* Topo texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cpath d='M0 200 Q100 150 200 200 Q300 250 400 200' stroke='%23ffffff' stroke-width='0.3' fill='none' opacity='0.03'/%3E%3Cpath d='M0 180 Q100 130 200 180 Q300 230 400 180' stroke='%23ffffff' stroke-width='0.3' fill='none' opacity='0.03'/%3E%3Cpath d='M0 220 Q100 170 200 220 Q300 270 400 220' stroke='%23ffffff' stroke-width='0.3' fill='none' opacity='0.02'/%3E%3C/svg%3E");
  background-size: 400px 400px;
}

.hero-content { position: relative; max-width: var(--max); }

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.5rem; }

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-dim);
  max-width: 50ch;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--text-dimmer);
  padding-bottom: 0.25rem;
  transition: color 0.2s, border-color 0.2s;
}
.hero-nav a:hover { color: var(--accent); border-color: var(--accent); }

/* Section base */
section {
  padding: clamp(4rem, 8vw, 8rem) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.section-count {
  font-size: 0.7rem;
  color: var(--text-dimmer);
  letter-spacing: 0.1em;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: 1px;
  background: var(--border);
  margin: 0 calc(-1 * var(--pad));
}

.project-card {
  background: var(--bg);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: block;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.7);
  transition: filter 0.5s, transform 0.7s;
}

.project-card:hover .project-card-img {
  filter: grayscale(0%) brightness(0.85);
  transform: scale(1.02);
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(8,8,8,0.9) 0%, transparent 100%);
  transform: translateY(0.5rem);
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
}

.project-card:hover .project-card-info {
  opacity: 1;
  transform: translateY(0);
}

.project-card-title {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.project-card-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* Writing list */
.writing-list { display: flex; flex-direction: column; gap: 0; }

.writing-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.writing-item:hover { background: rgba(255,255,255,0.02); }

.writing-title { font-size: 1rem; font-weight: 400; margin-bottom: 0.25rem; }
.writing-subtitle { font-size: 0.85rem; color: var(--text-dim); }
.writing-year { font-size: 0.8rem; color: var(--text-dimmer); white-space: nowrap; }

/* Dissertation feature */
.dissertation-feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.dissertation-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.dissertation-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.dissertation-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.dissertation-abstract {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 70ch;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--text-dimmer);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }

/* About */
.about-text {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.9;
  color: var(--text);
  max-width: 70ch;
}

.cv-section { margin-top: 3rem; }
.cv-section h3 { margin-bottom: 1rem; }
.cv-list { list-style: none; }
.cv-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.cv-list li span { color: var(--text-dimmer); font-size: 0.8rem; white-space: nowrap; }

/* Footer */
footer {
  padding: 3rem var(--pad);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p { font-size: 0.8rem; color: var(--text-dimmer); max-width: none; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .writing-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .dissertation-feature { padding: 1.5rem; }
}

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500&display=swap');
