/*
  erenyetim.com theme, layered over Solid State (main.css).
  Why these choices:
  - Palette: the same dark base and single emerald accent as 8Yol, so the founder's site and the product read as one family.
  - Geist / Geist Mono: 8Yol's typefaces; mono is used only for the URL paths that label each section (identity motif tied to the domain).
  - Diagonal section edges are kept from the template: they connect sections like a path, which matches "yol" (path).
*/

:root {
	--bg: #0e1217;
	--surface: #141a21;
	--surface-alt: #10161c;
	--border: #252e39;
	--text: #e9eef3;
	--text-2: #c5ced8;
	--muted: #9ea9b5;
	--accent: #3cc79a;
	--accent-text: #5fd6ae;
	--on-accent: #062a1e;
	--sans: "Geist", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

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

body {
	background-color: var(--bg);
	background-image: none;
	color: var(--text-2);
}

body, input, select, textarea {
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
#header h1, #banner h2, #menu .links li a {
	font-family: var(--sans);
	color: var(--text);
	letter-spacing: -0.01em;
	text-transform: none;
}

h2.major {
	border-bottom-color: var(--border);
	font-weight: 700;
}

strong, b { color: var(--text); }

a { color: var(--accent-text); border-bottom-color: rgba(95, 214, 174, 0.35); }
a:hover { color: var(--text); border-bottom-color: transparent; }

a, button, summary, label[for], input[type="submit"], .button { cursor: pointer; }

/* Long URLs (footer links) wrap instead of pushing the page sideways on 320px phones. */
#footer .links a,
.facts li > span { overflow-wrap: anywhere; }

p { max-width: 68ch; }

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

/* Path label above section titles: the site's identity motif. */
.path {
	display: block;
	font-family: var(--mono);
	font-size: 0.85em;
	color: var(--muted);
	margin-bottom: 0.6em;
	letter-spacing: 0;
}

.path b { color: var(--accent-text); font-weight: 500; }

/* Header and menu */
#header,
#header.alt,
#menu .inner {
	background-color: rgba(14, 18, 23, 0.96);
}

#header h1 a { border: 0; color: var(--text); }

/* The template shrinks the site name and the Menu button to ~12px on phones; keep them readable. */
#header h1,
#header nav a { font-size: 15px !important; }
#header h1 a span { color: var(--accent-text); }

#header nav a[href="#menu"] {
	box-shadow: inset 0 0 0 1px var(--border);
	color: var(--text);
	min-height: 44px;
}

#menu { background: rgba(14, 18, 23, 0.82); }

#menu .links li a {
	color: var(--text);
	border-top-color: var(--border);
	font-weight: 500;
	letter-spacing: 0;
	font-size: 1.05em;
}

#menu .links li a[aria-current="page"] { color: var(--accent-text); }

/* Banner */
#banner {
	background-color: var(--bg);
	background-image: none;
	text-align: left;
}

#banner .inner { max-width: 55em; }

/* Page header on inner pages (projects, about): same flat base as the banner. */
#wrapper > header {
	background-color: var(--bg);
	background-image: none;
}

#wrapper > header h1 {
	font-size: 2.6em;
	font-weight: 700;
	letter-spacing: -0.03em;
	text-transform: none;
	border: 0;
	margin-bottom: 0.3em;
}

#wrapper > header p {
	color: var(--text-2);
	text-transform: none;
	letter-spacing: 0;
	font-size: 1.1em;
	border: 0;
}

#banner h2 {
	font-size: 3.2em;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	border: 0;
	padding: 0;
	margin-bottom: 0.4em;
	text-transform: none;
}

#banner p {
	font-size: 1.25em;
	color: var(--text-2);
	letter-spacing: 0;
	text-transform: none;
	font-weight: 400;
	line-height: 1.6;
	max-width: 36em;
}

#banner .actions { margin-top: 2em; }

/* Sections: two surfaces only, edges recoloured to match. */
.wrapper,
.wrapper.style1 { background-color: var(--surface); }
.wrapper.style2,
.wrapper.alt.style2 { background-color: var(--surface-alt); }

.wrapper:before, .wrapper:after,
.wrapper.style1:before, .wrapper.style1:after,
.wrapper.spotlight.style1:before, .wrapper.spotlight.style1:after {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%23141a21%3B' /%3E%3C/svg%3E");
	box-shadow: inset 0 -1px 0 0 var(--surface), 0 1px 0 0 var(--surface);
}

