:root{
  --bg-start: #ffae00;
  --bg-end: #ffcd00;
  --panel: #ffffff;
  --dark: #1d1d1d;
  --muted: #555;
  --accent: #ff8d00;
  --accent-dark: #ff6f00;
  --border: #111111;
  --soft: #fff2d8;
  --shadow: rgba(0, 0, 0, 0.12);
  --preview-slide-duration: 0.85s;
  --preview-slide-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Varela Round', Arial, Helvetica, sans-serif;
}

html{
  scroll-behavior:smooth;
  overflow-x:hidden;
}

body{
  background:linear-gradient(135deg, var(--bg-start), var(--bg-end));
  min-height:100vh;
  display:flex;
  flex-direction:column;
  color:var(--dark);
  overflow-x:hidden;
}

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

a{
  color:inherit;
}

main{
  flex:1;
}

/* ---------- NAVBAR ---------- */

.navbar{
  background:var(--panel);
  display:flex;
  align-items:center;
  padding:20px 40px;
  box-shadow:0 3px 12px rgba(0,0,0,0.1);
  position:relative;
  border:2px solid var(--border);
}

.logo{
  font-weight:bold;
  font-size:20px;
}

.logo span{
  display:block;
  font-size:12px;
  color:var(--accent);
}

.nav-links{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:40px;
  list-style:none;
}

.nav-links a{
  text-decoration:none;
  color:var(--dark);
  font-weight:600;
  font-size:18px;
  position:relative;
  display:inline-block;
  padding:8px 12px;
  border-radius:8px;
  transition:transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.nav-links a.active{
  color:var(--accent);
}

.nav-links a:hover{
  transform:scale(1.12);
  color:var(--accent);
}

.nav-links a::after{
  content:"";
  position:absolute;
  width:0%;
  height:2px;
  left:0;
  bottom:-5px;
  background:var(--accent);
  transition:0.3s;
}

.nav-links a:hover::after{
  width:100%;
}

.socials{
  margin-left:auto;
  display:flex;
  gap:20px;
}

.socials img{
  width:34px;
  cursor:pointer;
  transition:0.25s;
}

.socials img:hover{
  transform:scale(1.4);
}

/* ---------- SHARED STYLES ---------- */

.hero,
.about,
.skills-section,
.cta-panel,
.page-header,
.contact-section,
.blog-post,
.project,
.stat-card{
  background:var(--panel);
  border:2px solid var(--border);
  border-radius:18px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.eyebrow{
  display:inline-block;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--accent-dark);
  font-weight:bold;
  margin-bottom:10px;
}

.page-header,
.hero,
.about,
.skills-section,
.cta-panel,
.contact-section{
  max-width:1000px;
  width:calc(100% - 40px);
  margin:60px auto 0;
}

.page-header,
.contact-section,
.about,
.skills-section,
.cta-panel{
  padding:32px 36px;
}

.page-header,
.skills-section,
.cta-panel{
  text-align:center;
}

.page-header h1,
.about h2,
.skills-section h2,
.cta-panel h2,
.contact-info h2{
  font-size:clamp(2rem, 3vw, 3rem);
  margin-bottom:12px;
}

/* ---------- HERO ---------- */

.hero{
  display:grid;
  grid-template-columns:1.5fr 0.9fr;
  align-items:center;
  gap:30px;
  padding:50px 40px;
}

.hero-copy h1{
  font-size:clamp(2.6rem, 5vw, 4.2rem);
  margin-bottom:18px;
}

.hero-copy p{
  font-size:1.08rem;
  line-height:1.7;
  max-width:620px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:30px;
}

.cv-button,
.secondary-button,
.play-link,
.contact-form button{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:14px 24px;
  border-radius:8px;
  text-decoration:none;
  font-weight:bold;
  border:none;
  cursor:pointer;
  transition:0.25s ease;
}

.cv-modal{
  position:fixed;
  inset:0;
  background:rgba(0, 0, 0, 0.6);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:1000;
}

.cv-modal.active{
  display:flex;
}

.cv-modal-content{
  position:relative;
  width:min(680px, 100%);
  max-height:calc(100dvh - 40px);
  overflow-y:auto;
  background:#fff;
  border:2px solid var(--border);
  border-radius:18px;
  box-shadow:0 18px 40px rgba(0,0,0,0.18);
  padding:28px 24px 22px;
}

.cv-modal-close{
  position:absolute;
  top:12px;
  right:14px;
  border:none;
  background:transparent;
  font-size:2rem;
  cursor:pointer;
  line-height:1;
  color:var(--dark);
}

.cv-modal-content h2 {
  margin-bottom:18px;
  font-size:1.8rem;
  color:var(--dark);
}

.cv-modal-image-wrap {
  width:100%;
  margin-bottom:18px;
  border:2px solid var(--border);
  background:#f6f6f6;
  border-radius:12px;
  max-height:60vh;
  overflow:auto;
}

.cv-modal-image-wrap img {
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
  background:#fff;
}

.cv-url-label {
  display:block;
  margin-bottom:8px;
  font-weight:700;
  color:var(--dark);
}

#cvImageUrl {
  width:100%;
  padding:12px 14px;
  border:2px solid #d9d9d9;
  border-radius:8px;
  font-size:15px;
  margin-bottom:18px;
}

