/*
Theme Name: Bihani
Theme URI: https://diyathapa.com.np/
Author: Diya Thapa
Author URI: https://diyathapa.com.np/
Description: A soft, elegant portfolio and blog with your logo and menu in a side column. Bihani means morning in Nepali. Edit the homepage from Appearance > Customize > Portfolio.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: bihani
Tags: portfolio, blog, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Fonts (bundled, no external requests) */
@font-face { font-family: "Marcellus"; src: url("assets/fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mulish"; src: url("assets/fonts/mulish-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mulish"; src: url("assets/fonts/mulish-latin-wght-italic.woff2") format("woff2"); font-weight: 200 1000; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Marcellus"; src: url("assets/fonts/marcellus-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mulish"; src: url("assets/fonts/mulish-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mulish"; src: url("assets/fonts/mulish-latin-ext-wght-italic.woff2") format("woff2"); font-weight: 200 1000; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--mist: #edf3f2;
	--white: #fcfdfd;
	--sky: #dbe9ef;
	--sage: #dfebe1;
	--apricot: #f8e5d6;
	--lilac: #e8e5f1;
	--ink: #1e383d;
	--muted: #4c656a;
	--accent: #2f6f6a;
	--sun: #f2bd92;
	--line: #d3e0df;
	--display: "Marcellus", "Palatino Linotype", Georgia, serif;
	--body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 58rem;
	--gutter: clamp(1.25rem, 4.5vw, 4rem);
	--space: clamp(3.5rem, 7vw, 6rem);
	--side: 19rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); overflow-wrap: break-word; }
img, video, iframe, embed { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 400; line-height: 1.18; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.4rem; }
h4, h5, h6 { font-size: 1.15rem; }
p { margin: 0 0 1.2em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: .75rem; left: .75rem; z-index: 100; width: auto; height: auto; clip-path: none; padding: .7rem 1rem; background: var(--white); border-radius: .5rem; }

/* Buttons */
.button, button[type="submit"], input[type="submit"], .wp-block-search__button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.6rem; border: 1.5px solid var(--accent); border-radius: .6rem; background: var(--accent); color: #fff; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button--quiet { background: transparent; color: var(--ink); border-color: var(--ink); }

/* Forms */
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, select { width: 100%; padding: .75rem 1rem; border: 1.5px solid #7f9c9d; border-radius: .75rem; background: var(--white); color: var(--ink); font: inherit; }
textarea { resize: vertical; }
label { font-weight: 600; }


/* Shell: profile column beside the content */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--sage) var(--side), transparent var(--side)); }
.page { min-width: 0; container-type: inline-size; }
.side { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 2rem; height: 100vh; overflow-y: auto; padding: 2rem 1.5rem; background: linear-gradient(175deg, var(--sky), var(--apricot) 45%, var(--sage) 92%); }
.admin-bar .side { top: 32px; height: calc(100vh - 32px); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--ink); text-align: center; text-decoration: none; }
.brand__logo { display: grid; place-items: center; width: 100%; min-height: 9rem; padding: 1.25rem; border-radius: 1.25rem; background: var(--white); }
.brand__logo img { display: block; width: auto; max-width: 100%; max-height: 11rem; }
.brand__name { font: 400 1.65rem/1.2 var(--display); }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: .55rem .9rem; border-radius: .6rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { background: var(--white); color: var(--ink); }
.site-nav .sub-menu { padding-left: 1rem; }
.nav-toggle { display: none; min-height: 2.75rem; padding: .5rem 1.1rem; border: 1.5px solid var(--ink); border-radius: .6rem; background: transparent; color: var(--ink); font: 700 .95rem var(--body); cursor: pointer; }
.side__social { margin-top: auto; padding-inline: .9rem; }
.side .social a { color: var(--ink); }

