
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Silkscreen:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Text:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,300;0,400;0,700;1,400;1,700&family=PT+Serif:wght@400;700&display=swap');


html, body {
    height: 100%;
}

body {
    /* font-size: 0.9em;  Makes everything 10% smaller */
    font-family: "Roboto Mono", monospace;
    font-weight: 300;
    background-color:  #dcd2c3;/*#c7bfab;/*#CDE5D9;/*#D3EADA;/*#d2e7d6; /*#C1E1D1;/*#D1E1C1; /* #f4f4f4;*/
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
}

/* Top header with brand + tagline */
.top-header {
  padding: 40px 20px;
  background-color: #F2F1ED;
  align-items: center;
  display: flex;
  justify-content: space-between;
}

#logo {
    flex: 0 0 auto; /* This allows the logo to take as much space as it needs without pushing other elements */
    margin-left: 20px; /* Optional: space between logo and brand name */
    width: 80px; /* size of the circular container */
    height: 80px; /* same as width for perfect circle */
    border-radius: 50%; /* makes it circular */
    overflow: hidden; /* clips image inside the circle */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff; /* optional: circle background color */
}

#logo img {
    width: 100%; /* Keep the width as is */
    height: 100%;
    object-fit: cover; /* makes sure the image scales and fills the circle */
    display: block;
}

.brand-container {
    display: flex;
    flex-direction: column; /* stack brand-row + secondary tagline */
   /* align-items: center;  align at top */
    align-items: flex-start;
    gap: 6px; /* space between brand and taglines */
}

.brand-name-wrap {
    position: relative;
    display: inline-block; /* width = brand name */
}

#brandName_first {
  font-size: clamp(22px, 4vw, 44px);
  /* font-size: clamp(23px, 4.2vw, 46px); */
  font-family: "Silkscreen", serif;
  font-weight: 400;
  color: #444;
}

#tagline {
    /* font-size: clamp(14px, 2vw, 18px); */
    /* font-size: clamp(10.5px, 1.3vw, 13px); */

    position: absolute;
    top: 100%;              /* below brand name */
    left: 50%;              /* 👈 start at center of brand */
    margin-top: 6px;

    font-size: clamp(12px, 1.6vw, 16px); 
    font-weight: 500;
    color: #606060; /*#505050;*/
    background-color: white;/*white; /* light gray background */
    padding: 6px 14px;         /* vertical + horizontal spacing */
    border-radius: 20px;       /* fully rounded ends */
    display: inline-block;      /* keeps box tight around text */

    white-space: nowrap;  
}

.editorial-layout,
.about-section {
    flex: 1;

    display: flex;
    gap: 48px;              /* space between content & sidebar */
    max-width: 1200px;      /* keeps nice margins like FlowingData */
    margin: 60px auto;      /* centers the whole block */
    padding: 0 20px;
    align-items: flex-start;
}

.right-sidebar {
    flex: 0 0 320px;   /* fixed width */
    padding-right: 32px; /* padding-right: 48px; */
}

.right-sidebar .sidebar-box:first-child {
    margin-top: 100px; /* only the first box */
}

.right-sidebar .sidebar-box:not(:first-child) {
    margin-top: 50px;  /* normal spacing for the rest */
}

.right-sidebar .sidebar-box p.date {
    margin: 0 0 2px 0; /* small margin below date */
}

.right-sidebar .sidebar-box p.title {
    margin: 0;         /* remove extra gap above title */
}

.right-sidebar .sidebar-box p.date small {
    color: #777;      /* grey/faded color */
    font-weight: 300; /* lighter font */
    font-size: 0.85em;
}

.right-sidebar .sidebar-box p.title small a {
    color: #444;       /* darker for title */
    font-weight: 400;  /* bold */
    text-decoration: none;
}

.right-sidebar .sidebar-box p.title small a:hover {
    text-decoration: underline;
}

.sidebar-box h1 {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
}

.sidebar-subtitle {
    font-size: 12px;
    letter-spacing: 0.06em;
    /* text-transform: uppercase; */
    font-weight: 600;
    color: #777;
    margin: 16px 0 8px;
}


