/* Tiger Notes 2.0 — stand-alone page. Layout (menu/social space, header) is set by the template. */
.tn {
	--tn-text: #ecece9;
	--tn-muted: rgba(236, 236, 233, .62);
	--tn-glass: rgba(12, 20, 15, .58);
	--tn-line: rgba(255, 255, 255, .14);
	--tn-accent: #e0953f;
	font-family: inherit; color: var(--tn-text); box-sizing: border-box; width: 100%; min-width: 0;
}
.tn *, .tn *::before, .tn *::after { box-sizing: border-box; font-family: inherit; }
.tn-embed { padding: 48px 40px 120px; } /* only when used as the [tiger_notes] shortcode */

.tn a, .tn a:hover, .tn a:focus, .tn a:active, .tn a:visited { text-decoration: none !important; box-shadow: none !important; outline: none; }
.tn a { background: transparent !important; color: var(--tn-text) !important; }

/* ---------- Landing: two big words, left edge shared by word, line and count ---------- */
.tn-landing { display: flex; justify-content: center; }
.tn-words { display: flex; flex-direction: column; align-items: flex-start; gap: 64px; width: fit-content; max-width: 100%; }
.tn-word { display: block; max-width: 100%; transition: opacity .3s, transform .3s; }
.tn-big {
	display: block; margin-left: -.05em; /* cancels the font's side bearing so the big word lines up with the small text */
	font-size: clamp(64px, 9vw, 130px); line-height: .95; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere;
}
.tn-sub { display: block; margin-top: 16px; font-size: 13px; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; color: var(--tn-muted); }
.tn-count { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--tn-accent) !important; }
.tn-count i { font-style: normal; margin-left: .6em; }
@media (hover: hover) {
	.tn-words:hover .tn-word:not(:hover) { opacity: .35; }
	.tn-word:hover { transform: translateX(14px); }
}

/* ---------- List page ---------- */
.tn-list .tn-back { display: inline-block; margin-bottom: 26px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--tn-muted) !important; }
.tn-list .tn-back:hover { color: var(--tn-text) !important; }
.tn-head { margin: 0 0 0 -.05em; font-size: clamp(48px, 7vw, 96px); line-height: 1; letter-spacing: .05em; text-transform: uppercase; color: var(--tn-text); overflow-wrap: anywhere; }
.tn-desc { margin: 14px 0 0; font-size: 13px; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: var(--tn-muted); }

.tn-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 38px; }
.tn .tn-switch a { padding: 8px 22px; border-radius: 999px; border: 1px solid var(--tn-line); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--tn-muted) !important; transition: .2s; }
.tn .tn-switch a:hover { color: var(--tn-text) !important; border-color: var(--tn-text); }
.tn .tn-switch a.is-on { background: var(--tn-text) !important; color: #101a14 !important; border-color: var(--tn-text); }

.tn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 28px; }
.tn-card { display: block; min-width: 0; }
.tn-thumb { display: block; aspect-ratio: 3/2; margin-bottom: 16px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); background: var(--tn-glass); }
.tn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.tn-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; border: 1px solid var(--tn-line); border-radius: 14px; font-size: 22px; letter-spacing: .3em; text-transform: uppercase; color: var(--tn-muted); }
@media (hover: hover) { .tn-card:hover .tn-thumb img { transform: scale(1.04); } }
.tn-meta { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--tn-muted); }
.tn-title { display: block; margin-top: 8px; font-size: 22px; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; overflow-wrap: anywhere; }
.tn-excerpt { display: block; margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--tn-muted); }
.tn .tn-card:hover .tn-title { color: var(--tn-accent) !important; background: transparent !important; }

.tn-pager { display: flex; align-items: center; gap: 16px; margin-top: 50px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--tn-muted); }
.tn .tn-pager a { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--tn-line); }
.tn .tn-pager a:hover { border-color: var(--tn-text); }
.tn-empty { color: var(--tn-muted); letter-spacing: .1em; }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
	.tn-embed { padding: 24px 22px 140px; }
	.tn-landing { display: block; }
	.tn-words { gap: min(48px, 5svh); width: 100%; }
	.tn-big { font-size: clamp(44px, min(19vw, 11svh), 110px); }
	.tn-sub { font-size: 11px; letter-spacing: .18em; }
	.tn-count { font-size: 11px; }
	.tn-list { padding-top: 8px; }
	.tn-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.tn-title { font-size: 19px; }
}

/* ---------- Desktop landing: each word centred in the space between menu and social icons ---------- */
@media (min-width: 901px) {
	.tn-landing .tn-words { align-items: center; width: 100%; }
	.tn-landing .tn-word { text-align: center; width: 100%; }
	/* trailing letter-spacing pushes text left; the padding cancels it so the centring is optical */
	.tn-landing .tn-big { margin-left: 0; padding-left: .04em; }
	.tn-landing .tn-sub, .tn-landing .tn-count { padding-left: .2em; }
	.tn-landing .tn-sub { max-width: 640px; margin-left: auto; margin-right: auto; }
}
