/* @CringyGranny — cringygranny.lol */

@font-face {
  font-family: "Alfa Slab One";
  src: url("../fonts/alfa-slab-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --cream: #FBF3E6;
  --paper: #FFFFFF;
  --red: #C8102E;
  --red-deep: #9C0B22;
  --ink: #2A211B;
  --tan: #6B5D4F;
  --lace: #E9DCC6;
  --display: "Alfa Slab One", "Rockwell", Georgia, serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(var(--lace) 1px, transparent 1.5px);
  background-size: 26px 26px;
  min-height: 100svh;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(68vh, 700px);
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(251, 243, 230, 0) 42%,
    rgba(251, 243, 230, 0.55) 72%,
    rgba(251, 243, 230, 0.92) 90%,
    #FBF3E6 100%
  );
}

/* ---------- Content ---------- */
main {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: -110px auto 0;
  padding: 0 20px 48px;
  text-align: center;
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 18px);
}
.mark {
  width: clamp(52px, 12vw, 88px);
  height: auto;
  flex: none;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 6.6vw, 3.3rem);
  line-height: 1.02;
  color: var(--red);
  letter-spacing: -0.005em;
}

.tag {
  margin-top: 14px;
  font-size: clamp(1.02rem, 3.6vw, 1.2rem);
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Links ---------- */
.links {
  margin: 34px auto 0;
  max-width: 560px;
  display: grid;
  gap: 16px;
}
.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  background: var(--paper);
  border: 2px solid var(--red);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(156, 11, 34, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.link::before {
  /* embroidered-patch stitch */
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px dashed rgba(200, 16, 46, 0.45);
  border-radius: 11px;
  pointer-events: none;
}
.link:hover { transform: rotate(-0.8deg) translateY(-2px); box-shadow: 0 6px 0 rgba(156, 11, 34, 0.28); }
.link:nth-child(even):hover { transform: rotate(0.8deg) translateY(-2px); }
.link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.link svg {
  width: 24px;
  height: 24px;
  fill: var(--red);
  flex: none;
}
.link .name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.link .handle {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--tan);
}

/* ---------- Snapshots ---------- */
.snaps {
  margin: 52px auto 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
}
.snaps figure {
  width: min(44%, 250px);
  background: var(--paper);
  padding: 9px 9px 12px;
  box-shadow: 0 6px 18px rgba(42, 33, 27, 0.18);
}
.snaps figure:first-child { transform: rotate(-2.2deg); }
.snaps figure:last-child { transform: rotate(1.8deg); }
.snaps img { width: 100%; display: block; }
.snaps figcaption {
  margin-top: 9px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--tan);
}

/* ---------- Fine print ---------- */
.fine {
  margin-top: 52px;
  font-size: 0.78rem;
  color: var(--tan);
}
.fine a { color: inherit; }

@media (max-width: 640px) {
  .hero { height: 54vh; }
  main { margin-top: -90px; }
  .link .handle { display: none; }
  .snaps figure { width: 44%; }
}

@media (prefers-reduced-motion: reduce) {
  .link, .link:hover { transition: none; transform: none; }
}
