/* By Vrushali Sawant. One stylesheet, no framework. */

@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-latin.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--ivory: #f7f5ef;
	--ink: #25252a;
	--plum: #865b88;
	--mauve: #e9ddeb;
	--ink-soft: #55555c;
	--rule: rgba(37, 37, 42, 0.18);

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap: 72rem;
	--gutter: clamp(1.25rem, 4vw, 3rem);
}

/* The four colours are editable in the Customizer. The soft grey and the thin rules follow the text colour. */
@supports (color: color-mix(in srgb, red, blue)) {
	:root {
		--ink-soft: color-mix(in srgb, var(--ink) 82%, var(--ivory));
		--rule: color-mix(in srgb, var(--ink) 18%, transparent);
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--serif);
	font-optical-sizing: auto;
	font-size: 1.125rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--plum);
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--plum);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	margin: 0;
	font-weight: 420;
	letter-spacing: -0.015em;
	line-height: 1.1;
}

p {
	margin: 0 0 1em;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wrap {
	width: min(var(--wrap), 100% - (2 * var(--gutter)));
	margin-inline: auto;
}

.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 10;
	padding: 0.7rem 1rem;
	background: var(--ink);
	color: var(--ivory);
	font-family: var(--sans);
	font-size: 0.9375rem;
	border-radius: 3px;
}

.skip:focus {
	top: 1rem;
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1.4rem;
	border: 1.5px solid transparent;
	border-radius: 3px;
	font-family: var(--sans);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.btn--solid {
	background: var(--plum);
	border-color: var(--plum);
	color: var(--ivory);
}

.btn--solid:hover {
	background: var(--ink);
	border-color: var(--ink);
}

.btn--line {
	border-color: var(--ink);
	color: var(--ink);
}

.btn--line:hover {
	background: var(--mauve);
}

.btn--small {
	min-height: 2.5rem;
	padding: 0.5rem 1.05rem;
	border-color: var(--plum);
	color: var(--plum);
}

.btn--small:hover {
	background: var(--plum);
	border-color: var(--plum);
	color: var(--ivory);
}

/* Header */

.site-header {
	padding-block: 1.25rem;
}

.bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
}

.wordmark {
	font-size: 1.375rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--ink);
	text-decoration: none;
}

.wordmark__by {
	color: var(--plum);
	font-weight: 400;
}

.nav ul {
	display: flex;
	align-items: center;
	gap: 0.5rem 1.6rem;
}

.nav a:not(.btn) {
	font-family: var(--sans);
	font-size: 0.9375rem;
	color: var(--ink);
	text-decoration: none;
}

