/*
Theme Name: DMF Portfolio
Theme URI: https://github.com/dmfeisal/dmf-portfolio-theme
Author: DMF
Description: A bold, responsive portfolio theme with editable projects, theme switching, and accessible interactions.
Version: 1.0.0
Requires at least: 6.2
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: dmf-portfolio

DMF Portfolio, Copyright 2026 DMF.
DMF Portfolio is distributed under the terms of the GNU GPL v2 or later.
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --dmf-bg: #f4f3ef;
  --dmf-surface: #deddd8;
  --dmf-text: #111;
  --dmf-muted: #6f6d68;
  --dmf-line: rgba(17, 17, 17, .2);
  --dmf-pad: clamp(1rem, 2vw, 2rem);
  --dmf-container: 1600px;
  --dmf-ease: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="dark"] { --dmf-bg:#111; --dmf-surface:#1c1c1c; --dmf-text:#f4f3ef; --dmf-muted:#aaa8a2; --dmf-line:rgba(244,243,239,.2); color-scheme:dark; }
html[data-theme="yellow"] { --dmf-bg:#f2d43d; --dmf-surface:#dfc22d; --dmf-text:#111; --dmf-muted:#4d451f; --dmf-line:rgba(17,17,17,.22); }
@media (prefers-color-scheme:dark) { html:not([data-theme]) { --dmf-bg:#111; --dmf-surface:#1c1c1c; --dmf-text:#f4f3ef; --dmf-muted:#aaa8a2; --dmf-line:rgba(244,243,239,.2); color-scheme:dark; } }

*,*::before,*::after{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;padding-inline:var(--dmf-pad);background:var(--dmf-bg);color:var(--dmf-text);font-family:Inter,sans-serif;font-size:clamp(1rem,1.4vw,1.25rem);font-weight:500;-webkit-font-smoothing:antialiased;transition:background .35s var(--dmf-ease),color .35s var(--dmf-ease)}
h1,h2,h3,p{margin:0} a{color:inherit;text-decoration:none} img{display:block;max-width:100%} button,input,textarea{font:inherit}.site-shell{width:100%;max-width:var(--dmf-container);margin-inline:auto}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.skip-link{position:fixed;top:1rem;left:1rem;z-index:100;padding:.75rem 1rem;background:var(--dmf-bg);transform:translateY(-200%)}.skip-link:focus{transform:none}a:focus-visible,button:focus-visible{outline:2px solid currentColor;outline-offset:4px}

.site-header{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:1.5rem}.site-brand{font-size:1.25rem;font-weight:600}.site-brand img{max-height:42px;width:auto}.header-actions,.primary-menu{display:flex;align-items:center;gap:1.5rem}.primary-menu{margin:0;padding:0;list-style:none}.primary-menu a{position:relative}.primary-menu a::after{content:"";position:absolute;left:0;bottom:-4px;width:100%;height:1px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .2s var(--dmf-ease)}.primary-menu a:hover::after,.primary-menu .current-menu-item a::after{transform:scaleX(1);transform-origin:left}.theme-toggle{width:40px;height:40px;border:1px solid var(--dmf-line);border-radius:50%;background:transparent;color:inherit;cursor:pointer}.theme-toggle:hover{background:var(--dmf-surface)}

.hero{min-height:calc(100svh - 72px);display:grid;grid-template-rows:auto 1fr auto auto;padding-top:1.5rem}.hero-intro,.hero-footer{display:flex;align-items:center;justify-content:space-between}.hero-intro{color:var(--dmf-muted)}.hero-statement{display:flex;align-items:center;padding-block:4rem}.hero-statement p{width:min(55%,700px);margin-left:auto;font-size:clamp(2rem,4vw,4rem);line-height:1.02;letter-spacing:-.035em}.hero-name{overflow:hidden}.hero-name h1{font-size:clamp(5rem,14.5vw,14rem);font-weight:600;line-height:.95;letter-spacing:-.06em;white-space:nowrap}.hero-footer{margin-top:1.5rem;padding-block:1rem 1.5rem;border-top:1px solid var(--dmf-line);font-size:1.25rem}

.system{min-height:calc(100svh - 72px);display:grid;grid-template-columns:minmax(280px,.8fr) minmax(520px,1.4fr);align-items:center;gap:clamp(3rem,7vw,8rem);padding-block:5rem;border-top:1px solid var(--dmf-line)}.system-copy h2{max-width:9ch;font-size:clamp(3rem,6.5vw,7rem);line-height:.92;letter-spacing:-.06em}.system-copy p{max-width:34rem;margin-top:2rem;color:var(--dmf-muted);font-size:clamp(1.15rem,1.7vw,1.6rem);line-height:1.35}.text-link{display:inline-block;margin-top:2rem;font-weight:600}.note-head{display:flex;justify-content:space-between;gap:1rem;margin-bottom:1rem;color:var(--dmf-muted);font-size:.875rem}.note-head button{padding:0;border:0;background:none;color:inherit;text-decoration:underline;cursor:pointer}.notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1rem,2vw,2rem);min-height:520px;padding:clamp(1rem,2vw,2rem)}.note{--x:0px;--y:0px;--r:-1deg;position:relative;display:flex;flex-direction:column;min-height:220px;padding:clamp(1.25rem,2.5vw,2rem);border:1px solid rgba(17,17,17,.1);background:#f8edb8;color:#25231f;box-shadow:0 12px 28px rgba(17,17,17,.1);cursor:grab;touch-action:pan-y;user-select:none;transform:translate3d(var(--x),var(--y),0) rotate(var(--r));transition:box-shadow .2s var(--dmf-ease)}.note:nth-child(2){--r:1.2deg;background:#f6d0d7;margin-top:2rem}.note:nth-child(3){--r:.6deg;background:#d8ead2;margin-top:-2rem}.note:nth-child(4){--r:-.7deg;background:#d6e6f5}.note.is-dragging{z-index:5;cursor:grabbing;box-shadow:0 18px 38px rgba(17,17,17,.18)}.note h3{font-size:clamp(1.35rem,2.2vw,2rem);line-height:1}.note p{margin-top:1rem;font-size:1rem;line-height:1.4}.note a{align-self:flex-start;margin-top:auto;padding-top:1.5rem;font-size:.875rem;font-weight:700;text-decoration:underline}

.section{padding-block:6rem}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem;margin-bottom:2rem}.section-label{text-transform:uppercase;font-size:1.25rem;font-weight:600}.section-count{color:var(--dmf-muted)}.work-list{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(680px,min(72vw,900px));gap:1.5rem;overflow-x:auto;scroll-snap-type:inline mandatory;scrollbar-width:none;padding-bottom:1rem}.work-list::-webkit-scrollbar{display:none}.work-card{scroll-snap-align:start}.work-card a{display:grid;gap:1rem}.work-media{aspect-ratio:16/9;overflow:hidden;background:var(--dmf-surface)}.work-media img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--dmf-ease)}.work-card:hover img{transform:scale(1.025)}.placeholder{height:100%;display:grid;place-items:center;background:linear-gradient(135deg,var(--dmf-surface),var(--dmf-bg));color:var(--dmf-muted)}.work-title{display:flex;justify-content:space-between;gap:1.5rem}.work-title h3{font-size:clamp(1.5rem,3vw,2.5rem);line-height:1;letter-spacing:-.035em}.work-arrow{font-size:2rem;transition:transform .25s var(--dmf-ease)}.work-card:hover .work-arrow{transform:translate(.15em,-.15em)}.work-meta{color:var(--dmf-muted);font-size:1rem}

.profile-copy{max-width:1050px;margin-left:auto;font-size:clamp(2rem,4vw,4.5rem);font-weight:600;line-height:1.05;letter-spacing:-.035em}.marquee{overflow:hidden;padding-block:3rem}.marquee-track{display:flex;width:max-content;animation:marquee 28s linear infinite}.marquee-group{display:flex;gap:clamp(3rem,7vw,8rem);padding-right:clamp(3rem,7vw,8rem)}.marquee span{font-size:clamp(2rem,4vw,4.5rem);font-weight:600;white-space:nowrap;letter-spacing:-.05em}@keyframes marquee{to{transform:translateX(-50%)}}

.site-footer{min-height:250px;display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding-block:3rem 1.5rem}.footer-menu{display:flex;gap:1.5rem;margin:0;padding:0;list-style:none}.page-header{padding-block:clamp(4rem,10vw,9rem) 4rem}.page-title{font-size:clamp(3.5rem,10vw,10rem);line-height:.9;letter-spacing:-.06em}.entry-content{max-width:860px;margin-left:auto;padding-bottom:8rem;line-height:1.65}.entry-content>*+*{margin-top:1.5em}.entry-content h2{font-size:clamp(2rem,5vw,4rem);line-height:1}.entry-content a{text-decoration:underline}.post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem 1.5rem;padding-bottom:8rem}.pagination{padding-block:2rem 6rem}.pagination .nav-links{display:flex;gap:1rem}.error-page{min-height:70vh;display:grid;align-content:center}.error-page p{margin-top:1.5rem;color:var(--dmf-muted)}

@media(max-width:768px){body{--dmf-pad:1rem}.site-header{min-height:60px;align-items:flex-start;padding-block:1rem}.header-actions{align-items:flex-end;gap:.75rem}.primary-menu{flex-wrap:wrap;justify-content:flex-end;gap:.75rem 1rem;font-size:1rem}.hero{min-height:calc(100svh - 60px)}.hero-intro{align-items:flex-start;flex-direction:column;gap:.25rem}.hero-statement{padding-block:3rem}.hero-statement p{width:100%;margin-left:0;font-size:clamp(2rem,9vw,3.5rem)}.hero-name h1{font-size:clamp(4.5rem,22vw,8rem);white-space:normal}.system{min-height:auto;grid-template-columns:1fr;gap:3rem;padding-block:4rem}.system-copy h2{font-size:clamp(3.5rem,17vw,6rem)}.notes{min-height:0;padding:.5rem}.work-list{grid-auto-columns:88vw}.section{padding-block:4rem}.work-media{aspect-ratio:4/3}.post-grid{grid-template-columns:1fr}.site-footer{align-items:flex-start;flex-direction:column;justify-content:flex-end}.footer-menu{flex-wrap:wrap}.page-title{font-size:clamp(3.5rem,17vw,7rem)}}
@media(max-width:560px){.notes{grid-template-columns:1fr;gap:1.5rem}.note,.note:nth-child(n){min-height:180px;margin-top:0}.site-brand{font-size:1rem}.theme-toggle{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.marquee-track{animation:none}}