.sidebar-divider {
    border: none;                 /* remove default */
    height: 1px;
   /* background-color: #e6e4df;    /* very soft warm grey */
    margin: 15px 0;               /* space above & below */

    background-color: rgba(0,0,0,0.08);
}

.site-footer {
    padding: 16px 20px;
    border-top: 1px solid #e6e4df; /* subtle line */
    background-color: #F6F5F2;

    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;

    font-size: 12px;
    color: #707070;
    text-align: center; /* keeps wrapping centered */
    gap: 6px; /* space between inline elements */
}

.footer-brand {
    font-family: "Silkscreen", serif; /* same as your main brand */
    font-weight: 400;
    font-size: 13px; /* slightly smaller than main brand */
    color: #404040;   /* subtle but visible */
}

.featured-projects {
  max-width: 1000px;
  margin-top: 60px;
  padding: 0 20px;
  font-family: 'Wix Madefor Text', serif; /* Apply font to entire section */

  flex: 1;          /* take remaining width */
}

.featured-projects h2 {
  font-family: "Roboto Mono", monospace; /* keep monospace style */
  font-weight: 600; /* bold enough for emphasis */
  font-size: clamp(14px, 2vw, 20px); /* smaller than before */
  text-align: left;
  margin-bottom: 10px;
}

.project {
  display: flex;
  flex-direction: row; /* image + text side by side */
  border-radius: 16px;
  overflow: hidden; /* make sure image rounds with box */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 40px;
  height: 250px; /* Instead of fixed height */
}

.project:nth-child(even) {
  flex-direction: row-reverse; /* alternate image side */
}

.project-text {
  flex: 1;
  padding: 24px; /*28px 30px; /* Increased from 24px */
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center text */
  background-color: #F2F1ED; /* optional: make text side slightly lighter */
}

.project-text h3 {
  font-family: 'Wix Madefor Text', serif;
  color: #444;
  font-weight: 600;
  font-size: clamp(12px, 1.8vw, 16px) !important; /* Reduced from 14px-20px */
  margin-bottom: 3px;
  margin-top: 50px;
  display: flow-root; 
}

.project-text p {
  font-family: 'Wix Madefor Text', serif;
  color: #444;
  font-weight: 400;
  font-size: clamp(12px, 1.8vw, 16px) !important; /* Reduced from 14px-18px */
  line-height: 1.4;
  letter-spacing: 0.9px;
  text-align: justify; 
  margin-bottom: 30px;
}

.project-image {
  flex: 1;
  background-size: cover; /* image fills half box */
  background-position: center;
}

/* top header links */

.top-links{
    width: 100%;
    max-width: 1200px; 
    margin: 12px auto 0; 
    justify-content: flex-end;
    display: flex;
     gap: 12px;

    padding: 0 20px;      /* match editorial-layout padding */
    font-weight: 400;
}

.top-links a {
    text-decoration: none;
}

.top-links a span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;              /* fully rounded */
    font-size: 0.85rem;
    color: #444;
    background-color: rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
.top-links a:hover span {
    background-color: rgba(0,0,0,0.12);
    color: #000;
}

/* About Section */
.about-section {
    max-width: 700px;
    margin: 80px auto;     /* centers horizontally */
    padding: 0 20px;
}

.about-box {
    font-family: 'Wix Madefor Text', serif;
    color: #444;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* reuse the same pill style */
.about-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #444;
    background-color: rgba(0,0,0,0.05);
    margin-bottom: 24px;

    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}



/* Mobile responsiveness */
@media (max-width: 768px) {
  .project {
    flex-direction: column;
  }
  .project:nth-child(even) {
    flex-direction: column; /* remove alternating on mobile */
  }
  .project-image img {
    max-width: 100%;
  }
}

/* ==============================
   MOBILE RESPONSIVENESS
   ============================== */

