/*
Theme Name: INK
Theme URI: https://ink.paymentswani.com
Author: INK
Description: INK's monochrome studio theme: generous whitespace, editorial serif headlines and light and dark appearances. The artwork brings the colour. Built for the INK Studio plugin.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: ink
*/

/* Newsreader (SIL Open Font License) stands in for Apple's New York wherever the system has no ui-serif. */
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-500.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

/* Tokens. Spacing, type roles and motion follow the ArtGallery app's design kit; the colour is black and white only. */
:root {
	--ink-bg: #ffffff;
	--ink-surface: #f5f5f3;
	--ink-text: #111111;
	--ink-text-2: #5c5c5c;
	--ink-line: #e5e5e2;
	--ink-control: #8a8a86;
	--ink-primary: #111111;
	--ink-on-primary: #ffffff;
	--ink-error: #a94b45;
	--ink-ok: #3f6b4e;
	--ink-logo: #000000;
	--ink-display: ui-serif, "New York", "Newsreader", "Iowan Old Style", Georgia, serif;
	--ink-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ink-gutter: clamp(16px, 4vw, 40px);
	--ink-max: 1240px;
	--ink-radius: 3px;
	--ink-header: 64px;
	--ink-motion: 180ms;
	--ink-ease: cubic-bezier(0.42, 0, 0.58, 1);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink-bg: #0c0c0c; --ink-surface: #181818; --ink-text: #f2f2f0; --ink-text-2: #a6a6a2; --ink-line: #272727; --ink-control: #747471;
		--ink-primary: #f2f2f0; --ink-on-primary: #0c0c0c; --ink-error: #e3918a; --ink-ok: #8dbb9b; --ink-logo: #ffffff; color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--ink-bg: #0c0c0c; --ink-surface: #181818; --ink-text: #f2f2f0; --ink-text-2: #a6a6a2; --ink-line: #272727; --ink-control: #747471;
	--ink-primary: #f2f2f0; --ink-on-primary: #0c0c0c; --ink-error: #e3918a; --ink-ok: #8dbb9b; --ink-logo: #ffffff; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ink-header) + 16px); }
body { margin: 0; background: var(--ink-bg); color: var(--ink-text); font: 400 17px/1.6 var(--ink-body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--ink-display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink-text); outline-offset: 3px; }
::selection { background: var(--ink-text); color: var(--ink-bg); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -200px; z-index: 100; padding: 12px 16px; background: var(--ink-text); color: var(--ink-bg); }
.skip-link:focus { top: 12px; }

/* Header: the wordmark on the left, five quiet links on the right. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink-bg); border-bottom: 1px solid var(--ink-line); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
.site-header__inner { max-width: var(--ink-max); height: var(--ink-header); margin: 0 auto; padding: 0 var(--ink-gutter); display: flex; align-items: center; gap: 24px; }
/* The logo is only ever pure black or pure white, with clear space of half its letter height (brand guidelines). */
.wordmark { display: inline-flex; color: var(--ink-logo); text-decoration: none; padding: 11px 0; }
.wordmark svg { width: auto; height: 22px; }
.wordmark--primary svg { height: auto; width: 160px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a, .site-action { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink-text); text-decoration: none; }
.site-nav a:hover, .site-action:hover, .site-nav .current-menu-item > a { text-decoration: underline; }
.site-nav .current-menu-item > a[href*="#"]:not(:hover) { text-decoration: none; } /* "How It Works" is a section of the home page, not a page */
.site-actions { display: flex; align-items: center; gap: 20px; }
.site-bag { position: relative; justify-content: center; min-width: 44px; }
.site-bag__count { position: absolute; top: 4px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink-text); color: var(--ink-bg); font-size: 11px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.site-menu-toggle { display: none; min-height: 44px; padding: 0 4px; border: 0; background: none; font-size: 15px; cursor: pointer; }
@media (max-width: 899px) {
	.site-header__inner { gap: 12px; }
	.site-actions { margin-left: auto; gap: 12px; }
	.site-menu-toggle { display: inline-flex; align-items: center; }
	.site-nav { display: none; position: absolute; top: var(--ink-header); left: 0; right: 0; margin: 0; background: var(--ink-bg); border-bottom: 1px solid var(--ink-line); }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--ink-gutter) 20px; }
	.site-nav a { font-size: 17px; width: 100%; }
}

/* Pages */
.site-main { min-height: 60vh; }
.page-wrap { max-width: var(--ink-max); margin: 0 auto; padding: 0 var(--ink-gutter) clamp(64px, 10vw, 120px); }
.page-header { max-width: 760px; padding-top: 48px; margin-bottom: 32px; }
.page-title { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; }
.prose { max-width: 680px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose .ink-lede { font-family: var(--ink-display); font-size: 1.4rem; color: var(--ink-text); }
.ink-draft { border: 1px solid var(--ink-line); padding: 12px 16px; font-size: 15px; }
.not-found { text-align: center; padding-top: 96px; }

/* Footer */
.site-footer { border-top: 1px solid var(--ink-line); }
.site-footer__inner { max-width: var(--ink-max); margin: 0 auto; padding: 48px var(--ink-gutter) 32px; display: grid; gap: 28px; }
.site-footer__brand { display: flex; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer nav a, .site-footer__social a { display: inline-flex; min-height: 44px; align-items: center; font-size: 15px; text-decoration: none; }
.site-footer nav a:hover, .site-footer__social a:hover { text-decoration: underline; }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-text-2); }
.site-footer__meta p { margin: 0; }
.site-footer select { min-height: 36px; padding: 4px 8px; border: 1px solid var(--ink-control); border-radius: var(--ink-radius); background: var(--ink-bg); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
