/*
Theme Name: Sim Singh
Theme URI: https://simsinghsta.com
Author: Sim Singh
Description: Travel, food and ordinary days — Kochi
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: simsinghsta
*/
/* Sim Singh — zine cover and photo wall
   Cobalt field, cream type, tomato stickers, photos pinned slightly crooked. */

:root {
	--cobalt: #1f35b0;
	--cobalt-deep: #16268a;
	--cream: #f6efe3;
	--paper: #efe7d8;
	--tomato: #f04e2f;
	--ink: #17171a;
	--muted: #6b6357;
	--display: "Syne", "Arial Black", sans-serif;
	--body: "Epilogue", "Segoe UI", system-ui, sans-serif;
	--pad: clamp(18px, 4vw, 56px);
	--ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1rem; }

h1, h2, h3 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.015em;
	margin: 0;
}
h2 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }

.wrap { width: min(1300px, 100%); margin-inline: auto; padding-inline: var(--pad); }

.kicker {
	font-family: var(--body);
	font-weight: 600;
	font-size: .68rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	margin: 0;
}

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--cream); padding: .8rem 1.2rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; }

/* ---------- cover ---------- */

.cover {
	background: var(--cobalt);
	color: var(--cream);
	position: relative;
	overflow: hidden;
	padding-bottom: 1.4rem;
}
.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1rem;
	border-bottom: 1px solid rgba(246, 239, 227, .22);
	font-size: .66rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.masthead nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.masthead a:hover { color: var(--tomato); }
.masthead .issue { color: rgba(246, 239, 227, .55); }

.cover-stage {
	position: relative;
	min-height: clamp(280px, 38vw, 460px);
	display: grid;
	place-items: center;
	margin-block: clamp(16px, 2vw, 26px);
}
.cover .name {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(2.3rem, 6.6vw, 5.2rem);
	line-height: .8;
	letter-spacing: -0.045em;
	text-align: center;
	z-index: 1;
	mix-blend-mode: normal;
	padding-block: clamp(10px, 2vw, 30px);
}
.cover .name span { display: block; }
.cover .name .thin {
	font-weight: 500;
	font-size: .19em;
	letter-spacing: .22em;
	line-height: 2.6;
	color: rgba(246, 239, 227, .72);
	text-transform: uppercase;
}

.cover-photo {
	position: absolute;
	right: 5%;
	top: 6%;
	width: clamp(120px, 16vw, 210px);
	transform: rotate(5deg);
	border: 10px solid #fff;
	box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .65);
	z-index: 2;
}
.cover-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cover-photo figcaption {
	background: #fff;
	color: var(--ink);
	font-family: var(--body);
	font-size: .58rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: .35rem .4rem 0;
}

.sticker {
	position: absolute;
	background: var(--tomato);
	color: var(--cream);
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(.7rem, 1.3vw, 1rem);
	letter-spacing: .02em;
	padding: .45rem .8rem;
	z-index: 2;
	box-shadow: 3px 4px 0 rgba(0, 0, 0, .18);
}
.sticker.s1 { left: 6%; top: 14%; transform: rotate(-7deg); }
.sticker.s2 { left: 12%; bottom: 18%; transform: rotate(4deg); background: var(--cream); color: var(--cobalt-deep); }
.sticker.s3 { right: 5%; bottom: 8%; transform: rotate(-3deg); }

.cover-foot {
	display: grid;
	grid-template-columns: 1.4fr .6fr;
	gap: 1.4rem;
	align-items: end;
	border-top: 1px solid rgba(246, 239, 227, .22);
	padding-top: 1rem;
}
.cover-foot p { margin: 0; font-size: .95rem; max-width: 44ch; color: rgba(246, 239, 227, .82); }
.cover-foot .tags { text-align: right; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 239, 227, .6); line-height: 2; }

/* ---------- contents ---------- */

.contents {
	border-bottom: 1px solid var(--ink);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}
.contents a {
	padding: 1rem .9rem 1.1rem;
	border-left: 1px solid rgba(23, 23, 26, .18);
	display: flex;
	align-items: baseline;
	gap: .6rem;
	transition: background .2s var(--ease);
}
.contents a:first-child { border-left: 0; }
.contents a:hover { background: var(--paper); }
.contents b { font-family: var(--display); font-weight: 700; font-size: .8rem; color: var(--tomato); }
.contents span { font-size: .82rem; font-weight: 500; }

/* ---------- sections ---------- */

