/*
Theme Name: Erich Lamas
Theme URI: https://example.com
Author: Erich Lamas
Author URI: https://example.com
Description: A clean, minimal one-page personal site theme for Erich Lamas — hero image, bio, gallery and a recommended reading list.
Version: 1.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: erichlamas
*/

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: #0d0b14;
  color: #e9e6f2;
  font-family: 'Fredoka', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.el-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Hero ---------- */
.el-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.el-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 1;
}

.el-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(8,6,14,0.65) 82%, #0d0b14 100%);
}

.el-hero-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  text-align: center;
  z-index: 2;
}

.el-hero-title h1 {
  margin: 0;
  font-family: 'Fredoka', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.02;
  color: #f4f2fb;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* ---------- Bio / paragraph ---------- */
.el-bio {
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.el-bio p {
  font-family: 'Fredoka', 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: #cfc9e6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- Gallery ---------- */
.el-gallery {
  padding: 70px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.el-section-label {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8f88ac;
  margin: 0 0 32px;
}

.el-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.el-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #17131f;
  aspect-ratio: 1 / 1;
}

.el-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.el-gallery-grid figure:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* ---------- Books ---------- */
.el-books {
  padding: 70px 0 100px;
}

.el-books h2 {
  text-align: center;
  font-family: 'Fredoka', 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 40px;
  color: #f4f2fb;
}

.el-book-list {
  columns: 2;
  column-gap: 48px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
}

.el-book-list li {
  break-inside: avoid;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1rem;
  color: #d8d3ec;
}

.el-book-list li::before {
  content: "— ";
  color: #7a72a3;
}

/* ---------- Footer ---------- */
.el-footer {
  text-align: center;
  padding: 30px 0 50px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5f5878;
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .el-gallery-grid { grid-template-columns: 1fr; }
  .el-book-list { columns: 1; }
  .el-hero { height: 50vh; min-height: 320px; }
}