/* Top of homepage */
.hero { padding-block: clamp(3.5rem, 11vh, 8rem) var(--space); background: radial-gradient(42% 65% at 88% 8%, var(--apricot), transparent 75%), radial-gradient(55% 75% at 55% 0, var(--sky), transparent 75%); }
.hero h1 { max-width: 15ch; margin-bottom: .45em; font-size: clamp(2.6rem, 6.4vw, 5.25rem); line-height: 1.08; }
.hero__intro { max-width: 36rem; color: var(--muted); font-size: 1.25rem; }
.hero__logo { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Homepage sections */
.section { padding-block: var(--space); }
.section--tight { padding-top: 0; }
.section--white { background: var(--white); }
.section__head h2 { margin-bottom: 1.25rem; }
.section__head p { color: var(--muted); }
.section__head--wide { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 2rem; }

.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.topics li { display: flex; }
.topics a { display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; width: 100%; min-height: 9rem; padding: 1.5rem; border: 1.5px solid transparent; border-radius: 1rem; background: var(--sky); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.topics li:nth-child(4n+2) a { background: var(--apricot); }
.topics li:nth-child(4n+3) a { background: var(--sage); }
.topics li:nth-child(4n+4) a { background: var(--lilac); }
.topics a:hover { border-color: var(--accent); }
.topics__name { font: 400 1.65rem/1.2 var(--display); }
.topics__count { order: 3; font-weight: 600; }

.about__text { max-width: 40rem; font-size: 1.25rem; }
.about__text > :last-child { margin-bottom: 0; }
.about__image { display: block; margin-block: 0 1.5rem; border-radius: 1rem; }

.services { margin: 0; padding: 0; list-style: none; }
.services li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.services h3, .services p { margin: 0; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 2.5rem 1.5rem; }
.project__media { display: block; aspect-ratio: 3 / 2; margin-bottom: 1.1rem; overflow: hidden; border-radius: 1rem; background: var(--sky); }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project h3 a, .post-row h2 a, .journal h3 a { color: var(--ink); text-decoration: none; }
.project h3 a:hover, .post-row h2 a:hover, .journal h3 a:hover { color: var(--accent); text-decoration: underline; }
.project p { color: var(--muted); }

.journal__item { display: flex; gap: 1.5rem; align-items: flex-start; padding-block: 1.75rem; border-top: 1px solid var(--line); }
.journal__item > div { flex: 1; min-width: 0; }
.journal time { flex: 0 0 5.5rem; display: flex; flex-direction: column; align-items: center; padding-block: .75rem; border-radius: 3rem 3rem .75rem .75rem; background: var(--sage); font-size: .85rem; font-weight: 600; }
.journal__day { font: 400 2rem/1.2 var(--display); }
.journal h3 { margin-bottom: .35rem; }
.journal p { margin: 0; color: var(--muted); }
.journal__media img { display: block; width: clamp(6rem, 18cqw, 10rem); aspect-ratio: 1; object-fit: cover; border-radius: .75rem; }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2rem; margin: 0; }
.skills dt { margin-bottom: .75rem; font: 400 1.35rem var(--display); }
.skills dd { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.chip { padding: .35rem .9rem; border-radius: .6rem; background: var(--white); border: 1px solid var(--line); }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 2.25rem 2.25rem; }
.timeline li::before { content: ""; position: absolute; z-index: 1; left: 0; top: .4rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 .3rem var(--apricot); }
.timeline li::after { content: ""; position: absolute; left: calc(.4rem - 1px); top: .4rem; bottom: -.4rem; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: .2rem; }
.timeline__meta { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0 0 .5rem; color: var(--muted); font-weight: 600; }
.timeline p:last-child { margin-bottom: 0; }

.meta { display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; margin: 0; color: var(--muted); font-size: .95rem; }
.post-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: start; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.post-row:first-child { padding-top: 0; border-top: 0; }
.post-row h2, .post-row h3 { margin-bottom: .4rem; }
.post-row p { margin: .5rem 0 0; color: var(--muted); }
.post-row__media img { display: block; width: clamp(5.5rem, 18cqw, 11rem); aspect-ratio: 4 / 3; object-fit: cover; border-radius: .75rem; }

/* Contact */
.contact { background: var(--sky); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form p { margin: 0; }
.form label { display: block; margin-bottom: .4rem; }
.form__full { grid-column: 1 / -1; }
.form__trap { position: absolute; left: -9999px; }
.notice-box { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-radius: .75rem; background: var(--sage); }
.notice-box--error { background: var(--apricot); }
.contact__details { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.contact .social { margin-bottom: 1.5rem; }
.social { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.owner-hint { padding: 1.25rem; border: 2px dashed #7f9c9d; border-radius: 1rem; color: var(--muted); }

/* Blog, archives, pages */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) 2.5rem; background: radial-gradient(45% 100% at 85% 0, var(--apricot), transparent 70%), radial-gradient(65% 130% at 70% 0, var(--sky), transparent 75%); }
.page-head h1 { margin-bottom: .35em; }
.page-head p { max-width: 40rem; color: var(--muted); }
.page-head p:last-child { margin-bottom: 0; }
.topic-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.topic-links a { display: block; padding: .4rem 1.1rem; border-radius: 2rem; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.topic-links a:hover, .topic-links a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.listing { padding-block: 3rem var(--space); }
.listing > * { max-width: 56rem; }
.listing .post-row h2 { margin-bottom: .4rem; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.listing .post-row:first-child { padding-top: 0; }
.pagination, .page-links { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { display: inline-block; min-width: 2.75rem; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 2rem; text-align: center; text-decoration: none; }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-form { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 32rem; margin-top: 1.5rem; }
.search-form label { flex: 1 1 14rem; }

/* Reading view */
.reading { max-width: calc(44rem + 2 * var(--gutter)); }
.entry-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.entry-head h1 { margin-bottom: .5em; }
.entry-cats { margin-bottom: .75rem; font-weight: 600; }
.entry-cats a + a { margin-left: .75rem; }
.entry-image { margin: 0 0 2.5rem; }
.entry-image img { display: block; width: 100%; border-radius: 1.25rem; }
.entry-content { font-size: 1.125rem; line-height: 1.75; padding-bottom: 3rem; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content h2 { margin-top: 1.8em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.entry-content h3, .entry-content h4 { margin-top: 1.6em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { margin: 2rem 0; padding: 1.5rem 1.75rem; border-radius: 1rem; background: var(--sage); }
.entry-content blockquote > :last-child { margin-bottom: 0; }
.entry-content pre { overflow-x: auto; padding: 1.25rem; border-radius: .75rem; background: var(--ink); color: #eef6f5; font-size: .95rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry-content th, .entry-content td { padding: .7rem .9rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--sky); }
.entry-content .wp-block-table, .entry-content figure.wp-block-table { overflow-x: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content .wp-block-button__link { border-radius: .6rem; }
.alignleft { float: left; margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.entry-content .alignwide { width: min(60rem, 100cqw - 2 * var(--gutter)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100cqw; max-width: none; margin-left: calc(50% - 50cqw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { color: var(--muted); font-size: .9rem; }
.sticky .meta::before { content: "Pinned"; font-weight: 600; color: var(--accent); }
.bypostauthor > .comment-body .fn::after { content: " (author)"; font-weight: 400; color: var(--muted); }
.entry-tags { padding-bottom: 2rem; }
.post-navigation { padding-block: 2rem; border-top: 1px solid var(--line); }
.post-navigation .nav-links { justify-content: space-between; gap: 1.5rem; }
.post-navigation .nav-links > div { flex: 1 1 15rem; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { text-decoration: none; }
.post-navigation span { display: block; }
.post-navigation .nav-subtitle { color: var(--muted); font-size: .95rem; }
.related { margin-top: 1rem; background: var(--white); }
.related .wrap { max-width: calc(44rem + 2 * var(--gutter)); }
.comments { padding-block: 3rem var(--space); }
.comment-list, .comment-list .children { padding: 0; list-style: none; }
.comment-list .children { padding-left: 1.5rem; }
.comment-body { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: .5rem; }
.comment-form label { display: block; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; margin-left: .4rem; }

/* Footer */
.site-footer { padding-block: 2.5rem; background: var(--white); border-top: 1px solid var(--line); }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.footer-widgets h2, .footer-widgets h3 { font-size: 1.25rem; }
.footer-widgets ul { padding: 0; list-style: none; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer-row p { margin: 0; }

@media (max-width: 1199px) { .services li { grid-template-columns: minmax(0, 1fr); } :root { --side: 16rem; } }
@media (max-width: 960px) {
	.shell { display: block; background: none; }
	.side, .admin-bar .side { position: static; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; height: auto; overflow: visible; padding: .75rem var(--gutter); background: var(--sage); }
	.brand { flex-direction: row; gap: .65rem; min-width: 0; max-width: calc(100% - 6.5rem); text-align: left; }
	.brand__logo { width: auto; min-height: 0; padding: .3rem; border-radius: .6rem; }
	.brand__logo img { max-width: 7rem; max-height: 2.5rem; }
	.brand__name { font-size: 1.35rem; }
	.home.has-logo .brand__logo { display: none; }
	.js .nav-toggle { display: inline-flex; align-items: center; }
	.site-nav { width: 100%; }
	.js .site-nav { display: none; }
	.js .site-nav.is-open { display: block; }
	.site-nav a { padding: .7rem .5rem; }
	.side__social { display: none; }
	.hero { padding-top: 2.5rem; text-align: center; }
	.hero__logo { display: grid; place-items: center; width: min(100%, 15rem); min-height: 10rem; margin: 0 auto 2rem; padding: 1.5rem; border-radius: 1.5rem; background: var(--white); }
	.hero__logo img { display: block; width: auto; max-width: 100%; max-height: 11rem; }
	.hero h1, .hero__intro { margin-inline: auto; }
	.hero .actions { justify-content: center; }
}
@media (max-width: 560px) {
	.form { grid-template-columns: 1fr; }
	.post-row { grid-template-columns: minmax(0, 1fr); }
	.post-row__media { order: -1; }
	.post-row__media img { width: 100%; aspect-ratio: 16 / 9; }
	.journal__item { gap: 1rem; }
	.journal time { flex-basis: 4.25rem; }
	.journal__day { font-size: 1.6rem; }
	.journal__media { display: none; }
	.actions .button { flex: 1 1 100%; }
	.alignleft, .alignright { float: none; margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
