/* ---------------------------------------------------------------------------------------------------------------------
   AlonSoft: the website's tokens and its pages, as the concept draws them, and the workspace's frame around Forma's
   components. Each color is given for the light scheme and the dark through light-dark(), which the scheme Forma's theme
   system draws the page in picks; what is no color follows the page's data-forma-scheme.
--------------------------------------------------------------------------------------------------------------------- */

:root {
    --bg: light-dark(#faf9f5, #19211d);
    --card: light-dark(#fdfcf8, #1e2822);
    --alt: light-dark(#f0f0e7, #222d25);
    --ink: light-dark(#202b24, #f1f0e5);
    --muted: light-dark(#565e56, #c0c8bc);
    --green: light-dark(#345c42, #a8c9a7);
    --line: light-dark(#d9dcd1, #39473a);
    --faint: light-dark(#838c7d, #a5b29f);
    --solid: light-dark(#294d38, #bad3b8);
    --solid-text: light-dark(#ffffff, #1b2a1f);
    --shadow: light-dark(#13201718, #00000040);

    /* The logo's colors: the wordmark's Alon and Soft, and the oak's four greens, darkest to lightest. In the dark scheme
       the wordmark's two trade places, the darker green lightened and the lighter one deepened, so Alon still leads. */
    --logo-alon: light-dark(#52755d, #cfe3cc);
    --logo-soft: light-dark(#bad3b8, #8aac90);
    --logo-oak-1: light-dark(#52755d, #9dbf9f);
    --logo-oak-2: light-dark(#62846a, #86a98a);
    --logo-oak-3: light-dark(#78967d, #6f9075);
    --logo-oak-4: light-dark(#bad3b8, #d4e6d1);

    /* The gray a project's white mark is previewed on in the workspace until its backdrop is chosen, in either scheme. */
    --mark-backdrop: #555555;

    /* An authenticator app's QR code, dark on light in either scheme, as every scanner reads one. */
    --qr-paper: #ffffff;
    --qr-ink: #202b24;

    /* The engraved oak, printed onto the paper in the light scheme and drawn in light lines in the dark. */
    --tree-blend: multiply;
    --tree-filter: none;
    --tree-opacity: 1;
}

:root[data-forma-scheme="dark"] {
    --tree-blend: screen;
    --tree-filter: invert(1) hue-rotate(180deg);
    --tree-opacity: .86;
}

@media (prefers-color-scheme: dark) {
    :root[data-forma-scheme="system"] {
        --tree-blend: screen;
        --tree-filter: invert(1) hue-rotate(180deg);
        --tree-opacity: .86;
    }
}

/* ---------------------------------------------------------------------------------------------------------------------
   The page
--------------------------------------------------------------------------------------------------------------------- */

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 1rem/1.55 Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

button,
a,
input,
select,
summary {
    touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
}

.wrap {
    width: min(1280px, 90%);
    margin: auto;
}

.skip {
    position: absolute;
    top: -100px;
    z-index: 8;
    background: var(--card);
    padding: 10px;
}

.skip:focus {
    top: 4px;
}

main:focus {
    outline: none;
}

/* Each workspace navigation moves the focus to the page's heading, so a screen reader starts there; it is no control to
   ring, so neither Forma's ring, which every control shares, nor the browser's own is drawn around it. */
h1:focus {
    outline: none;
    box-shadow: none;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Header and footer
--------------------------------------------------------------------------------------------------------------------- */

.site-header {
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 5;
    background: var(--bg);
}

.bar,
.brand,
.nav,
.actions,
.hero-buttons,
.button,
.stat,
.sectionhead,
.foot,
.popbtn,
.cardlinks,
.crumbs {
    display: flex;
    align-items: center;
}

.bar {
    min-height: 77px;
    gap: 40px;
}

.brand {
    direction: ltr;
    flex: none;
}

.logo {
    display: block;
    width: 150px;
    height: auto;
    aspect-ratio: 1897 / 523;
    overflow: visible;
}

.nav {
    gap: 26px;
    height: 77px;
}

.nav a {
    position: relative;
    font-size: .92rem;
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--muted);
}

.nav a.active {
    color: var(--ink);
    font-weight: 600;
}

.nav a.active::after {
    content: "";
    height: 2px;
    background: var(--green);
    position: absolute;
    bottom: 15px;
    width: 17px;
    inset-inline-start: 0;
}

.actions {
    margin-inline-start: auto;
    gap: 12px;
}

.actions .split {
    height: 17px;
    border-inline-start: 1px solid var(--line);
}

/* A header menu: a disclosure whose summary is its button. */
.pop {
    position: relative;
}

.popbtn {
    gap: 7px;
    min-height: 40px;
    justify-content: center;
    padding: 4px 6px;
    cursor: pointer;
    list-style: none;
    border-radius: 4px;
}

.popbtn::-webkit-details-marker {
    display: none;
}

.popbtn .forma-icon,
.popmenu .forma-icon {
    font-size: 18px;
}

.popmenu {
    position: absolute;
    inset-inline-end: 0;
    top: 43px;
    z-index: 8;
    background: var(--card);
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: 0 8px 30px var(--shadow);
    min-width: 148px;
}

.popmenu button,
.popmenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 3px;
    text-align: start;
}

.popmenu button:hover,
.popmenu a:hover,
.popmenu [aria-current="true"] {
    background: var(--alt);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--alt);
}

.foot {
    min-height: 96px;
    gap: 20px;
}

.foot .logo {
    width: 110px;
}

.foot small {
    color: var(--muted);
}

.foot > a:last-child {
    margin-inline-start: auto;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Shared parts
--------------------------------------------------------------------------------------------------------------------- */

.eyebrow,
.tag,
.smallhead {
    font-family: "Courier New", monospace;
    text-transform: uppercase;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .105em;
    color: var(--green);
}

.hero h1,
.page-head h1,
.detail h1,
h2,
.card h3,
.stat strong,
.year,
.entry-name {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

h2 {
    font-size: clamp(2.05rem, 3.2vw, 3.05rem);
    letter-spacing: -.052em;
    line-height: 1.1;
    margin: 0;
}

.button {
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 16px;
    font-size: .91rem;
    font-weight: 550;
    background: var(--card);
    line-height: 1.25;
}

.button.primary {
    background: var(--solid);
    border-color: var(--solid);
    color: var(--solid-text);
}

.button:hover,
.pill:hover,
.btnlink:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.button .forma-icon {
    font-size: 16px;
}

.btnlink {
    color: var(--green);
    font-size: .89rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btnlink .forma-icon {
    font-size: 15px;
}

.tag {
    font-size: .73rem;
    letter-spacing: .075em;
}

.empty {
    padding: 25px 0;
    color: var(--muted);
}

.main-filler {
    min-height: 60vh;
}

/* The page fills the window at least, so a short page's footer still rests at its foot. */
.site {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.site > main {
    flex: 1 0 auto;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Overview
--------------------------------------------------------------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    isolation: isolate;
    min-height: 421px;
    padding: 36px 0 31px;
    gap: 20px;
    background: var(--bg);
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    border-top: 1px solid currentColor;
}

.hero h1 {
    font-size: clamp(4.55rem, 6.4vw, 6.15rem);
    line-height: .99;
    letter-spacing: -.064em;
    margin: 19px 0;
}

.hero h1 em {
    font-weight: 400;
    color: var(--green);
}

.hero-copy > p {
    color: var(--muted);
    font-size: 1.04rem;
    max-width: 470px;
    line-height: 1.55;
    margin: 0;
}

.hero-buttons {
    gap: 16px;
    margin-top: 23px;
}

.plate {
    margin: 0;
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.plate img {
    width: 100%;
    max-height: 356px;
    object-fit: contain;
    mix-blend-mode: var(--tree-blend);
    filter: var(--tree-filter);
    opacity: var(--tree-opacity);
}

.plate figcaption {
    position: absolute;
    inset-inline-end: 8%;
    bottom: -9px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font: italic .86rem Georgia, serif;
}

.plate figcaption::before {
    content: "";
    width: 27px;
    border-top: 1px solid var(--faint);
}

.stats {
    border-block: 1px solid var(--line);
    background: var(--alt);
}

.statrow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-block: 19px;
}

.stat {
    gap: 15px;
    padding-inline: clamp(10px, 2.6vw, 38px);
    border-inline-start: 1px solid var(--line);
}

.stat:first-child {
    padding-inline-start: 0;
    border: 0;
}

.stat .forma-icon {
    font-size: 23px;
    color: var(--green);
}

.stat strong {
    font-size: 1.85rem;
    line-height: 1.03;
    letter-spacing: -.045em;
    display: block;
    font-variant-numeric: lining-nums;
}

.stat small {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    margin-top: 3px;
}

.section {
    padding: 42px 0;
}

.section + .section {
    border-top: 1px solid var(--line);
}

.sectionhead {
    gap: 18px;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 19px;
}

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

.card {
    display: block;
    overflow: hidden;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--card);
    transition: box-shadow .2s, transform .2s;
}

.card:hover {
    box-shadow: 0 6px 20px var(--shadow);
    transform: translateY(-2px);
}

.cardbody {
    padding: 17px 22px 20px;
}

.card h3 {
    margin: 4px 0;
    font-size: 1.8rem;
    letter-spacing: -.045em;
}

.card p,
.entry p {
    color: var(--muted);
    margin: 0;
}

.card p {
    font-size: .96rem;
}

/* A project's artwork: its cover on its backdrop, shaded toward its mark from the start, drawn the same either way. */
.art {
    height: clamp(148px, 13.9vw, 202px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    direction: ltr;
    background: var(--art-backdrop, var(--alt));
}

.art-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 54%;
    display: block;
}

.art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, var(--art-shade, transparent), transparent 82%);
}

.art-mark {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    height: clamp(40px, 4.2vw, 62px);
    width: auto;
    max-width: 62%;
    filter: drop-shadow(0 1px 12px var(--shadow));
}

/* ---------------------------------------------------------------------------------------------------------------------
   Directory, timeline and a project's page
--------------------------------------------------------------------------------------------------------------------- */

.page-head {
    padding: 48px 0 24px;
}

.page-head h1,
.detail h1 {
    font-size: clamp(2.6rem, 5.4vw, 5.4rem);
    line-height: 1.07;
    letter-spacing: -.06em;
    margin: 12px 0;
}

.page-head p,
.detail .lead {
    color: var(--muted);
    max-width: 740px;
}

.toolbar {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.pill {
    padding: 5px 13px;
    border: 1px solid var(--line);
    border-radius: 22px;
    font-size: .88rem;
    background: var(--card);
}

.pill[aria-current="true"] {
    color: var(--solid-text);
    background: var(--solid);
    border-color: var(--solid);
}

.search {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 6px 10px;
    margin: 0;
    margin-inline-start: auto;
}

.search .forma-icon {
    font-size: 18px;
}

.search input {
    min-width: 0;
    width: 145px;
    background: none;
    border: 0;
    font-size: .94rem;
}

.search input:focus-visible {
    outline: none;
}

.search:focus-within {
    outline: 3px solid var(--green);
    outline-offset: 3px;
}

.directory {
    padding-bottom: 45px;
}

.dirrow {
    display: grid;
    grid-template-columns: 1.25fr 2fr auto;
    gap: 20px;
    align-items: center;
    padding: 19px 0;
    border-top: 1px solid var(--line);
}

.dir-name {
    display: flex;
    gap: 13px;
    align-items: center;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.dir-name:hover,
.entry-name a:hover,
.crumbs a:hover {
    text-decoration: underline;
}

.mini {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--alt);
    color: var(--green);
    border: 1px solid var(--line);
    border-radius: 7px;
    flex: none;
}

.mini .forma-icon {
    font-size: 18px;
}

.dirrow p {
    color: var(--muted);
    margin: 0;
    font-size: .95rem;
}

.years {
    margin-bottom: 30px;
}

.yeargroup {
    display: grid;
    grid-template-columns: 116px 1fr;
    border-top: 1px solid var(--line);
    padding: 20px 0 8px;
}

.year {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -.05em;
    line-height: 1.2;
}

.entry {
    position: relative;
    margin-inline-start: 7px;
    padding: 0 0 21px;
    padding-inline-start: 25px;
    border-inline-start: 1px solid var(--line);
}

.entry::before {
    content: "";
    position: absolute;
    inset-inline-start: -4px;
    top: .65em;
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
}

.entry time {
    font: normal .8rem/1.5 "Courier New", monospace;
    color: var(--muted);
}

.entry-name {
    margin: 1px 0;
    font-size: 1.45rem;
    line-height: 1.3;
}

.entry p {
    font-size: .95rem;
}

.filter-select {
    appearance: none;
    border: 1px solid var(--line);
    padding-block: 8px;
    padding-inline: 13px 35px;
    background: var(--card);
    border-radius: 5px;
}

.s-wrap {
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: 8px;
}

.s-wrap .forma-icon {
    position: absolute;
    inset-inline-end: 9px;
    pointer-events: none;
    font-size: 18px;
}

.detail {
    padding: 38px 0 48px;
}

.detail h1 {
    overflow-wrap: anywhere;
}

.detail .art {
    height: clamp(170px, 23vw, 300px);
    border-radius: 7px;
    margin: 20px 0;
}

.crumbs {
    gap: 8px;
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 30px;
}

.cardlinks {
    gap: 10px;
    flex-wrap: wrap;
    margin-block: 18px;
}

.private {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .91rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.details-grid h2 {
    font-size: 2rem;
    margin: 16px 0;
}

.info {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    padding: 19px;
    align-self: start;
}

.info p {
    margin: 0 0 10px;
}

.info p:last-child {
    margin: 0;
}

[dir="rtl"] .hero h1 {
    letter-spacing: -.04em;
}

[dir="rtl"] .nav a.active::after {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Maintenance: the overview's hero, its heading the file's, and the time left in tiles beneath its message
--------------------------------------------------------------------------------------------------------------------- */

/* The hero stands in the middle of the window, between the header and the footer. */
.site > main:has(> .closed) {
    display: flex;
    flex-direction: column;
}

.hero.closed h1 {
    font-size: clamp(3.2rem, 5.2vw, 4.9rem);
    line-height: 1.04;
}

.closed .hero-copy > p {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.countdown {
    margin-top: 30px;
}

.countdown-units {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 96px));
    gap: 10px;
}

.countdown-unit {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 15px 6px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 1px 12px var(--shadow);
}

.countdown-unit strong {
    font: 400 2.6rem/1 Georgia, "Times New Roman", serif;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}

.countdown-unit small {
    font-family: "Courier New", monospace;
    text-transform: uppercase;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--muted);
}

[dir="rtl"] .countdown-unit small {
    letter-spacing: 0;
}

.countdown-done {
    margin: 0;
    color: var(--green);
    font: italic 1.3rem Georgia, serif;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Narrower screens
--------------------------------------------------------------------------------------------------------------------- */

@media (min-width: 1500px) {
    .hero {
        min-height: 465px;
    }
}

@media (max-width: 850px) {
    .bar {
        gap: 25px;
    }

    .nav {
        gap: 17px;
    }

    .hero h1 {
        font-size: 4.4rem;
    }

    .hero {
        gap: 5px;
        min-height: 370px;
    }

    .hero-buttons {
        gap: 8px;
    }

    .stat {
        gap: 9px;
        padding-inline: 15px;
    }

    .stat small {
        font-size: .76rem;
    }

    .dirrow {
        grid-template-columns: 1fr 1.45fr;
    }

    .dirrow > .tag {
        display: none;
    }

    .toolbar .search {
        margin-inline-start: 0;
    }
}

@media (max-width: 650px) {
    .wrap {
        width: 90%;
    }

    .bar {
        flex-wrap: wrap;
        min-height: 0;
        gap: 0;
        padding-top: 4px;
    }

    .logo {
        width: 130px;
    }

    .actions {
        gap: 7px;
    }

    .nav {
        order: 3;
        width: 100%;
        height: 39px;
        gap: 24px;
    }

    .nav a {
        font-size: .85rem;
    }

    .nav a.active::after {
        bottom: 0;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 28px 0 20px;
        gap: 8px;
    }

    .hero h1 {
        font-size: clamp(3.7rem, 12.8vw, 5.1rem);
        margin: 15px 0;
    }

    .hero-copy > p {
        max-width: 440px;
    }

    .hero-buttons {
        margin-top: 18px;
    }

    .hero-buttons .button {
        padding: 10px 13px;
    }

    .plate {
        min-height: 0;
        height: 205px;
    }

    .plate img {
        max-width: 370px;
        height: 100%;
    }

    .plate figcaption {
        inset-inline-end: 0;
        bottom: -5px;
        font-size: .77rem;
    }

    .statrow {
        grid-template-columns: 1fr 1fr;
        gap: 15px 0;
        padding-block: 15px;
    }

    .stat {
        padding-inline: 14px;
    }

    .stat:nth-child(3) {
        border: 0;
        padding-inline-start: 0;
    }

    .stat strong {
        font-size: 1.55rem;
    }

    .stat small {
        font-size: .79rem;
    }

    .section {
        padding: 29px 0;
    }

    .sectionhead {
        gap: 9px;
        flex-wrap: wrap;
    }

    .sectionhead h2 {
        font-size: 2.05rem;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .art {
        height: 170px;
    }

    .cardbody {
        padding: 15px 18px;
    }

    .foot {
        gap: 10px;
        flex-wrap: wrap;
        padding-block: 15px;
    }

    .foot .logo {
        width: 96px;
    }

    .foot small {
        width: 100%;
        order: 3;
    }

    .yeargroup {
        grid-template-columns: 65px 1fr;
    }

    .year {
        font-size: 1.55rem;
    }

    .entry {
        padding-inline-start: 16px;
    }

    .dirrow {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dirrow p {
        padding-inline-start: 51px;
    }

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

    .page-head {
        padding-top: 25px;
    }

    .toolbar .search {
        width: 100%;
        margin-top: 4px;
    }

    .search input {
        flex: 1;
    }

    .btnlink {
        font-size: .85rem;
    }

    .hero.closed h1 {
        font-size: 2.9rem;
    }

    .countdown-unit strong {
        font-size: 2.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* ---------------------------------------------------------------------------------------------------------------------
   Sign-in
--------------------------------------------------------------------------------------------------------------------- */

.sign-in-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.sign-in {
    width: min(360px, 100%);
    display: grid;
    gap: 14px;
}

/* The step that sets up an authenticator app holds its QR code and recovery codes, so it takes more room. */
.sign-in:has(.authenticator-steps) {
    width: min(460px, 100%);
}

.sign-in h1 {
    font: 400 2.4rem/1.1 Georgia, serif;
    letter-spacing: -.04em;
    margin: 8px 0 0;
}

/* A form posted to the server, as each step of the sign-in and each change to the account is, so no circuit holds a
   password or a code. */
.sign-in form,
.posted-form {
    display: grid;
    gap: 10px;
}

.sign-in label,
.posted-form label {
    font-size: .9rem;
    font-weight: 600;
}

.sign-in input:not([type="hidden"]),
.posted-form input:not([type="hidden"]) {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    background: var(--card);
    color: inherit;
    font: inherit;
}

.sign-in-note {
    margin: 0;
    padding: 10px 12px;
    border-inline-start: 3px solid var(--green);
    background: var(--alt);
    font-size: .92rem;
}

.sign-in-lead {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

/* The steps that set up an authenticator app, on the sign-in's page and the account's. */
.authenticator-steps {
    margin: 0;
    padding-inline-start: 22px;
    display: grid;
    gap: 20px;
    max-width: 760px;
}

.authenticator-steps > li > p {
    margin: 0 0 10px;
}

.qr-code {
    display: block;
    inline-size: 100%;
    max-inline-size: 13rem;
    block-size: auto;
    margin-block-end: 10px;
}

.qr-code-paper {
    fill: var(--qr-paper);
}

.qr-code-ink {
    fill: var(--qr-ink);
}

.authenticator-key {
    color: var(--muted);
    font-size: .92rem;
}

.authenticator-key code {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 6px 48px;
    margin: 0;
    padding-inline-start: 24px;
}

.recovery-codes code {
    font-size: .95rem;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Workspace: the frame around Forma's components
--------------------------------------------------------------------------------------------------------------------- */

.workspace {
    min-height: 100vh;
    font-family: var(--font-family);
}

.workspace-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 12px 5%;
    border-bottom: 1px solid var(--line);
}

.workspace-header .logo {
    width: 120px;
}

.workspace-area {
    font-family: "Courier New", monospace;
    text-transform: uppercase;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .105em;
    color: var(--green);
}

.workspace-nav {
    display: flex;
    gap: 6px;
}

.workspace-nav a {
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
}

.workspace-nav a[aria-current="page"] {
    background: var(--alt);
    color: var(--ink);
}

.workspace-actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.workspace-actions form {
    margin: 0;
}

.workspace-link {
    color: var(--green);
    font-size: .9rem;
    font-weight: 600;
    padding: 0;
}

.workspace-link:hover {
    text-decoration: underline;
}

.workspace-main {
    width: min(1100px, 90%);
    margin: 0 auto;
    padding: 28px 0 64px;
}

.workspace-lead,
.workspace-hint {
    color: var(--muted);
    max-width: 760px;
}

.workspace-hint {
    margin-top: 0;
    font-size: .92rem;
}

.workspace-empty {
    color: var(--muted);
    padding: 24px 0;
}

.workspace-filter {
    max-width: 320px;
    margin-bottom: 16px;
}

.workspace-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.workspace-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    flex: 1;
}

/* A plain list rules its rows apart; the projects' sortable list frames each of its own. */
.workspace-list > .workspace-row {
    border-top: 1px solid var(--line);
}

.forma-sortable-list-content > .workspace-row {
    padding: 4px 0;
}

.workspace-row-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.workspace-row-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.workspace-row-name:hover {
    text-decoration: underline;
}

.workspace-row-detail {
    color: var(--muted);
    font-size: .86rem;
}

.workspace-row-marks,
.workspace-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.workspace-mark {
    font-size: .78rem;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    white-space: nowrap;
}

.workspace-mark-on {
    border-color: var(--green);
    color: var(--green);
}

a.workspace-mark:hover {
    text-decoration: underline;
}

.workspace-form {
    display: grid;
    gap: 8px;
}

.workspace-group {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
}

.workspace-group h2 {
    font-size: 1.6rem;
}

.workspace-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.workspace-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px 20px;
    align-items: start;
}

.workspace-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
}

.workspace-link-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) minmax(0, 2fr) auto;
    gap: 12px;
    align-items: start;
}

/* Beside the fields' boxes, Forma's 48px, rather than the room their messages keep beneath them. */
.workspace-link-actions {
    display: flex;
    gap: 2px;
    align-items: center;
    min-block-size: 48px;
}

/* A button of its own in a group, such as Add link, keeps its own width. */
.workspace-group > .forma-button {
    justify-self: start;
}

.workspace-artwork {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.workspace-picture {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.workspace-picture-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    justify-self: stretch;
    min-block-size: 28px;
}

.workspace-picture-label {
    font-weight: 600;
    font-size: .92rem;
}

.workspace-picture-preview {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    border: 1px solid var(--line);
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--alt);
}

.workspace-picture-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.workspace-picture-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: .86rem;
}

.workspace-picture-error,
.workspace-errors,
.workspace-form .validation-message {
    color: var(--danger-ink-color);
    font-size: .88rem;
}

.workspace-errors {
    margin: 0;
    padding-inline-start: 20px;
}

.workspace-notice {
    padding: 10px 12px;
    border-inline-start: 3px solid var(--green);
    background: var(--alt);
    max-width: 760px;
}

/* A change to the account, posted as a form, as narrow as the sign-in's. */
.workspace-account-form {
    max-width: 420px;
}

.workspace-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* An editor's buttons stay in reach at the foot of the window while its form is scrolled. */
.workspace-form > .workspace-form-actions {
    position: sticky;
    inset-block-end: 0;
    z-index: 1;
    padding-block-end: 16px;
    background: var(--bg);
}

@media (max-width: 720px) {
    .workspace-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .workspace-link-row {
        grid-template-columns: 1fr;
        padding-bottom: 12px;
        border-bottom: 1px dashed var(--line);
    }
}
