/* mustafatufan.com.tr
   The design follows the Mustafa Tufan Brand Kit (mustafa-tufan-brand-kit/):
   the business card at another size. Two faces (white and navy), one typeface
   in two weights, one bar, square corners.

   1. Tokens       the block from the kit's Sites.md
   2. Brand        the kit's components/bundle.css, unchanged
   3. This site    the headline, the header, the sections, their entries and the footnote */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --white: #ffffff; --navy: #0c447c; --blue: #185fa5; --ink: #2c2c2a; --grey: #444441;
  --bg: var(--white); --text-strong: var(--ink); --text: var(--grey); --text-muted: #5f5e5a;
  --accent: var(--blue); --accent-strong: var(--navy);
  --plate: var(--navy); --on-plate: var(--white); --plate-hover: var(--blue);
  --line: #d3d1c7; --line-strong: #888780; --focus: var(--blue);
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.8125rem; --space-4: 1.75rem; --space-5: 2.625rem; --space-6: 5.5rem;
  --radius-0: 0; --bar-length: 1.32em; --bar-weight: 0.104em;
  --card-ratio: 85 / 55; --icon-size: 1.06em; --content-width: 64rem; --measure: 40rem; --photo-width: 190px;
  --font-sans: Poppins, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: only light;
}
[data-theme="back"] {
  --bg: var(--navy); --text-strong: var(--white); --text: var(--white); --text-muted: #b5d4f4;
  --accent: var(--white); --accent-strong: #b5d4f4;
  --plate: var(--white); --on-plate: var(--navy); --plate-hover: #b5d4f4;
  --line: var(--blue); --line-strong: #85b7eb; --focus: var(--white);
}

/* Poppins 4.004, Latin and Latin Extended, served by the site itself.
   Latin Extended holds the Turkish letters. */
