/*
Theme Name: Marmosium
Author: Marmosium
Description: Marmosium için elle yazılmış özel tema.
Version: 1.0
Hüsnü ERCANKAYA 6 Ağustos 2026
*/

/* ==========================================================================
   1. DEĞİŞKENLER
   ========================================================================== */
:root {
	--ink: #1a1a1a;
	--body: #757068;
	--line: #e5e1da;
	--bg: #ffffff;
	--soft: #f7f5f2;
	--invert: #ffffff;

	--fs-hero:  clamp(2.75rem, 6.5vw, 6rem);
	--fs-h1:    clamp(2rem, 4vw, 3.5rem);
	--fs-h2:    clamp(1.5rem, 2.6vw, 2.25rem);
	--fs-h3:    clamp(1.125rem, 1.6vw, 1.375rem);
	--fs-body:  clamp(0.9375rem, 1.05vw, 1.0625rem);
	--fs-label: 0.6875rem;

	--sp-section: clamp(5.5rem, 11vw, 11rem);
	--sp-block:   clamp(2.5rem, 5vw, 5rem);
	--container:  1680px;
	--gutter:     clamp(1.25rem, 4vw, 4.5rem);

	--ease: cubic-bezier(.22, 1, .36, 1);
	--dur:  .9s;

	/* Optima webfont lisansı alınana kadar yakın alternatif. */
	--font-display: 'Marcellus', 'URW Classico', Georgia, serif;
	--font-body: 'Marcellus', 'URW Classico', Georgia, serif;
}

/* ==========================================================================
   2. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

img, picture, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

button, input, textarea { font: inherit; color: inherit; background: none; border: 0; }

/* ==========================================================================
   3. TİPOGRAFİ
   ========================================================================== */
h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 300;
	letter-spacing: -.02em;
	line-height: 1.15;
}

h3, h4 { font-weight: 400; }

p { margin: 0; }

.label {
	display: inline-block;
	font-size: var(--fs-label);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .22em;
	color: var(--body);
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ==========================================================================
   5. BİLEŞENLER
   ========================================================================== */
.link-underline {
	display: inline-block;
	padding-bottom: .3em;
	border-bottom: 1px solid currentColor;
	transition: opacity var(--dur) var(--ease);
}

.link-underline:hover { opacity: .5; }

/* ==========================================================================
   6. HEADER
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}

.site-header.is-transparent {
	position: absolute;
	background: transparent;
	color: var(--invert);
	border-bottom: 1px solid rgba(255,255,255,.25);
}

.site-header.is-solid {
	background: var(--bg);
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}

/* Satır 1: sol linkler | ortalanmış logo | sağ linkler */
.site-header__top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--gutter);
	height: clamp(52px, 6vw, 64px);
	font-size: var(--fs-label);
	letter-spacing: .1em;
	text-transform: uppercase;
}

.site-header__top-links {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 2rem);
}

.site-header__top-links--end { justify-self: end; }

.site-header__top-links a { transition: opacity var(--dur) var(--ease); }
.site-header__top-links a:hover { opacity: .6; }

.site-header__logo {
	display: inline-block;
	color: inherit;
}

.site-header__logo svg {
	height: clamp(24px, 2.6vw, 32px);
	width: auto;
	display: block;
	fill: currentColor;
}

/* Satır 2: ortalanmış ana menü */
.site-header__navbar {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	border-top: 1px solid currentColor;
}

.site-header.is-transparent .site-header__navbar { border-top-color: rgba(255,255,255,.25); }
.site-header.is-solid .site-header__navbar { border-top-color: var(--line); }

.primary-menu {
	display: flex;
	gap: clamp(1.25rem, 2.5vw, 2.5rem);
	padding-block: .85rem;
	font-size: var(--fs-label);
	text-transform: uppercase;
	letter-spacing: .12em;
}

.primary-menu a {
	position: relative;
	padding-block: .25rem;
}

.primary-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .45s var(--ease);
}

.primary-menu a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.nav-toggle {
	display: none;
	position: absolute;
	right: var(--gutter);
	cursor: pointer;
	font-size: var(--fs-label);
	text-transform: uppercase;
	letter-spacing: .14em;
}

/* ==========================================================================
   8. HERO
   ========================================================================== */
.hero {
	position: relative;
	height: 100svh;
	min-height: 640px;
	overflow: hidden;
	color: var(--invert);
}

.hero__media {
	position: absolute;
	inset: 0;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,.45) 0%,
		rgba(0,0,0,.15) 45%,
		rgba(0,0,0,.5) 100%
	);
}

.hero__content {
	position: absolute;
	left: var(--gutter);
	bottom: clamp(2rem, 6vw, 3.5rem);
	z-index: 2;
	max-width: 42rem;
}

.hero__title {
	font-size: var(--fs-hero);
	font-weight: 300;
	line-height: 1.05;
}

.hero__subtitle {
	margin-top: 1rem;
	font-size: var(--fs-h3);
	font-weight: 300;
	color: rgba(255,255,255,.85);
}

/* Sağ altta slayt bilgisi + ilerleme çubuğu */
.hero__meta {
	position: absolute;
	right: var(--gutter);
	bottom: clamp(1.75rem, 5vw, 2.5rem);
	z-index: 2;
	width: 290px;
}

.hero__meta-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: .875rem;
}

.hero__meta-name {
	font-size: .875rem;
	font-weight: 400;
	line-height: 1.35;
}

.hero__meta-by {
	margin-top: .2rem;
	font-size: var(--fs-label);
	font-weight: 300;
	opacity: .85;
}

.hero__meta-progress-row {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-top: 1rem;
	font-size: var(--fs-label);
	letter-spacing: .05em;
}

.hero__meta-bar {
	flex: 1;
	height: 1px;
	background: rgba(255,255,255,.35);
	position: relative;
}

.hero__meta-bar::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: var(--hero-progress, 100%);
	background: var(--invert);
}

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
	.site-header__top { grid-template-columns: auto 1fr auto; height: 56px; }
	.site-header__top-links { display: none; }

	.site-header__navbar { border-top: 0; padding-block: .5rem; }
	.site-header__nav { display: none; }
	.nav-toggle { display: block; position: static; }

	.hero__content { max-width: none; right: var(--gutter); }
	.hero__meta { display: none; }
}
