body.tm-portfolio {
    margin: 0;
    color: #29261f;
    background: #faf7ef;
}
.tm-page, .tm-page * { box-sizing: border-box; }
.tm-page { font: 17px/1.55 system-ui, sans-serif; }
.tm-page a { color: inherit; }
.tm-wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.tm-header, .tm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 22px;
    border-bottom: 1px solid #dbd3c3;
}
.tm-page .tm-brand {
    text-decoration: none;
    font: bold 1.65rem Georgia, serif;
    color: #364630;
}
.tm-hero {
    display: grid;
    grid-template-columns: 1fr minmax(0, .9fr);
    align-items: center;
    gap: clamp(24px, 7vw, 100px);
    padding-block: clamp(32px, 6vw, 76px);
}
.tm-page h1, .tm-page h2, .tm-page h3 { font-family: Georgia, serif; color: #364630; }
.tm-page h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.2rem); line-height: .99; letter-spacing: -.045em; }
.tm-intro p { max-width: 33ch; margin-block: 22px 26px; }
.tm-page .tm-button {
    display: inline-block;
    background: #364630;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
}
.tm-hero-photo { margin: 0; }
.tm-hero-photo img, .tm-card img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 6px;
}
.tm-hero-photo img { aspect-ratio: 1 / 1.03; object-fit: cover; object-position: center 57%; }
.tm-hero-photo figcaption { color: #555044; font-size: .9rem; margin-top: 8px; }
.tm-collections { padding-block: 18px 56px; }
.tm-page h2 { margin: 0 0 22px; font-size: clamp(1.9rem, 4vw, 3.1rem); }
.tm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tm-card { min-width: 0; }
.tm-card img { aspect-ratio: 20 / 17; object-fit: cover; }
.tm-card-text { padding-block: 10px 5px; }
.tm-page h3 { margin: 0; font-size: 1.22rem; line-height: 1.22; }
.tm-card p { margin: 7px 0 0; color: #555044; font-size: .94rem; }
.tm-footer { border-bottom: 0; border-top: 1px solid #dbd3c3; }
.tm-skip { position: absolute; inset: 0 auto auto 12px; transform: translateY(-150%); background: #fff; padding: 10px; z-index: 100000; }
.tm-skip:focus { transform: translateY(0); }
.tm-page a:focus-visible { outline: 3px solid #91532e; outline-offset: 4px; }
@media (max-width: 900px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) {
    .tm-wrap { width: calc(100% - 32px); }
    .tm-hero, .tm-grid { grid-template-columns: 1fr; }
}
.tm-card-link, .tm-hero-photo a { display: block; text-decoration: none; }
.tm-card-action { display: inline-block; margin-top: 6px; font-size: .91rem; text-decoration: underline; text-underline-offset: 3px; }
.tm-card-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.tm-detail { padding-block: clamp(28px, 6vw, 70px); }
.tm-detail h1 { margin-top: 20px; font-size: clamp(2.25rem, 6vw, 5rem); }
.tm-detail > p { margin-block: 14px 28px; }
.tm-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tm-gallery figure { margin: 0; }
.tm-gallery a { display: block; background: #eee8da; border-radius: 6px; overflow: hidden; }
.tm-gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.tm-gallery figcaption { margin-block: 8px; font-family: Georgia, serif; }
.tm-other { display: flex; flex-wrap: wrap; gap: 10px 18px; border-top: 1px solid #dbd3c3; margin-top: 28px; padding-top: 20px; }
@media (max-width: 650px) { .tm-gallery { grid-template-columns: 1fr; } }
