.field {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(92px, 12vw, 145px) 5% 64px;
    color: #302c25;
    font-family: 'Noto Sans TC', sans-serif;
}
.field h1,
.field h2 {
    font-family: Georgia, 'Noto Serif TC', serif;
    line-height: 1.3;
    letter-spacing: 0.035em;
    color: inherit;
}
.field h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    margin: 0.25em 0 0.55em;
}
.field h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin: 0.3em 0;
}
.field a {
    color: inherit;
}
.field-head,
.actions,
.light-head,
.light-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.field-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    border-bottom: 1px solid #e9e6e1;
    margin-bottom: 2rem;
}
.field-head .field-title {
    box-sizing: border-box;
    max-width: 820px;
    width: 100%;
    padding: clamp(24px, 4vw, 44px) 16px 16px;
    text-align: center;
}
.field-head .kicker {
    margin: 0 0 10px;
    color: var(--primary-color, #a68b6d);
    font-size: .68rem;
    letter-spacing: 4px;
}
.field-head h1 {
    margin: 0;
    font: inherit;
    font-size: var(--fs-h2, 1.8rem);
    font-weight: 300;
    line-height: 1.55;
    letter-spacing: 3px;
}
.field-head .view-switch {
    justify-self: end;
}
.kicker,
.dateline,
.back {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: #685b48;
}
.view-switch,
.actions {
    display: flex;
    gap: 0.25rem;
}
.field button,
.actions a {
    font: inherit;
    cursor: pointer;
}
.view-switch button,
.actions button,
.actions a,
.light-head button,
.light-nav button {
    border: 1px solid #a99a82;
    background: transparent;
    color: inherit;
    border-radius: 3px;
    padding: 0.5rem 0.85rem;
}
.view-switch button[aria-pressed='true'] {
    background: #433b31;
    color: white;
}
.field-feed {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
    margin: 0 auto;
    gap: 22px;
}
.field-card {
    --paper: #252625;
    --ink: #f4f3ef;
    --sub: #c5c5bd;
    background: var(--paper);
    color: var(--ink);
    border-radius: 14px;
    overflow: hidden;
    min-width: 0;
}
.post-author {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 18px 8px;
}
.post-author .avatar {
    box-sizing: border-box;
    margin: 0;
    width: 46px;
    height: 46px;
    padding: 5px;
    background: #493f34;
    object-fit: contain;
    border-radius: 50%;
}
.post-author strong {
    font:
        700 1.02rem/1.4 system-ui,
        sans-serif;
}
.post-meta,
.pin {
    font-size: 0.85rem;
    color: var(--sub, #615c55);
    line-height: 1.5;
}
.pin {
    margin-left: auto;
    align-self: flex-start;
}
.card-copy {
    padding: 3px 18px 14px;
    overflow-wrap: anywhere;
}
.field-card h2 {
    margin: 0.2em 0;
    font:
        650 1.13rem/1.4 system-ui,
        sans-serif;
    letter-spacing: normal;
}
.field-card .auto-title {
    display: none;
}
.post-body {
    white-space: pre-wrap;
    font-size: 1.03rem;
    line-height: 1.65;
}
.post-body.collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.field-card button.read-more {
    min-height: 32px;
    padding: 0;
    border: 0;
    color: var(--sub);
    background: none;
    font-weight: 650;
}
.field [hidden] {
    display: none !important;
}
.field .mosaic {
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: #171816;
}
.mosaic .feed-media {
    display: block;
    position: relative;
    overflow: hidden;
    grid-column: span 3;
    aspect-ratio: 1.25;
}
.mosaic.count-1 .feed-media {
    grid-column: span 6;
    aspect-ratio: auto;
}
.mosaic.count-3 .feed-media:first-child {
    grid-row: span 2;
    height: 100%;
    aspect-ratio: auto;
}
.mosaic.count-3 .feed-media:not(:first-child) {
    aspect-ratio: 1.85;
}
.mosaic.count-5 .feed-media {
    aspect-ratio: 1.08;
}
.mosaic.count-5 .feed-media:nth-child(n + 3) {
    grid-column: span 2;
}
.mosaic img,
.mosaic video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.mosaic.count-1 img,
.mosaic.count-1 video {
    max-height: 70vh;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-top: 1px solid #44453f;
    flex-wrap: wrap;
}
.card-actions button,
.card-actions a {
    border: 0;
    background: transparent;
    padding: 8px;
    color: var(--sub);
    font:
        600 0.9rem/1.6 system-ui,
        sans-serif;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}
.card-actions [role='status'] {
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}
.field-feed.as-grid {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(4px, 1.2vw, 12px);
}
.as-grid .field-card {
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.as-grid .post-author,
.as-grid .post-body,
.as-grid .read-more,
.as-grid .card-actions,
.as-grid .film {
    display: none;
}
.as-grid .card-copy {
    padding: 6px 8px;
    order: 1;
}
.as-grid h2,
.as-grid .auto-title {
    display: block;
    font-size: clamp(0.85rem, 2vw, 1rem);
}
.as-grid .mosaic {
    display: block;
}
.as-grid .mosaic .feed-media {
    display: none;
}
.as-grid .mosaic .feed-media:first-child {
    display: block;
    aspect-ratio: 1;
}
.as-grid .mosaic .feed-media:first-child :is(img, video) {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.as-grid .text-only {
    min-height: 100px;
    justify-content: center;
}
.post-detail .post-author {
    padding: 18px 0 5px;
}
.more,
.film {
    position: absolute;
    color: white;
    background: #27241ecc;
    right: 0.4rem;
    bottom: 0.4rem;
    padding: 0.2rem 0.5rem;
}
.more {
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}
.field .story,
.field figcaption,
.light-caption {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.story {
    line-height: 1.9;
}
.field figure {
    margin: 1.6rem 0;
}
.field figure button {
    display: block;
    width: 100%;
    background: #eeeae3;
    border: 0;
    padding: 0;
}
.field figure img,
.field figure video {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 80vh;
}
.field figcaption {
    margin-top: 0.55rem;
    color: #655d50;
}
.field article > .dateline {
    margin-top: 1.8rem;
}
.field .actions {
    justify-content: flex-start;
    margin-top: 1.5rem;
    gap: 1rem;
}
.preview-note {
    background: #fbf0d5;
    padding: 0.7rem;
}
.field dialog {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    background: #1d1b19;
    color: white;
    border: 0;
    border-radius: 5px;
    width: min(95vw, 1050px);
    max-height: 95dvh;
    padding: 1rem;
}
.field dialog::backdrop {
    background: #141211df;
}
.light-frame { position:relative; }
.light-frame .stage { min-height:48px; touch-action:pan-y pinch-zoom; }
.light-frame .stage.photo-stage {
    overflow: hidden;
    touch-action: none;
}
.light-nav { position:absolute; inset:0; display:flex; justify-content:space-between; align-items:center; pointer-events:none; }
.field #field-light .light-nav button,.field #field-light .light-close {
    display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:50%;
    color:#fff; background:rgba(20,18,16,.62); pointer-events:auto;
}
.light-nav button i { width:13px; height:13px; border-top:3px solid currentColor; border-right:3px solid currentColor; }
.light-nav [data-step="-1"] i { transform:translateX(2px) rotate(-135deg); }
.light-nav [data-step="1"] i { transform:translateX(-2px) rotate(45deg); }
.light-close i { position:relative; width:22px; height:22px; }
.light-close i::before,.light-close i::after { content:""; position:absolute; top:10px; left:0; width:22px; height:2px; background:currentColor; transform:rotate(45deg); }
.light-close i::after { transform:rotate(-45deg); }
.field #field-light button:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.stage {
    display: grid;
    place-items: center;
    margin: 0.5rem 0;
}
.stage img,
.stage video {
    max-height: 63dvh;
    max-width: 100%;
    object-fit: contain;
}
.light-caption {
    max-height: 12dvh;
    overflow: auto;
}
.light-nav[hidden] {
    display: none;
}
@media (max-width: 550px) {
    .field {
        padding-left: 14px;
        padding-right: 14px;
    }
    .field-head {
        align-items: flex-start;
    }
    .view-switch button {
        padding: 0.35rem 0.5rem;
    }
    .field .field-feed:not(.as-grid) {
        margin-left: -14px;
        margin-right: -14px;
        gap: 10px;
    }
    .field-feed:not(.as-grid) .field-card {
        border-radius: 0;
    }
    .post-author {
        padding-left: 14px;
        padding-right: 14px;
    }
    .card-copy {
        padding-left: 14px;
        padding-right: 14px;
    }
}

.field {
    width: 100%;
    box-sizing: border-box;
}
.field-head .view-switch button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #8d877c;
}
.field-head .view-switch button[aria-pressed='true'] {
    color: #302c25;
    border-bottom-color: currentColor;
}
.feed-icon {
    width: 19px;
    height: 20px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: linear-gradient(
        to bottom,
        transparent 65%,
        currentColor 65% 76%,
        transparent 76%
    );
}
.grid-icon {
    width: 5px;
    height: 5px;
    background: currentColor;
    box-shadow:
        -7px -7px,
        0 -7px,
        7px -7px,
        -7px 0,
        7px 0,
        -7px 7px,
        0 7px,
        7px 7px;
}

.field figcaption, .field .light-caption {
    text-align: center;
}
.field .light-caption:empty { display: none; }
.field .post-tags, .field .tag-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .3rem .8rem;
}
.field .post-tags { margin-top: .55rem; }
.field .hashtag { color: #795429; text-underline-offset: .14em; overflow-wrap: anywhere; }
.field-card .hashtag { color: #e1bf94; }
.field .tag-filter { margin: .8rem 0 1.2rem; }
.field .tag-filter a { color: #625747; }
.field .as-grid .post-tags { font-size: .85rem; }
.post-author .avatar[src^="/construction/avatar.php"] { padding: 0; }

.grid-inline-tags { display: none; }
.as-grid .grid-inline-tags { display: block; margin-top: .35rem; font-size: .85rem; overflow-wrap: anywhere; }
