/* About, Work and Now — ported from the Paper boards. Shares home.css's
   tokens, nav, column and footer; this file is only what those pages add. */

.page.inner {
    padding-top: 56px;
}

.label {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 20.15px;
    color: var(--mute);
}

.block {
    margin-top: 64px;
}

.small {
    margin: 0;
    font-size: 13px;
    line-height: 20.15px;
    color: var(--mute);
}

.now .label {
    margin-bottom: 16px;
}

/* ---- About: the laptop ------------------------------------------------ */

/* A MacBook Pro 14" in three.js (laptop.js). Closed, you look down on the lid
   and its stickers; opened, the lid swings up on its hinge as the camera comes
   round to the front, and the screen wakes. */

.laptop-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* the stage: a WebGL canvas, with the CSS3D layer that carries the screen
   laid exactly over it. laptop.js sizes it; it may spread a little past the
   column */
.laptop3d {
    position: relative;
    width: 544px;
    height: 400px;
    flex: none;
}

.laptop3d canvas {
    display: block;
}

.laptop3d .css3d {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.laptop3d .pill3d {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    color: var(--ink);
    font-size: 13px;
    line-height: 20.15px;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -4px);
    transition: opacity .18s, transform .18s;
    pointer-events: none;
}

.laptop3d .pill3d.on {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* no WebGL, or three.js never loaded: the screen alone, in a plain bezel */
.laptop3d:not(.is-3d) {
    width: 520px;
    height: auto;
    padding: 9px;
    border-radius: 16px;
    background: #0d0d0d;
}

.laptop3d:not(.is-3d) .display {
    position: relative;
    pointer-events: auto;
}

.laptop3d:not(.is-3d) .pill3d {
    display: none;
}

/* the screen, once it is open: macOS at the real 14-inch proportions (302 x
   196 mm, drawn 502 x 326), with the type set a little larger than life so
   it stays readable. laptop.js pins it to the 3D display */

.sprite {
    position: absolute;
    width: 0;
    height: 0;
}

.display {
    position: absolute;
    left: 0;
    top: 0;
    width: 502px;
    height: 326px;
    overflow: hidden;
    border-radius: 7px 7px 2px 2px;
    background: #e9e8e4;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--sans);
    letter-spacing: .005em;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* the notch: 1/8 of the width and as tall as the menu bar */
/* in 3D the laptop is drawn as pixel art (pixel.js), so the live screen is
   too: a pixel typeface for the words, and the pictures cut into 3px blocks.
   The words stay real text, so every tile and dock icon is still a link */
.laptop3d.is-3d .display {
    font-family: "Pixelify Sans", ui-monospace, monospace;
    letter-spacing: 0;
    -webkit-font-smoothing: none;
}

.laptop3d.is-3d .display img {
    filter: url(#pixelate);
    image-rendering: pixelated;
}

.display .notch {
    position: absolute;
    left: 216px;
    top: 0;
    z-index: 10;
    width: 70px;
    height: 14px;
    border-radius: 0 0 5.5px 5.5px;
    background: #0a0a0b;
}

.display .notch i {
    position: absolute;
    left: 32.5px;
    top: 4.5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #4a5a78 0, #18202e 42%, #06080b 72%);
    box-shadow: 0 0 0 1px #141518;
}

.display .wall {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.display .glare {
    position: absolute;
    inset: 0;
    z-index: 9;
    pointer-events: none;
    background: linear-gradient(112deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .03) 33%, rgba(255, 255, 255, 0) 33.4%);
}

/* menu bar: transparent over the wallpaper, as it is now */
.mb {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 14px;
    padding: 0 9px 0 11px;
    background: linear-gradient(180deg, rgba(250, 250, 248, .55), rgba(250, 250, 248, .25));
    font-size: 7.6px;
    line-height: 14px;
    font-weight: 500;
}

.mb-l,
.mb-r {
    display: flex;
    align-items: center;
    gap: 7.5px;
}

.mb-l b {
    font-weight: 700;
}

.mb-apple {
    width: 7.5px;
    height: 9px;
    margin-right: 3px;
}

.mb-r {
    gap: 8px;
}

.mb-r svg {
    display: block;
}

/* windows */
.win {
    position: absolute;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .26), 0 2px 6px rgba(0, 0, 0, .14), 0 12px 28px -6px rgba(0, 0, 0, .4);
}

.finder {
    left: 16px;
    top: 26px;
    z-index: 2;
    display: flex;
    width: 322px;
    height: 214px;
    background: #fff;
}

.fd-side {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 88px;
    margin: 4px 0 4px 4px;
    padding: 24px 4px 0;
    border-radius: 8px;
    background: rgba(240, 240, 242, .96);
    box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08);
    font-size: 7.4px;
    line-height: 13px;
}

.lights {
    position: absolute;
    left: 8px;
    top: 8px;
    display: flex;
    gap: 4.5px;
}

.lights i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14);
}

