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

:root {
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --color-bg: #050505;
  --color-surface: #0f0f0f;
  --color-text: #ededed;
  --color-text-muted: #888;
  --color-accent: #fff;

  --spacing-unit: 24px;
  --container-max: 1400px;
}


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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  min-height: 100vh;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  transform: translateY(-140%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--color-accent);
}

/* Minimal background */
body::before {
  content: none;
}

@keyframes breathe {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1) translate(-2%, -2%);
    opacity: 0.8;
  }
}

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

a:hover {
  color: var(--color-accent);
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo__icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-image: url('logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
  opacity: 0.9;
}

.logo:hover .logo__icon {
  transform: rotate(90deg);
}

.logo__icon::before,
.logo__icon::after,
.logo__icon>* {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--color-text);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: #ededed;
  border-color: transparent;
  color: #050505;
}

.btn--ghost {
  background: transparent;
}

.btn__icon {
  width: 20px;
  height: 20px;
  background-image: url('box.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  transition: opacity 0.25s ease;
}

.btn__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('box_hover.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn:hover .btn__icon::after {
  opacity: 1;
}

.nav-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  position: relative;
  vertical-align: middle;
  margin-left: 8px;
  background-image: url('box.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('box_hover.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-nav a:hover .nav-icon::after {
  opacity: 1;
}

.scroll-indicator {
  position: fixed;
  right: 32px;
  top: 50%;
  width: 2px;
  height: 140px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  transform: translateY(-50%);
  display: none;
  z-index: 50;
}

.scroll-indicator span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--color-accent);
  transition: height 0.2s ease;
}

@media (min-width: 1024px) {
  .scroll-indicator {
    display: block;
  }
}



/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 0 48px;
  margin-top: 80px;
  position: relative;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.95;
  font-weight: 400;
  margin: 0 0 40px 0;
  letter-spacing: -0.04em;
  color: var(--color-text);
  animation: fadeUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero__sub {
  max-width: 420px;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  animation: fadeUp 1s ease-out 0.2s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 140px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.section.about {
  padding-bottom: 90px;
}

.section.blog {
  padding-top: 90px;
}

.section__intro {
  max-width: 800px;
  margin-bottom: 64px;
}

.section__intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 16px;
}

.section__intro p {
  color: var(--color-text-muted);
}

.blog--archive {
  padding-top: 200px;
}

.grid-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 120px;
  height: fit-content;
}

.content h2 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  margin: 0 0 40px 0;
  letter-spacing: -0.02em;
}

.content p {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Blog List */
.blog-list-minimal {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-item {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: padding 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.blog-item .date {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  min-width: 64px;
}

.blog-item .title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.blog-item:hover {
  padding-left: 12px;
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.01);
}

.blog-view-all {
  margin-top: 32px;
}

.blog-view-all .btn {
  min-width: 180px;
}

.blog__list {
  display: grid;
  gap: 24px;
}

.blog-card {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.8);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.blog-card__meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.blog-card h3 {
  font-size: 2rem;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.blog-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.blog-card__actions .btn {
  width: fit-content;
}

.blog__placeholder {
  margin-top: 48px;
  padding: 32px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: var(--color-text-muted);
}

.contact--simple {
  padding-top: 40px;
}

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c0c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.contact-panel p:not(.label) {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.contact-panel__actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
}

.contact-panel__links a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.contact-panel__links a:hover {
  color: var(--color-accent);
}

/* Blog Article Styles */
.blog-article {
  padding-top: 120px;
  padding-bottom: 120px;
  max-width: 800px;
  margin: 0 auto;
  padding-inline: 24px;
}

.article .label {
  position: static;
  margin-bottom: 16px;
}

.article h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.article__author {
  color: var(--color-text-muted);
  margin-bottom: 64px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
}

.article p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 32px;
}

.article h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-top: 64px;
  margin-bottom: 24px;
  color: var(--color-text);
}

.article h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.article ul,
.article ol {
  margin-bottom: 32px;
  padding-left: 24px;
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1.7;
}

.article li {
  margin-bottom: 12px;
}

.article pre {
  background: rgba(255, 255, 255, 0.04);
  padding: 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

.article code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
}

.article-cta {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer {
  padding: 64px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  background: #030303;
}

/* Mobile */
@media (max-width: 768px) {
  .site-header {
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .site-nav {
    width: auto;
    flex: 1;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav ul {
    width: max-content;
    gap: 18px;
    padding-bottom: 4px;
    align-items: center;
  }

  .site-nav a {
    font-size: 0.78rem;
    white-space: nowrap;
    gap: 6px;
  }

  .nav-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
  }

  .hero {
    padding: 0 20px;
    min-height: 58vh;
    margin-top: 96px;
  }

  .hero__content h1 {
    font-size: 3.4rem;
  }

  .section {
    padding: 70px 20px;
  }

  .section.about {
    padding-bottom: 40px;
  }

  .section.blog {
    padding-top: 40px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .label {
    position: static;
    margin-bottom: 12px;
  }

  .content h2 {
    font-size: 2.4rem;
  }

  .blog-item {
    flex-direction: column;
    gap: 8px;
    padding: 22px 0;
  }

  .blog-item:hover {
    padding-left: 0;
    background: transparent;
  }

  .blog-card {
    padding: 24px;
  }

  .contact-panel {
    padding: 32px 24px;
  }

  .contact-panel__links {
    flex-direction: column;
    gap: 10px;
  }

  .site-footer {
    padding: 48px 24px;
    flex-direction: column;
    gap: 16px;
  }
}