@font-face {
  font-family: "CopperplateCC";
  src: url("fonts/CopperplateCC-Heavy.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "CopperplateCC";
  src: url("fonts/CopperplateCC-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

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

html, body {
  height: 100%;
  min-height: 100dvh;
  background-color: #F5F2EB;
  color: #302c22;
  font-family: "CopperplateCC", serif;
  letter-spacing: 1.0px;
  text-shadow:
    0.8px 0.8px 0.5px #c4beb4,
    -0.8px -0.8px 0.5px #ffffff;
}

body {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

.paper-texture {
  position: fixed;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.card {
  width: 90vw;
  max-width: 600px;
  aspect-ratio: 3.5 / 2;
  padding: clamp(20px, 6vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  position: relative;
  z-index: 2;
}

.top-left {
  text-align: left;
  font-size: 0.85rem;
  align-self: start;
  margin-top: 8px;
}

.top-right {
  text-align: right;
  align-self: start;
}

.top-right .company {
  font-size: 1.2rem;
  font-weight: 400;
}

.top-right .subtitle {
  font-size: 0.75rem;
  font-weight: 400;
}

.center {
  grid-column: span 2;
  align-self: center;
  text-align: center;
}

.center .name {
  font-size: 1.3rem;
  font-weight: 700;
}

.center .name .rest {
  font-size: 0.8em;
}

.center .title {
  font-size: 0.75rem;
  font-weight: 700;
}

.bottom {
  grid-column: span 2;
  align-self: end;
  text-align: center;
  font-size: 0.75rem;
}

.bottom a {
  color: #302c22;
  text-decoration: none;
  display: block;
  transition: opacity 0.2s ease;
}

.bottom a:hover {
  opacity: 0.7;
}

@media (max-width: 480px) {
  .top-left { font-size: 0.65rem; }
  .top-right .company { font-size: 0.92rem; }
  .top-right .subtitle { font-size: 0.58rem; }
  .center .name { font-size: 1rem }
  .center .title { font-size: 0.58rem; }
  .bottom { font-size: 0.58rem; }
}
