:root{
  --bg:#07101D;
  --bg-soft:#0B1422;
  --text:#F5F7FA;
  --muted:rgba(245,247,250,0.70);
  --border:rgba(255,255,255,0.07);
  --border-strong:rgba(59,130,246,0.24);
  --header:rgba(5,11,20,0.82);
  --card:rgba(255,255,255,0.025);
  --card-hover:rgba(255,255,255,0.04);
  --accent:#2563EB;
  --accent-hover:#1D4ED8;
  --input:#0E1828;
  --max:1100px;
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

body{
  position:relative;
  background:linear-gradient(180deg, #07101D 0%, #050B14 100%);
  color:var(--text);
  font-family:"Merriweather",serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body::before{
  display:none;
}

.container{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
  padding-left:20px;
  position:relative;
  z-index:1;
}

/* Header */
.site-header{
  background:var(--header);
  color:#fff;
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  position:sticky;
  top:0;
  z-index:20;
}

.site-header::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:1px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.06),
    transparent
  );
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  color:#fff;
  text-decoration:none;
  font-family:"Raleway",sans-serif;
  font-weight:700;
  letter-spacing:0.2px;
  transition:opacity 0.2s ease;
}

.brand:hover{
  opacity:0.9;
}

.nav{
  display:flex;
  align-items:center;
  gap:20px;
}

.nav a{
  color:rgba(255,255,255,0.88);
  text-decoration:none;
  font-family:"Raleway",sans-serif;
  font-weight:600;
  font-size:14px;
  letter-spacing:0.2px;
  transition:color 0.2s ease;
}

.nav a:hover{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-color:rgba(255,255,255,0.28);
}

/* Layout */
.content{
  padding:84px 0 100px 0;
  position:relative;
  z-index:1;
}

.intro,
.hero,
.content > *{
  position:relative;
  z-index:1;
}

/* Homepage hero with right anchor */
.home-hero{
  display:grid;
  grid-template-columns:minmax(0, 780px) 280px;
  gap:40px;
  align-items:start;
}

.intro{
  max-width:820px;
  padding-top:12px;
}

.hero-anchor{
  min-height:420px;
  border-left:1px solid rgba(255,255,255,0.06);
  padding-left:28px;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
}

.hero-anchor-card{
  width:100%;
  padding:18px 18px 16px 18px;
  border:1px solid rgba(255,255,255,0.05);
  border-radius:14px;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,0.028),
    rgba(255,255,255,0.014)
  );
  box-shadow:0 8px 30px rgba(0,0,0,0.14);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.anchor-label{
  font-family:"Raleway",sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.1px;
  text-transform:uppercase;
  color:rgba(245,247,250,0.42);
  margin-bottom:16px;
}

.anchor-line{
  font-family:"Raleway",sans-serif;
  font-size:15px;
  font-weight:600;
  line-height:1.5;
  color:rgba(245,247,250,0.82);
  margin-bottom:10px;
}

.anchor-line:last-child{
  margin-bottom:0;
}

.content p,
.content li{
  max-width:760px;
}

/* Typography */
h1,h2,h3{
  font-family:"Raleway",sans-serif;
  margin:0 0 14px 0;
  line-height:1.2;
  color:#fff;
}

h1{
  font-size:48px;
  letter-spacing:-1px;
  line-height:1.08;
  max-width:820px;
}

h2{
  margin-top:48px;
  margin-bottom:16px;
  font-size:28px;
}

h3{
  margin-top:28px;
  margin-bottom:12px;
}

p{
  margin:0 0 16px 0;
}

strong{
  color:#fff;
}

.content a{
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,0.10);
  transition:color 0.2s ease, border-color 0.2s ease;
}

.content a:hover{
  color:#fff;
  border-bottom-color:rgba(255,255,255,0.28);
}

/* Buttons */
.button{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:11px 18px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.08);
  text-decoration:none;
  font-family:"Raleway",sans-serif;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow:0 8px 24px rgba(0,0,0,0.22);
}

.button:hover{
  background:var(--accent-hover);
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(0,0,0,0.28);
}

.button.secondary{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,0.14);
  box-shadow:none;
}

.button.secondary:hover{
  background:rgba(255,255,255,0.03);
  border-color:rgba(255,255,255,0.24);
  box-shadow:none;
}