.sec { padding-block: clamp(44px, 6.5vw, 92px); }
.sec-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.4rem;
	flex-wrap: wrap;
	margin-bottom: clamp(24px, 3.4vw, 40px);
}
.sec-head .kicker { color: var(--tomato); margin-bottom: .5rem; display: block; }
.sec-head p { margin: 0; max-width: 26ch; font-size: .9rem; color: var(--muted); }

/* ---------- the grid (polaroids) ---------- */

.collage {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(18px, 3.4vw, 42px) clamp(14px, 2.4vw, 30px);
	align-items: start;
}
.post { grid-column: span 4; }
.post.wide { grid-column: span 6; }
.post.small { grid-column: span 3; }
.post.down { margin-top: clamp(20px, 4vw, 56px); }
.post.up { margin-top: clamp(0px, -2vw, -10px); }

.frame {
	background: #fff;
	padding: 9px 9px 30px;
	box-shadow: 0 14px 26px -20px rgba(23, 23, 26, .7);
	transform: rotate(var(--rot, 0deg));
	transition: transform .35s var(--ease);
}
.post:hover .frame { transform: rotate(0deg) scale(1.015); }
.frame img { width: 100%; object-fit: cover; }
.frame .portrait { aspect-ratio: 4 / 5; }
.frame .landscape { aspect-ratio: 3 / 2; }
.frame .square { aspect-ratio: 1; }

.post-cap {
	display: flex;
	justify-content: space-between;
	gap: .6rem;
	font-family: var(--body);
	font-size: .62rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding-top: .55rem;
	color: var(--muted);
}
.post-cap b { color: var(--ink); font-weight: 600; }

/* ---------- numbers ---------- */

.numbers { background: var(--ink); color: var(--cream); }
.numbers .wrap { padding-block: clamp(36px, 5vw, 64px); }
.num-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(12px, 2vw, 28px);
	align-items: end;
}
.num b {
	display: block;
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(1.8rem, 3.2vw, 2.6rem);
	line-height: .9;
	letter-spacing: -0.03em;
}
.num span {
	display: block;
	margin-top: .5rem;
	font-size: .64rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(246, 239, 227, .55);
}
.num:nth-child(2) { padding-bottom: clamp(6px, 1.4vw, 18px); }
.num:nth-child(3) { padding-bottom: clamp(2px, .6vw, 8px); }
.numbers .note {
	margin: clamp(20px, 3vw, 32px) 0 0;
	font-size: .86rem;
	color: rgba(246, 239, 227, .6);
	max-width: 52ch;
}

/* ---------- brands ---------- */

.brand-list { list-style: none; margin: 0; padding: 0; }
.brand-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding-block: .85rem;
	border-bottom: 1px solid rgba(23, 23, 26, .2);
}
.brand-list li:first-child { border-top: 1px solid var(--ink); }
.brand-list .who { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: -0.01em; }
.brand-list .what { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }

/* ---------- pull quote ---------- */

.pullquote {
	background: var(--paper);
	border-block: 1px solid var(--ink);
}
.pullquote .wrap {
	display: grid;
	grid-template-columns: 1fr 220px;
	gap: clamp(20px, 4vw, 56px);
	align-items: center;
	padding-block: clamp(34px, 5vw, 64px);
}
.pullquote blockquote {
	margin: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.15rem, 1.9vw, 1.5rem);
	line-height: 1.3;
	letter-spacing: -0.01em;
	max-width: 32ch;
}
.pullquote cite { display: block; margin-top: 1rem; font-family: var(--body); font-style: normal; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pullquote img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 9px solid #fff; transform: rotate(-3deg); box-shadow: 0 14px 26px -20px rgba(23, 23, 26, .7); }

/* ---------- work with me ---------- */

.kit-head {
	background: var(--cobalt);
	color: var(--cream);
	padding-block: clamp(34px, 5vw, 64px);
}
.kit-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.kit-head p { max-width: 48ch; color: rgba(246, 239, 227, .82); margin-top: 1rem; }

.rates { width: 100%; border-collapse: collapse; }
.rates th {
	text-align: left;
	font-family: var(--body);
	font-size: .64rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	padding: .6rem .4rem;
	border-bottom: 1px solid var(--ink);
}
.rates td { padding: 1rem .4rem; border-bottom: 1px solid rgba(23, 23, 26, .18); vertical-align: top; }
.rates .fmt { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.rates .inc { font-size: .86rem; color: var(--muted); max-width: 42ch; }
.rates .money { font-family: var(--display); font-weight: 700; white-space: nowrap; text-align: right; }

.bars { display: grid; gap: .8rem; margin-top: 1.4rem; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 46px; gap: .8rem; align-items: center; font-size: .78rem; }
.bar-row span:last-child { text-align: right; color: var(--muted); }
.bar { height: 10px; background: rgba(23, 23, 26, .1); }
.bar i { display: block; height: 100%; background: var(--cobalt); }
.bar i.tomato { background: var(--tomato); }

.kit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 4vw, 64px); align-items: start; }

