/* Shared across the portfolio (site/) and the blog (blog/): design
   tokens, base reset, and the site-wide header/footer chrome. */

:root {
  --box-shadow-preset-1: rgba(140, 47, 47, .14) 5px 5px 0;
  --border-radius-value: 3px;
  --header-height: 4.5rem;
  --content-max-width: 50rem;
  --main-padding: calc(var(--header-height) + 4rem) 2rem 4rem;
}

body {
  --paper: #f3eee3;
  --ink: #2a2420;
  --ink-muted: #6b6255;
  --ink-faint: #a89f8f;
  --rule: #d9d0bf;
  --oxblood: #8c2f2f;
  --color-bg: var(--paper);
  --color-fg: var(--ink);
}

.font-header,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Hammersmith One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.font-body {
  font-family: "Average Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-fg);
}

/* site header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 10;
  padding: 0.75rem;
}

.site-header-inner {
  max-width: var(--content-max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  background-color: color-mix(in srgb, var(--paper) 40%, transparent);
  border-bottom: 1px solid var(--rule);
}

.site-logo {
  font-size: 1.5em;
  color: var(--oxblood);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--oxblood);
}

/* site footer */

.site-footer-inner {
  border-top: 1px solid var(--rule);
  max-width: var(--content-max-width);
  padding: 2rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.site-footer-inner a {
  color: var(--color-fg);
  text-decoration: none;
  transition: all 0.5s ease;
  box-shadow: rgba(140, 47, 47, .14) 0 3px 0;
}

.site-footer-inner a:hover {
  color: var(--oxblood);
  box-shadow: rgba(140, 47, 47, .36) 0 3px 0;
}

#social-links {
  font-size: 2em;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

#social-links a {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* shared page body layout */

main {
  flex: 1 0 auto;
  width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: var(--main-padding);
  gap: 3rem;
}

@media only screen and (max-width: 1000px) {
  :root {
    --header-height: 3.75rem;
    --main-padding: calc(var(--header-height) + 2.5rem) 1.25rem 3rem;
  }

  .site-header-inner {
    padding: 0 1.25rem;
    border-radius: calc(var(--header-height) / 2);
    border: 1px solid var(--rule);
  }

  main {
    gap: 2rem;
    width: unset;
  }
}