.cv-modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.cv-button:hover,
.secondary-button:hover,
.play-link:hover,
.contact-form button:hover{
  background:var(--accent-dark);
  transform:translateY(-2px);
}

.secondary-button{
  background:#fff;
  color:var(--dark);
  border:2px solid var(--border);
}

.hero-card,
.skill-card,
.contact-info{
  background:var(--soft);
  border:2px solid var(--border);
}

.hero-card{
  border-radius:16px;
  padding:26px 22px;
}

.hero-card h3{
  margin-bottom:16px;
}

.hero-card ul{
  list-style:none;
  display:grid;
  gap:12px;
  color:var(--dark);
  font-weight:600;
}

.hero-card li::before{
  content:"•";
  color:var(--accent-dark);
  margin-right:8px;
}

/* ---------- ABOUT ---------- */

.about{
  text-align:left;
}

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  line-height:1.75;
  margin-top:20px;
}

/* ---------- SKILLS ---------- */

.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
  margin-top:24px;
}

.skill-card{
  border-radius:14px;
  padding:22px 18px;
  text-align:left;
}

.skill-card h3{
  margin-bottom:10px;
  font-size:1.2rem;
}

.skill-card p{
  line-height:1.6;
  color:var(--muted);
}

/* ---------- STATS ---------- */

.stats-row{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:20px;
  max-width:1000px;
  width:calc(100% - 40px);
  margin:50px auto 0;
}

.stat-card{
  padding:28px 20px;
  text-align:center;
}

.stat-card strong{
  display:block;
  font-size:2rem;
  margin-bottom:8px;
  color:var(--accent-dark);
}

.stat-card span{
  color:var(--muted);
  font-weight:600;
}

/* ---------- CTA ---------- */

.cta-panel{
  margin-bottom:60px;
}

.cta-panel p{
  max-width:720px;
  margin:10px auto 25px;
  line-height:1.7;
}

/* ---------- PROJECTS ---------- */

.projects-page > .navbar,
.projects-page > main,
.projects-page > footer{
  position:relative;
  z-index:1;
}

.project-backdrop{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
  background:#101018;
  opacity:0;
  transition:opacity 0.4s ease;
}

.project-backdrop.active{
  opacity:1;
}

.project-backdrop img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 0.4s ease;
}

.project-backdrop img.active{
  opacity:1;
}

.project-backdrop::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(16,16,24,0.2), rgba(16,16,24,0.55));
}

.projects{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:30px;
  max-width:1100px;
  margin:40px auto 60px;
  padding:0 20px;
  transition:padding-top var(--preview-slide-duration) var(--preview-slide-easing);
}

.showing-gameplay .projects{
  padding-top:var(--preview-offset, 200px);
}

.project{
  display:flex;
  flex-direction:column;
  flex:0 1 calc((100% - 60px) / 3);
  min-width:0;
  overflow:hidden;
  transition:0.25s;
}

.project:hover{
  box-shadow:0 12px 28px rgba(0,0,0,0.14);
}

.game-preview{
  --preview-height:200px;
  height:var(--preview-height);
  flex-shrink:0;
  overflow:hidden;
  border-bottom:2px solid var(--border);
  transition:height var(--preview-slide-duration) var(--preview-slide-easing), border-bottom-width var(--preview-slide-duration) var(--preview-slide-easing);
}

.showing-gameplay .game-preview{
  height:0;
  border-bottom-width:0;
}

.game-preview img{
  width:100%;
  height:var(--preview-height);
  object-fit:cover;
  cursor:pointer;
  transform:translateY(0);
  transition:transform var(--preview-slide-duration) var(--preview-slide-easing), filter 0.2s ease;
}

.showing-gameplay .game-preview img{
  transform:translateY(32px);
}

