/* ============================================================
   Drytide Labs — style.css
   Design system: DESIGN.md v1.0 (dark, brutalist-technical)
   ============================================================ */

/* === Custom Properties === */
:root {
  /* Colors */
  --bg:      #0A0A0A;
  --fg:      #F2F2F2;
  --bg-alt:  #111111;
  --green:  #22C822;
  --blue:   #4D90E8;
  --red:    #E63030;

  /* Typography */
  --font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro',
               Menlo, Monaco, 'Consolas', 'DejaVu Sans Mono', monospace;

  /* Spacing (8px base) */
  --space-xs:  0.25rem;  /*   4px */
  --space-sm:  0.5rem;   /*   8px */
  --space-md:  1.0rem;   /*  16px */
  --space-lg:  2.0rem;   /*  32px */
  --space-xl:  4.0rem;   /*  64px */
  --space-2xl: 8.0rem;   /* 128px */

  /* Layout */
  --max-width: 800px;
}

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

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === Base === */
html {
  font-size: 16px;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

small,
.caption {
  font-size: 0.875rem;
  line-height: 1.4;
}

/* === Links === */
a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: none;
}

a:hover {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* === Header === */
header {
  padding: var(--space-xl) 0;
  border-bottom: 2px solid var(--fg);
}

.header-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.avatar {
  width: 70px;
  height: 70px;
  border: 2px solid var(--fg);
  border-radius: 0;
  filter: invert (100%) grayscale(100%);
  display: block;
}

.branding {
  display: flex;
  flex-direction: column;
}

.wordmark {
  display: inline-block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-left: 4px solid var(--fg);
  padding-left: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.tagline {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0.7;
}

.statement {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: var(--space-md);
}

/* === Hero Quote === */
.hero-quote {
  padding: var(--space-xl) 0;
  border-bottom: 2px solid var(--fg);
}

.hero-quote-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.hero-quote-text {
  flex: 1;
}

.hero-quote-text blockquote p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hero-quote-text cite {
  display: block;
  margin-top: var(--space-md);
  font-size: 0.875rem;
  font-style: normal;
  opacity: 0.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-quote-portrait {
  flex-shrink: 0;
}

.hero-quote-portrait img {
  width: clamp(120px, 20vw, 160px);
  height: clamp(120px, 20vw, 160px);
  border: 2px solid var(--fg);
  object-fit: cover;
  filter: grayscale(0%);
}

/* === Proof (Project Grid) === */
.proof {
  padding: var(--space-xl) 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

/* === Project Card === */
.card {
  border: 2px solid var(--fg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--bg);
}

.card:hover {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

.project-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.875rem;
}

.project-head {
  font-size: 1rem;
  line-height: 1.5;
  padding-top: 10px;
  font-weight: bold;
  opacity: 0.85;
}

.project-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* === Badge === */
.badge {
  --badge-color: var(--fg);
  display: inline-block;
  border: 1px solid var(--badge-color);
  color: var(--badge-color);
  padding: 0 var(--space-xs);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
  font-weight: 400;
  vertical-align: middle;
}

.badge--green { --badge-color: var(--green); }
.badge--blue  { --badge-color: var(--blue); }
.badge--red   { --badge-color: var(--red); }

/* === Philosophy === */
.philosophy {
  padding: var(--space-xl) 0;
  border-top: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
}

.philosophy h2 {
  margin-bottom: var(--space-lg);
}

.philosophy-punch {
  background: var(--fg);
  color: var(--bg);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
}

.philosophy p {
  max-width: 65ch;
}

/* === Divider === */
hr {
  border: none;
  border-top: 1px solid var(--fg);
  opacity: 0.2;
  margin: var(--space-lg) 0;
}

/* === Footer === */
footer {
  padding: var(--space-lg) 0;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-lg);
  padding-top: var(--space-md); 
}

.status {
  font-size: 0.875rem;
  opacity: 0.7;
  max-width: 40ch;
}

.external-links {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
  font-size: 0.875rem;
}

/* === Responsive === */

/* --- Tablet (≤768px) --- */
@media (max-width: 768px) {
  .hero-quote-inner {
    gap: var(--space-lg);
  }

  .hero-quote {
    padding: var(--space-lg) 0;
  }

  header {
    padding: var(--space-lg) 0;
  }

  .proof,
  .philosophy {
    padding: var(--space-lg) 0;
  }

  footer {
    margin-top: var(--space-xl);
  }
}

/* --- Mobile (≤600px) --- */
@media (max-width: 600px) {
  .hero-quote-inner {
    flex-direction: column-reverse;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
  }

  .external-links {
    flex-wrap: wrap;
  }

  .status {
    max-width: 100%;
  }
}

/* --- Small phone (≤480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .hero-quote-inner {
    gap: var(--space-md);
  }

  .card {
    padding: var(--space-sm);
  }

  .philosophy p {
    max-width: 100%;
  }
}