/* Lists (Writing + Work items) */
.list{
  margin:28px 0;
}

.item{
  display:inline-block;
  font-family:"Raleway",sans-serif;
  font-weight:800;
  font-size:15px;
  color:#fff;
  text-decoration:none;
  margin-bottom:6px;
  transition:color 0.2s ease;
  border-bottom:none !important;
}

.item:hover{
  color:rgba(255,255,255,0.82);
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-color:rgba(255,255,255,0.20);
}

.meta{
  color:var(--muted);
  font-size:14px;
  max-width:760px;
}

/* Tiles (Work landing) */
.tiles{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-top:36px;
}

.tile{
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  padding:22px;
  border-radius:14px;
  background:var(--card);
  border:1px solid rgba(255,255,255,0.05);
  text-decoration:none;
  color:var(--text);
  box-shadow:0 8px 30px rgba(0,0,0,0.14);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.tile:hover{
  background:var(--card-hover);
  border-color:var(--border-strong);
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(0,0,0,0.22);
}

.tile-title{
  font-family:"Raleway",sans-serif;
  font-weight:800;
  font-size:16px;
  margin-bottom:8px;
  color:#fff;
}

.tile-sub{
  font-size:14px;
  color:var(--muted);
  max-width:42ch;
}

/* Writing subscribe box */
.subscribe-box{
  margin:28px 0 40px 0;
  padding:22px;
  max-width:760px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 8px 30px rgba(0,0,0,0.14);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.subscribe-box h2{
  margin:0 0 8px 0;
}

.subscribe-box p{
  margin:0;
  max-width:none;
}

.subscribe-box form{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}

.subscribe-box input{
  flex:1 1 280px;
  min-width:0;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--border);
  font-family:"Merriweather",serif;
  font-size:15px;
  background:var(--input);
  color:var(--text);
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-box input::placeholder{
  color:rgba(245,247,250,0.45);
}

.subscribe-box input:focus{
  outline:none;
  border-color:rgba(255,255,255,0.18);
  box-shadow:0 0 0 4px rgba(255,255,255,0.04);
}

.subscribe-box .button{
  align-self:stretch;
}

.embeddable-buttondown-form{
  max-width:none;
}

/* Dividers */
.section-divider{
  height:1px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.10),
    transparent
  );
  margin:48px 0;
  max-width:760px;
}

hr{
  border:0;
  height:1px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.10),
    transparent
  );
  margin:40px 0;
  max-width:760px;
}

/* Intro paragraph after page title */
.content h1 + p{
  font-size:17px;
  line-height:1.75;
  color:rgba(245,247,250,0.78);
}

/* Contact page */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  margin-top:40px;
}

.contact-left h2{
  margin-top:0;
}

.map{
  margin-top:20px;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 30px rgba(0,0,0,0.14);
}

.map iframe{
  width:100%;
  height:260px;
  border:0;
}

.contact-right form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.contact-right input,
.contact-right textarea{
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--border);
  font-family:"Merriweather",serif;
  font-size:15px;
  background:var(--input);
  color:var(--text);
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-right input::placeholder,
.contact-right textarea::placeholder{
  color:rgba(245,247,250,0.45);
}

.contact-right input:focus,
.contact-right textarea:focus{
  outline:none;
  border-color:rgba(255,255,255,0.18);
  box-shadow:0 0 0 4px rgba(255,255,255,0.04);
}

.contact-right textarea{
  min-height:180px;
  resize:vertical;
}

/* Footer */
.site-footer{
  padding:32px 0 40px 0;
  font-size:13px;
  color:rgba(245,247,250,0.38);
  border-top:1px solid rgba(255,255,255,0.04);
  margin-top:80px;
}

/* Responsive */
@media (max-width: 980px){
  .home-hero{
    grid-template-columns:1fr;
    gap:20px;
  }

  .hero-anchor{
    min-height:auto;
    border-left:none;
    padding-left:0;
    max-width:760px;
  }
}

@media (max-width: 860px){
  .tiles{
    grid-template-columns:1fr;
  }

  .contact-grid{
    grid-template-columns:1fr;
    gap:36px;
  }

  h1{
    font-size:38px;
    line-height:1.12;
  }

  .subscribe-box form{
    flex-direction:column;
  }

  .subscribe-box .button{
    width:100%;
  }
}
