/* Irrawaddy Leather: plain, professional retail.
   White base, near-black text, one jade accent used only on call-to-action
   buttons. Smallest text is 13px. Motion is limited to hover colour changes. */

:root {
	--ink: #161513;
	--muted: #5b5852; /* 7:1 on white, 6.4:1 on --soft */
	--bg: #ffffff;
	--soft: #f5f3ef;
	--line: #e4e0d9; /* hairline dividers */
	--edge: #8a867f; /* borders of controls, 3.6:1 on white */
	--accent: #0c6b58;
	--accent-dark: #095243;
	--error: #b3261e;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sans:
		system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
		sans-serif;
	--gutter: 16px;
}

@media (min-width: 768px) {
	:root {
		--gutter: 24px;
	}
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 96px; /* keeps anchors and focus clear of the sticky header */
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	font: 400 1rem / 1.55 var(--sans);
	color: var(--ink);
	background: var(--bg);
}

main {
	flex: 1;
}

main:focus {
	outline: none;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
address {
	margin: 0;
}

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

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

h1 {
	font-size: clamp(1.875rem, 4.5vw, 2.75rem);
	text-wrap: balance; /* avoids a one-word last line */
}

h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	text-wrap: balance;
}

h3 {
	font-size: 1.25rem;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2px;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

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

.wrap {
	width: 100%;
	max-width: 1248px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

.skip {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 100;
	padding: 12px 16px;
	background: var(--ink);
	color: #fff;
}

.skip:focus {
	top: 8px;
}

.eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.hint {
	margin-top: 12px;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--muted);
}

/* ---------- Buttons: accent colour lives here and nowhere else ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 28px;
	border: 1px solid var(--accent);
	border-radius: 2px;
	background: var(--accent);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.btn:hover {
	border-color: var(--accent-dark);
	background: var(--accent-dark);
}

.btn-block {
	width: 100%;
}

.btn-ghost {
	background: transparent;
	border-color: var(--ink);
	color: var(--ink);
}

.btn-ghost:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

/* A button that reads as a text link */
.link {
	padding: 6px 0;
	border: 0;
	background: none;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.link:hover {
	text-decoration-thickness: 2px;
}

/* ---------- Top of page: demo note, header, trust strip ---------- */

.demo-bar {
	padding: 8px var(--gutter);
	background: var(--ink);
	color: #fff;
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: center;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.header-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 16px;
	min-height: 64px;
}

.brand {
	font: 700 1.0625rem / 1.05 var(--serif);
	letter-spacing: -0.01em;
	text-decoration: none;
}

.brand span {
	display: block;
}

.site-header ul {
	display: flex;
}

.site-header nav a {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 7px;
	border-bottom: 2px solid transparent;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
	border-bottom-color: var(--ink);
}

.badge {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: var(--ink);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

@media (min-width: 600px) {
	.header-row {
		min-height: 72px;
	}

	.brand {
		font-size: 1.5rem;
	}

	.brand span {
		display: inline;
	}

	.site-header nav a {
		padding: 0 14px;
		font-size: 0.9375rem;
	}
}

.trust {
	background: var(--soft);
	border-bottom: 1px solid var(--line);
}

.trust ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 16px;
	padding-block: 10px;
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: center;
}

@media (min-width: 720px) {
	.trust ul {
		display: flex;
		justify-content: center;
		gap: 0;
	}

	.trust li + li {
		margin-left: 24px;
		padding-left: 24px;
		border-left: 1px solid var(--edge);
	}
}

/* ---------- Home: hero ---------- */

.hero {
	display: grid;
}

.hero-img {
	width: 100%;
	height: clamp(220px, 56vw, 560px);
	object-fit: cover;
	object-position: 50% 55%;
	background: var(--soft);
}

.hero-panel {
	max-width: 34rem;
	padding-block: 28px 8px;
}

.hero-panel h1 {
	margin: 8px 0 16px;
}

.hero-cta {
	margin-top: 24px;
}

@media (min-width: 1000px) {
	.hero > * {
		grid-area: 1 / 1;
	}

	.hero-img {
		height: clamp(480px, 42vw, 600px);
	}

	.hero-inner {
		align-self: end;
		padding-bottom: 40px;
	}

	.hero-panel {
		max-width: 29rem;
		padding: 40px;
		background: var(--bg);
	}
}

/* ---------- Sections ---------- */

.section {
	padding-block: 56px;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.more {
	padding-block: 6px;
	font-size: 0.9375rem;
	font-weight: 600;
}

@media (min-width: 768px) {
	.section {
		padding-block: 88px;
	}
}

.page-head {
	padding-block: 40px 24px;
}

.page-head p {
	margin-top: 8px;
	color: var(--muted);
}

/* ---------- Product grid and cards ---------- */

.grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px 24px;
}

@media (min-width: 600px) {
	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 1, 2, 3, then 4 columns. The four-up home grid skips the 3-column step. */
@media (min-width: 900px) {
	.grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

@media (min-width: 1200px) {
	.grid,
	.grid--four {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.card {
	display: flex;
	flex-direction: column;
}

.card img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--soft);
}

/* Keep the jacket in frame when a tall photo is cropped to 4:5 */
[data-id="yangon-rider"] img {
	object-position: 50% 30%;
}

[data-id="inle-classic"] img {
	object-position: 50% 80%;
}

[data-id="bagan-street"] img {
	object-position: 50% 10%;
}

[data-id="shan-shearling"] img {
	object-position: 50% 60%;
}

[data-id="irrawaddy-bomber"] img {
	object-position: 50% 70%;
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: 16px;
}

.cat {
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.card h3 {
	margin-top: 2px;
}

.blurb {
	margin-top: 4px;
	font-size: 0.9375rem;
	color: var(--muted);
}

.price {
	margin-top: 8px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* Pinned to the card bottom so buttons line up across a row */
.buy {
	margin-top: auto;
	padding-top: 16px;
}

.size-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.8125rem;
	font-weight: 600;
}

.sizes {
	display: flex;
	gap: 6px;
	margin-top: 4px;
}

.size {
	flex: 1;
	min-width: 0;
	height: 44px;
	border: 1px solid var(--edge);
	border-radius: 2px;
	background: var(--bg);
	font-size: 0.875rem;
	font-weight: 600;
}

.size:hover {
	border-color: var(--ink);
}

.size[aria-pressed="true"] {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.msg {
	margin-top: 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--error);
}

.msg:empty {
	display: none;
}

.buy .btn {
	margin-top: 12px;
}

.note {
	margin-top: 10px;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--muted);
	text-align: center;
}

/* ---------- Shop toolbar ---------- */

.shop {
	padding-bottom: 88px;
}

.toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 32px;
	padding-block: 16px;
	border-block: 1px solid var(--line);
}

.tool-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.tool-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--muted);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--edge);
	border-radius: 2px;
	background: var(--bg);
	font-size: 0.875rem;
	font-weight: 500;
}