.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.fd-side p {
    margin: 7px 0 1px 5px;
    font-size: 6.4px;
    line-height: 9px;
    font-weight: 600;
    color: #8e8e93;
}

.fd-side p:first-of-type {
    margin-top: 0;
}

.fd-side span {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 14px;
    padding: 0 5px;
    border-radius: 4px;
}

.fd-side span svg {
    flex-shrink: 0;
    width: 8.5px;
    height: 8.5px;
    color: #2b7cf6;
}

.fd-side .on {
    background: rgba(0, 0, 0, .085);
}

.fd-main {
    position: relative;
    flex: 1;
    min-width: 0;
}

.fd-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 11px 0 9px;
    color: #6e6e73;
}

.fd-bar .chev {
    margin-top: -2px;
    font-size: 15px;
    line-height: 15px;
}

.fd-bar .chev.off {
    margin-left: -4px;
    color: #c7c7cc;
}

.fd-bar b {
    font-size: 8.4px;
    font-weight: 700;
    color: #1d1d1f;
}

.fd-bar .grow {
    flex: 1;
}

.fd-bar svg {
    display: block;
}

.fd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 2px;
    padding: 6px 6px 0;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #1d1d1f;
    text-decoration: none;
}

.tile .ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 50px;
    border-radius: 5px;
}

.tile .shot {
    width: 58px;
    height: 38px;
    object-fit: cover;
    object-position: top;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .16), 0 1px 3px rgba(0, 0, 0, .24);
}

.tile .shot.sq {
    width: 40px;
    height: 40px;
}

.tile .app {
    width: auto;
    height: 48px;
}

.tile .nm {
    max-width: 68px;
    padding: 0 3px;
    border-radius: 3px;
    font-size: 7.4px;
    line-height: 10px;
    text-align: center;
}

/* selection follows the pointer, as it does in Finder */
.tile.sel .ic,
.tile:hover .ic,
.tile:focus-visible .ic {
    background: rgba(0, 0, 0, .085);
}

.tile.sel .nm,
.tile:hover .nm,
.tile:focus-visible .nm {
    background: #0a64d8;
    color: #fff;
}

.fd-grid:hover .tile.sel:not(:hover) .ic,
.fd-grid:has(.tile:focus-visible) .tile.sel:not(:focus-visible) .ic {
    background: none;
}

.fd-grid:hover .tile.sel:not(:hover) .nm,
.fd-grid:has(.tile:focus-visible) .tile.sel:not(:focus-visible) .nm {
    background: none;
    color: #1d1d1f;
}

.tile:focus-visible {
    outline: none;
}

.fd-status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 17px;
    font-size: 6.6px;
    line-height: 17px;
    text-align: center;
    color: #8e8e93;
}

.stickies {
    left: 352px;
    top: 26px;
    width: 136px;
    height: 86px;
    padding: 13px 10px 0;
    border-radius: 3px;
    background: #fef3a5;
    color: #2e2d33;
    font-family: "Caveat", cursive;
}

.st-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 8px;
    background: #f7e57c;
}

.stickies b {
    display: block;
    font-size: 17px;
    line-height: 17px;
    font-weight: 600;
}

.stickies span:last-child {
    font-size: 15px;
    line-height: 16px;
    font-weight: 500;
}

/* desktop widgets */
.wdg {
    position: absolute;
    top: 124px;
    display: flex;
    flex-direction: column;
    width: 66px;
    height: 66px;
    padding: 7px 8px;
    border-radius: 13px;
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 6px 14px -6px rgba(0, 0, 0, .35);
}

