@font-face {
  font-family: "Hershey";
  src: url("./fonts/hershey.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

:root {
  --bg-blue: #6d88ea;
  --paper: #f4eedf;
  --ink: #0a0a0a;
  --carbon: #29241e;
  --olive: #7d8759;
  --lavender: #ccb8d4;
  --hover-yellow: #fecf43;
  --terracotta: #f4442e;
  --mahogany: #4e0d04;
  --sage: #d2d8c4;

}

body {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 56px 24px;
  position: relative;
  overflow-x: hidden;
  font-family: "Hershey", "Avenir", "Helvetica Neue", Arial, sans-serif;
  text-transform: lowercase;
  color: var(--ink);
  background: var(--bg-blue);
}
body.home {
  background-image: url("images/bg-copy.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* inner flat-color pages — bigger grain, no obvious tiling */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("images/paper.png");
  background-size: 600px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}

/* toggle ornaments off */
.site-border.is-plain::before,
.site-border.is-plain::after {
  content: none;
}

.site-border.is-plain .site-border__side {
  display: none;
}

.container {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* outer card */
.card {
  width: min(640px, 100%);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 36px 24px 28px;
  position: relative;
  box-shadow:
    0 0 0 0.35px rgba(41, 36, 30, 0.72),
    3px 3px 0 rgba(41, 36, 30, 0.22),
    6px 8px 16px rgba(41, 36, 30, 0.12);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: url("images/paper.png");
  background-size: 120px;
  mix-blend-mode: soft-light;
  opacity: 0.12;
  pointer-events: none;
}

/* single inner box */
.inner {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding: 36px 24px 72px;
  border: 1px solid rgba(10, 10, 10, 0.62);
  background:
    linear-gradient(rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.035) 0, transparent 55%);
}

/* title on the inner frame */
h1 {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 14px;
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-align: center;
  background: var(--paper);
  white-space: nowrap;
  z-index: 3;
}

/* body copy */
.bio {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: left;
  max-width: none;
}

.bio a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.08em;
}

/* buttons overlap the one inner box */

.buttons {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-inline: 60px;
  margin-top: -48px;
  align-items: end;
}

.btn {
  height: 68px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  text-align: center;
  align-self: end;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1;
  border: 1px solid rgba(10, 10, 10, 0.55);
  box-shadow:
    0 0 0 0.35px rgba(10, 10, 10, 0.34),
    0 1px 0 rgba(10, 10, 10, 0.12);
  transform: translateY(0) scaleX(1) scaleY(1);
  transform-origin: center center;
  transition:
    background-color 180ms ease,
    transform 190ms cubic-bezier(0.2, 0.9, 0.25, 1.05),
    box-shadow 180ms ease,
    filter 180ms ease;
}

.work {
  background: var(--olive);
}

.fun {
  background: var(--lavender);
}

.btn:hover {
  background: var(--hover-yellow);
  transform: translateY(0) scaleX(1.01) scaleY(0.975);
  box-shadow:
    0 0 0 0.35px rgba(10, 10, 10, 0.34),
    0 1px 0 rgba(10, 10, 10, 0.14);
}

.btn:active {
  transform: translateY(1px) scaleX(1.015) scaleY(0.94);
  box-shadow:
    0 0 0 0.35px rgba(10, 10, 10, 0.26),
    0 0.5px 0 rgba(10, 10, 10, 0.08);
}

.footer-links {
  margin-top: .7rem;
  text-align: center;
  font-family: "Futura", "Futura PT", "Century Gothic", sans-serif;
  font-style: italic;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}
.footer-links a {
  color: var(--mahogany);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover {
  color: var(--terracotta);
  border-bottom-color: currentColor;
}
.footer-links .dot {
  color: var(--mahogany);
  margin: 0 0.55em;
}

@media (max-width: 560px) {
  body {
    padding: 18px;
  }

  .site-border {
    inset: 4px;
  }

  .card {
    width: min(440px, 100%);
    padding: 28px 16px 20px;
  }

  .inner {
    padding: 28px 14px 60px;
  }

  h1 {
    top: -9px;
    font-size: 1.05rem;
    padding: 0 10px;
  }

  .bio {
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .buttons {
    gap: 10px;
    padding-inline: 36px;
    margin-top: -42px;
  }

  .btn {
    padding: 14px 12px;
    font-size: 0.76rem;
  }
}
