/* Named authors: avatar, byline, person card, author page. */

.se-avatar { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.se-avatar--mono {
	display: grid; place-items: center; aspect-ratio: 1;
	background: radial-gradient(circle at 30% 25%, #fff 0%, var(--cream) 55%, var(--blush) 100%);
	font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent);
	letter-spacing: -.02em; font-size: 38%;
	container-type: inline-size;
}
.se-avatar--mono { font-size: clamp(14px, 30cqi, 120px); }

/* Byline */
.se-byline__who { display: inline-flex; align-items: center; gap: 10px; }
.se-byline__avatar { display: inline-block; width: 34px; height: 34px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold); }
.se-byline__avatar .se-avatar--mono { font-size: 13px; }

/* Person card (end of post, About page) */
.se-person {
	display: grid; grid-template-columns: 168px 1fr; gap: 34px; align-items: center;
	margin: 48px auto 0; padding: 36px 40px; max-width: 980px;
	background: var(--blush); border-radius: 2px; position: relative;
}
.se-person::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(168, 131, 78, .35); pointer-events: none; }
.se-person__photo { display: block; width: 168px; height: 168px; border-radius: 50%; box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--gold); }
.se-person__photo .se-avatar--mono { font-size: 56px; }
.se-person__hello { margin: 0 0 2px; font-size: 18px; color: var(--accent); }
.se-person__name { font-size: 32px; margin: 0 0 6px; }
.se-person__name a { color: var(--ink); text-decoration: none; }
.se-person__name a:hover { color: var(--accent); }
.se-person__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.se-person__bio { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0 0 18px; }
.se-person__links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 0; }
.se-person__links a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.se-person__links a:hover { color: var(--accent); }
.se-person__links svg { width: 17px; height: 17px; fill: currentColor; }
.se-content .se-person { margin: 28px 0 36px; }

/* Author page hero */
.se-authorhero { background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%); padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.se-authorhero__inner { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center; }
.se-authorhero__photo { width: 320px; height: 320px; border-radius: 50%; box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--gold), 0 24px 60px rgba(31, 27, 26, .12); }
.se-authorhero__photo .se-avatar--mono { font-size: 112px; }
.se-authorhero .se-crumbs { margin-bottom: 18px; }
.se-authorhero__name { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; margin: 4px 0 14px; letter-spacing: -.02em; }
.se-authorhero__place { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 16px; color: var(--ink-2); }
.se-authorhero__place svg { width: 18px; height: 18px; fill: var(--accent); }
.se-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 28px; padding: 0; }
.se-chips li { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.se-btn--ig { display: inline-flex; align-items: center; gap: 10px; }
.se-btn--ig svg { width: 18px; height: 18px; fill: currentColor; }

/* Bio as a pull quote */
.se-authorbio { max-width: 900px; text-align: center; padding-top: 64px; padding-bottom: 24px; }
.se-authorbio__hello { margin: 0 0 6px; font-size: 20px; color: var(--accent); }
.se-authorbio__quote { margin: 0; position: relative; }
.se-authorbio__quote::before { content: "\201C"; display: block; font-family: var(--serif); font-size: 110px; line-height: .6; color: var(--gold); opacity: .55; margin-bottom: 4px; }
.se-authorbio__quote p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; color: var(--ink); margin: 0; }

