@font-face {
    font-family: "Mark";
    src: url("markpro-light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mark";
    src: url("markpro-book.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mark";
    src: url("markpro-medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mark";
    src: url("markpro-bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #f4f3ee;
    --white: #ffffff;
    --ink: #16160f;
    --muted: #6e6c61;
    --soft: #9a978d;
    --line: #e4e2da;
    --orange: #ff5500;
    --blue: #3bb4ff;
    --green: #4cb16e;
    --font: "Mark", "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 82% 8%, rgba(59, 180, 255, .055), transparent 25rem),
        radial-gradient(circle at 8% 92%, rgba(76, 177, 110, .045), transparent 24rem),
        var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.site-header,
main,
footer {
    width: min(1240px, calc(100% - 80px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    display: block;
    border-radius: 10px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
}

.brand small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
}

.internal-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.internal-label span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(76, 177, 110, .12);
}

main {
    padding: 72px 0 70px;
}

.hero {
    max-width: 680px;
    margin-bottom: 38px;
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.hero-intro {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tool-card {
    --accent: var(--ink);
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tool-card::before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 28px;
    left: 28px;
    height: 2px;
    background: var(--accent);
    content: "";
    opacity: 0;
    transform: scaleX(.65);
    transition: opacity .2s ease, transform .2s ease;
}

.tool-card--orange {
    --accent: var(--orange);
}

.tool-card--blue {
    --accent: var(--blue);
}

.tool-card--green {
    --accent: var(--green);
}

.tool-card:hover {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
    box-shadow: 0 20px 50px rgba(22, 22, 15, .08);
    transform: translateY(-4px);
}

.tool-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.tool-card > a {
    display: flex;
    min-height: 372px;
    flex-direction: column;
    padding: 28px;
    color: inherit;
    text-decoration: none;
}

.tool-card > a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
    outline-offset: -4px;
    border-radius: 18px;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.tool-icon {
    display: block;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(22, 22, 15, .13);
}

.card-number {
    color: #b1afa5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
}

.card-copy {
    margin-top: 38px;
}

.category {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.card-copy h2 {
    margin: 0;
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.card-copy > p:last-child {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.card-action small,
.card-action strong {
    display: block;
}

.card-action small {
    margin-bottom: 3px;
    color: var(--soft);
    font-size: 10px;
}

.card-action strong {
    overflow: hidden;
    max-width: 235px;
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arrow {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.arrow svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-card:hover .arrow {
    background: var(--ink);
    color: var(--white);
    transform: rotate(3deg);
}

footer {
    display: flex;
    gap: 8px;
    padding: 0 0 32px;
    color: var(--soft);
    font-size: 11px;
}

footer span:first-child {
    color: var(--muted);
    font-weight: 500;
}

@media (max-width: 960px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tool-card > a {
        min-height: 320px;
    }
}

@media (max-width: 680px) {
    .site-header,
    main,
    footer {
        width: min(100% - 32px, 1240px);
    }

    .site-header {
        padding-top: 20px;
    }

    main {
        padding: 54px 0 50px;
    }

    .hero {
        margin-bottom: 32px;
    }

    h1 {
        font-size: 38px;
    }

    .tool-card > a {
        min-height: 350px;
        padding: 24px;
    }

    .card-copy {
        margin-top: 31px;
    }

    .card-action strong {
        max-width: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