.chip:hover {
	border-color: var(--ink);
}

.chip[aria-pressed="true"] {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.count {
	margin: 16px 0 24px;
	font-size: 0.8125rem;
	color: var(--muted);
}

/* ---------- Home: story ---------- */

.story {
	background: var(--soft);
}

.story-grid {
	display: grid;
	gap: 32px;
	padding-block: 56px;
}

.story-grid img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 45%;
}

.story-grid p {
	margin-top: 16px;
	max-width: 36rem;
}

.story h2 {
	margin-top: 8px;
}

.steps {
	display: grid;
	gap: 20px;
	margin-top: 28px;
	counter-reset: step;
}

.steps li {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
}

.steps li::before {
	counter-increment: step;
	content: counter(step, decimal-leading-zero);
	font: 400 1.25rem / 1.2 var(--serif);
	color: var(--muted);
}

.steps h3 {
	font-size: 1.125rem;
}

.steps p {
	margin-top: 4px;
	color: var(--muted);
}

@media (min-width: 800px) {
	.story-grid {
		grid-template-columns: 5fr 6fr;
		gap: 72px;
		align-items: center;
		padding-block: 88px;
	}
}

/* ---------- Forms ---------- */

.field {
	margin-top: 16px;
}

.field label,
.news-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 600;
}

