/*
Theme Name: NUZANTHRAPRESS
Theme URI: https://github.com/nuzanthrapress
Author: Nuzanthra
Author URI: https://sbnet.space
Description: Theme WordPress super ringan, modular & elegan dengan sistem design-token Sage Green (light + dark mode), terinspirasi GeneratePress. Mobile-first, aksesibel (WCAG 2.2 AA), SEO + GEO ready (schema, Open Graph, speakable), block editor parity via theme.json, dan block patterns modular siap pakai.
Version: 2.6.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nuzanthrapress
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, block-styles, block-patterns, wide-blocks, accessibility-ready, sticky-post, footer-widgets

NUZANTHRAPRESS WordPress Theme, (C) 2026 Nuzanthra
NUZANTHRAPRESS is distributed under the terms of the GNU GPL v2 or later.

--------------------------------------------------------------------------
  CATATAN ARSITEKTUR (v2.0.0 — "Élite Sage")
  - Token desain & layout ada di assets/css/main.css (primitives + semantic).
  - style.css = reset, tipografi, form, aksesibilitas, WordPress core classes.
  - Warna semantik (--color-*) di-override oleh Customizer via inline CSS.
  - Dark mode: [data-theme="dark"] + prefers-color-scheme (lihat main.css).
--------------------------------------------------------------------------
*/

/* ==========================================================================
   CSS Reset — Minimal & Modern
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 96px; /* offset sticky header saat anchor-jump */
}

