@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-BoldItalic.woff2") format("woff2");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-Italic.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
}

:root {
  --green: #00d600;
  --red: #df0d0f;
  --orange: #ff6600;
  --light: #fff;
  --dark: #000;
}

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

body {
    font-family: "Atkinson Hyperlegible", serif;
    background: var(--light);
    color: var(--dark);
}

header {
  text-align: center;
  /*padding: 2rem 0rem 12rem 0rem;*/
  /*position: relative;*/
  /*background: url('header-street-scene.svg') repeat-x bottom;*/
}

header::after {
  content: '';
  width: 100%;
  height: 1rem;
  display: block;
  background: url('/spacer.svg') repeat-x;
}

footer {
  text-align: center;
  padding: 4rem 0rem;
  margin-top: 4rem;
  font-weight: 700;
}

footer::before {
  content: '';
  width: 100%;
  height: 1rem;
  display: block;
  background: url('/spacer.svg') repeat-x;
}

footer .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem;
}

footer .links a {
  display: block;
  width: 28rem;
  height: 20rem;
  background-position: 50% 100%;
  background-repeat: no-repeat;
  border-radius: 1em;
  margin: 2rem;
  padding: 1rem;
  font-size: 1.5em;
  text-decoration: none;
  color: var(--dark);
}

footer .links a:nth-child(1) {
  border: 0.5em solid var(--red);
  background-image: url('/mastodon.svg');
}

footer .links a:nth-child(2) {
  border: 0.5em solid var(--orange);
  background-image: url('/newsletter.svg');
}

footer .links a:nth-child(3) {
  border: 0.5em solid var(--green);
  background-image: url('/email.svg');
}






/* Animated background pattern */
/*body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 214, 0, 0.05) 10px,
            rgba(0, 214, 0, 0.02) 20px
        );
    pointer-events: none;
    z-index: -1;
    animation: slidePattern 20s linear infinite;
}*/

@keyframes slidePattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(20px) translateY(20px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}




h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    /*margin-bottom: 1rem;*/
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: rgb(255, 255, 255) 0px 0px 1rem;
    /*text-transform: uppercase;*/
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--dark);
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    text-shadow: rgb(255, 255, 255) 0px 0px 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    padding: 2rem;
    background: white;
    border: 4px solid var(--dark);
    box-shadow: 12px 12px 0 var(--primary);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.card {
    background: white;
    border: 6px solid var(--dark);
    padding: 3rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.card:nth-child(1) {
    animation-delay: 0.5s;
    border-color: var(--primary);
}

.card:nth-child(2) {
    animation-delay: 0.6s;
    border-color: var(--secondary);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.03) 100%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.card:nth-child(1):hover {
    box-shadow: 16px 16px 0 var(--primary);
}

.card:nth-child(2):hover {
    box-shadow: 16px 16px 0 var(--secondary);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

.card:nth-child(1) .card-icon {
    background: var(--primary);
}

.card:nth-child(2) .card-icon {
    background: var(--secondary);
}

.card h2 {
    /*font-family: 'Archivo Black', sans-serif;*/
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.card p {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--dark);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid var(--dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--dark);
    transform: translateY(-2px);
}

.card:nth-child(1) .btn {
    background: var(--primary);
    border-color: var(--primary);
}

.card:nth-child(2) .btn {
    background: var(--secondary);
    border-color: var(--secondary);
}

.contact-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--gray);
    font-weight: 700;
    word-break: break-all;
}

.mastodon-logo,
.email-logo {
    width: 60px;
    height: 60px;
    margin: 1rem 0;
    background: var(--dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}


@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header {
        padding: 2rem 1rem;
    }

    .intro {
        padding: 1.5rem;
        box-shadow: 8px 8px 0 var(--primary);
    }

    .card {
        padding: 2rem;
    }

    .cards {
        gap: 2rem;
    }

    .card:hover {
        transform: translateY(-4px);
    }

    .card:nth-child(1):hover {
        box-shadow: 12px 12px 0 var(--primary);
    }

    .card:nth-child(2):hover {
        box-shadow: 12px 12px 0 var(--secondary);
    }
}

/* Decorative elements */
/*.deco-line {
    width: 100px;
    height: 4px;
    background: var(--primary);
    margin: 2rem auto;
    position: relative;
}

.deco-line::before,
.deco-line::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    top: -8px;
}

.deco-line::before {
    left: -8px;
}

.deco-line::after {
    right: -8px;
}*/

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
