:root {
  --bg: #ffffffe5;
  --surface: #fffaf2;
  --text: #250baa;
  --muted: #5b5750;
  --accent: #250baa;
  --border: #161616;
  --shadow: 0 16px 40px rgba(20, 20, 20, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 5vw;
  background: rgba(245, 239, 229, 0.94);
  backdrop-filter: blur(4px);
  border-bottom: 1.5px solid var(--border);
}

.brand {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tabs {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tab-link {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 0;
  border: 1.5px solid transparent;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tab-link:hover,
.tab-link:focus-visible {
  border-color: var(--border);
  outline: none;
}

.tab-link.active {
  border-color: var(--border);
  background: var(--accent);
  color: #f8f4ec;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 5vw 5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 2rem;
  row-gap: 1rem;
  margin-bottom: 1.6rem;
}

.section {
  min-height: 90vh;
  padding: 5rem 0;
  scroll-margin-top: 5rem;
  border-bottom: 1.5px solid rgba(22, 22, 22, 0.28);
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  max-width: 14ch;
  margin-bottom: 0;
}

h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.8rem;
}

h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  line-height: 1.85;
  color: var(--text);
  max-width: 64ch;
  font-size: 1.03rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(37, 11, 170, 0.08);
  outline: none;
}

.social-link-text {
  width: auto;
  min-width: 72px;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 0;
  padding: 1.35rem 1.45rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

.meta {
  margin: -0.2rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.googly-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  justify-self: center;
  padding: 1rem 1.1rem;
  margin: 0;
  min-width: 170px;
  min-height: 142px;
  background: #f7f1e7;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

.eyes-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.eye {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #1b1b1b;
  position: relative;
  overflow: hidden;
}

.eye::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: #f7f1e7;
  transform: scaleY(0);
  transform-origin: center top;
  animation: blink 5.5s infinite;
  z-index: 2;
}

.eye:nth-child(2)::before {
  animation-delay: 0.12s;
}

.pupil {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: #111111;
  transition: transform 0.08s linear;
}

.mouth {
  width: 42px;
  height: 20px;
  border: 3px solid #121212;
  border-top: 0;
  border-radius: 0 0 28px 28px;
  transform-origin: center;
  transform: rotate(-6deg) scaleX(0.9) scaleY(0.45);
  transition: transform 0.28s ease, border-radius 0.28s ease, width 0.28s ease;
}

.googly-box.happy .mouth {
  width: 40px;
  border-radius: 0 0 24px 24px;
  transform: rotate(-2deg) scaleX(0.92) scaleY(0.7);
}

.googly-box.surprised .mouth {
  width: 24px;
  height: 24px;
  border-top: 3px solid #121212;
  border-radius: 50%;
  transform: rotate(0deg) scale(1);
}

@keyframes blink {
  0%,
  90%,
  100% {
    transform: scaleY(0);
  }

  92%,
  96% {
    transform: scaleY(1);
  }
}

@media (max-width: 700px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .section {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .googly-box {
    margin-top: 0.3rem;
    justify-self: start;
  }

  h1 {
    line-height: 1.02;
  }
}
