/* bernstein.com.au — Minimalist Visual Blog */

:root {
  --black: #0d0d0d;
  --white: #fafafa;
  --grey-light: #f2f2f0;
  --grey-mid: #999;
  --grey-dark: #444;
  --accent: #c9a84c; /* gold — prestige + tech */
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 720px;
  --max-width-wide: 1100px;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: rgba(250,250,250,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ebebeb;
}

nav .logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: none;
}

nav .logo span { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-dark);
  text-decoration: none;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--black); }

/* HERO */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 4rem;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: normal;
  color: var(--white);
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 1rem;
}

.hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.hero-cta:hover {
  background: var(--white);
  color: var(--black);
}

/* SECTION */
section { padding: 5rem 2.5rem; }

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 3rem;
  display: block;
}

/* ARTICLE GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.article-card:hover .card-title { color: var(--accent); }

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--grey-light);
  margin-bottom: 1.2rem;
  display: block;
}

.card-image-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--grey-light);
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}

.card-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8e8e6 0%, #d8d8d4 100%);
}

.card-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.card-excerpt {
  font-size: 0.82rem;
  color: var(--grey-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.card-meta {
  font-size: 0.72rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* FEATURED ARTICLE (large) */
.article-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.featured-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--grey-light);
}

.featured-content .card-tag { margin-bottom: 1rem; }

.featured-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.featured-content p {
  color: var(--grey-dark);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.read-more {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ABOUT STRIP */
.about-strip {
  background: var(--black);
  color: var(--white);
  padding: 5rem 2.5rem;
}

.about-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  background: #222;
}

.about-text .section-label { color: var(--accent); }

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: normal;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-text p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ventures {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.venture-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 2px;
}

/* ARTICLE PAGE */
.article-page {
  padding-top: 6rem;
}

.article-hero {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  background: var(--grey-light);
}

.article-hero-placeholder {
  width: 100%;
  height: 400px;
  background: var(--grey-light);
}

.article-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
}

.article-body .article-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.article-body h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: normal;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-body .article-meta {
  font-size: 0.75rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e8e8;
}

.article-body .ranking-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  margin-left: 1rem;
  vertical-align: middle;
}

.article-body p {
  margin-bottom: 1.4rem;
  font-size: 1rem;
  line-height: 1.8;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: normal;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.article-body li { margin-bottom: 0.5rem; }

.article-body strong { font-weight: 600; }

.article-body .byline {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
  font-size: 0.8rem;
  color: var(--grey-dark);
}

/* RANKING TABLE */
.ranking-section {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.ranking-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-mid);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e8e8e8;
}

.ranking-table td {
  padding: 1rem;
  border-bottom: 1px solid #f2f2f0;
  font-size: 0.85rem;
  vertical-align: top;
}

.ranking-table tr:first-child td { font-weight: 500; }

.rank-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: normal;
}

/* PHOTO GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--grey-light);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

/* FOOTER */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2.5rem;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-left: 1.5rem;
}

footer a:hover { color: var(--white); }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { gap: 1.2rem; }
  section { padding: 3.5rem 1.5rem; }
  .article-featured { grid-template-columns: 1fr; gap: 2rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { aspect-ratio: 16/9; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  footer a { margin: 0 0.75rem; }
  .article-body { padding: 2rem 1.5rem 4rem; }
}
