@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --paper: #f7f1e8;
  --ink: #1c1b19;
  --muted: #6c6259;
  --accent: #c05b41;
  --accent-2: #2f5f55;
  --whatsapp: #1f6f57;
  --line: #d8cdbf;
  --card: #fbf7f0;
  --shadow: 0 18px 40px rgba(28, 27, 25, 0.08);
  --font-display: "Cormorant Garamond", serif;
  --font-sans: "Space Grotesk", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(192, 91, 65, 0.14), transparent 50%),
    radial-gradient(circle at 90% 0%, rgba(47, 95, 85, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 60%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    130deg,
    rgba(28, 27, 25, 0.02) 0,
    rgba(28, 27, 25, 0.02) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0.6;
  z-index: -1;
}

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

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

p {
  margin: 0 0 1.2rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.hero {
  padding: 2.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3rem;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__sidebar {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(251, 247, 240, 0.85);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--ink);
  color: var(--paper);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 27, 25, 0.2);
  color: var(--paper);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  font-weight: 500;
  font-size: 1rem;
}

.signature {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-2);
}

.hero__scroll {
  margin-top: 2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.section {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.section__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.section__index {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.section__content {
  max-width: 720px;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.inline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  padding: 1.8rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.text-link {
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.text-link::after {
  content: "→";
  transition: transform 0.3s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.text-link.is-muted {
  color: var(--muted);
  cursor: default;
}

.text-link.is-muted::after {
  content: "";
}

.writing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1.2rem;
}

.writing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.writing-item p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.date {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.contact__links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.whatsapp-float {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 30px rgba(28, 27, 25, 0.18);
  z-index: 20;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 34px rgba(28, 27, 25, 0.24);
  color: var(--paper);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

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

  .section__meta {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  .hero__nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero__sidebar {
    padding: 1.5rem;
  }

  .writing-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 1rem;
    bottom: 1rem;
  }

  .whatsapp-icon {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .text-link::after,
  .whatsapp-float {
    transition: none;
  }
}