.nav a:not(.btn):hover {
	color: var(--plum);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* Hero */

.hero {
	padding-block: clamp(3rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
}

.hero__title {
	max-width: 21ch;
	font-size: clamp(2.6rem, 1.15rem + 6.6vw, 5.75rem);
	letter-spacing: -0.028em;
	line-height: 1.02;
}

.hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-top: clamp(2.25rem, 6vw, 4rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
}

.hero__intro {
	max-width: 30rem;
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.5;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
}

/* Sections */

.section {
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
	border-top: 1px solid var(--rule);
}

.section__title {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
	font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
	letter-spacing: -0.02em;
}

/* My Works */

.work {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(1rem, 2.5vw, 2rem);
	align-items: end;
	margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.work:last-child {
	margin-bottom: 0;
}

.work__plate {
	grid-column: 1 / span 8;
	grid-row: 1;
	padding: clamp(0.75rem, 2.6vw, 2.25rem);
	background: var(--mauve);
}

.work__plate img {
	display: block;
	width: 100%;
	border-radius: 4px;
	box-shadow: 0 1px 0 rgba(37, 37, 42, 0.06), 0 22px 36px -24px rgba(37, 37, 42, 0.55);
}

.work__body {
	grid-column: 9 / -1;
	grid-row: 1;
	padding-bottom: 0.25rem;
}

.work--flip .work__plate {
	grid-column: 5 / -1;
}

.work--flip .work__body {
	grid-column: 1 / span 4;
}

.work__title {
	margin-bottom: 0.5rem;
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
	font-weight: 480;
}

.work__text {
	margin-bottom: 1rem;
	color: var(--ink-soft);
}

.work__link {
	font-family: var(--sans);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* One link covers the whole entry. */
.work__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.work__link:focus-visible {
	outline: none;
}

.work__link:focus-visible::after {
	outline: 3px solid var(--plum);
	outline-offset: 6px;
}

/* Services */

.services {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem clamp(1.5rem, 5vw, 5rem);
}

.service {
	padding-top: 1.25rem;
	border-top: 2px solid var(--ink);
}

.service__title {
	margin-bottom: 0.75rem;
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
	font-weight: 480;
}

.service p {
	max-width: 32rem;
	margin: 0;
}

.services__close {
	max-width: 24ch;
	margin: clamp(2.5rem, 6vw, 4rem) 0 0;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* About */

.about {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(1rem, 2.5vw, 2rem);
}

.about .section__title {
	grid-column: 1 / span 4;
	margin-bottom: 1.5rem;
}

.about__body {
	grid-column: 5 / span 7;
	max-width: 40rem;
}

.figures {
	margin: 2rem 0 1rem;
}

.figures__row {
	display: grid;
	grid-template-columns: minmax(7rem, 9rem) 1fr;
	gap: 0.25rem 1.5rem;
	padding-block: 0.9rem;
	border-top: 1px solid var(--rule);
}

.figures__row:last-child {
	border-bottom: 1px solid var(--rule);
}

.figures dt {
	font-weight: 600;
}

.figures dd {
	margin: 0;
}

.about__note {
	margin: 0;
	font-family: var(--sans);
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

/* Contact */

.contact {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(1rem, 2.5vw, 2rem);
	row-gap: 2.5rem;
}

.contact__intro {
	grid-column: 1 / span 5;
}

.contact__lead {
	max-width: 18ch;
	margin-bottom: 1.5rem;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.contact__links li + li {
	margin-top: 0.4rem;
}

.contact__links a {
	font-family: var(--sans);
	font-size: 1rem;
}

.form {
	grid-column: 7 / -1;
}

.field {
	margin: 0 0 1.25rem;
}

.field label {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 600;
}

.field input,
.field textarea {
	display: block;
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1.5px solid var(--ink-soft);
	border-radius: 3px;
	background: #fff;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.4;
}

.field textarea {
	resize: vertical;
}

.field input:focus,
.field textarea:focus {
	border-color: var(--plum);
	outline: 3px solid var(--plum);
	outline-offset: 1px;
}

.field--submit {
	margin-bottom: 0;
}

.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.notice {
	margin: 0 0 1.5rem;
	padding: 0.9rem 1rem;
	border-left: 4px solid var(--plum);
	background: var(--mauve);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* Footer */

.site-footer {
	padding-block: 2.25rem;
	border-top: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: 0.875rem;
}

.foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.foot__copy {
	margin: 0;
	color: var(--ink-soft);
}

.foot ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.4rem;
}

.foot a {
	color: var(--ink);
}

.foot a:hover {
	color: var(--plum);
}

/* Fallback pages */

.plain {
	padding-block: clamp(2.5rem, 6vw, 5rem);
}

.plain__entry {
	max-width: 40rem;
}

/* Smaller screens */

@media (max-width: 52rem) {
	.work__plate,
	.work--flip .work__plate,
	.work__body,
	.work--flip .work__body {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.work__body {
		padding-top: 1.1rem;
	}

	.services {
		grid-template-columns: 1fr;
	}

	.about .section__title,
	.about__body {
		grid-column: 1 / -1;
	}

	.contact__intro,
	.form {
		grid-column: 1 / -1;
	}
}

@media (max-width: 30rem) {
	.nav ul {
		gap: 0.5rem 1.1rem;
	}

	.nav a:not(.btn) {
		font-size: 0.875rem;
	}

	.figures__row {
		grid-template-columns: 1fr;
	}

	.hero__actions .btn {
		flex: 1 1 auto;
	}
}

/* Portrait screenshots (for example a long article page) sit in a narrower plate. */
.work--tall .work__plate { grid-column: 1 / span 5; }
.work--tall.work--flip .work__plate { grid-column: 8 / -1; }
.work--tall .work__body { grid-column: 7 / -1; }
.work--tall.work--flip .work__body { grid-column: 1 / span 6; }
.work--tall { align-items: center; }
@media (max-width: 52rem) {
	.work--tall .work__plate, .work--tall.work--flip .work__plate, .work--tall .work__body, .work--tall.work--flip .work__body { grid-column: 1 / -1; }
}

/* LinkedIn post embeds */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.post { background: var(--mauve); border-radius: 4px; padding: 1rem; }
.post iframe { display: block; width: 100%; height: 610px; border: 0; background: #fff; }
.posts__more { margin-top: 2rem; }
@media (max-width: 64rem) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .posts { grid-template-columns: 1fr; } .post { padding: .75rem; } }

/* Works that link out: browser frame, hover lift and a visible button. */
.work--link { cursor: pointer; }
.work__frame {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(37, 37, 42, 0.06), 0 22px 36px -24px rgba(37, 37, 42, 0.55);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work__frame img { border-radius: 0; box-shadow: none; transition: transform 0.4s ease; }
.work__bar {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.75rem;
	background: #f1ecf2;
	border-bottom: 1px solid rgba(37, 37, 42, 0.08);
}
.work__bar i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(37, 37, 42, 0.2); }
.work__bar span {
	margin-left: 0.5rem;
	padding: 0.125rem 0.75rem;
	border-radius: 99px;
	background: #fff;
	font-family: var(--sans);
	font-size: 0.75rem;
	color: var(--ink-soft);
}
.work--link .work__link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: 1.25rem;
	padding: 0.6rem 1.1rem;
	border: 1.5px solid var(--ink);
	border-radius: 3px;
	text-decoration: none;
	color: var(--ink);
	transition: background 0.2s ease, color 0.2s ease;
}
.work--link .work__link span[aria-hidden] { display: inline-block; transition: transform 0.2s ease; }
.work--link:hover .work__frame { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(37, 37, 42, 0.06), 0 34px 44px -26px rgba(37, 37, 42, 0.6); }
.work--link:hover .work__frame img { transform: scale(1.02); }
.work--link:hover .work__link { background: var(--ink); color: var(--ivory); }
.work--link:hover .work__link span[aria-hidden] { transform: translate(2px, -2px); }
.work--link:hover .work__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
@media (prefers-reduced-motion: reduce) {
	.work__frame, .work__frame img, .work--link .work__link, .work--link .work__link span[aria-hidden] { transition: none; }
	.work--link:hover .work__frame, .work--link:hover .work__frame img { transform: none; }
}

/* Work cards: resting shadow and a soft plum glow on hover. */
.work--link .work__plate { transition: background 0.3s ease; }
.work__frame {
	box-shadow: 0 2px 4px rgba(37, 37, 42, 0.08), 0 18px 34px -12px rgba(37, 37, 42, 0.38), 0 36px 60px -30px rgba(134, 91, 136, 0.5);
}
.work--link:hover .work__frame,
.work--link:focus-within .work__frame {
	transform: translateY(-8px);
	box-shadow: 0 2px 4px rgba(37, 37, 42, 0.08), 0 24px 44px -14px rgba(37, 37, 42, 0.42), 0 0 0 1px rgba(134, 91, 136, 0.35), 0 0 48px 6px rgba(134, 91, 136, 0.45);
}
.work--link:hover .work__plate { background: color-mix(in srgb, var(--mauve) 80%, var(--plum) 20%); }
@media (prefers-reduced-motion: reduce) { .work--link .work__plate { transition: none; } }

/* Stronger hover glow on work cards. */
.work--link .work__plate { transition: background 0.3s ease, box-shadow 0.35s ease; }
.work--link:hover .work__plate,
.work--link:focus-within .work__plate {
	background: radial-gradient(120% 90% at 50% 40%, color-mix(in srgb, var(--mauve) 55%, var(--plum) 45%), color-mix(in srgb, var(--mauve) 85%, var(--plum) 15%));
	box-shadow: 0 28px 90px -16px rgba(134, 91, 136, 0.65), 0 0 0 1px rgba(134, 91, 136, 0.25);
}
.work--link:hover .work__frame,
.work--link:focus-within .work__frame {
	transform: translateY(-10px) scale(1.01);
	box-shadow: 0 2px 4px rgba(37, 37, 42, 0.1), 0 30px 50px -14px rgba(37, 37, 42, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.55), 0 0 70px 14px rgba(134, 91, 136, 0.7);
}
@media (prefers-reduced-motion: reduce) { .work--link:hover .work__frame, .work--link:focus-within .work__frame { transform: none; } }

/* Small "I'm" above the headline. */
.hero__pre {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin-bottom: 0.35em;
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1;
	color: var(--plum);
}
.hero__pre::after {
	content: "";
	width: clamp(2rem, 5vw, 3.5rem);
	height: 1px;
	background: currentColor;
	opacity: 0.55;
}

/* Mobile menu */
.site-header { position: relative; z-index: 20; }
.menu-btn { display: none; }
@media (max-width: 48rem) {
	.bar { flex-wrap: nowrap; }
	.has-js .menu-btn {
		display: inline-flex;
		align-items: center;
		gap: 0.6rem;
		padding: 0.5rem 0.95rem;
		border: 1.5px solid var(--ink);
		border-radius: 3px;
		background: transparent;
		color: var(--ink);
		font: 600 0.9rem var(--sans);
		cursor: pointer;
	}
	.menu-btn__icon,
	.menu-btn__icon::before {
		display: block;
		width: 1.05rem;
		height: 1.5px;
		background: currentColor;
		transition: transform 0.2s ease;
	}
	.menu-btn__icon { position: relative; transform: translateY(-3px); }
	.menu-btn__icon::before { content: ""; position: absolute; left: 0; top: 6px; }
	.menu-btn[aria-expanded="true"] .menu-btn__icon { transform: rotate(45deg); }
	.menu-btn[aria-expanded="true"] .menu-btn__icon::before { top: 0; transform: rotate(-90deg); }

	.has-js .nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 0.5rem var(--gutter) 1.5rem;
		background: var(--ivory);
		border-top: 1px solid var(--rule);
		border-bottom: 1px solid var(--rule);
		box-shadow: 0 24px 40px -28px rgba(37, 37, 42, 0.45);
	}
	.has-js .nav.is-open { display: block; }
	.has-js .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.has-js .nav li { border-bottom: 1px solid var(--rule); }
	.has-js .nav li:last-child { border-bottom: 0; padding-top: 1.25rem; }
	.has-js .nav a:not(.btn) {
		display: block;
		padding: 0.95rem 0;
		font-family: var(--serif);
		font-size: 1.5rem;
		letter-spacing: -0.01em;
	}
	.has-js .nav .btn { display: block; width: 100%; text-align: center; padding: 0.85rem 1rem; font-size: 1rem; }

	/* Without JavaScript: a simple wrapped row. */
	.nav ul { flex-wrap: wrap; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .menu-btn__icon, .menu-btn__icon::before { transition: none; } }

/* Hero photo: a small round portrait with the name, above the headline. */
.hero__top--photo { display: flex; flex-direction: column; }
.hero__top--photo .hero__photo { order: -1; display: flex; align-items: center; gap: 1rem; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); }
.hero__photo img {
	display: block;
	flex: none;
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 3px var(--mauve);
}
.hero__photo figcaption {
	margin: 0;
	font-family: var(--sans);
	font-size: 0.9375rem;
	letter-spacing: 0.03em;
	color: var(--ink);
}

/* Compact hero: headline, portrait and intro fit in one screen. */
.hero { padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.25rem); }
.hero__title,
.hero__top--photo .hero__title { max-width: 24ch; font-size: clamp(2.25rem, 1rem + 4.2vw, 4.25rem); line-height: 1.04; }
.hero__top--photo .hero__photo { margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.hero__photo img { width: 4.25rem; height: 4.25rem; }
.hero__foot { margin-top: clamp(1.5rem, 3.5vw, 2.5rem); padding-top: 1.25rem; }
.hero__pre { margin-bottom: 0.25em; }
