/* Self-hosted type. No font request leaves Dear Nobody. */
@font-face {
    font-family: 'Instrument Serif';
    src: url('/fonts/InstrumentSerif-400.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ink: #111111;
    --ink-hover: #3a3a3a;
    --ink-muted: #5e5e5e;
    --rule: #d9d9d9;
    --ghost: #efefef;
    --paper: #ffffff;
    --font-heading: 'Instrument Serif', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.doodles {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    color: var(--ink);
}

.doodle {
    position: absolute;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .16;
    transform: rotate(var(--r, 0deg));
    animation: drift var(--t, 9s) ease-in-out infinite alternate;
}
.doodle .dash { stroke-dasharray: 3 5; }

.d-envelope { width: 150px; top: 9%; left: 7%; --r: -12deg; --t: 10s; }
.d-plane { width: 175px; top: 11%; right: 6%; --r: 4deg; --t: 8s; }
.d-letter { width: 118px; bottom: 13%; left: 11%; --r: 8deg; --t: 11s; }
.d-pen { width: 46px; top: 44%; right: 15%; --r: 28deg; --t: 9s; }
.d-heart { width: 42px; top: 48%; left: 19%; --r: -10deg; --t: 7s; }
.d-mailbox { width: 120px; bottom: 9%; right: 9%; --r: -3deg; --t: 12s; }
.d-spark { width: 18px; opacity: .22; --t: 5s; }
.s1 { top: 30%; left: 13%; }
.s2 { top: 6%; right: 26%; width: 12px; }
.s3 { bottom: 30%; right: 22%; }
.s4 { bottom: 6%; left: 30%; width: 13px; }

@keyframes drift {
    from { transform: rotate(var(--r, 0deg)) translateY(0); }
    to { transform: rotate(var(--r, 0deg)) translateY(-10px); }
}

@media (max-width: 760px) {
    .doodle { opacity: .09; }
    .d-envelope { width: 96px; top: 2%; left: -18px; }
    .d-plane { width: 110px; top: 3%; right: -14px; }
    .d-letter { width: 80px; bottom: 3%; left: -14px; }
    .d-mailbox { width: 80px; bottom: 2%; right: -10px; }
    .d-pen, .d-heart, .s1, .s3 { display: none; }
}

.links {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 30rem;
    padding: clamp(3rem, 10vh, 6rem) 1.25rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.links-head { text-align: center; padding-top: 1.5rem; padding-bottom: 2rem; }

.links-logo { display: inline-flex; align-items: flex-start; text-decoration: none; }
.links-logo img { display: block; width: min(15rem, 68vw); height: auto; }

.brand-tm { font: 400 .8rem/1 var(--font-body); margin: .3rem 0 0 -.55rem; }
.brand-tm-inline { font-family: var(--font-body); font-size: .45em; line-height: 0; margin-left: .1em; vertical-align: super; }

.links-tagline {
    margin: .6rem 0 0;
    padding: 1rem 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
    font-size: .6875rem;
    letter-spacing: .02em;
}
.links-tagline em { font-family: var(--font-heading); font-size: 1.15rem; font-style: italic; margin-left: .3rem; }

.links-intro { margin: 1.25rem auto 0; max-width: 22rem; color: var(--ink-muted); font-size: .875rem; line-height: 1.7; }

.links-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }

.link {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4rem;
    padding: .9rem 1.1rem;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s;
}
.link:hover { background: var(--ghost); }

.link-primary { background: var(--ink); color: var(--paper); }
.link-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }

.link-icon, .link-arrow {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.link-icon { width: 1.4rem; height: 1.4rem; }
.link-icon .dot { fill: currentColor; }
.link-arrow { width: 1.05rem; height: 1.05rem; margin-left: auto; transition: transform .15s; }
.link:hover .link-arrow { transform: translate(2px, -2px); }

.link-text { display: grid; min-width: 0; }
.link-label { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.15; letter-spacing: -.01em; }
.link-sub { font-size: .75rem; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-primary .link-sub { color: #c9c9c9; }

.links-foot {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
    font-size: .75rem;
    color: var(--ink-muted);
}
.links-foot p { margin: .35rem 0 0; }
.links-foot .links-tm { max-width: 22rem; margin-inline: auto; line-height: 1.6; }
.links-foot a { color: var(--ink); text-underline-offset: .25em; }

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