/*--------------------------------------------------------------------- File Name: style.css ---------------------------------------------------------------------*/


/*--------------------------------------------------------------------- import Fonts ---------------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Literata:ital,opsz,wght@0,7..72,200..900;1,7..72,200..900&display=swap');


/*--- skeleton ---*/

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

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #f7fbf2;
    --white: #f4fbf3;
    --ink: #22211d;
    --ink-muted: #383838;
    --ink-faint: #484745;
    --accent: #283616;
    --accent-light: #5e842f;
    --sidebar-w: 260px;
    --header-h: 180px;
    --border: #daa520;
    --hover: #fdfde8;
    --max-w-main-content: 850px;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Literata", serif;
    font-weight: 400;
    line-height: 1.8;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.page-wrap {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    position: relative;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

/*----- SIDEBAR -----*/
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px 28px;
    background: var(--bg);
    z-index: 100;
}

.logo {
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
}

.logo-img {
    display: block;
    width: 100%;
    max-width: 60px;
    height: auto;
    object-fit: contain;
    object-position: center;
}

nav {
    display: flex;
    flex-direction: column;
    font-family: "Lato", san-serif;
    gap: 2px;
    flex: 1;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--ink-muted);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 12px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 8px;
}

nav a .nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

nav a:hover .nav-icon {
    opacity: 0.85;
}

nav a.active .nav-icon {
    opacity: 1;
}

nav a:hover {
    color: var(--accent-light);
    background: none;
}

nav a:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 220, 50, 0.45);
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
    pointer-events: none;
}

nav a.active {
    color: var(--accent);
    background: rgba(218, 165, 32, 0.28);
    font-weight: 500;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.10);
}

/*----- RIGHT COLUMN -----*/

.right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/*----- STICKY ICON HEADER -----*/

.icon-header {
    position: sticky;
    top: 0;
    height: var(--header-h);
    width: 100%;
    max-width: var(--max-w-main-content);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 48px;
    gap: 25px 40px;
    z-index: 90;
    flex-wrap: wrap;
}

.icon-header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none;
}

.icon-header-subtitle {
    width: 100%;
    text-align: center;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0;
    padding-bottom: 6px;
    line-height: 1;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.icon-item:hover {
    opacity: 1;
}

.icon-item.active {
    opacity: 1;
}

.icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.45;
    transition: opacity 0.2s;
}

.icon-item:hover .icon-img {
    opacity: 0.85;
}

.icon-item.active .icon-img {
    opacity: 1;
}

.icon-caption {
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
    white-space: normal;
    text-align: center;
    max-width: 114px;
    line-height: 1.3;
}

.icon-item.active .icon-caption {
    color: var(--accent);
}

.icon-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    margin: 0 8px;
}

.header-label {
    font-size: 0.65rem;
    color: var(--ink-faint);
    letter-spacing: 0.08em;
}

/*----- MAIN CONTENT -----*/

main {
    padding: 56px 48px 80px;
    max-width: var(--max-w-main-content);
}

.section-label {
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

/*----- SECTION -----*/

.content-section {
    margin-bottom: 72px;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    color: var(--accent);
}

p {
    color: var(--ink);
    margin-bottom: 16px;
    font-size: clamp(0.9rem, 0.9vw, 1.1rem);
}

.content-section em { font-style: italic; }

.content-section bt { font-weight: 700; }

.content-section a {
    text-decoration: none;
    color: var(--accent-light);
}

.content-section a:hover {
    color: var(--accent);
    font-weight: 500;
}

.content-section p.blockquote {
    font-style: italic;
    font-size: clamp(0.9rem, 0.9vw, 1.1rem);
    line-height: 1.75;
    color: var(--ink);
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 20px;
    margin: 14px 0;
}

/*----- BIBLIOGRAPHY -----*/

.content-section .bibliography {
    margin-top: 24px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-section .bibliography .bib-item {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--ink-muted);
}

.content-section .bibliography .bib-num {
    font-size: 0.65rem;
    color: var(--accent);
    flex-shrink: 0;
    padding-top: 1px;
}

.content-section .bibliography .bib-item a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-light);
    transition: border-color 0.2s, color 0.2s;
}

.content-section .bibliography .bib-item a:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

/*----- BIO -----*/

.bio-section {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 72px;
}

.bio-photo-wrap {
    flex-shrink: 0;
}

.bio-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--border), 0 8px 24px rgba(26,24,20,0.10);
    display: block;
}

.bio-contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.bio-contact-links a {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: var(--border);
    transition: color 0.2s;
}

.bio-contact-links a:hover {
    color: var(--accent-light);
    font-weight: 300;
}

.bio-text h2 {
    margin-bottom: 12px;
}

.bio-text p {
    margin-bottom: 12px;
    font-size: clamp(0.9rem, 0.9vw, 1.1rem);
}

.bio-text em { font-style: italic; font-weight: 450; }

.bio-text bt { font-weight: 700; }

