/*
Theme Name: Clear Sight Digital
Theme URI: https://clearsightdigital.net
Author: Clear Sight Digital
Description: A minimal, tech-forward theme for Clear Sight Digital — a product design studio. Includes a navigation menu, home page sections, and a footer widget area.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clear-sight-digital
*/

:root{
  --paper:#F6F8F9;
  --ink:#10151A;
  --muted:#5B6670;
  --line:#DCE3E5;
  --accent:#0E6E66;
  --accent-soft:#CFE8E4;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size:16px;
  line-height:1.6;
}

a{ color:inherit; }

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

.csd-root{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* ---------- Header / nav ---------- */

.csd-header{
  position:relative;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:26px clamp(20px, 5vw, 56px);
  border-bottom:1px solid var(--line);
  background:var(--paper);
}

.csd-mark{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:17px;
  letter-spacing:0.01em;
  color:var(--ink);
  text-decoration:none;
}

.csd-mark span{ color:var(--accent); }

.csd-nav{ display:flex; }

.csd-menu{
  list-style:none;
  display:flex;
  gap:32px;
  margin:0;
  padding:0;
}

.csd-menu a{
  font-size:14px;
  text-decoration:none;
  color:var(--muted);
  transition:color 0.2s ease;
}

.csd-menu a:hover, .csd-menu a:focus-visible{ color:var(--ink); }

.csd-menu-toggle{ display:none; }

.csd-burger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  padding:4px;
}

.csd-burger span{
  width:22px;
  height:1.5px;
  background:var(--ink);
  display:block;
}

@media (max-width:760px){
  .csd-burger{ display:flex; }

  .csd-nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--paper);
    border-bottom:1px solid var(--line);
    max-height:0;
    overflow:hidden;
    transition:max-height 0.25s ease;
  }

  .csd-menu{
    flex-direction:column;
    gap:0;
    padding:8px clamp(20px, 5vw, 56px) 20px;
  }

  .csd-menu li{ padding:10px 0; border-bottom:1px solid var(--line); }
  .csd-menu li:last-child{ border-bottom:none; }

  .csd-menu-toggle:checked ~ .csd-nav{ max-height:400px; }
}

/* ---------- Hero ---------- */

.csd-hero{
  position:relative;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:64px clamp(20px, 6vw, 56px) 72px;
  overflow:hidden;
}

.csd-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:64px 64px;
  opacity:0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 75%);
  pointer-events:none;
}

.csd-hero-inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  max-width:640px;
}

.csd-rings{
  width:min(56vw, 200px);
  height:min(56vw, 200px);
  margin-bottom:8px;
  opacity:0;
  transform:scale(0.85);
  animation: csd-focus 1.1s cubic-bezier(.2,.8,.2,1) 0.15s forwards;
}

.csd-rings .csd-spin{
  transform-origin:110px 110px;
  animation: csd-rotate 140s linear infinite;
}

.csd-eyebrow-line{
  width:36px;
  height:1px;
  background:var(--accent);
  margin:22px 0 20px;
  opacity:0;
  animation: csd-rise 0.8s ease 0.5s forwards;
}

.csd-hero h1{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:clamp(30px, 5vw, 46px);
  line-height:1.14;
  letter-spacing:-0.01em;
  margin:0;
  opacity:0;
  animation: csd-rise 0.8s ease 0.62s forwards;
}

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

.csd-hero p{
  font-size:16px;
  color:var(--muted);
  max-width:420px;
  margin:20px 0 0;
  opacity:0;
  animation: csd-rise 0.8s ease 0.74s forwards;
}

.csd-cta-group{
  margin-top:32px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
  opacity:0;
  animation: csd-rise 0.8s ease 0.86s forwards;
}

.csd-btn{
  font-size:14px;
  text-decoration:none;
  padding:12px 26px;
  border-radius:2px;
  transition:background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display:inline-block;
}

.csd-btn-solid{
  color:var(--paper);
  background:var(--ink);
  border:1px solid var(--ink);
}

.csd-btn-solid:hover, .csd-btn-solid:focus-visible{ background:var(--accent); border-color:var(--accent); }

.csd-btn-outline{
  color:var(--ink);
  border:1px solid var(--ink);
}

.csd-btn-outline:hover, .csd-btn-outline:focus-visible{ background:var(--ink); color:var(--paper); }

