@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text: #222222;
  --color-muted: #757575;
  --color-accent: #D1C6B9;
  --color-accent-2: #E8E2DA;
  --color-border: #EAEAEA;
  --color-dark: #111111;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  --shadow-soft: none;
  --shadow-hover: 0 10px 40px rgba(0,0,0,0.08);
  --container-width: 1200px;
  --container-narrow: 760px;
  --spacing-base: 1rem;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding 0.3s ease;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-branding {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.site-branding img {
  max-height: 40px;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-text);
  transition: width 0.3s ease;
}
.site-nav a:hover::after {
  width: 100%;
}
.header-actions {
  display: flex;
  gap: 1rem;
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}
.icon-btn:hover {
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-content {
  padding-right: 2rem;
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-content p {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}
.btn {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-surface);
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-text);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}
.btn:hover {
  background: transparent;
  color: var(--color-text);
}
.hero-image {
  position: relative;
}
.hero-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-border);
  z-index: -1;
}
.hero-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Ticker */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--color-dark);
  color: var(--color-surface);
  padding: 1rem 0;
  border-top: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
}
.ticker {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  display: inline-block;
  padding: 0 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Section Shared */
.section { padding: 5rem 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 0;
}
.section-link {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.section-link:hover {
  color: var(--color-muted);
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid-2-custom { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.grid-vertical { display: flex; flex-direction: column; gap: 2rem; }

/* Cards */
.card { position: relative; cursor: pointer; transition: transform 0.4s ease; }
.card-image {
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
}
.card-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card:hover .card-image img {
  transform: scale(1.05);
}
.card-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  display: block;
}
.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card-title a::after { content: ''; position: absolute; inset: 0; }

/* Editor's Picks Custom Cards */
.card-large .card-image {
  aspect-ratio: 3/4;
}
.card-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.card-badge-glass {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.card-title-glass {
  font-size: 1.5rem;
  margin: 0;
}
.card-large:hover .card-overlay {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.95);
}

/* Category Overlays */
.category-card .card-image {
  aspect-ratio: 1/1;
}
.category-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
}
.category-title {
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.4s ease;
}
.category-card:hover .category-overlay {
  background: rgba(0,0,0,0.4);
}
.category-card:hover .category-title {
  transform: scale(1.05);
}

/* Newsletter */
.newsletter-section {
  background: var(--color-accent);
  padding: 6rem 0;
  text-align: center;
}
.newsletter-inner {
  max-width: 600px;
}
.newsletter-inner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.newsletter-inner p {
  margin-bottom: 2rem;
  color: var(--color-dark);
}
.newsletter-form {
  display: flex;
  gap: 1rem;
}
.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-dark);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
}
.newsletter-form input:focus {
  outline: none;
  background: rgba(255,255,255,0.5);
}
.newsletter-form .btn {
  white-space: nowrap;
}

/* Social Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}
.social-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.social-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.social-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.social-item:hover img {
  transform: scale(1.1);
}
.social-item:hover .social-overlay {
  opacity: 1;
}

/* Disclosure Snippet */
.disclosure-banner {
  background: var(--color-text);
  color: var(--color-surface);
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Single Post */
.single-header {
  text-align: center;
  padding: 4rem 0 2rem;
}
.single-meta {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.single-content {
  font-size: 1.125rem;
  line-height: 1.8;
  padding-bottom: 4rem;
}
.single-content p { margin-bottom: 1.5rem; }
.single-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.single-content a:hover {
  color: var(--color-muted);
}
.single-content h2, .single-content h3, .single-content h4, .single-content h5 { margin-top: 2.5rem; margin-bottom: 1rem; }
.single-content img, .single-content figure { margin: 2rem 0; width: 100%; height: auto; }
.single-content figcaption { font-size: 0.85rem; color: var(--color-muted); text-align: center; margin-top: 0.5rem; }

/* Lists */
.single-content ul, .single-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.single-content li { margin-bottom: 0.5rem; }

/* Blockquotes */
.single-content blockquote {
  border-left: 3px solid var(--color-text);
  padding: 1rem 1.5rem;
  margin: 2.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-muted);
  background: var(--color-bg);
}

/* Tables */
.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 1rem;
}
.single-content th, .single-content td {
  padding: 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}
.single-content th {
  background: var(--color-bg);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Code & Misc */
.single-content hr {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: 3rem 0;
}
.single-content pre, .single-content code {
  background: var(--color-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.single-content pre {
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.single-content pre code {
  background: transparent;
  padding: 0;
}

/* Page Header (Archives) */
.page-header {
  padding: 4rem 0;
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: var(--color-surface);
  padding: 5rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-brand h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: #999;
  max-width: 300px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.75rem; }
.footer-nav a { color: #ccc; font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-content { padding-right: 0; }
  .hero-image::after { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-custom { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .site-nav { display: none; } /* Add mobile menu later */
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-nav { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}

/* Article List */
.article-list { display: flex; flex-direction: column; gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.article-list-item { padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.article-list-item:last-child { border-bottom: none; }
.article-list-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.article-list-meta { font-family: var(--font-body); font-size: 0.85rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }

