@font-face {
    font-family: "Camera Catalogue Serif";
    src: url("camera-catalogue-serif.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #263d43;
    --muted: #4e676b;
    --paper: #e8e9e7;
    --cream: #faf8ef;
    --line: #81958e;
    --dark: #23373b;
    --serif: "Camera Catalogue Serif", "Songti TC", "Noto Serif TC", "PMingLiU", serif;
    --body: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    background: #dde1de;
    color: var(--ink);
    font-family: var(--body);
}
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.photo-house {
    width: min(100%, 480px);
    min-height: 100vh;
    margin-inline: auto;
    background: linear-gradient(145deg, var(--cream), var(--paper) 45%, var(--cream) 105%);
    container-type: inline-size;
    box-shadow: 0 0 65px #263d4328;
}
.mast { padding: 6.1cqi 6.7cqi 2.8cqi; }
.event-stamp {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: clamp(.72rem, 3.4cqi, .96rem);
    font-weight: 650;
    letter-spacing: .17em;
    line-height: 1.5;
}
.event-stamp span {
    display: grid;
    place-items: center;
    width: 11px;
    height: 11px;
    border: 1px solid currentColor;
    transform: rotate(45deg);
}
.event-stamp span::after { content: ""; width: 4px; height: 4px; background: currentColor; }
.event-stamp::after {
    content: "";
    height: 1px;
    flex: 1;
    margin-left: 4px;
    background: linear-gradient(90deg, var(--line), transparent);
}
.mast h1 {
    margin: 1.6cqi -2px 0;
    color: var(--ink);
    font: 520 19cqi/1.12 var(--serif);
    letter-spacing: .027em;
    overflow-wrap: anywhere;
}
.mast h1.long-name { font-size: 14cqi; }

.hero-print {
    position: relative;
    margin-left: 6.6cqi;
}
.hero-photo {
    width: 100%;
    height: 84.5cqi;
    object-fit: cover;
    object-position: 62% 50%;
    border-radius: 24cqi 0 0 0;
    border-block: 1px solid #81958e99;
    background: #c5a082;
}
.hero-print figcaption {
    position: absolute;
    left: 0;
    bottom: -1.6cqi;
    display: grid;
    gap: 3px;
    padding: 7px 12px 8px 0;
    background: #ecede8;
    border-bottom: 1px solid var(--line);
}
.hero-print figcaption span {
    font-size: clamp(.59rem, 2.5cqi, .74rem);
    letter-spacing: .15em;
    line-height: 1.2;
    font-weight: 650;
}
.hero-print figcaption strong { font: 640 clamp(.9rem, 4.4cqi, 1.22rem)/1.2 var(--serif); letter-spacing: .045em; }

.entry { padding: 8.8cqi 6.8cqi 6cqi; }
.entry h2 { display: flex; align-items: center; gap: 3cqi; }
.entry h2 span {
    flex: 0 0 clamp(20px, 6cqi, 28px);
    padding: 4px 3px;
    border: 1px solid var(--line);
    text-align: center;
    font-size: clamp(.67rem, 3.1cqi, .85rem);
    font-weight: 650;
    line-height: 1.12;
}
.entry h2 strong {
    font: 520 14.4cqi/1.13 var(--serif);
    letter-spacing: .042em;
    white-space: nowrap;
}
.draw-rules {
    margin-top: 2cqi;
    color: var(--muted);
    font-size: clamp(.75rem, 3.35cqi, .96rem);
    line-height: 1.46;
}
.participate { margin-top: 7.4cqi; }
.line-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: clamp(46px, 14cqi, 66px);
    padding: 8px 4.8cqi;
    border: 1px solid var(--dark);
    border-radius: 0;
    background: var(--dark);
    color: #faf8ef;
    font-weight: 750;
    font-size: clamp(.91rem, 4.35cqi, 1.19rem);
    letter-spacing: .055em;
    text-decoration: none;
}
.line-cta i { position: relative; flex: 0 0 30px; height: 1px; background: currentColor; }
.line-cta i::after {
    content: "";
    position: absolute;
    right: 1px;
    top: -4px;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    border: solid currentColor;
    border-width: 1px 1px 0 0;
}
.line-cta:hover:not(:disabled) { background: #304c51; }
.line-cta:focus-visible { outline-color: var(--dark); }
.line-cta:disabled { opacity: .68; }
.claim-help, .consent {
    margin-top: 9px;
    color: var(--muted);
    font-size: clamp(.75rem, 3cqi, .88rem);
    line-height: 1.55;
}
.claim-help { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.copy-phrase {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.consent { display: flex; align-items: flex-start; gap: 6px; }
.consent input { margin: 3px 0 0; width: 16px; height: 16px; flex: none; }
.rules-link { display: inline-block; margin-top: 7px; color: var(--dark); font-size: .82rem; text-underline-offset: 3px; }

.equipment, .camera-shop, .info { margin-inline: 6.8cqi; }
.equipment { padding-block: 16px 24px; border-top: 1px solid var(--line); }
.equipment h2 { margin-bottom: 13px; font-family: var(--serif); font-size: 1.3rem; }
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.model-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px 5px 8px;
    border: 1px solid #a9b9ad;
    background: var(--cream);
    color: var(--ink);
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
}
.model-card:hover { border-color: var(--dark); text-decoration: underline; }
.model-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e5e9e3; }
.model-card > span { padding-inline: 3px; }
.camera-shop { display: flex; align-items: center; gap: 12px; padding-block: 16px; border-top: 1px solid var(--line); }
.camera-shop img { width: 33%; height: auto; aspect-ratio: 1.7; object-fit: cover; }
.camera-shop figcaption { display: grid; gap: 3px; }
.camera-shop figcaption span { font-family: var(--serif); font-weight: 750; }
.camera-shop small { color: var(--muted); font-size: .72rem; }
.info { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.info details { padding-block: 12px; border-top: 1px solid var(--line); }
.info summary { cursor: pointer; font-weight: 700; }
.details-body { margin-top: 7px; font-size: .88rem; line-height: 1.6; }
.details-body p + p { margin-top: 6px; }
.rules-copy { white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 500px) and (max-height: 690px) {
    .mast { padding-top: 5.2cqi; }
    .hero-photo { height: 78cqi; }
    .entry { padding-top: 7.2cqi; }
    .participate { margin-top: 5cqi; }
}