.csd-btn:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

@keyframes csd-focus{ to{ opacity:1; transform:scale(1); } }
@keyframes csd-rise{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:translateY(0); } }
@keyframes csd-rotate{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }

@media (prefers-reduced-motion: reduce){
  .csd-rings, .csd-eyebrow-line, .csd-hero h1, .csd-hero p, .csd-cta-group{
    animation:none !important; opacity:1 !important; transform:none !important;
  }
  .csd-spin{ animation:none !important; }
}

/* ---------- Sections ---------- */

.csd-section{
  padding:80px clamp(20px, 6vw, 56px);
  border-top:1px solid var(--line);
}

.csd-section-head{
  max-width:520px;
  margin:0 0 44px;
}

.csd-section-head h2{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:clamp(24px, 3vw, 32px);
  margin:0 0 12px;
}

.csd-section-head p{ color:var(--muted); margin:0; }

/* Services grid */

.csd-services{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}

.csd-service{
  background:var(--paper);
  padding:32px 28px;
}

.csd-service-glyph{
  width:26px;
  height:26px;
  border:1.4px solid var(--accent);
  border-radius:50%;
  margin-bottom:20px;
  position:relative;
}

.csd-service-glyph::after{
  content:"";
  position:absolute;
  top:50%; left:50%;
  width:6px; height:6px;
  background:var(--accent);
  border-radius:50%;
  transform:translate(-50%,-50%);
}

.csd-service h3{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:18px;
  margin:0 0 10px;
}

.csd-service p{ color:var(--muted); font-size:14.5px; margin:0; }

/* About / two column */

.csd-about{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:start;
}

.csd-about p{ color:var(--muted); }

.csd-about-figure{
  border:1px solid var(--line);
  padding:28px;
  background:#fff;
}

.csd-about-figure .csd-stat{
  font-family:'Fraunces', serif;
  font-size:34px;
  color:var(--accent);
  margin:0 0 6px;
}

.csd-about-figure .csd-stat-label{
  font-size:13px;
  color:var(--muted);
  margin:0;
}

.csd-about-figure hr{
  border:none;
  border-top:1px solid var(--line);
  margin:20px 0;
}

@media (max-width:760px){
  .csd-about{ grid-template-columns:1fr; }
}

/* Contact strip */

.csd-contact-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:24px;
  padding:56px clamp(20px, 6vw, 56px);
  border-top:1px solid var(--line);
}

.csd-contact-strip h2{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:clamp(22px, 3vw, 28px);
  margin:0;
}

/* ---------- Generic page / post content ---------- */

.csd-page{
  max-width:680px;
  margin:0 auto;
  padding:72px clamp(20px, 6vw, 56px) 96px;
  flex:1;
}

.csd-page h1{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:clamp(28px, 4vw, 38px);
  margin:0 0 28px;
}

.csd-page .csd-entry img{ margin:24px 0; }

.csd-entry-list{ display:flex; flex-direction:column; gap:40px; }

.csd-entry-card{ border-bottom:1px solid var(--line); padding-bottom:40px; }

.csd-entry-card h2{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:22px;
  margin:0 0 10px;
}

.csd-entry-card h2 a{ text-decoration:none; }

.csd-entry-meta{ font-size:13px; color:var(--muted); margin:0 0 12px; }

/* ---------- Footer ---------- */

.csd-footer{
  border-top:1px solid var(--line);
  padding:48px clamp(20px, 5vw, 56px) 24px;
}

.csd-footer-top{
  display:flex;
  flex-wrap:wrap;
  gap:32px;
  justify-content:space-between;
  padding-bottom:32px;
}

.csd-footer-brand .csd-mark.small{ font-size:15px; }

.csd-footer-brand p{ color:var(--muted); font-size:13.5px; margin:8px 0 0; }

.csd-footer-widgets{ font-size:13.5px; color:var(--muted); }

.csd-widget-title{
  font-family:'Fraunces', serif;
  font-size:15px;
  font-weight:500;
  margin:0 0 10px;
}

.csd-footer-contact a{
  font-size:14px;
  text-decoration:none;
  border-bottom:1px solid var(--line);
}

.csd-footer-contact a:hover{ border-color:var(--ink); }

.csd-footer-bottom{
  border-top:1px solid var(--line);
  padding-top:20px;
  font-size:12px;
  color:var(--muted);
}