body {
	font-family: var(--font-body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
	font-size: var(--font-size-body, clamp(1rem, 0.95rem + 0.25vw, 1.125rem));
	line-height: var(--line-height, 1.65);
	color: var(--color-text, #262b27);
	background-color: var(--color-bg, #faf9f5);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   Typography — fluid (clamp) + di-override Customizer via --fs-*
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading, var(--font-body));
	color: var(--color-heading, #2f3a33);
	line-height: 1.2;
	margin-bottom: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1, clamp(1.75rem, 1.5rem + 2vw, 2.5rem)); }
h2 { font-size: var(--fs-h2, clamp(1.35rem, 1.15rem + 1vw, 1.75rem)); }
h3 { font-size: var(--fs-h3, clamp(1.15rem, 1rem + 0.75vw, 1.35rem)); }
h4 { font-size: var(--fs-h4, clamp(1rem, 0.9rem + 0.5vw, 1.15rem)); }

p {
	margin-bottom: 1.25rem;
}

a {
	color: var(--color-link, #4a5d52);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--color-link-hover, #c08457);
	text-decoration: underline;
}

a:focus-visible {
	outline: 2px solid var(--color-accent, #c08457);
	outline-offset: 2px;
	border-radius: 2px;
}

strong, b { font-weight: 700; }
em, i { font-style: italic; }
small { font-size: 0.875rem; }

/* Lists */

ul, ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

li { margin-bottom: 0.25rem; }

li > ul,
li > ol {
	margin-bottom: 0;
	margin-top: 0.25rem;
}

/* Blockquote */

blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.5rem;
	border-left: 4px solid var(--color-accent, #c08457);
	background: var(--color-bg-alt, #f2f5ec);
	border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
	font-style: italic;
}

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

blockquote cite {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	font-style: normal;
	color: var(--color-muted, #6b7269);
}

/* Code */

code {
	font-family: "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.875em;
	background: var(--color-bg-alt, #f2f5ec);
	padding: 0.2em 0.4em;
	border-radius: 4px;
	border: 1px solid var(--color-border, #e4e6dd);
}

pre {
	background: #20271f;
	color: #e8ebe2;
	padding: 1.25rem;
	border-radius: var(--radius-md, 12px);
	overflow-x: auto;
	margin: 1.5rem 0;
	font-size: 0.875rem;
	line-height: 1.6;
}

pre code {
	background: none;
	padding: 0;
	border: none;
	font-size: inherit;
	color: inherit;
}

/* Tables */

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

th, td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--color-border, #e4e6dd);
}

th {
	font-weight: 700;
	background: var(--color-bg-alt, #f2f5ec);
}

/* Figure & Caption */

figure { margin: 1.5rem 0; }

figcaption,
.wp-caption-text {
	font-size: 0.875rem;
	color: var(--color-muted, #6b7269);
	margin-top: 0.5rem;
	text-align: center;
}

.wp-caption { max-width: 100%; }
.wp-caption img { display: block; margin: 0 auto; }

/* Images */

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

img.aligncenter { margin: 1.5rem auto; }
img.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
img.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }

/* Horizontal Rule */

hr {
	border: none;
	border-top: 1px solid var(--color-border, #e4e6dd);
	margin: 2rem 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

input,
textarea,
select,
button {
	font-family: inherit;
	font-size: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--color-border, #e4e6dd);
	border-radius: var(--radius-sm, 8px);
	background: var(--color-surface, #ffffff);
	color: var(--color-text, #262b27);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
	outline: none;
	border-color: var(--color-accent, #c08457);
	box-shadow: 0 0 0 3px var(--color-accent-soft, rgba(192,132,87,0.18));
}

button,
.button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	min-height: 48px;
	background: var(--color-accent, #c08457);
	color: var(--color-on-accent, #ffffff);
	border: none;
	border-radius: var(--radius-md, 12px);
	cursor: pointer;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
	background: var(--color-accent-hover, #a96e45);
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm, 0 4px 12px rgba(47,58,51,0.12));
	text-decoration: none;
	color: var(--color-on-accent, #ffffff);
}

button:focus-visible,
.button:focus-visible,
input[type="submit"]:focus-visible {
	outline: 2px solid var(--color-accent, #c08457);
	outline-offset: 2px;
}

/* Secondary / ghost button */
.button.is-secondary {
	background: transparent;
	color: var(--color-link, #4a5d52);
	border: 1.5px solid var(--color-link, #4a5d52);
}

.button.is-secondary:hover {
	background: var(--color-link, #4a5d52);
	color: #fff;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 9999;
	padding: 0.75rem 1.5rem;
	background: var(--color-accent, #c08457);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 var(--radius-sm, 8px) 0;
}

.skip-link:focus {
	top: 0;
	color: #fff;
	text-decoration: none;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0,0,0,0.15);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   WordPress Core Classes
   ========================================================================== */

.alignnone { margin: 1.5rem 0; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }

.alignwide {
	margin-left: calc(50% - 50vw + 50%);
	margin-right: calc(50% - 50vw + 50%);
	max-width: 100vw;
	width: auto;
}

.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wp-block-image .alignleft,
.wp-block-image .alignright { max-width: 50%; }

.wp-smiley { border: none; margin: 0; padding: 0; }
.sticky { display: block; }
.bypostauthor { display: block; }
.gallery-caption { display: block; }

/* ==========================================================================
   Block Styles
   ========================================================================== */

.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

.has-small-font-size { font-size: 0.875rem; }
.has-medium-font-size { font-size: 1.25rem; }
.has-large-font-size { font-size: 2rem; }
.has-x-large-font-size { font-size: 2.5rem; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.clearfix::after { content: ""; display: table; clear: both; }
.hidden { display: none; }
.text-center { text-align: center; }

/* ==========================================================================
   Reduced Motion (aksesibilitas vestibular)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	*,
	*::before,
	*::after {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	a, a:visited { text-decoration: underline; }
	a[href]::after { content: " (" attr(href) ")"; }
	abbr[title]::after { content: " (" attr(title) ")"; }
	a[href^="#"]::after,
	a[href^="javascript:"]::after { content: ""; }

	pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
	thead { display: table-header-group; }
	tr, img { page-break-inside: avoid; }
	img { max-width: 100% !important; }
	p, h2, h3 { orphans: 3; widows: 3; }
	h2, h3 { page-break-after: avoid; }

	.site-header,
	.site-footer,
	.site-sidebar,
	.comments-area,
	.nav-links,
	.back-to-top,
	.theme-toggle,
	.skip-link { display: none !important; }
}
