/* Forsíða (Forsíða.dc.html; mobile: Farsími.dc.html M1). */

/* ---------- Hero ---------- */

.gs-hero {
	background: var(--gs-yellow);
	color: var(--gs-on-yellow);
	border-bottom: var(--gs-frame) solid var(--gs-ink);
}

.gs-hero__inner {
	max-width: var(--gs-max);
	margin: 0 auto;
	padding: 56px var(--gs-gutter) 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.gs-hero__stats {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.gs-hero__title {
	max-width: 967px;
	font-size: 73px;
	font-weight: 900;
	line-height: .95;
	text-wrap: balance;
}

.gs-bigsearch {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	text-align: left;
	max-width: 1000px;
	background: var(--gs-surface);
	border: var(--gs-frame) solid var(--gs-ink);
	color: var(--gs-ink);
}

.gs-bigsearch:focus-within {
	box-shadow: var(--gs-focus);
}

.gs-bigsearch__field {
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	cursor: text;
	min-width: 0;
}

.gs-bigsearch__field--what {
	flex: 1.5 1 280px;
	border-right: 1px solid var(--gs-ink);
}

.gs-bigsearch__field--where {
	flex: 1 1 200px;
}

.gs-bigsearch__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.gs-bigsearch__input {
	width: 100%;
	border: 0;
	padding: 0;
	background: transparent;
	font-size: 18px;
	color: var(--gs-ink);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.gs-bigsearch__input::placeholder {
	color: var(--gs-muted);
	opacity: 1;
}

/* "Allt landið" reads as the default value, not a hint. */
.gs-bigsearch__field--where .gs-bigsearch__input::placeholder {
	color: var(--gs-ink);
}

.gs-bigsearch__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.gs-bigsearch__input:focus-visible {
	outline: none;
}

.gs-bigsearch__where {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gs-bigsearch__where .gs-near span {
	white-space: nowrap;
}

.gs-bigsearch__submit {
	min-height: 64px;
	padding: 0 36px;
	border: 0;
	background: var(--gs-btn-bg);
	color: var(--gs-btn-fg);
	font-size: 20px;
	font-weight: 800;
	font-stretch: 75%;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.gs-bigsearch .gs-suggest {
	text-align: left;
}

.gs-hero__popular {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
}

.gs-hero__popular-label {
	padding-right: 4px;
	font-size: 13px;
	font-weight: 600;
}

.gs-tag {
	border: 1px solid var(--gs-ink);
	background: var(--gs-yellow-soft);
	color: var(--gs-ink);
	padding: 4px 10px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--gs-fast) var(--gs-ease);
}

.gs-tag:hover {
	background: var(--gs-surface);
}

/* ---------- Ads ---------- */

.gs-front__ad-top {
	padding-top: 32px;
}

.gs-front__ad-mid {
	padding: 16px 0;
}

.gs-front__ad-bottom {
	padding-top: 40px;
	padding-bottom: 40px;
}

/* ---------- Flokkar A–Ö ---------- */

.gs-front__cats {
	padding-top: 48px;
	padding-bottom: 48px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.gs-letters {
	display: flex;
	flex-wrap: wrap;
	border: 1px solid var(--gs-ink);
	background: var(--gs-surface);
}

.gs-letters__l {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid var(--gs-line);
	border-bottom: 1px solid var(--gs-line);
	font-size: 20px;
	font-weight: 800;
	font-stretch: 65%;
	color: var(--gs-ink);
	text-decoration: none;
	transition: background var(--gs-fast) var(--gs-ease);
}

.gs-letters__l:hover {
	background: var(--gs-yellow);
	color: var(--gs-on-yellow);
}

.gs-catgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	border-top: 1px solid var(--gs-ink);
}

.gs-catgrid__item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	padding: 12px 12px 12px 0;
	border-bottom: 1px solid var(--gs-line);
	color: var(--gs-ink);
	text-decoration: none;
	transition: background var(--gs-fast) var(--gs-ease);
}

.gs-catgrid__item:hover {
	background: var(--gs-yellow-soft);
}

.gs-catgrid__name {
	font-size: 15px;
	font-weight: 600;
}

.gs-catgrid__n {
	font-size: 13px;
	font-weight: 500;
	color: var(--gs-muted);
}

/* ---------- Main column + sidebar ---------- */

.gs-front__split {
	padding-bottom: 48px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px;
}

.gs-front__main {
	flex: 1 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gs-front__block {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gs-sechead--nowrap {
	flex-wrap: nowrap;
}

.gs-front__side {
	flex: 0 1 300px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Listing rows */

.gs-rows {
	border-top: 1px solid var(--gs-ink);
}

.gs-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--gs-line);
	color: var(--gs-ink);
	text-decoration: none;
}

.gs-row:hover .gs-row__name {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gs-row__main {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.gs-row__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.gs-row__name {
	font-size: 16px;
	font-weight: 700;
}

.gs-row__meta {
	font-size: 14px;
	color: var(--gs-body);
}

.gs-row__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	text-align: right;
}

.gs-row__kt {
	font-size: 14px;
	font-weight: 500;
}

.gs-row__date {
	font-size: 12px;
	color: var(--gs-muted);
}

.gs-row--archive {
	padding: 13px 10px;
	background: var(--gs-archive-bg);
	color: var(--gs-archive-ink);
	transition: background var(--gs-fast) var(--gs-ease);
}

.gs-row--archive:hover {
	background: var(--gs-archive-panel);
}

.gs-row--archive .gs-row__meta,
.gs-row--archive .gs-row__date {
	color: inherit;
}

/* Claim prompt */

.gs-claimbox {
	border: var(--gs-frame) solid var(--gs-ink);
	background: var(--gs-surface);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gs-claimbox__title {
	font-size: 26px;
	font-weight: 800;
	line-height: .95;
	font-stretch: 65%;
	text-transform: uppercase;
}

.gs-claimbox__text {
	font-size: 14px;
	line-height: 1.5;
	color: var(--gs-body);
}

/* ---------- Úr skjalasafninu ---------- */

.gs-archive-band {
	background: var(--gs-archive-panel);
	color: var(--gs-archive-ink);
	border-top: var(--gs-frame) solid var(--gs-ink);
	border-bottom: var(--gs-frame) solid var(--gs-ink);
}

.gs-archive-band__inner {
	max-width: var(--gs-max);
	margin: 0 auto;
	padding: 48px var(--gs-gutter);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gs-archive-band__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
}

.gs-archive-band__titles {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gs-archive-band__kicker {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.gs-archive-band__title {
	max-width: 700px;
	font-size: 56px;
	font-weight: 800;
	line-height: .92;
	font-stretch: 62%;
	text-transform: uppercase;
}

.gs-archive-band__link {
	border: 2px solid var(--gs-archive-ink);
	padding: 10px 16px;
	color: var(--gs-archive-ink);
	font-size: 14px;
	font-weight: 800;
	font-stretch: 75%;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform var(--gs-fast) var(--gs-ease), box-shadow var(--gs-fast) var(--gs-ease);
}

.gs-archive-band__link:hover {
	transform: translate(-2px, -2px);
	box-shadow: 3px 3px 0 var(--gs-archive-ink);
}

.gs-archive-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.gs-archive-card {
	display: flex;
	flex-direction: column;
	border: 1px dashed var(--gs-archive-rule);
	background: var(--gs-archive-bg);
	color: var(--gs-archive-ink);
	text-decoration: none;
	transition: transform var(--gs-fast) var(--gs-ease), box-shadow var(--gs-fast) var(--gs-ease);
}

.gs-archive-card:hover {
	transform: translate(-2px, -2px);
	box-shadow: 4px 4px 0 var(--gs-archive-ink);
}

.gs-archive-card__img {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px dashed var(--gs-archive-rule);
	background: repeating-linear-gradient(135deg, var(--gs-archive-panel) 0 10px, var(--gs-archive-stripe) 10px 20px);
	font-size: 12px;
	font-weight: 500;
}

.gs-archive-card__body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gs-archive-card__years {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.gs-archive-card__name {
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	font-stretch: 65%;
	text-transform: uppercase;
}

.gs-archive-card__note {
	font-size: 13px;
	line-height: 1.45;
}

/* ---------- Mobile (Farsími M1) ---------- */

@media (max-width: 767px) {
	.gs-hero__inner {
		padding: 24px 16px;
		gap: 16px;
	}

	.gs-hero__stats {
		display: none;
	}

	.gs-hero__title {
		font-size: 40px;
	}

	.gs-bigsearch {
		flex-direction: column;
	}

	.gs-bigsearch__field {
		flex: none;
		padding: 10px 12px;
		border-right: 0;
		border-bottom: 1px solid var(--gs-ink);
	}

	.gs-bigsearch__field--what {
		border-right: 0;
	}

	.gs-bigsearch__label {
		font-size: 10px;
	}

	.gs-bigsearch__input {
		font-size: 16px;
	}

	.gs-bigsearch__submit {
		min-height: 52px;
		font-size: 18px;
	}

	.gs-hero__popular {
		align-self: stretch;
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin: 0 -16px;
		padding: 0 16px;
	}

	.gs-hero__popular::-webkit-scrollbar {
		display: none;
	}

	.gs-hero__popular-label {
		display: none;
	}

	.gs-tag {
		padding: 6px 10px;
	}

	.gs-front__ad-top {
		padding-top: 16px;
	}

	.gs-front__cats {
		padding-top: 16px;
		padding-bottom: 24px;
		gap: 12px;
	}

	.gs-front__cats .gs-h2,
	.gs-front__block .gs-h2 {
		font-size: 30px;
		font-stretch: 62%;
	}

	.gs-letters__l {
		font-size: 18px;
	}

	.gs-catgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gs-catgrid__item {
		padding-right: 8px;
	}

	.gs-sechead--nowrap {
		flex-wrap: wrap;
	}

	.gs-front__split {
		gap: 24px;
	}

	.gs-front__main,
	.gs-front__side {
		flex-basis: 100%;
	}

	.gs-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}

	.gs-row__side {
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
		text-align: left;
	}

	.gs-row__name {
		font-size: 15px;
	}

	.gs-row__meta {
		font-size: 13px;
	}

	.gs-archive-band__inner {
		padding: 32px 16px;
	}

	.gs-archive-band__title {
		font-size: 40px;
	}
}

/* =============================================================================================
 * 404 (404.dc.html). Timeline: 150 ms numbers + back page · 700 ms the yellow page lifts ·
 * 1000 ms it falls, ghost outline + "?" appear · 1500 ms the link cloud fades in.
 * =========================================================================================== */

.gs-404 {
	--u: 1px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	padding-top: 56px;
	padding-bottom: 72px;
}

.gs-404__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(28 * var(--u));
	height: calc(300 * var(--u));
}

.gs-404__num {
	font-size: calc(280 * var(--u));
	font-weight: 900;
	font-stretch: 62%;
	line-height: .8;
}

.gs-404__stack {
	position: relative;
	flex: none;
	width: calc(220 * var(--u));
	height: calc(220 * var(--u));
}

.gs-404__p {
	position: absolute;
	width: calc(150 * var(--u));
	height: calc(150 * var(--u));
	border: 3px solid var(--gs-ink);
}

.gs-404__p--back {
	left: calc(70 * var(--u));
	top: 0;
	background: var(--gs-surface);
}

.gs-404__p--mid {
	left: calc(35 * var(--u));
	top: calc(35 * var(--u));
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gs-inverse-bg);
	border-color: var(--gs-inverse-bg);
}

.gs-404__q {
	color: var(--gs-yellow);
	font-size: calc(64 * var(--u));
	font-weight: 900;
	font-stretch: 62%;
	line-height: 1;
}

.gs-404__p--ghost {
	left: 0;
	top: calc(70 * var(--u));
	border-style: dashed;
}

.gs-404__p--g {
	left: 0;
	top: calc(70 * var(--u));
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gs-yellow);
	border-color: #1A1A1A;
	color: #1A1A1A;
	font-size: calc(96 * var(--u));
	font-weight: 900;
	font-stretch: 62%;
	line-height: 1;
	transform-origin: 20% 100%;
	opacity: 0;
}

.gs-404__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	max-width: 680px;
	text-align: center;
}

.gs-404__kicker {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gs-muted);
}

.gs-404__title {
	margin: 0;
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 900;
	font-stretch: 62%;
	line-height: .9;
	text-wrap: balance;
}

.gs-404__lead {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
	color: var(--gs-body);
	text-wrap: pretty;
}



.gs-404__search {
	width: 100%;
	max-width: 860px;
	box-shadow: 6px 6px 0 var(--gs-shadow);
}

.gs-404__search .gs-bigsearch__submit {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gs-404__search .gs-bigsearch__submit .gs-icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
}

.gs-404__browse {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	max-width: 980px;
	padding-top: 12px;
}

.gs-404__rule {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.gs-404__rule::before,
.gs-404__rule::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--gs-ink);
}

.gs-404__cloud {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 12px;
}

.gs-404__c {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--gs-ink);
	text-decoration: none;
	transition: box-shadow var(--gs-fast) var(--gs-ease);
}

.gs-404__c:hover {
	color: var(--gs-ink);
	box-shadow: 3px 3px 0 var(--gs-shadow);
}

.gs-404__c--l { padding: 10px 18px; border: 3px solid var(--gs-ink); background: var(--gs-surface); font-size: 34px; font-weight: 900; font-stretch: 62%; line-height: 1; text-transform: uppercase; }
.gs-404__c--m { padding: 8px 14px; border: 2px solid var(--gs-ink); background: var(--gs-surface); font-size: 22px; font-weight: 800; font-stretch: 65%; line-height: 1; text-transform: uppercase; }
.gs-404__c--s { padding: 6px 11px; border: 1px solid var(--gs-ink); font-size: 15px; font-weight: 600; line-height: 1; }
.gs-404__c--y { padding: 10px 18px; border: 3px solid #1A1A1A; background: var(--gs-yellow); color: #1A1A1A; font-size: 30px; font-weight: 900; font-stretch: 62%; line-height: 1; text-transform: uppercase; }
.gs-404__c--y:hover { color: #1A1A1A; }
.gs-404__c--k { padding: 8px 14px; border: 2px solid var(--gs-btn-bg); background: var(--gs-btn-bg); color: var(--gs-btn-fg); font-size: 18px; font-weight: 800; font-stretch: 75%; line-height: 1; text-transform: uppercase; }
.gs-404__c--k:hover { color: var(--gs-btn-fg); }
.gs-404__c--a { padding: 8px 14px; border: 2px dashed var(--gs-archive-rule); background: var(--gs-archive-bg); color: var(--gs-archive-ink); font-size: 22px; font-weight: 800; font-stretch: 65%; line-height: 1; text-transform: uppercase; }
.gs-404__c--a:hover { color: var(--gs-archive-ink); }

.gs-404__n {
	font-size: 12px;
	font-weight: 500;
	font-stretch: 100%;
	opacity: .7;
}

/* Animation (plays once on load; the final state is the default, so nothing is hidden without it) */
.gs-404__p--g { opacity: 0; }

.gs-404.is-play .gs-404__num--l { animation: gs404-num-l 320ms var(--gs-ease) 150ms both; }
.gs-404.is-play .gs-404__num--r { animation: gs404-num-r 320ms var(--gs-ease) 150ms both; }
.gs-404.is-play .gs-404__p--back { animation: gs404-back 320ms var(--gs-ease) 150ms both; }
.gs-404.is-play .gs-404__p--g { animation: gs404-fall 1500ms linear 0ms both; }
.gs-404.is-play .gs-404__p--ghost { animation: gs404-fade 200ms var(--gs-ease) 1200ms both; }
.gs-404.is-play .gs-404__q { animation: gs404-q 320ms var(--gs-ease) 1120ms both; }
.gs-404.is-play .gs-404__c { animation: gs404-up 320ms var(--gs-ease) calc(1500ms + var(--i) * 40ms) both; }

@keyframes gs404-num-l { from { opacity: 0; transform: translateX(16px); } }
@keyframes gs404-num-r { from { opacity: 0; transform: translateX(-16px); } }
@keyframes gs404-back { from { left: calc(35 * var(--u)); top: calc(35 * var(--u)); } }
@keyframes gs404-fade { from { opacity: 0; } }
@keyframes gs404-q { from { opacity: 0; transform: scale(.6); } }
@keyframes gs404-up { from { opacity: 0; transform: translateY(8px); } }
/* Over 1500 ms: rest until 700 · lift 700–940 · hold · fall 1000–1480 (accelerating), fading out from 1180 */
@keyframes gs404-fall {
	0%, 46.7% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
	62.7% { opacity: 1; transform: translate(-6px, -10px) rotate(-6deg); }
	66.7% { opacity: 1; transform: translate(-6px, -10px) rotate(-6deg); animation-timing-function: cubic-bezier(.4, 0, 1, 1); }
	78.7% { opacity: 1; }
	98.7%, 100% { opacity: 0; transform: translate(-60px, 260px) rotate(-38deg); }
}

@media (prefers-reduced-motion: reduce) {
	.gs-404.is-play * { animation: none !important; }
}

@media (max-width: 767px) {
	.gs-404 {
		--u: .48px;
		gap: 24px;
		padding-top: 28px;
		padding-bottom: 48px;
	}

	.gs-404__lead { font-size: 16px; }
	.gs-404__search { box-shadow: 4px 4px 0 var(--gs-shadow); }
	.gs-404__c--l { font-size: 24px; padding: 8px 14px; }
	.gs-404__c--y { font-size: 22px; padding: 8px 14px; }
	.gs-404__c--m, .gs-404__c--a { font-size: 17px; }
}