.game-preview img:hover{
  transform:scale(1.02);
  filter:brightness(1.04);
}

.preview-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(17,17,17,0.82);
  opacity:0;
  visibility:hidden;
  transition:opacity 0.2s ease, visibility 0.2s ease;
  z-index:1000;
}

.preview-modal.active{
  opacity:1;
  visibility:visible;
}

.preview-modal-backdrop{
  position:absolute;
  inset:0;
}

.preview-modal-content{
  position:relative;
  z-index:1;
  width:min(1100px, 92vw);
  max-height:90vh;
  background:#111;
  border:3px solid #fff;
  border-radius:20px;
  padding:18px;
  box-shadow:0 24px 60px rgba(0,0,0,0.35);
}

.preview-modal-content img{
  display:block;
  width:100%;
  max-height:84vh;
  object-fit:contain;
  border-radius:12px;
  background:#000;
}

.preview-modal-close{
  position:absolute;
  top:-18px;
  right:-18px;
  width:42px;
  height:42px;
  border-radius:50%;
  border:2px solid var(--border);
  background:#fff;
  color:var(--dark);
  font-size:2rem;
  line-height:1;
  cursor:pointer;
  box-shadow:0 6px 20px rgba(0,0,0,0.18);
}

body.modal-open{
  overflow:hidden;
}

.project-image-dialog{
  position:fixed;
  inset:0;
  margin:auto;
  padding:0;
  border:0;
  overflow:visible;
  background:transparent;
}

.project-image-dialog::backdrop{
  background:rgba(17,17,17,0.82);
}

.project-image-dialog .preview-modal-content{
  width:min(1100px, calc(100vw - 48px));
  max-height:none;
}

.project-image-dialog img{
  max-height:calc(100dvh - 80px);
}

.project-info{
  display:flex;
  flex-direction:column;
  flex:1;
  justify-content:space-between;
  min-height:270px;
  padding:24px 24px 28px;
}

.project-content{
  display:flex;
  flex-direction:column;
  flex:1;
}

.project-info h3{
  margin-bottom:10px;
}

.project-info p{
  line-height:1.6;
  margin:0;
}

.tag-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(110px, 1fr));
  gap:8px 10px;
  margin:12px 0 18px;
}

.tag-grid span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--soft);
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  font-size:0.75rem;
  font-weight:bold;
  text-align:center;
  min-height:30px;
}

.project-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:20px;
}

.project-links{
  display:flex;
  gap:12px;
}

.project-links a{
  display:grid;
  place-items:center;
}

.project-links .github-link{
  flex:2;
  padding-inline:8px;
}

.project-links .project-info-link{
  flex:1;
  padding:12px 8px;
  background:var(--soft);
}

.play-link{
  width:100%;
  text-align:center;
  font-size:1rem;
}

.play-link:hover{
  transform:none;
}

.cv-document-page{
  max-width:1000px;
  width:calc(100% - 40px);
  margin:60px auto;
}

.cv-document-page h1{
  margin-bottom:20px;
}

.cv-document-pages{
  display:grid;
  gap:24px;
  margin-top:24px;
}

.cv-document-pages img{
  width:100%;
  height:auto;
  border:2px solid var(--border);
  border-radius:12px;
}

.development-link,
.development-link:hover{
  background:#b4232b;
  color:#fff;
  cursor:default;
  transform:none;
  opacity:1;
}

.preview-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:var(--soft);
  text-align:center;
}

.preview-placeholder strong{
  font-size:2rem;
}

.preview-placeholder span{
  color:var(--muted);
  font-size:0.85rem;
}

.github-link{
  display:block;
  text-align:center;
  text-decoration:none;
  background:#fff;
  color:var(--dark);
  border:2px solid var(--border);
  border-radius:10px;
  padding:14px 18px;
  font-weight:bold;
  transition:0.25s ease;
}

.github-link:hover{
  background:#f7f7f7;
  transform:translateY(-2px);
}

.project-detail{
  width:min(900px, calc(100% - 24px));
  margin:clamp(24px, 6vw, 60px) auto;
}