@font-face { font-family: Poppins; src: url("../fonts/Poppins-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Poppins; src: url("../fonts/Poppins-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ==========================================================================
   2. Brand: components/bundle.css of the brand kit, unchanged
   ========================================================================== */

/* Mustafa Tufan brand styles, read off the business card. Load tokens.css first.
   Plain CSS: no framework, no scripts, no external requests.
   Sizes are in rem: 1rem on screen stands for 7.6pt on the card. */

/* ---------- Base ---------- */

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* The brand has two weights. Bold is Medium. */
b,
strong {
	font-weight: 500;
}

/* ---------- Faces ----------
   A page is the front of the card. A band turns it over: <footer class="mt-band" data-theme="back">. */

.mt-band {
	background: var(--bg);
	color: var(--text);
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

/* ---------- Type ---------- */

.mt-name {
	margin: 0;
	color: var(--text-strong);
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
}

.mt-title {
	margin: 0;
	color: var(--accent);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.4;
}

.mt-heading {
	margin: var(--space-5) 0 var(--space-3);
	color: var(--text-strong);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
}

.mt-subheading {
	margin: 0;
	color: var(--text-strong);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
}

.mt-small {
	color: var(--text-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* The address on a plate. The negative margin takes back the tracking after the last letter,
   so the line centres as it does on the card. */
.mt-domain {
	margin-right: -0.046em;
	font-size: 1.6875rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.046em;
}

/* ---------- The bar ----------
   Its length and thickness are in em of the name or heading above it. */

.mt-nameblock {
	font-size: 2rem;
}

.mt-nameblock::after,
.mt-heading::after {
	content: "";
	display: block;
	width: var(--bar-length);
	height: var(--bar-weight);
	min-height: 2px;
	background: var(--accent);
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

.mt-nameblock::after {
	margin-top: var(--space-3);
}

.mt-heading::after {
	margin-top: var(--space-2);
}

/* ---------- Links and focus ---------- */

.mt-link {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.mt-link:hover {
	color: var(--accent-strong);
}

.mt-link:focus-visible,
.mt-btn:focus-visible,
.mt-plate:focus-visible,
.mt-contact a:focus-visible,
.mt-links a:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
	border-radius: var(--radius-0);
}

/* ---------- Icons and contact rows ----------
   Inline SVG, 24 box, no fill. The class paints the stroke. */

.mt-icon {
	flex: none;
	width: var(--icon-size);
	height: var(--icon-size);
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.64;
}

.mt-contact {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--text);
	font-size: 1rem;
	line-height: 1.75;
}

.mt-contact li {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.mt-contact a {
	color: inherit;
	text-decoration: none;
}

.mt-contact a:hover {
	color: var(--accent-strong);
}

/* ---------- Plate: the back of the card ---------- */

.mt-plate {
	display: grid;
	place-items: center;
	container-type: inline-size;
	aspect-ratio: var(--card-ratio);
	background: var(--plate);
	color: var(--on-plate);
	text-decoration: none;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

/* On a plate the address is 5.4% of the plate's width, as on the card: 13pt on 85mm. */
.mt-plate .mt-domain {
	font-size: 5.4cqw;
}

/* The footer is the back of the card as a band across the page. */
.mt-footer {
	display: grid;
	justify-items: center;
	gap: var(--space-2);
	margin-top: var(--space-6);
	padding: var(--space-5);
	text-align: center;
}

.mt-footer a {
	color: inherit;
	text-decoration: none;
}

.mt-footer p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* ---------- Buttons ---------- */

.mt-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-0);
	background: transparent;
	color: var(--text-strong);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
}

.mt-btn:hover {
	border-color: var(--text-strong);
}

.mt-btn-primary,
.mt-btn[aria-current] {
	border-color: var(--plate);
	background: var(--plate);
	color: var(--on-plate);
}

.mt-btn-primary:hover {
	border-color: var(--plate-hover);
	background: var(--plate-hover);
}

.mt-btn .mt-icon {
	stroke: currentColor;
}

/* ---------- Toolbar ---------- */

.mt-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	padding: var(--space-2) 0;
	border-bottom: 1px solid var(--line);
}

.mt-toolbar-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.mt-note {
	color: var(--text-muted);
	font-size: 0.875rem;
}

/* ---------- Resume header ---------- */

.mt-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-4) var(--space-5);
}

.mt-header .mt-contact {
	margin-top: var(--space-4);
}

.mt-photo {
	display: block;
	flex: none;
	box-sizing: border-box;
	width: var(--photo-width);
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-0);
}

/* ---------- Entry: experience, project, education ---------- */

.mt-entry + .mt-entry {
	margin-top: var(--space-4);
}

.mt-entry-head {
	display: flex;
	align-items: baseline;
}

.mt-entry-title {
	flex: 0 1 auto;
	margin: 0;
	color: var(--text-strong);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
}

.mt-entry-what {
	color: var(--text);
	font-weight: 400;
}

/* The dotted leader the resume already draws between a title and its date. */
.mt-leader {
	flex: 1 1 1.5rem;
	min-width: 1.5rem;
	margin: 0 var(--space-2);
	border-bottom: 1px dotted var(--line);
}

.mt-entry-date {
	flex: 0 0 auto;
	margin: 0;
	color: var(--text);
	font-size: 0.875rem;
	white-space: nowrap;
}

.mt-entry-duration {
	color: var(--text-muted);
}

.mt-entry-org {
	margin: 0;
}

.mt-entry-org span {
	color: var(--text-muted);
}

.mt-entry ul {
	margin: var(--space-1) 0 0;
	padding-left: 1.25rem;
}

.mt-entry-tech {
	margin: var(--space-1) 0 0 1.25rem;
	color: var(--text-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* ---------- Hub: tufan.ee, laid out as the front of the card ---------- */

.mt-hub {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-6);
	min-height: 100vh;
	min-height: 100svh;
	padding: var(--space-5);
}

.mt-links {
	margin: 0 0 var(--space-4);
	padding: 0;
	list-style: none;
	line-height: 1.75;
}

.mt-links a {
	display: inline-flex;
	align-items: baseline;
	gap: var(--space-3);
	color: var(--text-strong);
	font-weight: 500;
	text-decoration: none;
}

.mt-links a span {
	color: var(--text-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

.mt-links a:hover,
.mt-links a:hover span {
	color: var(--accent);
}

/* ---------- Prose: Beyond the Resume, not found ---------- */

.mt-prose {
	box-sizing: border-box;
	max-width: calc(var(--measure) + 2 * var(--space-5));
	padding: var(--space-5);
}

.mt-prose p {
	margin: var(--space-3) 0 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 35.99rem) {
	.mt-header {
		flex-direction: column-reverse;
	}

	.mt-entry-head {
		flex-wrap: wrap;
	}

	.mt-entry-head .mt-leader {
		display: none;
	}

	.mt-entry-title {
		flex: 1 1 100%;
	}

	.mt-entry-date {
		white-space: normal;
	}
}

/* ==========================================================================
   3. This site
   ========================================================================== */

/* ---------- Base ---------- */

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

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

/* Two weights and no italics: never let the browser fake a third one.
   The page is at least as tall as the window, so the footer band stands at
   the bottom of a tall screen and no white is left under it. */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	font-synthesis: none;
}

h1,
h2,
h3,
p,
ul {
	margin: 0;
}

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

/* Links are accent. Only a link in running text (mt-link) is underlined.
   :where() keeps these rules weaker than every brand rule above. */
:where(a) {
	color: var(--accent);
	text-decoration: none;
}

:where(a:hover) {
	color: var(--accent-strong);
}

:where(a):focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

/* ---------- The headline ----------
   The main idea of the page on a band across the top: the back of the card,
   navy with white type. It is the heading of the page, so its sentence is
   Medium, at the size of the address in the footer band. On a phone it is the
   size of a section heading and takes two lines of even length.
   Under the sentence stands what the fee buys, as the title stands under the
   name on the card: Regular, at the size of the title. It is part of the
   heading, so that a search engine reads it with the sentence. Where it does
   not fit on one line, it breaks after its comma: its two halves are
   inline blocks. */

.headline {
	padding: var(--space-4) var(--space-5);
	text-align: center;
}

.headline h1 {
	color: var(--text-strong);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
	text-wrap: balance;
}

.headline h1 > span {
	display: block;
	margin-top: var(--space-2);
	color: var(--text);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
}

.headline h1 > span > span {
	display: inline-block;
}

@media (min-width: 36rem) {
	.headline {
		padding-top: var(--space-5);
		padding-bottom: var(--space-5);
	}

	.headline h1 {
		font-size: 1.6875rem;
		line-height: 1.2;
	}

	.headline h1 > span {
		font-size: 1.125rem;
		line-height: 1.4;
	}
}

/* ---------- Page: one column, centred in the window ---------- */

/* The column stands in the middle of a wide window. Inside it everything
   starts on one left edge, as on the front of the card. */
.page {
	flex: 1 0 auto;
	width: 100%;
	max-width: calc(var(--content-width) + 2 * var(--space-5));
	margin: 0 auto;
	padding: var(--space-5) var(--space-5) 0;
}

/* ---------- Header: the name block, two sentences, then the two ways to reach him ---------- */

/* The sentences under the name block are body copy, as wide as prose. */
.intro {
	max-width: var(--measure);
	margin-top: var(--space-4);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-4);
}

/* A finger needs more room than a pointer. */
.actions .mt-btn {
	min-height: 2.75rem;
}

/* ---------- Sections ---------- */

/* The first section starts space-6 under the header: the empty field of the
   card. The same field stands between two sections. On a phone that field
   would push the offer off the first screen, so there it is the margin. */
section {
	margin-top: var(--space-5);
}

@media (min-width: 36rem) {
	section {
		margin-top: var(--space-6);
	}
}

/* A heading that takes two lines on a phone breaks into lines of even length. */
section > .mt-heading {
	margin-top: 0;
	text-wrap: balance;
}

/* The sentence under a heading is as wide as prose. */
.lead {
	max-width: var(--measure);
	margin-bottom: var(--space-4);
}

/* ---------- Entries: services and references ----------
   The kit sets one column. Here the three entries of a section stand side by
   side on a desktop, as the sections of the customers' sites do: Mustafa's
   decision. In a narrower window they are one column again. */

.entries {
	display: grid;
	gap: var(--space-4) var(--space-5);
	padding: 0;
	list-style: none;
}

@media (min-width: 56rem) {
	.entries {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Between a phone and a desktop the six parts of the offer stand two in a row. */
@media (min-width: 38rem) and (max-width: 55.99rem) {
	.entries:not(.refs) {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* In one column a service is as wide as prose. */
.entries > li > p {
	max-width: var(--measure);
}

/* ---------- References ----------
   A reference is a sentence, a picture of the site, then the name of the
   customer, what it does, where it is, and its address with the web icon.
   The sentence says where the customer's site stands in a Google search.
   Only the address is a link: the picture and the lines are not.
   The pictures are not in the kit, which knows one photograph. They show the
   sites as they are, in their own colours, with square corners and a 1px
   outline in line, as the card has when it is shown on a page. */

/* The place in the search is Medium, the emphasis of the brand. */
.ref-rank {
	margin-bottom: var(--space-2);
}

.ref-rank strong {
	color: var(--text-strong);
}

.ref img {
	width: 100%;
	margin-bottom: var(--space-3);
	border: 1px solid var(--line);
}

/* The address is a contact row: the icon, then the link, which is accent. */
.ref-web {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	line-height: 1.75;
}

/* Three in a row, the sentences are not of one length. They all start on one
   line, and so do the three pictures under them: each reference takes its
   three rows (sentence, picture, lines) from the rows of the list, and the
   picture with its lines takes the last two. */
@media (min-width: 56rem) {
	.refs > li,
	.ref {
		display: grid;
		grid-template-rows: subgrid;
		row-gap: 0;
	}

	.refs > li {
		grid-row: span 3;
	}

	.ref {
		grid-row: span 2;
	}
}

/* Between a phone and a desktop a picture as wide as the column would fill
   the screen. There the sentence takes a line of its own, and under it the
   picture stands on the left with its lines beside it. */
@media (min-width: 38rem) and (max-width: 55.99rem) {
	.ref {
		display: grid;
		grid-template-columns: 2fr 3fr;
		align-items: center;
		column-gap: var(--space-5);
	}

	.ref img {
		margin-bottom: 0;
	}
}

/* ---------- Contact ----------
   The rows of the card. Phone and WhatsApp are the same number, so each of
   the two rows says after the number what it opens. */

.mt-contact a {
	display: inline-flex;
	align-items: baseline;
	gap: var(--space-2);
}

/* ---------- Footnote ----------
   What stands outside the offer: a note under a hairline, small and muted. */

.footnote {
	margin-top: var(--space-5);
	padding-top: var(--space-3);
	border-top: 1px solid var(--line);
}

/* ---------- Footer ----------
   The address of this site is longer than the one on the card. On a narrow
   screen it is set smaller, so that it stays on one line inside the margins. */

.mt-footer .mt-domain {
	font-size: min(1.6875rem, 5.6vw);
}
