/* Thirteen — gothirteen.com
   Fonts: futura-pt / futura-pt-bold from Adobe Fonts (kit zul3rpn, linked in the HTML). */

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

html {
    font-size: 16px;
    background-color: #000;
}

body {
    background-color: #000;
    color: #fff;
    font-family: "futura-pt", sans-serif;
    padding: 20px 20px 0;
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

strong {
    font-family: "futura-pt-bold", sans-serif;
}

/* Skip link: off-screen until it receives keyboard focus */
.skip-link {
    position: absolute;
    top: -60px;
    left: 0;
    background: #fff;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.page {
    max-width: 800px;
    width: 100%;
    text-align: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40px;
}

.logo {
    margin-bottom: 60px;
}

/* The inline SVG keeps its height="302" attribute (as the original site did),
   so the logo is letterboxed in a 302px-tall box rather than scaled. */
.logo svg,
.logo img {
    width: 100%;
    display: block;
    margin: 0 auto;
}

.logo img {
    height: auto;
}

main {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

main:focus {
    outline: none;
}

.intro h1 {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e0e0e0;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.contact {
    padding-top: 20px;
    margin-bottom: 60px;
}

.contact h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

address {
    font-style: normal;
}

/* Links are padded to a 24px+ tap target; the gap is reduced by the same amount
   so the spacing matches the original 12px gap between text lines. */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin: -4px 0; /* cancels the link padding so the layout matches */
}

.contact-info a {
    display: inline-block;
    padding: 4px;
    color: #aaa;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-info a:hover,
.contact-info a:focus-visible {
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 0;
}

a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.contact-info a:focus-visible {
    outline-offset: 0;
}

footer {
    padding: 20px 0;
    font-size: 0.75rem;
    color: #767676; /* 4.62:1 on black (was #555, 2.6:1) */
    text-align: center;
    background-color: #000;
}

@media (max-width: 768px) {
    .logo {
        margin-bottom: 40px;
    }

    .logo svg,
    .logo img {
        max-width: 70%;
    }

    main {
        gap: 40px;
    }

    .intro h1 {
        font-size: 1.1rem;
    }

    .contact h2 {
        font-size: 1.3rem;
    }

    .contact-info a {
        font-size: 0.95rem;
    }
}

@supports (height: 100svh) {
    body {
        min-height: 100svh;
    }

    .page {
        min-height: 100svh;
    }
}

/* ---- Logo animation (driven by /assets/js/main.js) ----
   Only hidden when JavaScript is running, so the logo still shows without it. */
.js .logo path[fill] {
    opacity: 0;
}

.js .logo path[stroke] {
    visibility: hidden;
}

.js .logo svg.go-outline path[stroke] {
    visibility: visible;
}

.logo svg.go-white path[fill="white"] {
    animation: fadeIn 4s ease-out forwards;
}

.logo svg.go-13 path[fill="#AAAAAA"] {
    animation: fadeIn 4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ---- 404 page ---- */
.logo-link {
    display: block;
}

.intro-text {
    margin-top: 12px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    font-weight: 300;
}
