:root {
    color-scheme: light;
    --ink: #111312;
    --muted: #626b68;
    --paper: #f5f6f6;
    --panel: #fff;
    --line: #d9dddc;
    --accent: #1abc9c;
    --accent-strong: #087562;
    --accent-ink: #071c18;
    --accent-soft: #e5f8f4;
    --accent2: var(--accent-soft);
    --danger: #9d352e;
    font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
}

body::before {
    position: fixed;
    z-index: 40;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: var(--accent) url("handmade-lines-strip.jpg") center 46% / auto 34px repeat-x;
    background-blend-mode: multiply;
    content: "";
    pointer-events: none;
}

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

button {
    cursor: pointer;
}

a {
    text-underline-offset: 3px;
}

.auth-shell,
.reveal-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 24px 24px;
}

.panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.auth-panel,
.reveal-panel {
    width: min(100%, 520px);
}

.auth-panel::before,
.reveal-panel::before {
    display: block;
    width: 174px;
    height: 58px;
    margin: -8px 0 22px;
    background: url("handmade-web-logo.png") left center / contain no-repeat;
    content: "";
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.eyebrow {
    color: var(--accent-strong);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.lede {
    color: var(--muted);
    font-size: 1.1rem;
}

label {
    display: grid;
    gap: 7px;
    margin: 16px 0;
    font-weight: 650;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

input::placeholder,
textarea::placeholder {
    color: #626b68;
}

textarea {
    resize: vertical;
}

.primary {
    appearance: none;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
}

.primary:disabled {
    opacity: .6;
}

.quiet {
    border: 0;
    background: transparent;
    color: var(--muted);
}

.error {
    padding: 12px;
    border-radius: 8px;
    background: #fce8e5;
    color: var(--danger);
}

header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px max(24px, calc((100vw - 1080px) / 2)) 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--ink);
    font-size: .875rem;
    font-weight: 850;
    text-decoration: none;
}

.brand::before {
    width: 132px;
    height: 44px;
    padding-right: 13px;
    border-right: 1px solid var(--line);
    background: url("handmade-web-logo.png") left center / 132px 44px no-repeat;
    content: "";
}

.app-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 40px auto;
}

.intro,
.section-heading,
.form-row,
.copy-row,
.secret-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.intro {
    align-items: end;
    margin-bottom: 24px;
}

.intro h1 {
    margin-bottom: 0;
}

.form-row {
    align-items: end;
}

.form-row label {
    min-width: 220px;
}

.result {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #beeae0;
    border-radius: 10px;
    background: var(--accent-soft);
}

.copy-row input {
    font-family: monospace;
}

.copy-row button,
#copy-secret {
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    white-space: nowrap;
}

.hint,
.secret-row span {
    color: var(--muted);
    font-size: .875rem;
}

.history {
    margin-top: 40px;
}

.secret-row {
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.secret-row:first-of-type {
    border-radius: 10px 10px 0 0;
}

.secret-row div {
    display: grid;
}

.status {
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 750;
}

.status-pending {
    background: #e4f0ff;
    color: #235f9b;
}

.status-viewed {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.status-expired {
    background: #eee;
    color: #5f6462;
}

.empty {
    padding: 30px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
}

pre {
    padding: 20px;
    border-radius: 10px;
    overflow-wrap: anywhere;
    background: #edf1f0;
    font: 1rem/1.6 ui-monospace, monospace;
    white-space: pre-wrap;
}

.primary,
.quiet,
.copy-row button,
#copy-secret {
    transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.primary:hover {
    background: #16aa8c;
}

.copy-row button:hover,
#copy-secret:hover {
    border-color: #9fa8a5;
    background: #f7f8f8;
}

.primary:focus-visible,
.quiet:focus-visible,
.copy-row button:focus-visible,
#copy-secret:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(26, 188, 156, .35);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .intro,
    .form-row,
    .copy-row {
        align-items: stretch;
        flex-direction: column;
    }

    .form-row label {
        min-width: 0;
    }

    .intro p {
        display: none;
    }

    .panel {
        padding: 20px;
    }

    header {
        height: auto;
        min-height: 72px;
        gap: 14px;
        padding: 9px 16px 6px;
    }

    .brand::before {
        width: 104px;
        height: 38px;
        padding-right: 0;
        border-right: 0;
        background-size: 104px 38px;
    }

    .brand {
        font-size: 0;
    }
}

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