input:not([type="checkbox"]),
textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--edge);
	border-radius: 2px;
	background: var(--bg);
	font-size: 1rem; /* 16px stops iOS zooming into the field */
}

textarea {
	display: block;
	resize: vertical;
}

input:hover,
textarea:hover {
	border-color: var(--ink);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
	border-color: var(--error);
}

.field-error {
	margin-top: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--error);
}

.field-error:empty,
.form-ok:empty {
	display: none;
}

.form-ok {
	margin-top: 12px;
	font-weight: 600;
}

/* ---------- Cart ---------- */

.empty {
	padding-block: 40px 96px;
}

.empty p {
	margin-top: 12px;
	color: var(--muted);
}

.empty .btn {
	margin-top: 8px;
}

/* Mobile reads top to bottom: items, totals, details. On wide screens the
   totals sit beside the items and the form and stay in view while scrolling. */
.cart-layout {
	display: grid;
	gap: 40px;
	padding-bottom: 72px;
}

/* display: grid would otherwise override the hidden attribute */
.cart-layout[hidden] {
	display: none;
}

@media (min-width: 900px) {
	.cart-layout {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		grid-template-areas:
			"items summary"
			"checkout summary";
		grid-template-rows: auto 1fr;
		gap: 48px 64px;
		align-items: start;
	}

	.cart-items {
		grid-area: items;
	}

	.summary {
		grid-area: summary;
		position: sticky;
		top: 96px;
	}

	.cart-checkout {
		grid-area: checkout;
	}
}

.lines {
	border-top: 1px solid var(--line);
}

.line {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) auto;
	gap: 16px;
	padding-block: 20px;
	border-bottom: 1px solid var(--line);
}

.line img {
	width: 80px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--soft);
}

.line h3 {
	font-size: 1.125rem;
}

.line-meta {
	margin-top: 2px;
	font-size: 0.875rem;
	color: var(--muted);
}

.qty {
	display: inline-flex;
	align-items: center;
	margin-top: 12px;
	border: 1px solid var(--edge);
	border-radius: 2px;
}

.qty button {
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	font-size: 1.125rem;
}

.qty button:hover:not(:disabled) {
	background: var(--soft);
}

.qty button:disabled {
	color: var(--edge);
	cursor: not-allowed;
}

.qty span {
	min-width: 32px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.line [data-act="remove"] {
	margin-left: 16px;
}

.line-total {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.lines-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 16px;
	font-size: 0.9375rem;
}

.lines-foot > * {
	padding-block: 6px;
}

.lines-foot .link {
	font-size: 0.9375rem;
}

@media (min-width: 600px) {
	.line {
		grid-template-columns: 96px minmax(0, 1fr) auto;
		gap: 24px;
	}

	.line img {
		width: 96px;
	}
}

.summary {
	padding: 24px;
	background: var(--soft);
}

.summary h2,
.checkout h2 {
	font-size: 1.5rem;
}

.totals {
	margin-top: 16px;
}

.totals div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 8px;
}

.totals dt {
	color: var(--muted);
}

.totals dd {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.totals .grand {
	align-items: baseline;
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--edge);
}

.grand dt {
	font-weight: 600;
	color: var(--ink);
}

.grand .sub {
	display: block;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--muted);
}

.grand dd {
	font: 400 1.75rem / 1 var(--serif);
}

/* Two columns when there is room, one when there is not (no breakpoint) */
.checkout-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0 24px;
}

.checkout-fields .field--wide {
	grid-column: 1 / -1;
}

.thanks {
	margin-top: 32px;
	padding: 24px;
	border: 1px solid var(--ink);
}

.thanks h2,
.thanks h3 {
	font-size: 1.375rem;
}

.thanks p {
	margin-top: 12px;
}

/* ---------- Contact ---------- */

.contact-grid {
	display: grid;
	gap: 40px;
	padding-bottom: 24px;
}

.contact-grid h2 {
	margin-bottom: 8px;
}

.showroom {
	padding: 24px;
	background: var(--soft);
}