/* cloud and fog by default; home.js sets clear days and night from the forecast */
.weather {
    left: 352px;
    background: linear-gradient(180deg, #6f88a1, #9fb0c1);
    color: #fff;
}

.weather.is-clear {
    background: linear-gradient(180deg, #2a78d6, #5ea6ee);
}

.weather.is-night {
    background: linear-gradient(180deg, #0d1a33, #2a3d63);
}

.w-city {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 6.6px;
    line-height: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.w-temp {
    font-size: 21px;
    line-height: 24px;
    font-weight: 300;
    letter-spacing: -.02em;
}

.w-cond {
    margin-top: auto;
    font-size: 6.4px;
    line-height: 8px;
    font-weight: 600;
}

.w-range {
    font-size: 6.4px;
    line-height: 8px;
    font-weight: 500;
}

.cal {
    left: 422px;
    background: #fff;
}

.c-day {
    font-size: 6.2px;
    line-height: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #ff3b30;
}

.c-num {
    font-size: 24px;
    line-height: 27px;
    font-weight: 400;
    letter-spacing: -.02em;
}

.c-none {
    margin-top: auto;
    font-size: 6.4px;
    line-height: 8px;
    font-weight: 500;
    color: #8e8e93;
}

/* the dock: glass, magnifies under the pointer, dots under what's running */
.dock {
    position: absolute;
    left: 50%;
    bottom: 4px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 4px;
    border-radius: 11px;
    background: rgba(246, 246, 248, .42);
    -webkit-backdrop-filter: blur(10px) saturate(1.5);
    backdrop-filter: blur(10px) saturate(1.5);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .7), 0 0 0 .5px rgba(0, 0, 0, .14), 0 6px 16px -6px rgba(0, 0, 0, .3);
    transform: translateX(-50%);
}

.dock a,
.dock .trash {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 5.4px;
    transform-origin: 50% 100%;
    transition: transform .2s cubic-bezier(.3, 1.5, .5, 1);
}

.dock a:hover,
.dock a:focus-visible {
    transform: translateY(-3px) scale(1.4);
    z-index: 1;
}

.dock a:focus-visible {
    outline: none;
}

.dock img {
    width: 100%;
    height: 100%;
    border-radius: 5.4px;
}

.dock svg {
    display: block;
    width: 100%;
    height: 100%;
}

.dock .pad img {
    padding: 2.5px;
    object-fit: contain;
}

.dock .bi {
    background: #121214;
    color: #b9a4ff;
    font: 6px/7px "Press Start 2P", ui-monospace, monospace;
    text-decoration: none;
}

.dock .mail {
    background: linear-gradient(180deg, #45a6ff, #1766f2);
}

.dock .mail svg {
    width: 14px;
    height: 10px;
}

.dock .run::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3.5px;
    width: 2.2px;
    height: 2.2px;
    margin-left: -1.1px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
}

.dock .sep {
    width: .6px;
    height: 22px;
    margin: 0 1px;
    background: rgba(0, 0, 0, .2);
}

.laptop-cap {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: 480 13px/20.15px var(--sans);
    color: var(--mute);
    cursor: pointer;
}

.laptop-cap:hover {
    color: var(--text);
}

/* ---- About: the timeline ---------------------------------------------- */

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.timeline .rail {
    position: absolute;
    left: 97.5px;
    top: 36px;
    width: 1px;
    height: 224px;
    background: var(--rule);
}

.entry {
    display: flex;
    align-items: flex-start;
}

.entry .year {
    flex-shrink: 0;
    width: 62px;
    margin-right: 18px;
    padding-top: 3px;
    text-align: right;
    font: 12px/18px var(--mono);
    color: var(--mute);
}

.entry > img {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-right: 14px;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: #fff;
}

.entry .body {
    width: 334px;
}

.entry p {
    margin: 0;
}

.entry .who {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    height: 24px;
    color: var(--ink);
}

.entry .who a {
    color: inherit;
    text-decoration: none;
}

.entry .who span {
    padding-top: 2px;
    font-size: 13px;
    line-height: 20.15px;
    color: var(--mute);
    white-space: nowrap;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}

/* a badge: the backer's own mark, its name, and the batch */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 6px 0 5px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(18, 18, 20, .05);
    font: 500 12.5px/16px var(--sans);
    color: var(--ink);
}

.chip:not(:has(.batch)) {
    padding-right: 11px;
}

.chip b {
    font-weight: 560;
    letter-spacing: -.005em;
}

.chip-mark {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
}

/* Z Fellows' mark is their wordmark; its Z, on their cream */
.chip-mark.zf {
    display: grid;
    place-items: center;
    background: #fffdf3;
    box-shadow: inset 0 0 0 1px rgba(32, 103, 255, .2);
    color: #2067ff;
    font: 700 11px/1 var(--sans);
}

.chip .batch {
    padding: 2px 6px;
    border-radius: 999px;
    background: #fff0e8;
    color: #c2481a;
    font: 11px/14px var(--mono);
    letter-spacing: .03em;
}

/* ---- Work ------------------------------------------------------------- */

.stage {
    width: min(640px, calc(100vw - 32px));
    margin: 0 auto;
}

.stage .intro {
    width: min(384px, 100%);
}

.index {
    margin-top: 48px;
    border-top: 1px solid var(--rule);
}

.index a {
    display: flex;
    align-items: center;
    height: 44px;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    transition: background .15s;
}

.index a:hover {
    background: #f4f4f2;
}

.index .y {
    flex-shrink: 0;
    width: 64px;
    font: 12px/18px var(--mono);
    color: var(--mute);
}

.index .n {
    flex-shrink: 0;
    width: 150px;
    color: var(--ink);
}

.index .d {
    flex: 1;
    font-size: 13px;
    color: var(--text);
}

.index .w {
    font-size: 13px;
    color: var(--mute);
}

.feature {
    margin-top: 80px;
}

.plate {
    position: relative;
    display: block;
    height: 420px;
    overflow: hidden;
    border-radius: 24px;
    background: #f1f1ef;
}

.browser {
    position: absolute;
    left: 40px;
    top: 21px;
    width: 560px;
    height: 378px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(16, 16, 20, .06), 0 10px 18px -6px rgba(16, 16, 20, .16), 0 28px 44px -16px rgba(16, 16, 20, .3), inset 0 0 0 1px rgba(16, 16, 20, .06);
    transition: transform .35s cubic-bezier(.3, 1.3, .5, 1);
}

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

.browser .chrome {
    position: relative;
    display: block;
    height: 28px;
    background: #f3f2f0;
    box-shadow: inset 0 -1px 0 rgba(16, 16, 20, .08);
}

.browser .chrome i {
    position: absolute;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.browser .chrome i:nth-of-type(1) { left: 12px; background: #ff5f57; }
.browser .chrome i:nth-of-type(2) { left: 25px; background: #febc2e; }
.browser .chrome i:nth-of-type(3) { left: 38px; background: #28c840; }

.browser .url {
    position: absolute;
    display: block;
    left: 200px;
    top: 5px;
    width: 160px;
    height: 18px;
    border-radius: 6px;
    background: #fff;
    font: 500 10px/18px var(--sans);
    color: var(--text);
    text-align: center;
}

.browser img {
    display: block;
    width: 560px;
    height: 350px;
    object-fit: cover;
    object-position: top;
}

.feature-cap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 14px;
    padding-left: 2px;
}

.feature-cap b {
    font-weight: 480;
    color: var(--ink);
}

.feature-cap span {
    margin-left: 8px;
    font-size: 13px;
    color: var(--mute);
}

.feature-cap a {
    padding-top: 2px;
    font-size: 13px;
    line-height: 20.15px;
}

.feature p {
    width: min(520px, 100%);
    margin: 14px 0 0;
    padding-left: 2px;
}

.side {
    margin-top: 80px;
}

.side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
}

.side-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.side-face {
    position: relative;
    height: 208px;
    overflow: hidden;
    border-radius: 20px;
    background: #f1f1ef;
}

.side-face > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.side-card:hover .side-face > img {
    transform: scale(1.04);
}

.side-face .logo {
    position: absolute;
    inset: auto;
    left: -6px;
    top: 96px;
    width: 130px;
    height: 130px;
    transform: rotate(-6deg);
}

.side-face .cab {
    position: absolute;
    inset: auto;
    left: calc(50% - 80px);
    top: 14px;
    width: 160px;
    height: auto;
    object-fit: initial;
}

.play {
    position: absolute;
    left: calc(50% - 24px);
    top: calc(50% - 24px);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}

.side-cap {
    margin-top: 12px;
    padding-left: 2px;
}

.side-cap b {
    font-weight: 480;
    color: var(--ink);
}

.side-cap span {
    margin-left: 8px;
    font-size: 13px;
    color: var(--mute);
}

@media (max-width: 600px) {
    .plate {
        height: auto;
        aspect-ratio: 640 / 420;
    }

    .browser {
        left: 6.25%;
        top: 5%;
        width: 87.5%;
        height: 90%;
    }

    .browser img {
        width: 100%;
        height: auto;
    }

    .browser .url {
        left: 50%;
        transform: translateX(-50%);
    }

    .feature-cap {
        flex-direction: column;
        gap: 4px;
    }

    .side-grid {
        grid-template-columns: 1fr;
    }

    .index .d {
        display: none;
    }

    .entry .year {
        width: 36px;
        margin-right: 10px;
    }

    .timeline .rail {
        left: 63.5px;
    }

    .entry .body {
        width: auto;
        flex: 1;
    }

    .entry .who {
        height: auto;
        flex-wrap: wrap;
    }
}
