/* ==========================================================================
   Csokonai — alapok: tipográfia, elemi elemek, űrlapok, segédosztályok
   ========================================================================== */

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

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

/* A horgonyra ugrás ne csússzon a ragadós fejléc alá. */
:target,
[id] {
	scroll-margin-top: calc(var(--csk-header-h) + var(--csk-space-md));
}

body {
	margin: 0;
	background-color: var(--csk-bg);
	color: var(--csk-text);
	font-family: var(--csk-font-body);
	font-size: var(--csk-fs-body);
	line-height: var(--csk-lh-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* --- Címsorok ----------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--csk-space-sm);
	color: inherit;
	font-weight: 400;
	text-wrap: balance;
}

h1, h2 {
	font-family: var(--csk-font-display);
	line-height: var(--csk-lh-tight);
	letter-spacing: var(--csk-ls-display);
	text-transform: uppercase;
}

h1 { font-size: var(--csk-fs-h1); }
h2 { font-size: var(--csk-fs-h2); }

h3, h4, h5, h6 {
	font-family: var(--csk-font-body);
	line-height: var(--csk-lh-snug);
	font-weight: 600;
}

h3 { font-size: var(--csk-fs-h3); }
h4 { font-size: var(--csk-fs-h4); }
h5, h6 { font-size: var(--csk-fs-body); }

p {
	margin: 0 0 var(--csk-space-sm);
	text-wrap: pretty;
}

p:last-child {
	margin-bottom: 0;
}

/* --- Kiemelt tipográfiai szerepek ---------------------------------------- */

/* Kurzív szerif — alcímekhez, idézetekhez, hangulati soroknál */
.csk-accent {
	font-family: var(--csk-font-accent);
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

/* Kézírás — csak apró, díszítő szerepben (pl. „a séf ajánlata") */
.csk-hand {
	font-family: var(--csk-font-hand);
	font-size: 1.35em;
	line-height: 1.2;
	color: var(--csk-accent);
}

/* Verzálos, ritkított kisbetűs felirat — szekciócímkékhez */
.csk-eyebrow {
	display: inline-block;
	margin-bottom: var(--csk-space-xs);
	font-family: var(--csk-font-ui);
	font-size: var(--csk-fs-micro);
	font-weight: 600;
	letter-spacing: var(--csk-ls-caps);
	text-transform: uppercase;
	color: var(--csk-accent);
}

.csk-lead {
	font-size: var(--csk-fs-lead);
	line-height: 1.62;
	color: var(--csk-muted);
	max-width: var(--csk-container-text);
}

/* --- Hivatkozások -------------------------------------------------------- */

a {
	color: inherit;
	text-decoration-color: color-mix(in srgb, var(--csk-accent) 60%, transparent);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
	transition: color var(--csk-dur-fast) var(--csk-ease),
	            text-decoration-color var(--csk-dur-fast) var(--csk-ease);
}

a:hover {
	color: var(--csk-accent);
	text-decoration-color: var(--csk-accent);
}

/* Billentyűzetes fókusz — látható, de nem tolakodó */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--csk-accent);
	outline-offset: 3px;
	border-radius: var(--csk-radius-sm);
}

/* --- Média --------------------------------------------------------------- */

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

figure {
	margin: 0;
}

/* --- Listák -------------------------------------------------------------- */

ul, ol {
	margin: 0 0 var(--csk-space-sm);
	padding-left: 1.35em;
}

li + li {
	margin-top: var(--csk-space-3xs);
}

/* Díszítés nélküli lista — navigációkhoz, kártyalistákhoz */
.csk-plain-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.csk-plain-list li + li {
	margin-top: 0;
}

/* --- Elválasztó ---------------------------------------------------------- */

hr,
.csk-rule {
	border: 0;
	height: 1px;
	background-color: var(--csk-line);
	margin: var(--csk-space-lg) 0;
}

/* Arany díszvonal — szekciók közé, rövid, középre zárva */
.csk-rule-ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--csk-space-xs);
	color: var(--csk-accent);
}

.csk-rule-ornament::before,
.csk-rule-ornament::after {
	content: "";
	height: 1px;
	width: min(120px, 18vw);
	background: currentColor;
	opacity: 0.5;
}

/* --- Idézet -------------------------------------------------------------- */

blockquote {
	margin: var(--csk-space-lg) 0;
	padding-left: var(--csk-space-md);
	border-left: 2px solid var(--csk-accent);
	font-family: var(--csk-font-accent);
	font-style: italic;
	font-size: var(--csk-fs-lead);
	color: var(--csk-text);
}