.project-detail-panel{
  padding:clamp(20px, 5vw, 44px);
  background:var(--panel);
  border:2px solid var(--border);
  border-radius:18px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.project-back-link{
  display:inline-block;
  margin-bottom:20px;
  color:var(--muted);
  text-underline-offset:3px;
}

.project-detail h1{
  font-size:clamp(2rem, 5vw, 3.5rem);
  margin-bottom:12px;
}

.project-detail p{
  max-width:65ch;
  line-height:1.65;
}

.project-facts{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin:24px 0 12px;
}

.project-facts > div{
  padding:14px;
  background:var(--soft);
  border:1px solid var(--border);
  border-radius:12px;
}

.project-facts dt{
  color:var(--muted);
  font-size:0.85rem;
  margin-bottom:6px;
}

.project-facts dd{
  font-weight:bold;
  line-height:1.4;
}

.project-timeline-note{
  color:var(--muted);
  font-size:0.9rem;
}

.project-section{
  margin-top:30px;
}

.project-section > h2{
  margin-bottom:12px;
  font-size:1.45rem;
}

.project-media-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.project-media-card{
  min-width:0;
  overflow:hidden;
  background:var(--soft);
  border:1px solid var(--border);
  border-radius:12px;
}

.project-media-card img,
.project-media-card video,
.project-media-placeholder{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  object-fit:contain;
  background:#161616;
}

.project-media-card a{
  display:block;
  cursor:zoom-in;
}

.project-media-card a:focus-visible{
  outline-offset:-4px;
}

.project-media-placeholder{
  display:grid;
  place-items:center;
  padding:12px;
  color:var(--muted);
  background:#f5f1e7;
  text-align:center;
}

.project-media-card figcaption{
  padding:10px 12px;
  font-size:0.9rem;
  line-height:1.4;
}

.project-code{
  margin-top:28px;
}

.project-code h3{
  margin-bottom:8px;
  font-size:1.35rem;
}

.project-code-file{
  margin-top:14px;
  padding:10px 14px;
  background:var(--soft);
  border:1px solid var(--border);
  border-radius:10px 10px 0 0;
  font-weight:bold;
  overflow-wrap:anywhere;
}

.project-code pre{
  padding:14px;
  overflow-x:auto;
  background:#202124;
  color:#f4f4f5;
  border:1px solid var(--border);
  border-radius:0 0 10px 10px;
}

.project-code code{
  font-family:Consolas, 'Courier New', monospace;
  font-size:0.875rem;
  line-height:1.65;
  tab-size:4;
}

.project-detail-actions{
  display:flex;
  margin-top:20px;
}

@media (max-width:640px){
  .project-media-grid{
    grid-template-columns:minmax(0, 1fr);
  }
}

@media (max-width:420px){
  .project-facts{
    grid-template-columns:1fr;
  }
}

/* ---------- BLOG ---------- */

.blog-container{
  max-width:1000px;
  margin:40px auto 60px;
  padding:0 20px;
}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:22px;
}

.blog-post{
  padding:28px 24px;
}

.blog-post.featured{
  margin-bottom:24px;
}

.blog-post h3{
  margin-bottom:10px;
}

.blog-post p{
  line-height:1.7;
}

.blog-meta{
  color:var(--accent-dark);
  font-size:0.8rem;
  font-weight:bold;
  text-transform:uppercase;
  letter-spacing:0.08em;
  margin-bottom:12px;
}

/* ---------- CONTACT ---------- */

.contact-section{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1.2fr);
  gap:34px;
  align-items:start;
  margin-top:32px;
  margin-bottom:60px;
}

.contact-info{
  min-width:0;
  padding:24px;
  border-radius:12px;
}

.contact-info p{
  line-height:1.7;
  color:var(--muted);
}

.contact-details{
  margin-top:24px;
  display:grid;
  gap:16px;
}

.contact-details div{
  padding-top:16px;
  border-top:1px solid #e8d6b5;
}

.contact-details dt{
  font-size:0.85rem;
  font-weight:700;
  margin-bottom:6px;
}

.contact-details dd{
  margin:0;
  line-height:1.6;
  overflow-wrap:anywhere;
}

.contact-details a{
  text-underline-offset:3px;
}

.contact-form:not([hidden]){
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:20px;
}

.contact-field{
  display:grid;
  gap:8px;
}

.contact-field label{
  font-size:0.9rem;
  font-weight:700;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:13px 15px;
  border-radius:8px;
  border:2px solid #d8d8d8;
  font-size:15px;
  font-family:inherit;
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(255,141,0,0.12);
}

.contact-form textarea{
  min-height:150px;
  resize:vertical;
}

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

footer{
  background:var(--panel);
  text-align:center;
  padding:20px;
  margin-top:auto;
  font-size:14px;
  border:2px solid var(--border);
}

/* ---------- CV PAGE ---------- */

.cv-body{
  background:#f1f1f1;
}

