/* Catalog style "demo7" — tags add-on (loaded instead of _tags.css). */
/* "Suits a site for …" as the issue's index of keywords: Fraunces italic tags in hairline pills, an agreed tag set on the green field with the yellow rule; on the post it is a reader page like the rating and the letters. Mirrors /demo7/ like demo7.css. */

/* list page: a keyword line under the contents line */
.tagcloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #c4cdc6; }
.tagcloud__title { flex: none; margin: 0; font-family: var(--serif); font-size: 20px; font-style: italic; font-weight: 400; color: var(--soft); }
.tagcloud__list { display: flex; flex-wrap: wrap; gap: 6px 8px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.tagcloud__item { min-width: 0; }
.tagcloud__link {
    display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; min-height: 40px; padding: 7px 16px; border-radius: 999px;
    background: var(--paper); box-shadow: inset 0 0 0 1px #b9c4bb; color: var(--ink); font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.3;
    text-decoration: none; overflow-wrap: anywhere; transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}
.tagcloud__link:hover { background: var(--tone); box-shadow: inset 0 0 0 1px var(--ink); }
.tagcloud__link.is-active { background: var(--field); color: var(--on-field); box-shadow: inset 0 -4px 0 var(--yellow); }
.tagcloud__count { font-family: var(--sans); font-size: 13px; font-style: normal; font-weight: 700; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.tagcloud__link.is-active .tagcloud__count { color: var(--yellow); }
.tagcloud__empty { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--soft); }

.listing__tag strong { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink); }
.listing__tag a { color: var(--green-ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.listing__tag a:hover { color: var(--ink); }

/* cards: italic keywords under the stats, on both the paper and the green pages of a spread */
.post__fits { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 18px; padding: 0; list-style: none; }
.post__fit { min-width: 0; }
.post__fit a {
    display: inline-flex; align-items: center; max-width: 100%; min-height: 30px; padding: 2px 12px; border-radius: 999px;
    box-shadow: inset 0 0 0 1px #b9c4bb; font-family: var(--serif); font-size: 16px; font-style: italic; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere;
    transition: background 220ms ease, box-shadow 220ms ease;
}
.post__fit a:hover { background: var(--tone); box-shadow: inset 0 0 0 1px var(--ink); }
.post--even .post__fit a { box-shadow: inset 0 0 0 1px rgb(238 241 238 / 0.38); color: var(--on-field); }
.post--even .post__fit a:hover { background: var(--field-2); box-shadow: inset 0 0 0 1px var(--yellow); }

/* post: a reader page — hairline rule with the yellow third, Fraunces heading */
.fits { position: relative; max-width: 68ch; margin: clamp(56px, 7vw, 96px) auto 0; padding-top: 22px; border-top: 1px solid var(--ink); font-size: 18px; }
.fits::before { content: ""; position: absolute; left: 0; top: -2px; width: 34%; height: 3px; background: var(--yellow); }
.fits__title { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 144; font-size: clamp(32px, 3.2vw, 48px); line-height: 1; letter-spacing: -0.02em; }
.fits__intro { margin: 0 0 24px; color: var(--soft); font-size: 17px; }
.fits__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.fits__item { min-width: 0; max-width: 100%; }
.fits__vote { margin: 0; }
.fits__tag {
    display: inline-flex; align-items: baseline; gap: 10px; max-width: 100%; min-height: 50px; padding: 11px 22px; border: 0; border-radius: 999px;
    background: var(--paper); box-shadow: inset 0 0 0 1px #b9c4bb; color: var(--ink); font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.2;
    text-align: left; overflow-wrap: anywhere; cursor: pointer; transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}
.fits__tag:hover { background: var(--tone); box-shadow: inset 0 0 0 1px var(--ink); }
.fits__tag.is-mine { background: var(--field); color: var(--on-field); font-style: italic; box-shadow: inset 0 0 0 2px var(--field), inset 0 -5px 0 var(--yellow); }
.fits__tag.is-mine::before { content: "✓"; font-family: var(--sans); font-size: 16px; font-style: normal; font-weight: 700; color: var(--yellow); }
.fits__tag.is-mine:hover { background: var(--field-2); }
.fits__tag:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.fits__count { font-family: var(--sans); font-size: 14px; font-style: normal; font-weight: 700; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.fits__tag.is-mine .fits__count { color: var(--yellow); }
.fits__empty { margin: 0 0 26px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--soft); }

.fits-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; }
.fits-form__label { width: 100%; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--soft); }
.fits-form__input {
    flex: 1 1 240px; min-width: 0; max-width: 380px; min-height: 50px; padding: 12px 16px; border: 0; border-bottom: 3px solid var(--green); border-radius: 0;
    background: #fff; color: var(--ink); font: 400 17px/1.4 var(--sans);
}
.fits-form__input::placeholder { color: #66736a; }
.fits-form__input:focus { outline: 3px solid var(--yellow); outline-offset: 2px; border-bottom-color: var(--field); }
.fits-form__submit {
    justify-content: center; padding: 0 28px; border: 0; border-radius: 999px; background: var(--field); color: var(--on-field);
    text-decoration: none; cursor: pointer;
}
.fits-form__submit:hover { background: var(--yellow); color: var(--ink); }
.fits-form__submit:active { transform: scale(0.96); }

@media (max-width: 560px) {
    .tagcloud__title { width: 100%; }
    .fits__tag { font-size: 19px; }
    .fits-form__input { flex-basis: 100%; max-width: none; }
    .fits-form__submit { flex: 1 0 100%; }
}