/* --- Gombok -------------------------------------------------------------- */

.csk-btn {
	--btn-bg:     var(--csk-dark);
	--btn-fg:     var(--csk-cream);
	--btn-border: var(--csk-dark);

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--csk-space-2xs);
	min-height: 48px;
	padding: 0.85em 1.9em;
	border: 1px solid var(--btn-border);
	border-radius: var(--csk-radius-pill);
	background-color: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--csk-font-ui);
	font-size: var(--csk-fs-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--csk-dur) var(--csk-ease),
	            color var(--csk-dur) var(--csk-ease),
	            border-color var(--csk-dur) var(--csk-ease),
	            transform var(--csk-dur-fast) var(--csk-ease);
}

.csk-btn:hover {
	--btn-bg:     var(--csk-gold);
	--btn-border: var(--csk-gold);
	--btn-fg:     var(--csk-dark);
	color: var(--btn-fg);
	transform: translateY(-1px);
}

.csk-btn:active {
	transform: translateY(0);
}

/* Elsődleges — arany, a legfontosabb tetteknél (Asztalfoglalás, Rendelés) */
.csk-btn--primary {
	--btn-bg:     var(--csk-gold);
	--btn-border: var(--csk-gold);
	--btn-fg:     var(--csk-dark);
}

.csk-btn--primary:hover {
	--btn-bg:     var(--csk-gold-deep);
	--btn-border: var(--csk-gold-deep);
	--btn-fg:     var(--csk-white);
}

/* Másodlagos — csak körvonal */
.csk-btn--ghost {
	--btn-bg:     transparent;
	--btn-border: currentColor;
	--btn-fg:     var(--csk-text);
}

.csk-btn--ghost:hover {
	--btn-bg:     var(--csk-text);
	--btn-fg:     var(--csk-bg);
	--btn-border: var(--csk-text);
}

.csk-btn--sm {
	min-height: 40px;
	padding: 0.6em 1.35em;
	font-size: var(--csk-fs-micro);
}

.csk-btn--block {
	display: flex;
	width: 100%;
}

/* --- Űrlapok ------------------------------------------------------------- */

label {
	display: block;
	margin-bottom: var(--csk-space-3xs);
	font-family: var(--csk-font-ui);
	font-size: var(--csk-fs-small);
	font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="password"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.7em 0.9em;
	border: 1px solid var(--csk-line);
	border-radius: var(--csk-radius);
	background-color: var(--csk-white);
	color: var(--csk-dark);
	font-family: var(--csk-font-ui);
	font-size: 1rem; /* 16px alatt az iOS ránagyít a mezőre */
	line-height: 1.4;
	transition: border-color var(--csk-dur-fast) var(--csk-ease),
	            box-shadow var(--csk-dur-fast) var(--csk-ease);
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--csk-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--csk-accent) 22%, transparent);
	outline: none;
}

input::placeholder,
textarea::placeholder {
	color: color-mix(in srgb, var(--csk-muted) 75%, transparent);
}

/* --- Táblázatok ---------------------------------------------------------- */

table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--csk-fs-small);
}

th, td {
	padding: var(--csk-space-2xs) var(--csk-space-xs);
	text-align: left;
	border-bottom: 1px solid var(--csk-line);
}

th {
	font-family: var(--csk-font-ui);
	font-weight: 600;
}

/* --- Segédosztályok ------------------------------------------------------ */

.csk-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Ugrás a tartalomra — billentyűzetes és képernyőolvasós használathoz */
.csk-skip-link {
	position: absolute;
	left: var(--csk-space-sm);
	top: -100px;
	z-index: var(--csk-z-overlay);
	padding: 0.7em 1.2em;
	background: var(--csk-dark);
	color: var(--csk-cream);
	border-radius: var(--csk-radius);
	text-decoration: none;
	transition: top var(--csk-dur) var(--csk-ease);
}

.csk-skip-link:focus {
	top: var(--csk-space-sm);
	color: var(--csk-cream);
}

.csk-center { text-align: center; }
.csk-nowrap { white-space: nowrap; }

/* Nyomtatás: a navigáció és a díszítés felesleges papíron. */
@media print {
	.csk-header,
	.csk-footer,
	.csk-nav-toggle,
	.csk-quickbar {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		color: #555;
	}
}