.kit-form { display: grid; gap: .9rem; margin-top: 1.2rem; }
.kit-form label { font-family: var(--body); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kit-form input,
.kit-form textarea,
.kit-form select {
	width: 100%;
	background: #fff;
	border: 1px solid rgba(23, 23, 26, .35);
	padding: .7rem .75rem;
	font-size: .95rem;
	border-radius: 0;
}
.kit-form input:focus,
.kit-form textarea:focus,
.kit-form select:focus { outline: none; border-color: var(--cobalt); box-shadow: 3px 3px 0 rgba(31, 53, 176, .18); }
.kit-form textarea { min-height: 110px; resize: vertical; }
.kit-form button {
	justify-self: start;
	background: var(--tomato);
	color: var(--cream);
	border: 2px solid var(--ink);
	padding: .8rem 1.3rem;
	font-family: var(--display);
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .04em;
	cursor: pointer;
	box-shadow: 4px 4px 0 var(--ink);
	transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.kit-form button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: var(--cream); padding-block: clamp(34px, 5vw, 56px) 1.4rem; }
.foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(20px, 3vw, 44px); padding-bottom: 2rem; }
.foot h4 { font-family: var(--body); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 239, 227, .5); margin-bottom: .7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .4rem; font-size: .9rem; }
.foot a:hover { color: var(--tomato); }
.foot .big {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(1.3rem, 2.4vw, 1.9rem);
	line-height: 1.1;
	max-width: 20ch;
}
.foot-note {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	border-top: 1px solid rgba(246, 239, 227, .18);
	padding-top: 1rem;
	font-size: .62rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(246, 239, 227, .5);
}

/* ---------- reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
	.js .reveal.in { opacity: 1; translate: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.frame, .pullquote img, .cover-photo { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
	.contents { grid-template-columns: 1fr 1fr; }
	.contents a:nth-child(3) { border-left: 0; border-top: 1px solid rgba(23, 23, 26, .18); }
	.contents a:nth-child(4) { border-top: 1px solid rgba(23, 23, 26, .18); }
	.post, .post.small { grid-column: span 6; }
	.post.down, .post.up { margin-top: 0; }
	.num-row { grid-template-columns: 1fr 1fr; }
	.kit-grid { grid-template-columns: 1fr; }
	.pullquote .wrap { grid-template-columns: 1fr; }
	.pullquote img { max-width: 220px; }
	.foot .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
	.masthead { flex-wrap: wrap; }
	.masthead nav { gap: .8rem; font-size: .6rem; }
	.masthead .issue { display: none; }
	.cover-stage { min-height: 380px; }
	.cover .name { font-size: clamp(3rem, 21vw, 6rem); }
	.cover-photo { right: 2%; top: 0; width: 150px; border-width: 6px; }
	.sticker.s1 { left: 2%; top: 6%; }
	.sticker.s2 { left: 2%; bottom: 10%; }
	.sticker.s3 { right: 2%; bottom: 2%; }
	.cover-foot { grid-template-columns: 1fr; }
	.cover-foot .tags { text-align: left; }
	.contents { grid-template-columns: 1fr; }
	.contents a { border-left: 0; border-top: 1px solid rgba(23, 23, 26, .18); }
	.post, .post.small { grid-column: span 12; }
	.num-row { grid-template-columns: 1fr 1fr; }
	.brand-list li { display: block; }
	.brand-list .what { text-align: left; }
	.rates .hide-sm { display: none; }
	.foot .cols { grid-template-columns: 1fr; }
}

/* ---------- developer credit ---------- */

.theme-credit {
	font-size: inherit;
	opacity: .75;
	margin: 0;
	letter-spacing: .02em;
	display: inline;
}

.theme-credit a {
	border-bottom: 1px solid currentColor;
	text-decoration: none;
}