/* Tablet & Mobile (768px and below) */
@media (max-width: 768px) {
  
  /* Header Stacking */
  .top-header {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1rem;
    text-align: center;
  }
  
  #logo {
    margin-left: 0;
    width: 70px;
    height: 70px;
  }
  
  .brand-container {
    align-items: center;
  }
  
  #brandName_first {
    font-size: clamp(24px, 5vw, 32px);
  }
  
  #tagline {
    position: static;
    left: auto;
    margin-top: 0.5rem;
    font-size: clamp(12px, 3vw, 14px);
    transform: none;
  }
  
  /* Navigation */
  .top-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    margin: 0.5rem auto;
  }
  
  .top-links a span {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  /* Layout */
  .editorial-layout,
  .about-section {
    flex-direction: column;
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  .right-sidebar {
    flex: 0 0 auto;
    width: 100%;
    padding-right: 0;
    order: 2; /* Move sidebar below projects */
  }
  
  .right-sidebar .sidebar-box:first-child {
    margin-top: 2rem;
  }
  
  .featured-projects {
    margin-top: 0;
    order: 1; /* Projects come first */
  }
  
  /* Projects */
  .project {
    flex-direction: column !important; /* Force column on all */
    height: auto;
    margin-bottom: 2rem;
  }
  
  .project-text {
    padding: 1.5rem;
  }
  
  .project-text h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: clamp(16px, 4vw, 20px);
  }
  
  .project-text p {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.5;
    margin-bottom: 0;
  }
  
  .project-image {
    height: 200px; /* Fixed height for images */
    flex: none;
  }
  
  /* Sidebar */
  .sidebar-box {
    margin-top: 2rem !important;
  }
  
  .sidebar-box h1 {
    font-size: 1.1rem;
  }
  
  /* Footer */
  .site-footer {
    padding: 1rem;
    font-size: 0.8rem;
    flex-direction: column;
    gap: 0.25rem;
  }

/* ABOUT PAGE SPECIFIC */
  .about-section {
    margin: 1.5rem auto;
    padding: 0 1rem;
  }
  
  .about-box {
    padding: 1.5rem;
  }
  
  .about-tag {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
  }
  
  /* .about-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  } */
.about-box p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    /* Prevent extreme spacing */
    -webkit-hyphenate-limit-before: 3;
    -webkit-hyphenate-limit-after: 3;
    hyphenate-limit-chars: 6 3 3;
  }

  /* Only justify paragraphs with enough text */
  .about-box p:not(:last-child) {
    text-align: justify;
  }
  
  .about-box p:last-child {
    font-size: 0.9rem;
    margin-top: 1.5rem;
    text-align: left;
  }
/* adjusted for collaborate html */
.about-box div[style*="border-left"] {
    margin: 1rem 0 !important;
    padding-left: 1rem !important;
    border-left-width: 2px !important;
  }
  .about-box ul {
    padding-left: 1rem;
  }
  
  .about-box li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .about-box p[style*="margin-top: 2rem"] {
    margin-top: 1.5rem !important;
  }
}

/* Small Phones (480px and below) */
@media (max-width: 480px) {
  .top-header {
    padding: 1rem;
  }
  
  #logo {
    width: 60px;
    height: 60px;
  }
  
  #brandName_first {
    font-size: 1.5rem;
  }
  
  .top-links {
    gap: 0.25rem;
  }
  
  .top-links a span {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .project-text {
    padding: 1.25rem;
  }
  
  .project-text h3 {
    font-size: 1.1rem;
  }
  
  .project-text p {
    font-size: 0.95rem;
  }
  
  .project-image {
    height: 180px;
  }
  
  /* Make links easier to tap */
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
/* About section */
  .about-box {
    padding: 1.25rem;
  }
  
  .about-box p {
    font-size: 0.95rem;
  }
  
  .about-box p:last-child {
    font-size: 0.85rem;
  }
}

/* ==============================
   BASE MOBILE FRIENDLINESS
   ============================== */

/* Prevent horizontal scrolling */
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Make images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Better text readability on mobile */
@media (max-width: 768px) {
  body {
    font-size: 16px; /* Base font size for mobile */
    -webkit-text-size-adjust: 100%; /* Prevent iOS zoom */
  }
  
  h2, h3 {
    line-height: 1.3;
  }
  
  p {
    line-height: 1.6;
  }
}

/* Fix for very small viewports */
@media (max-width: 360px) {
  .project-text {
    padding: 1rem;
  }
  
  .top-links a span {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}

