/* Wrequed World Landing Page */

@font-face {
    font-family: "Veteran Typewriter";
    src: url("../fonts/veteran_typewriter-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --background: #1b1718;
    --paper: #f3ead8;
    --paper-shadow: rgba(0, 0, 0, 0.35);
    --ink: #1d1b18;
    --muted-ink: #4f4740;
    --accent: #9b2f2f;
    --accent-hover: #742323;
}

* {
    box-sizing: border-box;
}

/* Base */
body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 32rem),
        var(--background);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Layout */
main {
    width: min(100%, 800px);
}

.lang-switch {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.lang-switch button {
    background: none;
    border: none;
    padding: 0.2rem 0.35rem;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.35;
    transition: opacity 120ms ease;
    line-height: 1;
}

.lang-switch button:hover {
    opacity: 0.7;
}

.lang-switch button.active {
    opacity: 1;
    border: none;
    outline: none;
}

.letter {
    background: var(--paper);
    padding: clamp(1.5rem, 5vw, 4rem);
    box-shadow: 0 1.5rem 4rem var(--paper-shadow);
    border-radius: 0.35rem;
    position: relative;
    overflow: hidden;
}

.letter::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.25), transparent 18%, transparent 82%, rgba(0,0,0,0.04)),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.025), rgba(0,0,0,0.025) 1px, transparent 1px, transparent 5px);
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
}

.kicker {
    font-family: "Secret Typewriter", "Courier New", monospace;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-ink);
    margin-bottom: 1rem;
}

.kicker-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.kicker-row .kicker {
    margin-bottom: 0;
}

/* Typography */
h1 {
    font-family: "Veteran Typewriter", "Courier New", monospace;
    font-size: clamp(2.1rem, 9vw, 5rem);
    line-height: 0.95;
    margin: 0 0 1.5rem;
    letter-spacing: 0.03em;
    /*text-transform: uppercase;*/
}

.nowrap {
    white-space: nowrap;
}

.intro {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.65;
    max-width: 62ch;
    margin: 0 0 2rem;
}

.intro strong {
    color: var(--accent);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.signal-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: color 600ms ease;
    animation: signal-awake 6s ease-in-out 3s infinite;
}

.signal-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15em;
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: signal-line 6s ease-in-out 3s infinite;
}

.signal-link:hover,
.signal-link:focus {
    color: var(--accent);
}

@keyframes signal-awake {
    0%, 55%, 100% {
        color: inherit;
    }

    65%, 80% {
        color: var(--accent);
    }
}

@keyframes signal-line {
    0%, 55%, 100% {
        opacity: 0;
        transform: scaleX(0);
    }

    65%, 80% {
        opacity: 0.75;
        transform: scaleX(1);
    }
}

/* Inline link in intro-tekst */
.inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  transition: color 120ms ease;
}

.inline-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.kicker-link {
  text-decoration: none;
}

.kicker-link {
    text-decoration: none;
    color: var(--accent);
    transition: color 120ms ease;
}

.kicker-link:hover {
    color: var(--accent-hover);
}

/* Components */
.button {
    display: inline-block;
    font-family: "Veteran Typewriter", "Courier New", monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: #fff8ec;
    background: var(--accent);
    padding: 0.9rem 1.25rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.35rem 0 var(--accent-hover);
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover,
.button:focus {
    background: var(--accent-hover);
    transform: translateY(2px);
    box-shadow: 0 0.2rem 0 #4f1717;
}

.note {
    font-size: 0.95rem;
    color: var(--muted-ink);
}

/* Responsive */
@media (max-width: 520px) {
    body {
        align-items: flex-start;
        padding: 1rem;
    }

    .letter {
        min-height: calc(100vh - 2rem);
        display: flex;
        align-items: center;
    }

    .cta-row {
        align-items: stretch;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}