.bio-text a { color: var(--accent-light); text-decoration: none; }

.bio-text a:hover { color: var(--accent); font-weight: 500; text-decoration: none; }

.bio-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .bio-section {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 24px;
    }

    .bio-photo {
	width: 120px;
	height: 120px;
    }

    .bio-text {
	text-align: left;
    }
}

/*----- CTA (Call To Action) -----*/

.cta-block {
    margin-top: 48px;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--white) 58%, var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-block h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.cta-block p {
    font-size: 0.85rem;
    margin:0;
    max-width: 340px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/*----- PORTFOLIO -----*/

.portfolio-row {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portfolio-row > .portfolio-item > .portfolio-text a {
    color: var(--accent-light);
}

.portfolio-row > .portfolio-item > .portfolio-text a:hover {
    font-weight: 400;
    color: var(--accent);
}

.portfolio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 20px;
    border: none;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--ink);
    background: var(--bg);
}

.portfolio-item:hover {
    background: var(--hover);
}

/* Links row inside a portfolio item */
.portfolio-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
}

.portfolio-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    padding-bottom: 1px;
}

.portfolio-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 500;
}

/* Left: name + info + description stacked */
.portfolio-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.portfolio-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.portfolio-item:hover .portfolio-name {
    font-weight: 500;
}

.portfolio-info {
    font-size: 0.7rem;
    color: var(--ink);
}

.portfolio-desc {
    font-size: 0.8rem;
    color: var(--ink);
}

.portfolio-icons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}

.portfolio-icons img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.85;
}

/*----- FOOTER -----*/

footer {
    border-top: 1px solid var(--border);
    padding: 40px 48px;
    max-width: var(--max-w-main-content);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-identity {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 40%;
}

.footer-name {
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-fine-print {
    font-size: 0.68rem;
    color: var(--ink-faint);
    line-height: 1.2;
    text-transform: uppercase;
}

.footer-fine-print a {
    color: var(--accent);
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    font-size: 0.7rem;
    max-width: 30%;
    text-transform: uppercase;
    text-align: right;
}

.footer-copy a {
    color: var(--accent);
    text-decoration: none;
}

/*----- DIVIDER -----*/

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

/*----- MOBILE TOP BAR (hidden on desktop) -----*/

.mobile-topbar {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,24,20,0.4);
    z-index: 149;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.sidebar-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/*----- TABLET (<1024px) -----*/

@media (max-width: 1024px) {
    :root {
	--sidebar-w: 225px;
    }

    .icon-header {
	padding: 0 28px;
	gap: 24px;
    }

    main {
	padding: 40px 28px 64px;
    }

    footer {
	padding: 32px 28px;
    }

    .footer-identity {
	max-width: 50%;
    }

    .footer-copy {
	max-width: 50%;
    }
}

/*----- SMALL TABLET / LARGE MOBILE (<768px) -----*/

@media (max-width: 790px) {
    body {
	flex-direction: column;
	align-items: stretch;
    }

    .page-wrap {
	flex-direction: column;
	max-width: 100%;
    }

    .sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 100%;
	transform: translateX(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 150;
	box-shadow: 4px 0 32px rgba(26, 24, 20, 0.12);
    }

    .sidebar.open {
	transform: translateX(0);
    }

    .sidebar-overlay {
	display: block;
    }

    .mobile-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 130;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	padding: 0 20px;
	height: 60px;
	flex-shrink: 0;
    }

    .mobile-logo-img {
	height: 28px;
	width: auto;
	object-fit: contain;
    }

    .hamburger {
	display: flex;
    }

    .right-col {
	width: 100%;
    }

    .icon-header {
	position: sticky;
	top: 60px;
	padding: 0 20px;
	gap: 20px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	height: 72px;
    }

    .icon-header::-webkit-scrollbar {
	display: none;
    }

    .header-label {
	display: none;
    }

    main {
	padding: 32px 20px 56px;
    }

    .cta-block {
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding: 28px 24px;
    }

    .cta-block p {
	max-width: 100%;
    }

    .cta-block .btn {
	width: 100%;
	justify-content: center;
    }

    footer {
	flex-direction: column;
	align-items: flex-start;
	padding: 28px 20px;
	gap: 16px;
    }

    .footer-identity {
	max-width: 100%;
    }
    
    .footer-links {
	flex-wrap: wrap;
	gap: 16px;
    }

    .footer-copy {
	max-width: 100%;
    }

    .portfolio-badges {
	justify-content: flex-start;
    }
}

/*----- MOBILE (<480px) -----*/

@media (max-width: 480px) {
    h1 {
	font-size: 2rem;
    }

    .lede {
	font-size: 0.95rem;
    }

    .icon-header {
	gap: 14px;
    }

    .icon-caption {
	font-size: 0.55rem;
    }

    .cta-block {
	padding: 24px 20px;
    }

    .cta-block h3 {
	font-size: 1.1rem;
    }
}
