/* ========================================
   Craig McAuliffe Personal Website
   ======================================== */

/* --- Custom Properties --- */
:root {
  --color-bg: #F8F8F8;
  --color-text: #333333;
  --color-text-muted: #9B9898;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-light: 300;
  --letter-spacing: 0.05em;
  --max-content-width: 700px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base --- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  letter-spacing: var(--letter-spacing);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;

  /* Subtle speckle effect */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
  background-size: 150px 150px;
}

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

/* --- Layout --- */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 40px 60px;
  position: relative;
}

/* --- Header --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.site-title {
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.site-title:hover {
  opacity: 0.6;
}

.bird-decoration {
  width: 78px;
  height: auto;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  padding-top: 60px;
}

.content-list {
  list-style: none;
  padding-left: 24px;
}

.content-item {
  margin-bottom: 1.25em;
  font-size: 0.95rem;
}

.content-item a {
  transition: opacity 0.2s ease;
}

.content-item a:hover {
  opacity: 0.6;
}

.content-item--disabled {
  color: var(--color-text-muted);
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 40px;
}

.linkedin-link {
  display: inline-flex;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.linkedin-link:hover {
  color: var(--color-text);
}

.linkedin-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-quote {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Article Page --- */
.article-nav {
  padding-left: 24px;
  margin-top: 40px;
}

.back-button {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.back-button:hover {
  color: var(--color-text);
}

.article {
  max-width: var(--max-content-width);
  padding: 40px 24px;
}

.article h1 {
  font-size: 1.4rem;
  font-weight: var(--font-weight-light);
  margin-bottom: 2.5em;
  line-height: 1.5;
}

.article h2 {
  font-size: 1.05rem;
  font-weight: 400;
  margin-top: 3em;
  margin-bottom: 1.25em;
}

.article h3 {
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  margin-top: 2.5em;
  margin-bottom: 1em;
}

.article p {
  margin-bottom: 1.5em;
}

.article-footer {
  margin-top: 4em;
  padding-top: 2em;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.article-footer h2 {
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 1em;
}

.article-footer ul {
  list-style: none;
  padding: 0;
}

.article-footer li {
  margin-bottom: 0.5em;
}

.article-closing {
  font-style: italic;
  margin-top: 3em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 24px;
  }

  .bird-decoration {
    width: 60px;
  }

  .content-list {
    padding-left: 0;
  }

  .article-nav {
    padding-left: 0;
  }

  .article {
    padding: 24px 0;
  }

  .article h1 {
    font-size: 1.2rem;
  }
}
