@font-face {
    font-family: "Ramboia";
    src: url("https://cdn.shopify.com/s/files/1/1007/1293/9860/files/Ramboia-Italic.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Inter";
    src: url("https://tworoomclub.ch/cdn/fonts/inter/inter_n5.d7101d5e168594dd06f56f290dd759fba5431d97.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Inter";
    src: url("https://tworoomclub.ch/cdn/fonts/inter/inter_n7.02711e6b374660cfc7915d1afc1c204e633421e4.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
}

:root {
    color-scheme: light;
    --black: #121212;
    --ink: rgba(18, 18, 18, 0.75);
    --white: #ffffff;
    --grey: #f3f3f3;
    --line: rgba(18, 18, 18, 0.2);
    --yellow: #f0de6f;
    --error: #9f2d20;
    --success: #315f42;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.6px;
    line-height: 1.8;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--white);
}

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

button,
input {
    font: inherit;
    letter-spacing: inherit;
}

a {
    color: inherit;
}

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

h1,
h2 {
    color: var(--black);
    font-family: "Ramboia", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0.6px;
    line-height: 1.3;
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
    width: min(1200px, 100%);
    min-height: calc(100vh - 88px);
    margin: 0 auto;
    padding: 50px;
}

.intro {
    display: flex;
    min-height: 720px;
    padding: clamp(36px, 5vw, 70px);
    justify-content: center;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.75);
    background: var(--black);
}

.brand-mark {
    color: var(--black);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.intro .brand-mark {
    color: var(--white);
}

.intro h1 {
    max-width: 10ch;
    margin: 18px 0 24px;
    color: var(--white);
    font-size: clamp(52px, 6.4vw, 82px);
}

.eyebrow {
    margin: 44px 0 8px;
    color: var(--black);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.4;
    text-transform: uppercase;
}

.intro .eyebrow {
    color: var(--yellow);
}

.lead {
    max-width: 48ch;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.75);
}

.steps {
    display: flex;
    gap: 22px;
    margin: 42px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    list-style: none;
    counter-reset: step;
}

.steps li {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--white);
    font-size: 13px;
    counter-increment: step;
}

.steps li::before {
    display: grid;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    place-items: center;
    content: counter(step);
}

.form-card,
.login-card,
.overview-card,
.qr-card,
.registration-card,
.empty-state {
    border: 0;
    border-radius: 0;
    background: var(--grey);
    box-shadow: none;
}

.form-card {
    align-self: center;
    width: 100%;
    padding: clamp(32px, 5vw, 60px);
}

.form-card > .eyebrow,
.overview-card .eyebrow {
    margin-top: 0;
}

.form-card h2,
.login-card h1,
.overview-card h1 {
    margin-bottom: 28px;
    font-size: clamp(38px, 4vw, 52px);
}

.photo-picker {
    display: grid;
    min-height: 210px;
    margin-bottom: 20px;
    border: 1px solid var(--black);
    place-items: center;
    color: var(--black);
    background: var(--white);
    cursor: pointer;
}

.photo-picker:focus-within,
.photo-picker:hover {
    background: var(--yellow);
}

.photo-placeholder {
    display: grid;
    gap: 8px;
    padding: 32px;
    place-items: center;
    text-align: center;
}

.photo-placeholder b {
    display: grid;
    width: 52px;
    height: 52px;
    border: 1px solid var(--black);
    place-items: center;
    color: var(--black);
    background: var(--yellow);
    font-size: 22px;
}

.photo-placeholder small,
.field > span:first-child,
.privacy,
.form-card > p,
.login-card > p,
.dialog-heading p,
.meta,
.qr-card small {
    color: var(--ink);
}

.photo-section {
    margin: 0 0 24px;
    padding: 16px;
    background: var(--white);
}

.photo-section[hidden] {
    display: none;
}

.photo-section-heading {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: baseline;
    justify-content: space-between;
}