.wrapper.style2:before, .wrapper.style2:after,
.wrapper.spotlight.style2:before, .wrapper.spotlight.style2:after {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%2310161c%3B' /%3E%3C/svg%3E");
	box-shadow: inset 0 -1px 0 0 var(--surface-alt), 0 1px 0 0 var(--surface-alt);
}

/* Screenshots: real product images, framed by a hairline instead of a shadow. */
.shot {
	display: block;
	border: 1px solid var(--border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--bg);
}

.shot img { display: block; width: 100%; height: auto; }

/* Spotlight: the template's round crop squeezes screenshots, so show them as a 16:10 window onto the real page. */
.wrapper.spotlight .image {
	border-radius: 6px;
	border: 1px solid var(--border);
	width: 26em;
	flex: none;
	aspect-ratio: 16 / 10;
	margin-bottom: 0;
	background: var(--bg);
}

.wrapper.spotlight .image img {
	border-radius: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
}

.wrapper.spotlight .content { text-align: left; }

@media screen and (max-width: 736px) {
	.wrapper.spotlight .image { width: 100%; margin: 0 0 1.5em 0; }
}

/* Browsers without aspect-ratio (older Safari) just show the screenshot at its natural height. */
@supports not (aspect-ratio: 16 / 10) {
	.wrapper.spotlight .image img { height: auto; }
}

/* Text links and header button: sentence case instead of the template's spaced capitals. */
a.special:not(.button),
#header nav a {
	font-family: var(--sans);
	letter-spacing: 0;
	text-transform: none;
	font-size: 0.95em;
	font-weight: 600;
}

figure { margin: 0 0 2em 0; }
figcaption { font-size: 0.85em; color: var(--muted); margin-top: 0.6em; }

/* Gallery on the projects page: the wide desktop shots lead, the phone shot sits beside them. */
.gallery {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 1.5em;
	align-items: start;
}

.gallery .stack { display: grid; gap: 1.5em; }

@media screen and (max-width: 736px) {
	.gallery { grid-template-columns: 1fr; }
	.gallery .phone { max-width: 260px; }
}

/* Plain lists of facts (stack, timeline) instead of icon cards. */
.facts {
	list-style: none;
	padding: 0;
	margin: 0 0 2em 0;
	border-top: 1px solid var(--border);
}

.facts li {
	display: grid;
	grid-template-columns: 11em minmax(0, 1fr);
	gap: 1em;
	padding: 0.9em 0;
	border-bottom: 1px solid var(--border);
}

.facts li > span:first-child { color: var(--text); font-weight: 600; }

@media screen and (max-width: 736px) {
	.facts li { grid-template-columns: 1fr; gap: 0.2em; }
}

/* Buttons: one primary (accent) action per screen, the rest outlined. */
.button,
input[type="submit"] {
	box-shadow: inset 0 0 0 1px var(--border);
	color: var(--text) !important;
	font-family: var(--sans);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	border-radius: 6px;
	min-height: 44px;
	line-height: 44px;
	height: auto;
	font-size: 0.95em;
}

.button:hover { background-color: rgba(233, 238, 243, 0.06); }
.button:active { background-color: rgba(233, 238, 243, 0.1); }

.button.primary {
	background-color: var(--accent);
	box-shadow: none;
	color: var(--on-accent) !important;
}

.button.primary:hover { background-color: #52d3a9; }
.button.primary:active { background-color: #34b88d; }

/* Footer contact links */
#footer {
	background-color: var(--bg);
	background-image: none;
}

#footer .links {
	list-style: none;
	padding: 0;
	margin: 0 0 2em 0;
	border-top: 1px solid var(--border);
}

#footer .links li {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	flex-wrap: wrap;
	padding: 0.9em 0;
	border-bottom: 1px solid var(--border);
}

#footer .links li span { color: var(--text); font-weight: 600; }

#footer .copyright { color: var(--muted); }
#footer .copyright li { border-left-color: var(--border); }

/* Section reveal: one short fade so the eye follows the path down the page. */
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
	.reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *:before, *:after { transition: none !important; animation: none !important; }
}

@media screen and (max-width: 736px) {
	#banner h2 { font-size: 2.2em; }
	#banner p { font-size: 1.05em; }
	body, input, select, textarea { font-size: 16px; }
}