.showroom address {
	margin-top: 16px;
	font-style: normal;
}

.showroom p {
	margin-top: 12px;
}

.showroom .hint {
	margin-top: 16px;
}

@media (min-width: 860px) {
	.contact-grid {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		gap: 72px;
		align-items: start;
	}
}

.faq {
	margin-top: 24px;
	border-top: 1px solid var(--line);
}

.faq details {
	border-bottom: 1px solid var(--line);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding-block: 12px;
	font: 400 1.125rem / 1.3 var(--serif);
	cursor: pointer;
	list-style: none;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	font: 400 1.5rem / 1 var(--sans);
}

.faq details[open] summary::after {
	content: "\2212";
}

/* Where supported, the decorative symbol gets an empty text alternative */
@supports (content: "x" / "") {
	.faq summary::after {
		content: "+" / "";
	}

	.faq details[open] summary::after {
		content: "\2212" / "";
	}
}

.faq-body {
	display: grid;
	gap: 16px;
	justify-items: start;
	max-width: 40rem;
	padding-bottom: 24px;
	color: var(--muted);
}

/* ---------- Footer ---------- */

.news {
	padding-block: 40px;
	background: var(--soft);
	border-top: 1px solid var(--line);
}

.news-inner {
	display: grid;
	gap: 24px;
}

.news h2 {
	font-size: 1.5rem;
}

.news p {
	margin-top: 6px;
	color: var(--muted);
}

.news .field-error,
.news .form-ok {
	margin-top: 8px;
}

.news-row {
	display: flex;
	gap: 8px;
}

.news-row input {
	flex: 1;
	min-width: 0;
}

.news-row .btn {
	padding-inline: 20px;
}

@media (min-width: 800px) {
	.news-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px;
		align-items: center;
	}
}

.foot {
	padding-block: 48px 32px;
	background: var(--ink);
	color: #e9e6e0;
}

.foot :focus-visible {
	outline-color: #fff;
}

.foot-grid {
	display: grid;
	gap: 32px;
}

.foot-grid p,
.foot-grid li {
	font-size: 0.9375rem;
}

.foot-grid li + li {
	margin-top: 4px;
}

.foot-grid li a,
.foot address a {
	display: inline-block;
	padding-block: 2px;
}

.foot address {
	font-size: 0.9375rem;
	font-style: normal;
}

.foot-title {
	margin-bottom: 12px;
	font: 600 0.8125rem / 1.4 var(--sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #b3afa6;
}

.legal {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #3a3835;
	font-size: 0.8125rem;
	color: #b3afa6;
}

@media (min-width: 800px) {
	.foot-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
		gap: 48px;
	}
}

/* ---------- Size guide dialog and toast ---------- */

dialog {
	width: min(92vw, 440px);
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: var(--bg);
	color: var(--ink);
}

dialog::backdrop {
	background: rgb(22 21 19 / 0.6);
}

.dialog-body {
	padding: 24px;
}

.dialog-body h2 {
	margin-bottom: 16px;
	font-size: 1.5rem;
}

.dialog-body .btn {
	margin-top: 20px;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

caption {
	padding-bottom: 8px;
	font-size: 0.8125rem;
	color: var(--muted);
	text-align: left;
}

th,
td {
	padding: 10px 8px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

thead th {
	border-bottom-color: var(--ink);
	font-size: 0.8125rem;
}

.toast {
	position: fixed;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	left: 50%;
	z-index: 40;
	max-width: calc(100vw - 32px);
	padding: 12px 20px;
	border-radius: 2px;
	background: var(--ink);
	color: #fff;
	font-size: 0.875rem;
	text-align: center;
	transform: translateX(-50%);
	pointer-events: none;
}

/* Stays in the page (so screen readers hear it) but is invisible when empty */
.toast:empty {
	opacity: 0;
}

/* Hover colour changes are the only motion, and only if the visitor allows it */
@media (prefers-reduced-motion: no-preference) {
	.btn,
	.size,
	.chip {
		transition:
			background-color 0.15s,
			border-color 0.15s,
			color 0.15s;
	}
}