.cv-page{
  max-width:1160px;
  margin:40px auto 60px;
  padding:0 28px;
}

.cv-title{
  font-size:clamp(2.2rem, 3vw, 3.2rem);
  color:#c85d26;
  font-weight:700;
  margin-bottom:18px;
  padding-bottom:10px;
  border-bottom:2px solid #c85d26;
}

.cv-layout{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap:26px;
  align-items:start;
}

.cv-sidebar{
  padding-top:8px;
}

.cv-photo{
  width:100%;
  max-width:260px;
  height:240px;
  object-fit:cover;
  border:1px solid #b8b8b8;
  display:block;
  margin-bottom:28px;
}

.cv-block{
  margin-bottom:24px;
}

.cv-block h2,
.cv-block h3,
.cv-card h3{
  font-size:1.05rem;
  color:#2e2e2e;
  margin-bottom:10px;
  font-weight:700;
}

.cv-block p,
.cv-card li{
  color:#2a2a2a;
  font-size:0.96rem;
  line-height:1.6;
  margin:0 0 4px;
}

.cv-content{
  display:grid;
  gap:18px;
}

.cv-card{
  background:transparent;
  border:0;
  padding:0;
}

.cv-card ul{
  list-style:none;
  padding:0;
  margin:0;
}

.cv-card li{
  position:relative;
  padding-left:14px;
  margin-bottom:8px;
}

.cv-card li::before{
  content:"•";
  position:absolute;
  left:0;
  color:#c85d26;
}

@media (max-width: 820px){
  .cv-layout{
    grid-template-columns: 1fr;
  }

  .cv-photo{
    max-width:220px;
    height:210px;
  }

  .cv-page{
    padding:0 16px;
  }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 940px){
  .project{
    flex-basis:calc((100% - 30px) / 2);
  }
}

@media (max-width: 820px){
  .navbar{
    flex-wrap:wrap;
    justify-content:center;
    gap:16px;
    padding:18px 16px;
  }

  .logo{
    width:100%;
    text-align:center;
    font-size:18px;
  }

  .nav-links{
    position:static;
    transform:none;
    order:3;
    width:100%;
    justify-content:center;
    gap:14px 18px;
    flex-wrap:wrap;
  }

  .nav-links a{
    font-size:15px;
    padding:6px 10px;
  }

  .socials{
    margin-left:0;
    gap:12px;
  }

  .hero,
  .contact-section,
  .about-grid{
    grid-template-columns:1fr;
  }

  .page-header,
  .skills-section,
  .cta-panel,
  .contact-section,
  .hero,
  .about{
    width:calc(100% - 24px);
  }

  .projects{
    padding:0 12px;
    gap:20px;
  }

  .project{
    flex-basis:calc((100% - 20px) / 2);
  }

  .contact-section{
    gap:28px;
  }

  .game-preview{
    --preview-height:220px;
  }

  .project-info{
    min-height:auto;
    padding:20px 18px 22px;
  }
}

@media (prefers-reduced-motion: reduce){
  .projects-page{
    --preview-slide-duration:0.6s;
  }

  .project-backdrop,
  .project-backdrop img,
  .game-preview img{
    transition:none;
  }

  .showing-gameplay .game-preview img{
    transform:none;
  }
}

@media (max-width: 600px){
  .project{
    flex-basis:100%;
  }
}

@media (max-width: 560px){
  .navbar{
    flex-direction:column;
    align-items:center;
  }

  .nav-links{
    width:100%;
    justify-content:space-between;
    gap:8px 12px;
  }

  .socials{
    width:100%;
    justify-content:center;
  }
}

@media (max-width: 480px){
  .hero,
  .about,
  .skills-section,
  .cta-panel,
  .page-header,
  .contact-section{
    padding:24px 18px;
  }

  .hero-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .contact-info{
    padding:20px 16px;
  }

  .cv-button,
  .secondary-button,
  .play-link,
  .contact-form button,
  .github-link{
    text-align:center;
    width:100%;
  }

  .projects{
    padding:0 10px;
    margin-top:24px;
  }

  .tag-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .tag-grid span{
    font-size:0.72rem;
    padding:6px 8px;
  }

  .project-actions{
    gap:10px;
  }

  .preview-modal{
    padding:14px;
  }

  .preview-modal-content{
    width:min(100%, 92vw);
    padding:10px;
  }

  .preview-modal-close{
    top:-10px;
    right:-10px;
    width:36px;
    height:36px;
    font-size:1.7rem;
  }
}