.photo-section-heading strong {
    color: var(--black);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.photo-section-heading span {
    color: var(--ink);
    font-size: 11px;
    text-align: right;
}

.photo-preview-list,
.saved-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.photo-preview-list figure,
.saved-photos figure {
    position: relative;
    min-width: 0;
    margin: 0;
    background: var(--grey);
}

.photo-preview-list img,
.saved-photos img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.photo-preview-list figcaption {
    overflow: hidden;
    padding: 5px 6px;
    color: var(--black);
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-photos button {
    position: absolute;
    right: 5px;
    bottom: 5px;
    border: 0;
    border-radius: 0;
    padding: 5px 8px;
    color: var(--white);
    background: rgba(18, 18, 18, 0.88);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.field > span:first-child {
    color: var(--black);
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 15px;
    color: var(--black);
    background: var(--white);
    appearance: none;
    font-size: 16px;
    line-height: 24px;
}

input:focus {
    border-color: var(--black);
    outline: 2px solid var(--yellow);
    outline-offset: 0;
}

input[type="date"] {
    appearance: auto;
}

.privacy {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    margin: 4px 0 20px;
    font-size: 12px;
    line-height: 1.55;
}

.privacy input {
    width: 20px;
    min-height: 20px;
    margin: 1px 0 0;
    padding: 0;
    appearance: auto;
    accent-color: var(--black);
}

.button {
    display: inline-flex;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 0;
    padding: 0 30px;
    align-items: center;
    justify-content: center;
    color: var(--black);
    background: var(--grey);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    color: var(--black);
    background: var(--yellow);
}

.button.primary {
    color: var(--white);
    background: var(--black);
}

.button.primary:hover {
    color: var(--black);
    background: var(--yellow);
}

.button.outline {
    border-color: var(--black);
    background: var(--white);
}

.button.ghost {
    color: var(--ink);
    background: transparent;
}

.button.danger {
    border-color: var(--error);
    color: var(--error);
    background: var(--white);
}

.button.danger:hover {
    color: var(--white);
    background: var(--error);
}

.full {
    width: 100%;
}

.alert {
    margin: 0 0 22px;
    border-left: 4px solid var(--error);
    padding: 14px 16px;
    color: var(--black);
    background: #f7e9e7;
    line-height: 1.45;
}

.alert.success {
    border-left-color: var(--success);
    background: #e8f0ea;
}

.alert p:last-child {
    margin-bottom: 0;
}

.success-card {
    text-align: center;
}

.success-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    place-items: center;
    color: var(--black);
    background: var(--yellow);
    font-size: 28px;
}

.reference {
    display: grid;
    gap: 4px;
    margin: 28px 0;
    padding: 18px;
    background: var(--white);
}

.reference span {
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.reference strong {
    color: var(--black);
    font-size: 24px;
    letter-spacing: 2px;
}

.site-footer {
    display: flex;
    width: min(1200px, 100%);
    min-height: 88px;
    margin: 0 auto;
    padding: 20px 50px;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    background: var(--grey);
    font-size: 12px;
}

.site-footer a,
.back-link {
    color: var(--black);
    font-weight: 700;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    padding: 30px;
    place-items: center;
    background: var(--black);
}

.login-card {
    width: min(500px, 100%);
    padding: clamp(32px, 5vw, 60px);
    background: var(--white);
}

.shield {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    place-items: center;
    color: var(--black);
    background: var(--yellow);
}

.login-card .back-link {
    display: block;
    margin-top: 22px;
    text-align: center;
}

.stack {
    display: grid;
    gap: 4px;
}

.password-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.show-password {
    display: inline-flex;
    min-width: 122px;
    min-height: 54px;
    border: 1px solid var(--black);
    border-radius: 0;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--black);
    background: var(--grey);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.admin-shell {
    width: min(1200px, calc(100% - 100px));
    margin: 0 auto;
    padding: 0 0 70px;
}

.admin-header {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
}

.admin-identity {
    display: grid;
    gap: 5px;
}

.admin-identity > span {
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.3;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.view-switcher {
    display: inline-flex;
    border: 1px solid var(--black);
    background: var(--white);
}

.view-switcher a {
    display: inline-flex;
    min-height: 46px;
    padding: 0 16px;
    align-items: center;
    color: var(--black);
    font-size: 12px;
    letter-spacing: 0.8px;
    text-decoration: none;
}

.view-switcher a.active {
    color: var(--white);
    background: var(--black);
}

.admin-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    margin: 20px 0;
}

.overview-card,
.qr-card {
    padding: 34px;
}

.overview-card h1 {
    margin-bottom: 8px;
}

.overview-card > p {
    color: var(--ink);
}

.overview-card strong {
    display: block;
    margin-top: 26px;
    color: var(--black);
    font-family: "Ramboia", Georgia, serif;
    font-size: 40px;
    font-weight: 500;
}

.overview-card strong span {
    color: var(--ink);
    font-family: "Inter", sans-serif;
    font-size: 12px;
}

.qr-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    place-items: center;
    text-align: center;
    background: var(--yellow);
}

.qr-card b,
.qr-card small {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.qr-code-box {
    display: grid;
    width: 176px;
    min-width: 176px;
    height: 176px;
    min-height: 176px;
    padding: 8px;
    place-items: center;
    background: var(--white);
}

.qr-code-box canvas {
    display: block !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    aspect-ratio: 1 / 1;
}

.kiln-view {
    margin-top: 24px;
}

.kiln-heading {
    display: flex;
    gap: 30px;
    margin-bottom: 24px;
    align-items: end;
    justify-content: space-between;
}

.kiln-heading .eyebrow {
    margin-top: 0;
}

.kiln-heading h1 {
    margin-bottom: 8px;
    font-size: clamp(42px, 6vw, 66px);
}

.kiln-heading p:last-child {
    max-width: 64ch;
    margin-bottom: 0;
}

.kiln-counts {
    display: flex;
    flex: 0 0 auto;
    gap: 2px;
}

.kiln-counts span {
    display: grid;
    min-width: 92px;
    padding: 10px 12px;
    color: var(--black);
    background: var(--grey);
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.kiln-counts b {
    font-family: "Ramboia", Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

.kiln-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}

.kiln-tile {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--grey);
}

.kiln-tile.is-saving {
    opacity: 0.68;
}

.kiln-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: var(--white);
    background: var(--grey);
    cursor: pointer;
}

.kiln-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kiln-main::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    font-family: "Inter", sans-serif;
    font-size: clamp(48px, 8vw, 86px);
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.kiln-tile.status-fired .kiln-main::after {
    background: rgba(240, 222, 111, 0.58);
    content: "✓";
    color: var(--black);
}

.kiln-tile.status-defective .kiln-main::after {
    background: rgba(159, 45, 32, 0.62);
    content: "!";
}

.kiln-info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: grid;
    gap: 1px;
    padding: 30px 12px 10px;
    color: var(--white);
    background: linear-gradient(transparent, rgba(18, 18, 18, 0.82));
    line-height: 1.25;
    text-align: left;
}

.kiln-info strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kiln-info small {
    font-size: 9px;
    letter-spacing: 1px;
}

.kiln-status-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 8px;
    color: var(--black);
    background: var(--white);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.kiln-tile.status-fired .kiln-status-label {
    background: var(--yellow);
}

.kiln-tile.status-defective .kiln-status-label {
    color: var(--white);
    background: var(--error);
}

.kiln-defect {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: grid;
    width: 38px;
    height: 38px;
    border: 2px solid var(--white);
    border-radius: 50%;
    padding: 0;
    place-items: center;
    color: var(--white);
    background: rgba(18, 18, 18, 0.72);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.kiln-tile.status-defective .kiln-defect {
    color: var(--white);
    background: var(--error);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    margin: 20px 0 26px;
}

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

.registration-card {
    min-width: 0;
    overflow: hidden;
    background: var(--grey);
}

.registration-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    background: var(--white);
}

.registration-gallery[data-photo-count="1"] {
    grid-template-columns: 1fr;
}

.registration-gallery a {
    display: block;
    min-width: 0;
    aspect-ratio: 1;
    overflow: hidden;
    background: #dedede;
}

.registration-gallery[data-photo-count="1"] a {
    aspect-ratio: 4 / 3;
}

.registration-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.registration-gallery a:hover img {
    transform: scale(1.025);
}

.registration-content {
    padding: 22px;
}

.registration-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.registration-tags span,
.newsletter-badge {
    display: inline-flex;
    padding: 5px 8px;
    color: var(--black);
    background: var(--yellow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    text-transform: uppercase;
}

.registration-tags span + span {
    background: var(--white);
}

.registration-content h2 {
    margin-bottom: 4px;
    font-size: 30px;
}

.phone {
    color: var(--black);
    font-weight: 700;
}

.email {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 13px;
}

.newsletter-badge {
    margin-top: 12px;
    background: var(--white);
}

.meta {
    display: flex;
    gap: 8px;
    margin: 18px 0;
    justify-content: space-between;
    font-size: 12px;
}

.empty-state {
    padding: 56px 20px;
    color: var(--ink);
    text-align: center;
}

.password-dialog {
    width: min(540px, calc(100% - 30px));
    border: 0;
    border-radius: 0;
    padding: 34px;
    color: var(--ink);
    background: var(--white);
    box-shadow: none;
}

.password-dialog::backdrop {
    background: rgba(18, 18, 18, 0.75);
}

.dialog-heading {
    display: flex;
    gap: 18px;
    align-items: start;
    justify-content: space-between;
}

.dialog-heading h2 {
    margin-bottom: 3px;
    font-size: 38px;
}

.dialog-close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--black);
    border-radius: 0;
    color: var(--black);
    background: var(--grey);
    font-size: 24px;
    cursor: pointer;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .page-shell {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .intro {
        min-height: auto;
    }

    .intro h1 {
        max-width: 12ch;
    }

    .admin-shell {
        width: calc(100% - 60px);
    }

    .admin-overview {
        grid-template-columns: 1fr;
    }

    .registration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kiln-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: 100%;
        padding: 0;
    }

    .intro {
        padding: 40px 24px 46px;
    }

    .intro h1 {
        font-size: clamp(46px, 14vw, 68px);
    }

    .steps {
        gap: 12px;
        flex-wrap: wrap;
    }

    .form-card {
        padding: 34px 20px 42px;
    }

    .field-grid,
    .registration-grid {
        grid-template-columns: 1fr;
    }

    .photo-preview-list,
    .saved-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .photo-section-heading span {
        text-align: left;
    }

    .site-footer {
        padding: 20px;
    }

    .login-shell {
        padding: 16px;
    }

    .admin-shell {
        width: calc(100% - 32px);
    }

    .admin-header {
        gap: 18px;
        min-height: 112px;
        align-items: flex-start;
        padding: 20px 0;
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .view-switcher {
        width: 100%;
    }

    .view-switcher a {
        flex: 1;
        justify-content: center;
    }

    .header-actions form {
        flex: 1;
    }

    .header-actions .button {
        width: 100%;
        min-height: 44px;
        padding: 0 14px;
        font-size: 12px;
    }

    .overview-card,
    .qr-card {
        padding: 24px;
    }

    .search-form {
        grid-template-columns: 1fr 1fr;
    }

    .search-form input {
        grid-column: 1 / -1;
    }

    .password-wrap {
        grid-template-columns: 1fr;
    }

    .show-password {
        width: 100%;
    }

    .password-dialog {
        padding: 24px;
    }

    .kiln-counts {
        width: 100%;
    }

    .kiln-counts span {
        min-width: 0;
        flex: 1;
        padding-inline: 6px;
    }

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

    .kiln-info {
        padding-inline: 8px;
    }

    .kiln-defect {
        top: 7px;
        left: 7px;
        width: 34px;
        height: 34px;
    }

    .kiln-status-label {
        top: 7px;
        right: 7px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .button,
    .photo-picker,
    .registration-gallery img {
        transition-duration: 180ms;
        transition-property: background, border-color, color, transform;
        transition-timing-function: ease;
    }
}