/* On StyleEditions + where to start */
.se-authoron { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 24px; }
.se-authoron__copy h2 { font-size: 34px; margin-bottom: 18px; }
.se-authoron__copy p { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.se-authoron__start { background: var(--paper); border: 1px solid var(--line); padding: 30px 32px; box-shadow: 0 14px 40px rgba(31, 27, 26, .06); }
.se-authoron__start ol { list-style: none; counter-reset: start; margin: 8px 0 0; padding: 0; }
.se-authoron__start li { counter-increment: start; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.se-authoron__start li:first-child { border-top: 0; }
.se-authoron__start li::before { content: counter(start, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--accent); line-height: 1.1; }
.se-authoron__start a { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.3; }
.se-authoron__start a:hover { color: var(--accent); }
.se-authoron__start span { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 4px; }
.se-authorposts { padding-top: 40px; }

@media (max-width: 900px) {
	.se-authorhero { padding: 36px 0 44px; text-align: center; }
	.se-authorhero__inner { grid-template-columns: 1fr; gap: 30px; justify-items: center; }
	.se-authorhero__photo { width: 220px; height: 220px; }
	.se-authorhero__photo .se-avatar--mono { font-size: 80px; }
	.se-authorhero .se-crumbs ol, .se-chips { justify-content: center; }
	.se-authorbio { padding-top: 44px; }
	.se-authoron { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
	.se-person { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; padding: 34px 22px; }
	.se-person__photo { width: 132px; height: 132px; }
	.se-person__photo .se-avatar--mono { font-size: 46px; }
	.se-person__meta, .se-person__links { justify-content: center; }
	.se-person__bio { font-size: 17px; }
}

/* Arch portrait (author page hero) */
.se-authorhero__photo--arch { width: 340px; height: 440px; border-radius: 170px 170px 6px 6px; overflow: hidden; box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--gold), 0 28px 70px rgba(31, 27, 26, .18); }
.se-authorhero__photo--arch img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.se-authorhero__inner:has(.se-authorhero__photo--arch) { grid-template-columns: 340px 1fr; }

/* Instagram photo strip */
.se-lens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.se-lens li { margin: 0; }
.se-lens a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.se-lens__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, filter .4s ease; }
.se-lens a:hover .se-lens__img { transform: scale(1.05); filter: saturate(1.1); }
.se-lens__ig { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 253, 250, .9); opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.se-lens__ig svg { width: 16px; height: 16px; fill: var(--ink); }
.se-lens a:hover .se-lens__ig, .se-lens a:focus .se-lens__ig { opacity: 1; transform: none; }
.se-authorlens { padding-top: 56px; padding-bottom: 8px; }
.se-authorlens__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.se-authorlens__head h2 { font-size: 34px; margin: 0; }
.se-authorlens__head a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.se-authorlens__head a:hover { color: var(--accent); }
.se-authorlens__head svg { width: 17px; height: 17px; fill: currentColor; }

/* Person card + strip (About page) */
.se-person-wrap { margin: 28px 0 40px; }
.se-person-wrap .se-person { margin: 0; }
.se-person-wrap .se-lens { margin-top: 12px; }
.se-content .se-lens a { text-decoration: none; }
.se-content .se-lens img { margin: 0; }

@media (max-width: 900px) {
	.se-authorhero__inner:has(.se-authorhero__photo--arch) { grid-template-columns: 1fr; }
	.se-authorhero__photo--arch { width: 260px; height: 336px; border-radius: 130px 130px 6px 6px; }
	.se-lens { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.se-lens__ig { opacity: 1; transform: none; width: 28px; height: 28px; }
	.se-authorlens { padding-top: 40px; }
	.se-authorlens__head h2 { font-size: 28px; }
}

/* "Styled by" chip in the homepage feature bands */
.se-mega__by { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; letter-spacing: .04em; color: inherit; text-decoration: none; opacity: .92; }
.se-mega__by b { font-weight: 600; margin-left: 4px; }
.se-mega__by:hover { opacity: 1; }
.se-mega__by:hover b { text-decoration: underline; text-underline-offset: 3px; }
.se-mega__byimg { width: 42px; height: 42px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 253, 250, .9), 0 0 0 3px var(--gold); }
.se-mega__byimg .se-avatar--mono { font-size: 15px; }

@media (max-width: 600px) {
	.se-byline:has(.se-byline__who) { flex-direction: column; align-items: flex-start; gap: 6px; }
	.se-byline:has(.se-byline__who) span + span::before { content: none; }
	.se-person__meta { flex-direction: column; gap: 4px; }
	.se-person__meta span[aria-hidden] { display: none; }
}

/* Inside page content (About), keep the card's own type */
.se-content .se-person__meta { display: flex; font-size: 12px; line-height: 1.5; margin: 0 0 14px; }
.se-content .se-person__bio { font-size: 19px; line-height: 1.6; margin: 0 0 18px; }
.se-content .se-person__hello { font-size: 18px; margin: 0 0 2px; }
.se-content .se-person__name { margin: 0 0 6px; }
.se-content .se-person__links { margin: 0; }
@media (max-width: 600px) {
	.se-person__dot { display: none; }
	.se-content .se-person__meta { flex-direction: column; gap: 4px; }
	.se-content .se-person__bio { font-size: 17px; }
}
